:root {
    /* Color Palette - Dark Luxury */
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-accent: #d4af37;
    /* Muted Gold */
    --color-accent-hover: #e5c156;
    --color-border: #333333;

    /* Spacing & Layout */
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-size-hero: 4.5rem;
    --font-size-h2: 2.5rem;
    --font-size-body: 1.125rem;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-icons {
    display: flex;
    gap: var(--spacing-md);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active .bar:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    padding-top: var(--spacing-xl);
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    display: block;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hero Visual */
.hero-visual {
    flex: 1;
    height: 100%;
    position: relative;
    /* Complex gradient for a more premium glass/light feel */
    background:
        radial-gradient(circle at 70% 30%, rgba(50, 50, 50, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.image-overlay {
    width: 80%;
    height: 80%;
    background: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?q=80&w=2158&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    opacity: 0.8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%) contrast(110%);
}

/* Featured Section */
.featured-section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 500;
}

.link-arrow {
    color: var(--color-accent);
    font-weight: 500;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.link-arrow:hover .arrow {
    transform: translateX(4px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #222;
    margin-bottom: var(--spacing-sm);
    border-radius: 2px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.btn-add-cart {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-surface);
    color: var(--color-text);
    padding: 1rem 2rem;
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.product-price {
    color: var(--color-text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    :root {
        --font-size-hero: 3rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--color-text);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--color-text);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.modal-image {
    background: var(--color-surface);
    aspect-ratio: 1;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.modal-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-large {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: var(--spacing-sm) 0;
}

#modal-description {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.modal-meta {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding: var(--spacing-md);
    }
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.auth-box {
    width: 100%;
    max-width: 480px;
    background: var(--color-surface);
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.form-group input {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 1rem;
    color: var(--color-text);
    font-family: var(--font-main);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.auth-footer a,
.forgot-password {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 4px;
}

.auth-footer a:hover,
.forgot-password:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.nav-back {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.nav-back:hover {
    color: var(--color-text);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 2005;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.modal-backdrop.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.drawer-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.drawer-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.cart-item {
    display: flex;
    gap: 1rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
}

.btn-remove:hover {
    color: #ff4d4d;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-cart {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

/* Checkout Page Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .checkout-summary-section {
        order: -1;
    }
}

/* Form Validation */
.form-group.error input {
    border-color: #ff4d4d;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

.order-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-status {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Favorite Button */
.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ccc;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-fav:hover {
    transform: scale(1.1);
}

.btn-fav.active {
    color: #ff4d4d;
}