/* --- PREMIUM LUXURY DESIGN SYSTEM --- */
:root {
    /* Logo-matched primary colors */
    --accent-primary: #B8794A;
    --accent-dark: #A66D45;
    --accent-light: #C9966B;
    --accent-hover: #C9966B;

    /* Legacy support (maps to new colors) */
    --accent: #B8794A;
    --sidebar-bg: #B8794A;

    /* Premium gradients */
    --gradient-premium: linear-gradient(135deg, #B8794A 0%, #A66D45 100%);
    --gradient-subtle: linear-gradient(135deg, #C9966B 0%, #B8794A 100%);
    --gradient-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);

    /* Warm neutral palette */
    --bg-primary: #FAF7F2;
    --bg-secondary: #FFFCF7;
    --bg-tertiary: #F0EBE3;
    --bg-warm-white: #FFFCF7;

    /* Text colors */
    --text-primary: #2A2520;
    --text-secondary: #5a5a5a;
    --text-light: #8a8a8a;
    --text-warm-dark: #2A2520;

    /* Borders */
    --border: #E5DED5;
    --border-light: #EFE9E1;

    /* Enhanced shadow system */
    --shadow-sm: 0 2px 4px rgba(166, 109, 69, 0.08);
    --shadow-md: 0 4px 12px rgba(166, 109, 69, 0.12);
    --shadow-lg: 0 8px 24px rgba(166, 109, 69, 0.15);
    --shadow-xl: 0 16px 48px rgba(166, 109, 69, 0.2);
    --shadow-2xl: 0 24px 64px rgba(166, 109, 69, 0.25);

    /* Premium shadow layers */
    --shadow-premium:
        0 2px 8px rgba(166, 109, 69, 0.1),
        0 8px 24px rgba(166, 109, 69, 0.12),
        0 16px 32px rgba(166, 109, 69, 0.08);

    /* Custom easing curves */
    --ease-premium: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elegant: cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Dark mode with warm copper tones */
    --bg-primary: #1a1614;
    --bg-secondary: #242220;
    --bg-tertiary: #2d2926;
    --bg-warm-white: #1a1614;

    --text-primary: #F5F1EC;
    --text-secondary: #C5BFB8;
    --text-light: #8a8480;
    --text-warm-dark: #F5F1EC;

    /* Brightened accent for dark mode */
    --accent-primary: #C9966B;
    --accent-dark: #B8794A;
    --accent-light: #D4A775;
    --accent-hover: #D4A775;
    --accent: #C9966B;
    --sidebar-bg: #C9966B;

    --border: #3d3833;
    --border-light: #35302b;

    /* Enhanced dark shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.8);

    --shadow-premium:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 16px 32px rgba(0, 0, 0, 0.4);
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1614 0%, #2d2926 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s var(--ease-elegant), visibility 0.8s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: splashLogoEntry 1.2s var(--ease-elegant) forwards;
}

.splash-logo {
    width: 280px;
    max-width: 80vw;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
    animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashLogoEntry {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes splashPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.4));
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth);
}

/* Premium smooth scroll with momentum */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-padding-top: 80px;
    }
}

.preload * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* Watermark Background */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 600px;
    height: 50%;
    max-height: 600px;
    background-image: url('../logo.png');
    /* Adjusted path for CSS file location */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

/* --- PREMIUM NAVIGATION --- */
nav {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.7s var(--ease-elegant);
}

/* Premium Glassmorphism Nav on Scroll */
nav.scrolled {
    background: rgba(255, 252, 247, 0.8);
    padding: 0.8rem 5%;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg);
}

/* Change text colors when scrolled */
nav.scrolled .logo {
    color: var(--text-primary);
}

nav.scrolled .hamburger span {
    background: var(--text-primary);
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.6s var(--ease-elegant);
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.6s var(--ease-elegant);
}

nav.scrolled .logo {
    height: 42px;
    transform: scale(1);
}

nav.scrolled .logo img {
    filter: none drop-shadow(0 2px 4px rgba(166, 109, 69, 0.15));
}

