/* Product Catalog - Frontend Styles */
/* Tuscania-inspired Design for Finishing Materials */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Tuscania-inspired Color Palette */
    --primary-color: #8A6E4D;        /* Warm wood brown */
    --secondary-color: #BE9D78;      /* Light bronze/beige */
    --accent-burgundy: #8A1E3F;      /* Deep burgundy accent */
    --accent-gold: #C9A871;          /* Soft gold */
    --text-dark: #2C2520;            /* Deep brown-black */
    --text-muted: #7D6B5E;           /* Muted brown */
    --bg-cream: #F5F1EB;             /* Soft cream background */
    --bg-light: #ECE8DE;             /* Light beige */
    --border-color: #D9D0C5;         /* Soft border */
    --white-soft: #FAFAF8;           /* Off-white */
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white-soft);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: var(--white-soft) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   DROPDOWN MENU - with Hover Delay
   ============================================ */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--bg-cream);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.dropdown-divider {
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* Hover Delay - Keep dropdown open longer */
.nav-item.dropdown {
    position: relative;
}

/* Hide dropdown by default with visibility and opacity for smooth transitions */
.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transition-delay: 0.3s; /* 300ms delay before hiding */
}

/* Show dropdown immediately on hover */
.nav-item.dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s; /* No delay when opening */
}

/* Show dropdown when Bootstrap adds .show class (for click-based dropdowns like cart) */
.dropdown-menu.show {
    visibility: visible !important;
    opacity: 1 !important;
    transition-delay: 0s !important;
}

/* For Bootstrap dropdown functionality */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ============================================
   HERO SECTION - Modern Living Room Style
   ============================================ */
