/* Global Styles */
:root {
    --primary-bg: #EAE6E1;
    --text-dark: #1F1F1F;
    --accent-brown: #6D4C41;
    /* Slightly lighter brown for buttons/accents */
    --card-bg: #F5F2EF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

.serif-font {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.bg-brown {
    background-color: var(--accent-brown) !important;
}

.text-brown {
    color: var(--accent-brown) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.shadow-lg-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-lg-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Navbar */
/* Navbar */
.navbar {
    padding: 0.8rem 2rem;
    /* Reduced padding */
    background-color: var(--primary-bg);
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background-color: #fff;
    backdrop-filter: blur(10px);
    padding: 0.6rem 2rem;
    /* Further reduced when scrolled */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    /* Reduced font size */
    letter-spacing: -1px;
    font-weight: 700;
}

.nav-link {
    font-size: 0.8rem;
    /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0.8rem;
    /* Reduced margin */
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-brown);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--primary-bg);
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
}

/* Add padding specifically to the text content wrapper to clear the navbar */
.hero-content {
    padding-top: 100px;
    /* Adjust based on navbar height (~80px) + visual space */
}

/* Glass Card Desktop Adjustment */
.glass-card {
    position: absolute;
    bottom: 15%;
    /* Keep relative */
    /* Keep relative */
    left: -20px;
    /* Reduced overlap for cleanliness */
    background: rgba(255, 255, 255, 0.90);
    /* Increased opacity for legibility */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.glass-tag {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Categories */
.category-card {
    background-color: #fff;
    /* White card for cleaner look */
    transition: transform 0.3s ease, box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.category-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.category-number {
    font-size: 0.9rem;
    color: #ccc;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

/* Global Hero Image Style (Desktop Base) */
/* Global Hero Image Style (Desktop Base) */
.hero-img {
    border-bottom-left-radius: 0;
    /* Reset for general usage, specific radius in hero wrapper if needed or keep simpler */
    height: 100vh;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
}

/* Subtle Zoom effect on desktop hero image */
.hero-section:hover .hero-img {
    transform: scale(1.02);
}

.hero-img-wrapper {
    margin-top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Contain the image for standard border radius */
    border-bottom-left-radius: 120px;
    /* Cleaner, less aggressive curve */
}

.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.blur-3xl {
    filter: blur(64px);
}

.ls-1 {
    letter-spacing: 1px;
}

.category-img {
    /* Removed mix-blend-mode to avoid muddy boxes if backgrounds differ */
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Product Cards */
.bg-brown {
    background-color: var(--accent-brown) !important;
}

/* Footer */
footer {
    background-color: #111;
}

.hover-white:hover {
    color: white !important;
}

.text-brown {
    color: var(--accent-brown);
}

/* Room Banner */
.room-banner img {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Accordion Custom */
.accordion-button {
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-brown);
    background-color: transparent;
}

.accordion-item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* FAB - Wood Theme */
.fab {
    background: linear-gradient(145deg, #8D6E63, #5D4037);
    /* Wood gradient */
    border: 2px solid #A1887F;
    /* Lighter wood border */
    color: #F5F5F5 !important;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #A1887F, #6D4C41);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.5);
    border-color: #D7CCC8;
}

/* Product List Card (Best Seller) */
.product-list-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.product-list-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-brown);
}

.product-list-card img {
    transition: transform 0.5s ease;
}

.product-list-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Mobile Responsiveness tweaks */
/* Mobile Responsiveness tweaks */
@media (max-width: 991px) {

    /* Navbar Mobile Fix */
    .navbar {
        padding: 1rem 1.5rem !important;
        /* Reset padding for mobile */
        background: rgba(255, 255, 255, 0.95);
        /* Ensure visibility on mobile */
        backdrop-filter: blur(10px);
    }

    .navbar.scrolled {
        padding: 0.8rem 1.5rem !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    /* Navbar */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 0;
        /* Let image touch top */
        text-align: center;
        min-height: auto;
        background-color: #fff;
        display: block;
        /* Fix: Disable flex centering to prevent top cut-off */
    }

    /* Hide heavy blur element on mobile to prevent crashes */
    .blur-3xl {
        display: none !important;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        position: relative;
        background: white;
        border-radius: 30px 30px 0 0;
        margin-top: -40px;
        /* Overlap effect */
        z-index: 10;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        padding-top: 3rem !important;
        /* Override the desktop padding */
    }

    .hero-section .display-3 {
        font-size: 2.2rem;
    }

    /* Hero Image Mobile */
    .hero-img {
        height: 60vh !important;
    }

    .hero-img-wrapper {
        height: auto;
        border-radius: 0;
        margin-top: 0;
        /* Remove bottom radius on mobile to ensure clean overlap */
    }

    .hero-content .w-75 {
        width: 100% !important;
    }

    /* Cards */
    .glass-card {
        /* Move card to top on mobile so it doesn't block the product/sofa image */
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        min-width: 260px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid white;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 0.8rem 1rem;
        /* Compact padding */
    }

    .glass-card:hover {
        transform: translateX(-50%) translateY(-5px);
    }

    /* Best Seller Cards - Stack layout */
    .product-list-card {
        text-align: center;
    }

    .product-list-card .col-md-3,
    .product-list-card .col-md-6 {
        margin-bottom: 1rem;
    }

    .product-list-card .badge {
        display: inline-block;
        /* Ensure badges flow nicely */
    }

    .product-list-card img {
        margin: 0 auto;
        /* Center image */
    }

    /* Room Inspiration */
    .room-card {
        height: 300px;
        /* Fixed height for stacked usage */
    }

    /* About Section */
    .about-img-collage {
        margin-bottom: 3rem;
    }

    /* Fix overlap issue of experience badge on mobile */
    .experience-badge {
        position: absolute !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        transform: none !important;
        /* Remove translate-middle-y */
        margin-top: 0 !important;
        margin-right: -10px !important;
        /* Slight stick out is ok or keep inside */
        padding: 1rem 1.5rem !important;
    }

    .experience-badge h2 {
        font-size: 2rem;
    }

    /* Hero Buttons */
    .hero-content .btn {
        width: 100%;
        /* Full width buttons on very small screens for better touch target */
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-content .btn {
        width: auto;
        /* Let them be natural on tablets */
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 3rem;
    }

    .glass-card {
        padding: 0.75rem;
    }

    .glass-card:hover {
        transform: translateX(-50%) translateY(-5px);
    }

    /* Adjust FAB position for very small screens to avoid footer overlap */
    .fab {
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        /* Slightly smaller radius */
    }

    #backToTop {
        bottom: 90px !important;
    }

    .fab i {
        font-size: 1.2rem !important;
        /* Smaller icons */
    }
}

/* Mobile Performance Optimization */
@media (max-width: 768px) {

    .glass-card,
    .navbar.scrolled,
    .glass-tag {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
        /* Solid fallback */
    }

    .shadow-lg,
    .shadow-xl,
    .shadow-lg-hover:hover,
    .category-card:hover,
    .glass-card {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        /* Simplified shadow */
        transform: none !important;
        /* Disable hover transforms on touch */
    }
}