/* Premium Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s var(--ease-smooth);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.4s var(--ease-elegant);
    border-radius: 2px;
}

/* Premium Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--gradient-premium);
    box-shadow: var(--shadow-2xl);
    transition: left 0.5s var(--ease-elegant);
    z-index: 2000;
    padding: 2rem 0;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header .logo {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-sidebar {
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s var(--ease-smooth);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-sidebar:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.sidebar-links {
    padding: 2rem 0;
}

.sidebar-links a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: white;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.4s var(--ease-smooth);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s var(--ease-elegant);
}

.sidebar-links a:hover::before {
    width: 100%;
}

.sidebar-links a:hover {
    color: white;
    border-left-color: white;
    padding-left: 2.5rem;
    font-weight: 500;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    animation: fadeInUpSpring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero .subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUpSpring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUpSpring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

/* Hero Logo */
.hero-logo {
    margin-top: 80px;
    margin-bottom: 1.5rem;
    animation: fadeInUpSpring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-logo img {
    max-width: 400px;
    width: 80%;
    height: auto;
    /* Original logo colors visible */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium entrance animation with blur and scale */
@keyframes fadeInUpSpring {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        filter: blur(8px);
    }

    60% {
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Premium card entrance with 3D effect */
@keyframes premiumFadeIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.92) rotateX(10deg);
        filter: blur(10px);
    }

    60% {
        opacity: 0.7;
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
        filter: blur(0);
    }
}

/* Shimmer effect for premium elements */
@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) rotate(180deg) scale(2);
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUpSpring 1.4s var(--ease-bounce) 0.9s both;
}

/* Premium Button Styles */
.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.6s var(--ease-elegant);
    cursor: pointer;
    border: none;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-primary {
    background: var(--gradient-premium);
    color: white;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(166, 109, 69, 0.3);
}

/* Premium ripple effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.8s var(--ease-elegant), height 0.8s var(--ease-elegant);
}

/* Shimmer overlay */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

.btn-primary:hover::before {
    width: 350px;
    height: 350px;
}

.btn-primary:hover {
    background: var(--gradient-subtle);
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-premium);
}

.btn-primary:active {
    transform: translateY(-4px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    backdrop-filter: blur(4px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-elegant);
    z-index: -1;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.4);
}

.btn-secondary:active {
    transform: translateY(-4px) scale(1.02);
}

/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 5rem 5%;
    background: var(--bg-primary);
    overflow: hidden;
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;

    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 3rem;
}

#slideshow-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.mySlides {
    min-width: 100%;
    height: 100%;
    display: block;
    /* Override default hidden */
    opacity: 1;
    /* Override fade logic */
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Controls */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gallery Modal Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- CATEGORY GRID SECTION --- */
.categories {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge for products */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

/* --- VALUES SECTION --- */
.values-section {
    background: var(--bg-tertiary);
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8794a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.value-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s var(--ease-elegant);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(166, 109, 69, 0.15);
    border-color: var(--accent-light);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-premium);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s var(--ease-elegant);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(184, 121, 74, 0.1) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid rgba(184, 121, 74, 0.2);
    transition: all 0.5s var(--ease-bounce);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: white;
    box-shadow: 0 10px 25px rgba(166, 109, 69, 0.15);
    border-color: var(--accent);
}

.value-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-warm-dark);
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Dark Mode Overrides for Values Section */
[data-theme="dark"] .value-card {
    background: rgba(36, 34, 32, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .value-card:hover {
    background: rgba(45, 41, 38, 0.9);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .value-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .value-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .value-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .value-card:hover .value-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(201, 150, 107, 0.2);
}



.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 4rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: all 0.8s var(--ease-elegant);
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    will-change: transform;
    transform-style: preserve-3d;
    border-radius: 4px;
}

.category-card.visible {
    animation: premiumFadeIn 1s var(--ease-elegant) forwards;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-elegant);
}

.category-card:hover {
    transform: translateY(-30px) rotateX(5deg) scale(1.02);
    box-shadow: var(--shadow-premium);
}

.category-card:hover img {
    transform: scale(1.15) rotate(-2deg);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top,
            rgba(166, 109, 69, 0.95) 0%,
            rgba(184, 121, 74, 0.7) 40%,
            transparent 100%);
    color: white;
    transition: all 0.6s var(--ease-elegant);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top,
            rgba(166, 109, 69, 1) 0%,
            rgba(184, 121, 74, 0.85) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    padding: 2.5rem 2rem;
}

