/* 
  E-COMMERCE DESIGN SYSTEM
  Modern, Premium, Minimalist (Apple/Shopify inspired)
*/

:root {
    /* Colors */
    --primary: #111111;
    --secondary: #666666;
    --accent: #d4af37; /* Gold/Amber for premium touch */
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --success: #28a745;
    --error: #ff3b30;
    --border: #e5e5e5;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --h1: 700 2.5rem/1.2 var(--font-main);
    --h2: 600 2rem/1.3 var(--font-main);
    --h3: 600 1.5rem/1.4 var(--font-main);
    --body: 400 1rem/1.6 var(--font-main);
    --small: 400 0.875rem/1.5 var(--font-main);

    /* Spacing (8px scale) */
    --s1: 4px;
    --s2: 8px;
    --s4: 16px;
    --s6: 24px;
    --s8: 32px;
    --s12: 48px;
    --s16: 64px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #ffffff;
    background-image: radial-gradient(#f1f1f1 1px, transparent 1px);
    background-size: 40px 40px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 200px; /* Doubled spacing between content and footer */
}

::selection {
    background: var(--primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

a {
    text-decoration: none;
    color: #000;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utilities */
.container {
    padding: 0 var(--s8);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-padding {
    padding: 160px 0;
}

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4) var(--s8);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Header & Nav */
body > header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s8);
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

header nav ul {
    display: flex;
    gap: var(--s8);
}

.nav-container nav a {
    color: #000;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-container nav a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: var(--s6);
    justify-self: end;
}

.cart-icon {
    position: relative;
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Product Grid - Fluid & Modern */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s8);
}

.shop-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--s8);
}

@media (min-width: 768px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .shop-product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Desktop Nav Visibility */
@media (max-width: 767px) {
    .md-flex { display: none !important; }
    .md-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 768px) {
    .md-hidden { display: none !important; }
    .md-flex { display: flex !important; }
    .md-grid { display: grid !important; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    padding: var(--s8);
    transform: translateY(-100%);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}
.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.mobile-nav-overlay ul li {
    margin-bottom: var(--s6);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Utilities */
.gap-s4 { gap: var(--s4); }
.gap-s6 { gap: var(--s6); }
.gap-s2 { gap: var(--s2); }
.justify-center { justify-content: center; }

/* Product Card - Professional Redesign */
.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
    transition: var(--transition);
    border: 1px solid #eee;
    padding: var(--s4);
    box-shadow: var(--shadow-sm); /* Subtle initial shadow */
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: var(--shadow-md); /* Enhanced shadow on hover */
}

.product-image {
    display: block;
    aspect-ratio: 4/5;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--s4);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--s1);
    letter-spacing: 0.5px;
}

.product-price {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--s4);
}

.js-add-to-cart {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    transition: all 0.3s ease;
}

.js-add-to-cart:hover {
    background: var(--accent);
    color: #fff;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.animate-slide-in { animation: slideIn 0.4s ease-out; }
.animate-slide-out { animation: slideOut 0.4s ease-in; }

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: var(--s4) var(--s6);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 2000;
}
.toast-content { display: flex; align-items: center; gap: var(--s2); font-size: 0.875rem; }

/* Hero Section Redesigned */
.hero {
    min-height: 100vh;
    background-color: #fbfbfb;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fallback for no-js or slow devices */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--s12) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--s16);
    }
}

.hero .btn-secondary {
    border-color: white;
    color: white;
}

.hero .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 100px;
    padding: 6px 16px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--s6);
    letter-spacing: -2px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--s12);
    max-width: 450px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.hero-visuals {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-wrapper {
    width: 85%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 30px 30px 60px rgba(0,0,0,0.1);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-img:hover {
    transform: scale(1.05);
}

.detail-image-wrapper {
    position: absolute;
    bottom: -30px;
    left: -10%;
    width: 45%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 20;
}

.hero-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(50px);
    z-index: 1;
}

/* Premium Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text-slow {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Modern Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s6);
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, 300px);
    }
    
    .category-card:nth-child(1) {
        grid-row: span 2;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
}

@media (min-width: 768px) {
    .category-card:nth-child(1) { height: 100%; }
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--s8);
    color: white;
}

.category-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--s2);
}

.category-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.8;
}

/* Elegant Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s12);
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: var(--s4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-image {
    aspect-ratio: 1/1.2;
    border-radius: 8px;
    margin-bottom: var(--s6);
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card .btn-primary {
    width: 100%;
    margin-top: var(--s4);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card .btn-primary:hover {
    background: #c19b2e;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.product-card:hover .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    text-align: center;
    padding-top: var(--s2);
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent); /* Use the gold accent for price */
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

/* Editorial Testimonials */
.testimonial-section {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--s8);
    letter-spacing: -1px;
}

.testimonial-author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Shop Page Redesign - Art Gallery Style */
.shop-header {
    padding: var(--s16) 0 var(--s8);
    text-align: center;
}

.breadcrumb {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--s6);
}

.shop-header h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -4px;
    margin-bottom: var(--s12);
    line-height: 0.9;
    color: #000;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: var(--s10);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: var(--s6) 0;
}

.filter-bar a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.filter-bar a:hover {
    color: #000;
}

.filter-bar a.active {
    color: #000;
}

.filter-bar a.active::after {
    content: '';
    position: absolute;
    bottom: -21px; /* Align with bottom border */
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.shop-layout {
    display: grid;
    gap: var(--s12);
}

@media (min-width: 1024px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
    }
}

.filter-group h4 {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--s6);
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--s2);
}

.filter-list li {
    margin-bottom: var(--s4);
}

.filter-list a {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.filter-list a:hover, .filter-list a.active {
    color: var(--primary);
    letter-spacing: 1px;
}

.sort-select {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}

.product-container {
    padding-top: var(--s2);
}

/* Animations for Shop */
.shop-product-grid .product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.shop-product-grid .product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.cart-layout {
    display: grid;
    gap: var(--s8);
}
@media (min-width: 1024px) {
    .cart-layout { grid-template-columns: 2fr 1fr; }
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--s4);
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--border);
}
.cart-item img { width: 80px; aspect-ratio: 1; object-fit: cover; background: var(--bg-light); }
.qty-controls { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.qty-controls button {
    width: 24px; height: 24px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.summary-box { background: var(--bg-light); padding: var(--s6); border-radius: 8px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: var(--s4); }
.summary-total { border-top: 1px solid var(--border); padding-top: var(--s4); font-weight: 700; font-size: 1.25rem; }

/* Product Detail */
.pdp-grid { display: grid; gap: var(--s8); }
@media (min-width: 768px) {
    .pdp-grid { grid-template-columns: 1.2fr 1fr; }
}
.pdp-info h1 { margin-bottom: var(--s2); }
.pdp-price { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--s6); }
.variant-picker { margin-bottom: var(--s6); }
.variant-options { display: flex; gap: var(--s2); margin-top: var(--s2); }
.variant-btn { padding: var(--s2) var(--s4); border: 1px solid var(--border); border-radius: 4px; font-size: 0.875rem; }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: var(--s16) 0 var(--s8);
}

.footer-grid {
    display: grid;
    gap: var(--s8);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    margin-bottom: var(--s4);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.footer-links li a {
    color: #999;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: white;
}