.hero-section {
    position: relative;
    min-height: 650px;
    background: linear-gradient(135deg, rgba(138, 110, 77, 0.92) 0%, rgba(190, 157, 120, 0.88) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Enhanced Realistic Wood Texture Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1400" height="700" viewBox="0 0 1400 700"><defs><linearGradient id="woodGrad1" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23A0845A;stop-opacity:0.4" /><stop offset="50%" style="stop-color:%238A6E4D;stop-opacity:0.6" /><stop offset="100%" style="stop-color:%23654B2F;stop-opacity:0.4" /></linearGradient><linearGradient id="woodGrad2" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23BE9D78;stop-opacity:0.3" /><stop offset="50%" style="stop-color:%239C7D5C;stop-opacity:0.5" /><stop offset="100%" style="stop-color:%237A5F42;stop-opacity:0.3" /></linearGradient><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" seed="2" /><feColorMatrix type="saturate" values="0" /></filter></defs><rect width="1400" height="700" fill="url(%23woodGrad1)" /><g opacity="0.6"><path d="M0,100 Q350,85 700,95 T1400,110" stroke="%23654B2F" stroke-width="3" fill="none" opacity="0.4"/><path d="M0,150 Q350,135 700,145 T1400,160" stroke="%23704F2E" stroke-width="2.5" fill="none" opacity="0.5"/><path d="M0,200 Q350,190 700,195 T1400,205" stroke="%23A88960" stroke-width="2" fill="none" opacity="0.3"/><path d="M0,280 Q350,265 700,275 T1400,290" stroke="%23654B2F" stroke-width="2.8" fill="none" opacity="0.45"/><path d="M0,350 Q350,340 700,345 T1400,355" stroke="%23BE9D78" stroke-width="1.8" fill="none" opacity="0.35"/><path d="M0,420 Q350,405 700,415 T1400,430" stroke="%23704F2E" stroke-width="2.2" fill="none" opacity="0.4"/><path d="M0,500 Q350,490 700,495 T1400,505" stroke="%238A6E4D" stroke-width="2" fill="none" opacity="0.38"/><path d="M0,580 Q350,570 700,575 T1400,585" stroke="%23A0845A" stroke-width="1.9" fill="none" opacity="0.36"/></g><rect width="1400" height="700" fill="url(%23woodGrad2)" opacity="0.2"/><ellipse cx="250" cy="180" rx="80" ry="120" fill="%23654B2F" opacity="0.15"/><ellipse cx="520" cy="350" rx="100" ry="140" fill="%23704F2E" opacity="0.12"/><ellipse cx="890" cy="220" rx="90" ry="130" fill="%238A6E4D" opacity="0.13"/><ellipse cx="1150" cy="480" rx="110" ry="150" fill="%23654B2F" opacity="0.14"/><rect width="1400" height="700" filter="url(%23noise)" opacity="0.03"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

/* Additional texture layer for depth */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(190, 157, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 110, 77, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 168, 113, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    font-size: 4rem;
    line-height: 1.2;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.4s ease;
}

/* ============================================
   BUTTONS - Tuscania Style
   ============================================ */
.btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: #704F2E;
    border-color: #704F2E;
    color: white !important;
    box-shadow: 0 10px 25px rgba(112, 79, 46, 0.3);
}

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

.btn-light:hover {
    background-color: transparent;
    border-color: white;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(138, 110, 77, 0.3);
}

/* Override Bootstrap default active state styling */
.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cart button specific styles */
.btn-add-to-cart {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart:hover {
    background-color: #704F2E !important;
    box-shadow: 0 5px 15px rgba(112, 79, 46, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(112, 79, 46, 0.3);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-remove {
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.1);
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

/* ============================================
   PRODUCT CARDS - Modern & Elegant
   ============================================ */
.card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.card-img-top {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem;
    background: white;
}

.card-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ============================================
   SECTIONS & BACKGROUNDS
   ============================================ */
.bg-light {
    background-color: var(--bg-cream) !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
}

section {
    padding: 5rem 0;
}

section h2 {
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Enhanced Wood Texture Overlay for Sections */
.wood-texture-bg {
    position: relative;
    background-color: var(--bg-light);
}

.wood-texture-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" viewBox="0 0 800 600"><defs><linearGradient id="wg1" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23D4C4B0;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%23BE9D78;stop-opacity:0.5"/></linearGradient><pattern id="woodGrain" x="0" y="0" width="200" height="100" patternUnits="userSpaceOnUse"><rect width="200" height="100" fill="url(%23wg1)"/><path d="M0,20 Q50,18 100,20 T200,20" stroke="%238A6E4D" stroke-width="1.2" fill="none" opacity="0.25"/><path d="M0,35 Q50,33 100,35 T200,35" stroke="%23BE9D78" stroke-width="0.9" fill="none" opacity="0.2"/><path d="M0,50 Q50,48 100,50 T200,50" stroke="%23A88960" stroke-width="1" fill="none" opacity="0.22"/><path d="M0,68 Q50,66 100,68 T200,68" stroke="%23C9A871" stroke-width="0.8" fill="none" opacity="0.18"/><path d="M0,85 Q50,83 100,85 T200,85" stroke="%238A6E4D" stroke-width="1.1" fill="none" opacity="0.24"/><ellipse cx="40" cy="30" rx="12" ry="18" fill="%238A6E4D" opacity="0.12"/><ellipse cx="120" cy="60" rx="15" ry="20" fill="%23BE9D78" opacity="0.1"/><ellipse cx="170" cy="40" rx="10" ry="15" fill="%23A88960" opacity="0.11"/></pattern></defs><rect width="800" height="600" fill="url(%23woodGrain)"/></svg>');
    background-size: 400px 300px;
    background-repeat: repeat;
    opacity: 0.12;
    z-index: 0;
}

.wood-texture-bg > * {
    position: relative;
    z-index: 1;
}

/* Stone/Marble Texture for Product Sections */
.stone-texture-bg {
    position: relative;
    background-color: var(--white-soft);
}

.stone-texture-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="800" viewBox="0 0 1000 800"><defs><filter id="marbleNoise"><feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="5" seed="1"/><feColorMatrix type="saturate" values="0.1"/></filter><radialGradient id="vein1"><stop offset="0%" style="stop-color:%23C9A871;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%23BE9D78;stop-opacity:0.1"/></radialGradient><radialGradient id="vein2"><stop offset="0%" style="stop-color:%238A6E4D;stop-opacity:0.25"/><stop offset="100%" style="stop-color:%23A88960;stop-opacity:0.05"/></radialGradient></defs><rect width="1000" height="800" fill="%23F5F1EB"/><rect width="1000" height="800" filter="url(%23marbleNoise)" opacity="0.06"/><path d="M150,100 Q250,120 350,110 T550,115 Q650,110 750,125" stroke="url(%23vein1)" stroke-width="15" fill="none" opacity="0.4"/><path d="M100,250 Q200,260 300,255 T500,260 Q600,255 700,270" stroke="url(%23vein2)" stroke-width="12" fill="none" opacity="0.35"/><path d="M200,400 Q300,415 400,410 T600,412 Q700,408 800,420" stroke="url(%23vein1)" stroke-width="18" fill="none" opacity="0.38"/><path d="M50,550 Q150,565 250,560 T450,565 Q550,558 650,572" stroke="url(%23vein2)" stroke-width="14" fill="none" opacity="0.36"/><ellipse cx="320" cy="200" rx="40" ry="25" fill="%23BE9D78" opacity="0.08"/><ellipse cx="580" cy="350" rx="50" ry="30" fill="%238A6E4D" opacity="0.07"/><ellipse cx="420" cy="520" rx="45" ry="28" fill="%23C9A871" opacity="0.075"/></svg>');
    background-size: 500px 400px;
    background-repeat: repeat;
    opacity: 0.15;
    z-index: 0;
}

.stone-texture-bg > * {
    position: relative;
    z-index: 1;
}

/* Ceramic Tile Texture */
.ceramic-texture-bg {
    position: relative;
    background-color: var(--bg-cream);
}

.ceramic-texture-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600"><defs><pattern id="tiles" x="0" y="0" width="150" height="150" patternUnits="userSpaceOnUse"><rect x="1" y="1" width="148" height="148" fill="%23ECE8DE" stroke="%23D9D0C5" stroke-width="0.5"/><rect x="5" y="5" width="140" height="140" fill="%23F5F1EB" opacity="0.8"/><path d="M10,10 L140,10 L140,140 L10,140 Z" stroke="%23BE9D78" stroke-width="0.3" fill="none" opacity="0.3"/><circle cx="75" cy="75" r="3" fill="%238A6E4D" opacity="0.15"/></pattern><filter id="subtle"><feTurbulence baseFrequency="0.05" numOctaves="2"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="600" height="600" fill="url(%23tiles)"/><rect width="600" height="600" filter="url(%23subtle)" opacity="0.02"/></svg>');
    background-size: 300px 300px;
    background-repeat: repeat;
    opacity: 0.35;
    z-index: 0;
}

.ceramic-texture-bg > * {
    position: relative;
    z-index: 1;
}

/* Category Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 1.2em;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

/* Search Form */
.navbar .form-control {
    border-radius: 25px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    background-color: white;
    font-size: 0.95rem;
}

.navbar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(138, 110, 77, 0.15);
}

.navbar .btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
}