.category-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transform: translateY(0);
    transition: all 0.5s var(--ease-elegant);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card:hover h3 {
    transform: translateY(-8px);
    letter-spacing: 0.5px;
}

.category-card p {
    font-size: 0.95rem;
    opacity: 0.95;
    transform: translateY(0);
    transition: all 0.5s var(--ease-elegant);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.category-card:hover p {
    opacity: 1;
    transform: translateY(-8px);
}

/* --- FEATURED PRODUCTS SECTION --- */
.products {
    padding: 5rem 5%;
    background: var(--bg-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1500px;
}

.product-card {
    background: var(--bg-secondary);
    overflow: hidden;
    transition: all 0.8s var(--ease-elegant);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    will-change: transform;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.product-card.visible {
    animation: premiumFadeIn 1s var(--ease-elegant) forwards;
}

.product-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-20px) rotateX(3deg) scale(1.02);
    border-color: var(--accent-primary);
}

.product-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1s var(--ease-elegant);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(-1deg);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-body {
    padding: 1.8rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    font-weight: 500;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.product-price {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: 1.2rem;
    letter-spacing: 0.3px;
}

.btn-inquire {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.btn-inquire::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-inquire:hover::after {
    width: 300px;
    height: 300px;
}

.btn-inquire:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 165, 114, 0.3);
}

.btn-inquire:active {
    transform: translateY(0);
}

/* --- NEWSLETTER SECTION --- */
.newsletter {
    padding: 4rem 5%;
    background: var(--bg-primary);
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    /* Overridden by specific IDs later */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Dimmed background */
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Start invisible for fade effect */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Smooth backdrop fade */
}

.modal.show {
    display: flex;
    opacity: 1;
    /* Fade in */
}

/* Popup Animation Keyframes */
@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .modal-content {
    animation: modalPop 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    /* Smooth, premium pop */
}

.modal-content {
    background: rgba(255, 255, 255, 0.65);
    /* More transparent for glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    /* Strong blur + vivid colors behind */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    /* Rounded corners for liquid feel */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Subtle glass border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    /* Soft, deep shadow */
}

[data-theme="dark"] .modal-content {
    background: rgba(30, 28, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    /* Darker for better visibility on glass */
    transition: color 0.3s ease;
    line-height: 1;
    background: rgba(255, 255, 255, 0.3);
    /* Small backing for close btn */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 14px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

/* --- FOOTER --- */
footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* --- SCROLL ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Stagger animation delays for grid items */
.category-card:nth-child(1) {
    transition-delay: 0.05s;
}

.category-card:nth-child(2) {
    transition-delay: 0.15s;
}

.category-card:nth-child(3) {
    transition-delay: 0.25s;
}

.product-card:nth-child(1) {
    transition-delay: 0.05s;
}

.product-card:nth-child(2) {
    transition-delay: 0.1s;
}

.product-card:nth-child(3) {
    transition-delay: 0.15s;
}

.product-card:nth-child(4) {
    transition-delay: 0.2s;
}

.product-card:nth-child(5) {
    transition-delay: 0.25s;
}

.product-card:nth-child(6) {
    transition-delay: 0.3s;
}

/* --- ADVANCED ANIMATIONS --- */

/* Base Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Slide In Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up */
.scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scale-up.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays (Utility) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- ALL PRODUCTS MODAL --- */
.all-products-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    /* Higher than inquiry modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-products-modal.show {
    display: flex;
    opacity: 1;
}

.apm-container {
    background: var(--bg-primary);
    width: 95%;
    height: 90vh;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    /* Optional: if you want rounded corners */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .apm-container {
    background: #1a1614;
    /* Fallback */
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.8);
}

.apm-header {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apm-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

.apm-close {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.apm-close:hover {
    color: var(--accent);
}

.apm-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg-primary);
}

/* Re-use product grid styles within modal but ensure visibility */
.apm-body .product-card {
    opacity: 1;
    transform: translateY(0);
}

/* View All Button Wrapper */
.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-view-all:hover::before {
    left: 0;
}

.btn-view-all:hover {
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: var(--text-primary);
}

.btn-view-all:active {
    transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.theme-toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.5s ease;
}

.theme-toggle:active .theme-toggle-icon {
    transform: rotate(20deg) scale(0.95);
}

/* Quantity Control Styles */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 30px;
    margin: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Form Styles refinement */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

[data-theme="dark"] .quantity-control {
    border-color: #444;
}

[data-theme="dark"] .qty-btn {
    background: #333;
    color: #fff;
}

[data-theme="dark"] .qty-btn:hover {
    background: #444;
}

[data-theme="dark"] .quantity-control input {
    background: #222;
    color: #fff;
    border-color: #444;
}



/* Adjust nav scrolled state for theme toggle visibility */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(36, 36, 36, 0.95);
}

/* --- CART STYLES --- */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.cart-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* Cart Modal Styles */
#cartModal {
    z-index: 3200;
}

