/* BangleBelle Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --color-primary: #F9F5F0;
    /* Cream/Off-White Background */
    --color-secondary: #681616;
    /* Deep Royal Maroon */
    --color-accent: #D4AF37;
    /* Gold */
    --color-text-dark: #2C2C2C;
    /* Charcoal Black for Text */
    --color-text-light: #F9F5F0;
    /* Cream for Text on Dark Backgrounds */
    --color-glass: rgba(255, 255, 255, 0.8);
    --color-shadow: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* 
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.5rem auto 0;
} 
*/

.text-gold {
    color: var(--color-accent);
}

.text-maroon {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid var(--color-secondary);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-gold {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Spacer Utility for Footer Gap */
.spacer-bottom {
    margin-bottom: 100px;
}

/* Header & Navigation - Flexbox Update */
.header {
    background-color: var(--color-primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-speed);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    /* For search absolute positioning if needed */
}

/* Left Section: Hamburger & Logo */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-secondary);
    display: block;
    /* Visible on all devices now */
    padding: 5px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Middle Section: Desktop Nav Links (Optional - keeping if desired, or relying on sidebar) */
/* Requirements said "laptop users... In phone it will show these things and additionally..."
   This implies Desktop still has main nav? Visuals suggest sidebar is addition. 
   I will keep the main nav for Desktop but give it a class to control visibility. */
.nav-links.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    color: var(--color-text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-secondary);
}

/* Right Section: Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-secondary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Search Bar (Hidden by Default) */
.search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Toggled via JS */
    align-items: center;
    justify-content: center;
}

.search-container.active {
    display: flex;
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input-group {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    border-color: var(--color-accent);
}

.search-action-btn {
    padding: 0 25px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-action-btn:hover {
    background-color: #4a1010;
}

.search-message {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
    min-height: 20px;
}

.search-message.error {
    color: #dc3545;
}

.search-message.suggestion {
    color: var(--color-text-dark);
}

.suggestion-link {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Sidebar / Drawer Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--color-primary);
    z-index: 1002;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.close-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-secondary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    /* Leave room for header */
    padding-right: 10px;
    /* Avoid scrollbar overlapping text */
}

/* Custom Scrollbar for Sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Sidebar Menu Items (Links & Buttons) */
.sidebar-menu a,
.sidebar-drop-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-drop-btn:hover {
    background-color: rgba(104, 22, 22, 0.05);
    color: var(--color-secondary);
    padding-left: 15px;
    /* Subtle Slide */
}

/* Sidebar Dropdown Container */
.sidebar-dropdown {
    width: 100%;
}

/* Dropdown Button Specifics */
.sidebar-drop-btn .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-drop-btn.active .arrow {
    transform: rotate(180deg);
}

.sidebar-drop-btn.active {
    color: var(--color-secondary);
    background-color: rgba(104, 22, 22, 0.05);
}

/* Dropdown Content Area */
.sidebar-drop-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fcfcfc;
    border-left: 2px solid var(--color-secondary);
    /* Accent Line */
}

/* Expansion Rule - CRITICAL for functionality */
.sidebar-drop-btn.active+.sidebar-drop-content {
    max-height: 500px;
    /* Large enough to fit all items */
    padding-bottom: 10px;
}

.sidebar-drop-content a {
    padding: 12px 10px 12px 25px;
    /* Deeper indent */
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-family: var(--font-body);
}

.sidebar-drop-content a:hover {
    color: var(--color-secondary);
    background-color: white;
    padding-left: 30px;
    /* Slide effect */
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f5f5;
    color: var(--color-text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.suggestion-pill:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links.desktop-nav {
        display: none;
        /* Hide main horizontal nav on mobile */
    }

    .mobile-only {
        display: block;
    }

    .sidebar-desktop {
        display: none !important;
    }

    .sidebar-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
        /* Hide these links in sidebar on desktop */
    }

    .sidebar-desktop {
        display: block !important;
    }

    .sidebar-mobile {
        display: none !important;
    }
}


.cart-icon-btn {
    position: relative;
    font-size: 1.2rem;
    color: var(--color-secondary);
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 400px;
    padding: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius);
}

