:root {
    --color-bg: #050505;
    --color-text: #f5f5f5;
    --color-gold: #d4af37;
    --color-gold-hover: #b8962e;
    --color-surface: #121212;
    --font-serif: 'Amiri', serif;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--color-gold);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    z-index: -1;
}

/* Subtle animated grain overlay */
.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 300;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Featured Products */
.products {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--color-surface);
    border-radius: 8px;
    /* Slightly softer corners */
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image {
    width: 100%;
    height: 400px;
    /* Taller images */
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #444;
    position: relative;
    overflow: hidden;
}

/* Premium Placeholder Gradient */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

.product-info {
    padding: 30px;
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-serif);
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 25px;
    display: block;
    font-weight: 300;
}

.card-btn {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.card-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
}


/* Features Section */
.features {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #080808;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-desc {
    font-size: 1rem;
    color: #999;
    line-height: 1.7;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: #020202;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 30px;
    display: inline-block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.social-link {
    color: #fff;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link:hover {
    opacity: 1;
    color: var(--color-gold);
}

.copyright {
    font-size: 0.8rem;
    color: #444;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    margin-top: 30px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }

    .cart-sidebar {
        width: 100%;
    }
}

/* Cart & Modal Styles */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #0a0a0a;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
}

.cart-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gold);
}

.close-cart {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.5;
    transition: 0.3s;
}

.close-cart:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: 0.2s;
}

.qty-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

.cart-footer {
    padding: 25px;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    padding: 20px;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #151515;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.95);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--color-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* Ensure dropdown options are readable */
#city-select {
    color: #fff;
    background-color: #1a1a1a;
    cursor: pointer;
}

#city-select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.order-preview {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #aaa;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
}

/* Size Selector in Card */
.size-selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.size-option {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.size-option:hover {
    color: #fff;
    border-color: #555;
}

.size-option.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #fff;
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    font-weight: 500;
    opacity: 0;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    color: #008000;
}