.cart-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.cart-item-option {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.cart-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.cart-item-price {
    color: var(--accent-dark);
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #cc0000;
}

.empty-cart-msg {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Add to Cart Button */
.btn-add-cart {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    color: var(--accent);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background: rgba(237, 138, 9, 0.1);
}

/* Cart Bump Animation */
@keyframes bump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-count.bump {
    animation: bump 0.3s ease-out;
}

/* --- PREMIUM PAGE HERO STYLES --- */
.page-hero {
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 6rem 5%;
    position: relative;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(166, 109, 69, 0.7) 0%,
            rgba(184, 121, 74, 0.6) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
    transform: scale(1.1);
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUpSpring 1.2s var(--ease-bounce) 0.3s both;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* OUT OF STOCK STYLES */
.product-card.out-of-stock .product-image {
    position: relative;
}

.product-card.out-of-stock .product-image::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    /* Red Dot */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.product-card.out-of-stock .product-image::before {
    content: 'OUT OF STOCK';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 1px;
}

.product-card.out-of-stock .btn-add-cart-card,
.product-card.out-of-stock .btn-inquire {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
}

/* --- Dynamic Products Grid --- */
#dynamic-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* Ensure cards look good in the grid */
#dynamic-products-container .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

#dynamic-products-container .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#dynamic-products-container .product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

#dynamic-products-container .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#dynamic-products-container .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#dynamic-products-container .product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

#dynamic-products-container .product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

#dynamic-products-container .product-price {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#dynamic-products-container .btn-add-cart-card {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

#dynamic-products-container .btn-add-cart-card:hover {
    background: var(--accent-hover);
}

/* --- PRODUCT DETAIL MODAL --- */
#productDetailModal {
    z-index: 3200;
}

#productDetailModal .modal-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.95);
    /* Increased opacity for better readability */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] #productDetailModal .modal-content {
    background: rgba(30, 28, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-image-gallery {
    flex: 1.1;
    background: rgba(240, 240, 240, 0.4);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.main-image-container {
    width: 100%;
    height: 400px;
    /* Slightly taller */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-image-container img:hover {
    transform: scale(1.03);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 4px;
    justify-content: center;
}

.modal-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-thumbnail:hover {
    opacity: 0.9;
}

.modal-details {
    flex: 1;
    padding: 3rem 2.5rem;
    /* More breathing room */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 85vh;
}

.product-detail-title {
    font-family: 'Playfair Display', serif;
    /* Explicit serif */
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.product-detail-price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
}

.detail-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.detail-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Button Upgrades for Modal */
#detailAddToCartBtn {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#detailAddToCartBtn:hover {
    background-color: var(--accent);
    color: white;
}

#detailInquireBtn {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}

#detailInquireBtn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 15px rgba(184, 134, 11, 0.3);
    transform: translateY(-1px);
}

/* Response for Mobile */
@media (max-width: 768px) {
    #productDetailModal .modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        /* Safe area */
        overflow-y: auto;
    }

    .modal-image-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1.5rem;
    }

    .main-image-container {
        height: 250px;
    }

    .modal-details {
        padding: 1.5rem;
        max-height: none;
        /* Let content flow */
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .detail-actions {
        flex-direction: column;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-serif);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}