:root {
	--bg-primary: #050505;
	--bg-secondary: #111111;
	--card-bg: rgba(25, 25, 25, 0.8);
	--accent-primary: #d4af37;
	--accent-secondary: #f7e7ce;
	--text-primary: #f0f0f0;
	--text-secondary: #a0a0a0;
	--border-glass: rgba(255, 255, 255, 0.1);
	--font-heading: "Playfair Display", serif;
	--font-body: "Inter", sans-serif;
	--shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	top: -10%;
	left: -10%;
	width: 40%;
	height: 40%;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
	z-index: -1;
	pointer-events: none;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	letter-spacing: 1px;
}

.main-header {
	padding: 2rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	background: rgba(5, 5, 5, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid var(--border-glass);
}

.brand-logo {
	font-family: var(--font-heading);
	font-size: 1.8rem;
	font-weight: 700;
	background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.action-button {
	background: transparent;
	border: 1px solid var(--accent-primary);
	color: var(--accent-primary);
	padding: 0.5rem 1.2rem;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.action-button:hover {
	background: var(--accent-primary);
	color: #000;
}

.hero-banner {
	height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 5%;
	background:
		linear-gradient(rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 1)),
		url("https://images.unsplash.com/photo-1551300730-440bbe56cffb?q=80&w=2070&auto=format&fit=crop");
	background-size: cover;
	background-position: center;
}

.hero-banner h1 {
	font-size: 4rem;
	margin-bottom: 1rem;
	animation: slideUpFade 1s ease;
}

.hero-banner p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 600px;
	animation: slideUpFade 1.2s ease;
}

.catalog-section {
	padding: 4rem 5%;
}

.items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2.5rem;
}

.product-card {
	background: var(--card-bg);
	border: 1px solid var(--border-glass);
	border-radius: 12px;
	overflow: hidden;
	transition:
		transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		box-shadow 0.4s ease;
	cursor: pointer;
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-premium);
	border-color: rgba(212, 175, 55, 0.3);
}

.image-wrapper {
	height: 350px;
	background: #111;
	overflow: hidden;
}

.image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.product-card:hover .image-wrapper img {
	transform: scale(1.05);
}

.product-details {
	padding: 1.5rem;
}

.product-details h3 {
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
	color: var(--accent-primary);
}

.category-tag {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--text-secondary);
	letter-spacing: 2px;
	margin-bottom: 1rem;
}

.specs-preview {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--text-secondary);
	border-top: 1px solid var(--border-glass);
	padding-top: 1rem;
}

.overlay-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	backdrop-filter: blur(8px);
}

.modal-body {
	background: var(--bg-secondary);
	max-width: 1000px;
	width: 100%;
	max-height: 90vh;
	border-radius: 16px;
	border: 1px solid var(--border-glass);
	overflow-y: auto;
	position: relative;
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.modal-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 2rem;
	color: var(--text-secondary);
	cursor: pointer;
	z-index: 10;
}

.gallery-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.gallery-image {
	width: 100%;
	border-radius: 8px;
}

.info-container h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: var(--accent-primary);
}

.info-text {
	margin-bottom: 2rem;
	color: var(--text-secondary);
}

.specs-grid {
	background: rgba(255, 255, 255, 0.05);
	padding: 1.5rem;
	border-radius: 8px;
}

.spec-row {
	display: flex;
	justify-content: space-between;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--border-glass);
}

.spec-row:last-child {
	border-bottom: none;
}

.admin-section {
	padding: 4rem 5%;
	background: #080808;
	border-top: 1px solid var(--border-glass);
}

.input-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

input,
textarea,
select {
	width: 100%;
	padding: 0.8rem;
	background: #222;
	border: 1px solid var(--border-glass);
	color: #fff;
	border-radius: 4px;
	font-family: inherit;
}

#product-images {
	resize: vertical;
	min-height: 120px;
	line-height: 1.5;
	font-size: 0.85rem;
}

.primary-button {
	background: var(--accent-primary);
	color: #000;
	border: none;
	padding: 1rem 2rem;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
}

@keyframes slideUpFade {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.modal-body {
		grid-template-columns: 1fr;
	}
	.hero-banner h1 {
		font-size: 2.5rem;
	}
}

.hidden {
	display: none !important;
}

.loading-state {
	grid-column: 1/-1;
	text-align: center;
	color: var(--text-secondary);
}