/* Keep search and cart on same line in mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        display: flex !important;
        flex-wrap: wrap;
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
    }

    .navbar-collapse form.d-flex {
        flex: 1;
        min-width: 0;
        margin-top: 1rem;
    }

    .navbar-collapse .ms-3.dropdown {
        margin-top: 1rem;
        margin-left: 0.5rem !important;
    }

    /* Remove sticky positioning on mobile */
    .navbar.sticky-top {
        position: relative !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1512 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.main-image img {
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 500px;
    object-fit: cover;
}

.thumbnail-image {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
}

.thumbnail-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-image img {
    height: 100px;
    object-fit: cover;
}

/* Product Specifications */
.list-unstyled li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled li strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 1rem;
}

/* Price Display */
.text-primary {
    color: var(--primary-color) !important;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--text-dark);
}

/* ============================================
   SIDEBAR & FILTERS
   ============================================ */
.list-group-item {
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.list-group-item:hover {
    background-color: var(--bg-cream);
    border-left-color: var(--secondary-color);
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-left-color: var(--accent-burgundy);
    color: black;
    font-weight: 600;
}

/* ============================================
   CATEGORY ICONS
   ============================================ */
.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(138, 110, 77, 0.3);
}

.category-icon i {
    font-size: 1.8rem;
    color: white;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.alert {
    animation: slideDown 0.4s ease;
    border-radius: 0;
    border-left: 4px solid var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in animation for cards */
.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px !important;
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .main-image img {
        height: 300px !important;
    }

    .card-img-top {
        height: 250px !important;
    }

    section {
        padding: 3rem 0;
    }

    .btn-lg {
        padding: 0.8rem 2rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-elegant {
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    color: white;
}

h1.text-elegant {
    color: var(--text-dark);
}

h2.text-elegant {
    color: var(--text-dark);
}

h5.text-elegant {
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

.shadow-elegant {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.border-elegant {
    border: 1px solid var(--border-color) !important;
}

/* Divider line */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 2rem auto;
}

/* CTA Section special styling */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%232C2520" width="1200" height="400"/><circle cx="100" cy="200" r="150" fill="%238A6E4D" opacity="0.1"/><circle cx="1100" cy="200" r="200" fill="%23BE9D78" opacity="0.08"/></svg>');
    opacity: 1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   NESTED DROPDOWN MENUS
   ============================================ */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0;
}

/* Show submenu ONLY on hover of parent item, not main dropdown */
.dropdown-submenu:hover > .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    transition-delay: 0s !important;
}

/* Arrow indicator for submenus - inline with text */
.dropdown-submenu > .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu > .dropdown-toggle::after {
    content: "\203A";
    border: none;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

/* Submenu styles */
.dropdown-submenu .dropdown-menu {
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        background-color: var(--bg-cream);
    }

    .dropdown-submenu .dropdown-item {
        padding-left: 2rem;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        content: "\2193";
        transform: none;
    }
}

/* ============================================
   SIDEBAR CATEGORY HIERARCHY
   ============================================ */
/* Style for hierarchical category levels in sidebar */
.list-group-item.category-item-level-0 {
    font-weight: 600;
    font-size: 0.95rem;
}

.list-group-item.category-item-level-1 {
    font-weight: 500;
    font-size: 0.9rem;
    background-color: rgba(245, 241, 235, 0.3);
}

.list-group-item.category-item-level-2 {
    font-weight: 400;
    font-size: 0.85rem;
    background-color: rgba(245, 241, 235, 0.5);
}

/* Different icons for parent and child categories */
.list-group-item.category-item-level-0 .bi-folder {
    color: var(--primary-color);
    font-weight: bold;
}

.list-group-item.category-item-level-1 .bi-chevron-right,
.list-group-item.category-item-level-2 .bi-chevron-right {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* ============================================
   PRODUCT CARD ENHANCEMENTS
   ============================================ */
/* Clickable product cards */
.card a {
    transition: all 0.3s ease;
}

.card a:hover h5 {
    color: var(--primary-color) !important;
}

.card a:hover img {
    transform: scale(1.05);
}

/* Zoom hint on product detail page */
.zoom-hint {
    transition: opacity 0.3s ease;
}

.main-image:hover .zoom-hint {
    opacity: 1 !important;
}