.hero h1 {
    font-size: 3rem;
    /* Reduced from 4rem for compressed look */
    color: var(--color-accent);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Featured Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 400px;
    box-shadow: 0 5px 15px var(--color-shadow);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
    /* Ensure it's visible on hover if initially hidden, though current logic relies on layout */
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.collection-overlay h3 {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Featured Products / Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    /* Reduced gap slightly for better fit */
    padding-top: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    display: flex;
    justify-content: center;
    padding: 10px;
    transition: var(--transition-speed);
}

.product-card:hover .product-action {
    bottom: 0;
}

.add-to-cart-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.product-info .price {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Artisan Story Section */
.artisan-section {
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 50px;
    overflow: hidden;
}

.artisan-image {
    flex: 1;
    height: 500px;
}

.artisan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artisan-content {
    flex: 1;
    padding: 40px;
}

/* Footer */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: var(--transition-speed);
}

.social-links a:hover .social-icon {
    fill: var(--color-accent) !important;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Contact Page Grid */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-card-custom {
    padding: 40px;
    min-width: 300px;
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

/* Mobile Responsiveness Updates */
@media (max-width: 768px) {

    /* User Requested Overrides - Global Mobile */
    body {
        font-size: 1rem;
        line-height: 1.5;
    }

    h1,
    h2,
    h3 {
        font-size: 1.5rem !important;
        /* Force override of global styles */
    }

    .section {
        margin-bottom: 24px;
    }

    /* Buttons Full Width */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .whatsapp-button {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        margin-top: 12px;
    }

    /* Override for Filter Buttons to keep them side-by-side */
    .filter-bar button,
    .filter-btn {
        width: auto !important;
        display: inline-block !important;
        margin-top: 5px;
        /* Small margin for wrap spacing */
    }

    /* Social Icons Mobile */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 12px;
    }

    .social-icons a {
        font-size: 1.5rem;
    }

    /* Adjusted Container for Mobile */
    .container {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 16px;
    }

    /* Buttons Full Width */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .whatsapp-button {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        margin-top: 12px;
    }

    /* Artisan Section (About Page) */
    .artisan-section {
        flex-direction: column !important;
        height: auto;
        gap: 0;
        /* Force parent container to full width, breaking out of standard container padding */
        width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        overflow: visible !important;
    }

    /* Full bleed image simply fills the now full-width parent */
    .artisan-image {
        width: 100%;
        margin: 0;
        height: 300px;
        flex: none;
    }

    .artisan-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Text content also fills the full-width parent */
    .artisan-content {
        width: 100%;
        padding: 40px 15px;
        /* Keep minimal padding so text doesn't touch physical bezel */
        text-align: center;
    }

    /* Contact Page - Full Width Grid */
    .contact-grid {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        gap: 0;
    }

    .contact-card-custom {
        padding: 30px 20px;
        min-width: 100%;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #eee;
        box-shadow: none;
    }

    .section-title {
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Fix Header Overlap on Mobile */
    .brand-name {
        font-size: 1.2rem;
        /* Reduce size */
    }

    .nav-left {
        gap: 5px;
        /* Reduce gap */
    }

    .nav-icons {
        gap: 10px;
        /* Reduce gap */
    }

    .logo-container img {
        width: 30px;
        /* Smaller logo */
    }
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    /* For full text logic */
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
}

.social-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Components: Filter */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Cart Page */
.cart-page {
    padding: 120px 0 80px;
    /* Top padding for fixed header */
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-name {
    font-weight: 500;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

/* ANIMS: Glider & Scroll Indicators */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 2rem;
    margin-top: 20px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Story Page Specific Hero */
/* Story Page Specific Hero */
.hero.story-mode {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 60px;
    /* Offset for fixed header */
    /* User requested background image. Using artisan-story.jpg as fallback for bangle.jpg */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('artisan-story.jpg') center/cover no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    height: auto;
}

.hero.story-mode .hero-content {
    max-width: 420px;
    width: 100%;
    text-align: center;
    /* User requested specific content box style */
    background: rgba(255, 248, 240, 0.9);
    /* Slightly more opaque for readability */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: var(--color-text-dark);
}

.hero.story-mode .hero-content h1,
.hero.story-mode .hero-content h2 {
    color: var(--color-accent);
    /* Ensure text is visible */
    text-shadow: none;
    margin-bottom: 0.5rem;
}

.hero.story-mode .hero-content p {
    color: var(--color-text-dark);
}

.hero-img {
    width: 100%;
    height: 50vh;
    /* User requested 50vh */
    object-fit: cover;
    margin: 20px 0;
    border-radius: 10px;
}

/* Mobile Local Overrides */
/* New Contact Page Layout */
.contact {
    min-height: 100vh;
    /* FULL SCREEN */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fdf7f2;
    margin-top: 60px;
    /* Offset for fixed header */
}

.contact-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.contact-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #8b2e2e;
}

.contact-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #555;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: #8b2e2e;
}

.contact-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #8b2e2e;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-card button:hover {
    background: #6f2222;
}

/* --- About Page Redesign (New Additions) --- */

/* Page Header (Shorter Hero for Internal Pages) */
.page-header {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.page-header-content h1 {
    font-size: 3.5rem;
    color: var(--color-accent);
    /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.page-header-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #f0f0f0;
}

/* Reverse Layout Utility for Artisan Section */
.artisan-section.reverse {
    flex-direction: row-reverse;
    background-color: var(--color-primary);
    /* Ensure nice transition if alt background used */
}

@media (max-width: 768px) {
    .artisan-section.reverse {
        flex-direction: column !important;
    }
}

/* Values Section */
/* Product Details Page Styles */
.product-detail {
    padding: 140px 0 80px;
    background-color: #fff;
}

.product-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* LEFT SIDE: Gallery */
.product-gallery {
    flex: 1.3;
    width: 100%;
}

.main-image-wrapper {
    width: 100%;
    height: 600px;
    /* Fixed high for desktop gallery feel */
    background: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CRUCIAL: No cropping */
    transition: opacity 0.4s ease-in-out, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Let the wrapper handle the mouse events */
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    /* Desktop grid */
    gap: 12px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
    object-fit: contain;
    /* No crop */
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #ccc;
}

.thumbnail.active {
    border-color: var(--color-text-dark);
    border-width: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* RIGHT SIDE: Info */
.product-info-column {
    flex: 1;
    position: sticky;
    top: 120px;
}

.product-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.product-price {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.product-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.size-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.size-btn {
    width: 60px;
    height: 50px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover,
.size-btn.active {
    background: var(--color-text-dark);
    color: #fff;
    border-color: var(--color-text-dark);
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.add-to-cart-btn {
    flex: 2;
    background: var(--color-text-dark);
    color: #fff;
    border: none;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.whatsapp-order-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #25D366;
    color: #25D366;
    padding: 20px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-order-btn:hover {
    background: #25D366;
    color: #fff;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #666;
}

.highlight-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-container {
        gap: 40px;
    }

    .product-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-gallery,
    .product-info-column {
        flex: none;
        width: 100%;
    }

    .main-image-wrapper {
        height: 450px;
    }

    .thumbnail-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .product-info-column {
        position: static;
        padding-top: 30px;
    }
}



/* --- About & Contact Page Redesign --- */

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header (Internal Hero) */
.page-header {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.page-header-content h1 {
    font-size: 3.5rem;
    color: var(--color-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.page-header-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #f0f0f0;
}

/* Artisan Section (About Page Content) */
.artisan-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.artisan-section.reverse {
    flex-direction: row-reverse;
    background-color: var(--color-primary);
}

.artisan-content {
    flex: 1;
}

.artisan-content h2.section-title {
    margin-bottom: 25px;
    font-size: 2.5rem;
    text-align: left;
}

.artisan-image {
    flex: 1;
}

.artisan-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Quote Section */
.quote-section {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 20px;
}

.quote-author {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-accent);
}

/* Core Values Section */
.values-section {
    padding: 100px 0;
    background-color: white;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    padding: 40px 30px;
    border-radius: var(--border-radius);
    background: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.contact-card-custom {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9f9f9;
    transition: all 0.3s ease;
}

.contact-card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Home Page Teasers */
.feature-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-image-container:hover img {
    transform: scale(1.05);
}

/* Categories & Hero Gallery */
.hero-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-gallery img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Category Slider */
.category-slider-section {
    padding: 100px 0 20px;
    overflow: hidden;
    background-color: var(--color-primary);
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slider-card {
    position: relative;
    width: 150px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.slider-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-150px * 5 - 30px * 5));
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    h1,
    h2,
    h3 {
        font-size: 1.8rem !important;
    }

    .artisan-section {
        flex-direction: column !important;
        padding: 60px 0;
        gap: 30px;
    }

    .artisan-section.reverse {
        flex-direction: column !important;
    }

    .artisan-content h2.section-title {
        text-align: center;
    }

    .page-header {
        height: 50vh;
    }

    .page-header-content h1 {
        font-size: 2.5rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}