@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Modern Rustic Luxury Palette */
    --primary-gold: #d4af37;
    --primary-gold-dim: #b5952f;
    --deep-earth: #2c241b; /* Dark brown-black */
    --stone-grey: #1a1a1a;
    --warm-white: #f9f7f2;
    --accent-rust: #c0392b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 15px;
    
    /* Spacing & Layout */
    --container-width: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: #0f0f0f;
    color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1f1f1f 0%, #0f0f0f 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

/* Navbar - Glassmorphism */
.navbar {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-gold), #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons - Premium Feel */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 0; /* Sharp edges for luxury feel */
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--primary-gold);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--primary-gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-gold);
    transition: 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: #000;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    border-color: var(--warm-white);
    color: var(--warm-white);
}

.btn-outline:hover {
    background: var(--warm-white);
    color: #000;
}

/* Hero Section - Cinematic */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    z-index: 0;
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.3s forwards;
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.6s forwards;
}

/* Section Split - Asymmetrical */
.section-split {
    display: flex;
    min-height: 80vh;
    background: #0f0f0f;
    position: relative;
}

.split-image {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    position: relative;
}

.split-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,15,15,0) 0%, #0f0f0f 100%);
}

.split-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.split-content h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.split-content p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Product Cards - Glass & Hover */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: var(--spacing-lg) 0;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-image-wrapper {
    overflow: hidden;
    height: 400px;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-info {
    padding: 25px;
    text-align: center;
    background: linear-gradient(to top, #1a1a1a, transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(20px);
    transition: 0.5s;
}

.product-card:hover .product-info {
    transform: translateY(0);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--warm-white);
}

.product-price {
    color: var(--primary-gold);
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 150px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    padding: 60px;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.parallax-content h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.parallax-content h3 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

/* Countdown */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.time-unit span {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--primary-gold);
    display: block;
    line-height: 1;
}

.time-unit {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

/* Features Grid */
.section-text-center {
    padding: 100px 0;
    background: #141414;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-box {
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
    text-align: center;
}

.feature-box:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.feature-box .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* Curiosities */
.section-dark {
    background: #0a0a0a;
    padding: 100px 0;
    border-top: 1px solid #222;
}

.curiosity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.curiosity-item {
    border-left: 1px solid var(--primary-gold);
    padding-left: 30px;
}

.curiosity-item h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

/* Footer */
.footer {
    background: #050505;
    padding: 80px 0;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 4rem; }
    .split-content h2 { font-size: 3rem; }
    .section-split { flex-direction: column; }
    .split-image { height: 50vh; }
    .curiosity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .countdown-timer { gap: 20px; }
    .time-unit span { font-size: 2.5rem; }
}

/* Product Detail - Premium Split Layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-info-sticky {
    position: sticky;
    top: 120px; /* Adjust based on navbar height */
    padding: 20px;
}

.product-title-large {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--warm-white);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.price-large {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.stock-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border: 1px solid;
}

.stock-badge.in-stock {
    color: #2ecc71;
    border-color: #2ecc71;
}

.stock-badge.out-of-stock {
    color: #e74c3c;
    border-color: #e74c3c;
}

.product-description-short {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* =========================================
   Premium Authentication (Split Layout)
   ========================================= */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
}

.auth-image-side {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1606744837616-56c9a5c6a6eb?q=80&w=1935&auto=format&fit=crop'); /* Artisanal/Dark Mood */
    background-size: cover;
    background-position: center;
    position: relative;
    display: none; /* Hidden on mobile */
}

.auth-image-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); /* Overlay */
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 8%;
    background: #0a0a0a;
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #888;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
    transition: 0.3s;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.auth-form input:focus + label {
    color: var(--gold);
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--gold), #b8860b);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-back {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.auth-back:hover {
    color: var(--gold);
}

@media (min-width: 992px) {
    .auth-image-side {
        display: block;
    }
}
/* Variant Styles Refined */
.variant-group {
    margin-bottom: 25px;
}

.variant-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
    display: block;
}

/* Cart Page - Refined Table Layout */
.cart-table-container {
    margin-bottom: 40px;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cart-table tbody tr {
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}

.cart-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.cart-table td {
    padding: 20px;
    vertical-align: middle;
}

.cart-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.cart-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cart-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.cart-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--warm-white);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: #888;
}

.cart-price, .cart-subtotal {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--warm-white);
}

.btn-remove-icon {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-remove-icon:hover {
    color: #e74c3c;
}

.cart-actions-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
}

/* Cart Bottom Section */
.cart-bottom-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.cart-logistics {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.logistics-group h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.form-select, .discount-input-group input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Cart Totals Card */
.cart-totals-card {
    background: #141414;
    border: 1px solid #222;
    padding: 40px;
    border-radius: 8px;
}

.cart-totals-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ccc;
}

.totals-divider {
    height: 1px;
    background: #222;
    margin: 20px 0;
}

.totals-row.final {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

.radio-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-label {
    padding: 12px 24px;
    border: 1px solid #333;
    background: rgba(255,255,255,0.02);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.radio-option input:checked + .radio-label {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    font-weight: 600;
}

.color-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.color-option input:checked + .color-circle {
    transform: scale(1.1);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Purchase Actions */
.purchase-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.quantity-wrapper {
    display: flex;
    border: 1px solid #333;
    height: 50px;
}

.quantity-wrapper button {
    background: none;
    border: none;
    color: #fff;
    width: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.quantity-wrapper button:hover {
    background: #222;
}

.quantity-wrapper input {
    background: none;
    border: none;
    color: #fff;
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    -moz-appearance: textfield;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion */
.product-details-accordion details {
    border-bottom: 1px solid #222;
    padding: 20px 0;
}

.product-details-accordion summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-details-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

.product-details-accordion details[open] summary::after {
    content: '-';
}

.details-content {
    padding-top: 15px;
    color: #999;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-info-sticky {
        position: static;
    }
    
    .product-title-large {
        font-size: 2.5rem;
    }
    .cart-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .cart-table th {
        display: none;
    }
    
    .cart-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cart-table td {
        padding: 5px;
        border: none;
    }
}
