:root {
    --primary-color: #832518;
    /* Brand Theme Red */
    --brand-color: #832518;
    --primary-dark: #691e13;
    --secondary-color: #ec4899;
    /* Pink 500 */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.bg-primary-subtle {
    background-color: #fdf2f0 !important;
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.opacity-20 {
    opacity: 0.2;
}

.blur-3xl {
    filter: blur(64px);
}

/* Header */
.glassmorphism-header {
    background: #fbf9ef;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 0px;
}

.glassmorphism-header.scrolled {
    background: rgb(251 249 239);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Mega Menu & Nav Updates */
.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-link.active-gold {
    color: var(--brand-color) !important;
    /* Brand Theme Color */
    font-weight: 700;
}

.dropdown-menu-mega {
    min-width: 600px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 15px !important;
}

.mega-menu-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.mega-menu-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    padding: 0.35rem 0;
    transition: all 0.2s;
}

.mega-menu-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}


.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.hover-y-translate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-y-translate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
}

.hover-white:hover {
    color: #fff !important;
    padding-left: 5px;
}

.hover-dark {
    transition: all 0.2s ease;
}

.hover-dark:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.transition-all {
    transition: all 0.2s ease;
}

.glass-input-group {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hover Dropdown Support for Desktop */
@media (min-width: 992px) {
    .glassmorphism-header {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInUp 0.3s ease-out forwards;
    }

    .dropdown .dropdown-menu {
        display: none;
    }

    /* Transparent Bridge to prevent menu from closing while moving mouse */
    .dropdown-menu {
        margin-top: 0 !important;
        top: 100%;
        /* Ensure precise positioning */
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -30px;
        /* Extend upwards to cover the gap */
        left: 0;
        width: 100%;
        height: 30px;
        background: transparent;
        display: block;
    }
}

/* Header Icons */
.action-icon {
    transition: all 0.2s ease;
    opacity: 0.9;
    cursor: pointer;
}

.action-icon:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
    opacity: 1;
}

/* Remove default dropdown arrow */
.remove-after::after {
    display: none !important;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full screen */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    /* Above everything */
    opacity: 0;
    animation: fadeInOverlay 0.3s forwards;
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

/* Mobile Header Adjustments */
@media (max-width: 991.98px) {
    .glassmorphism-header {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Reset Mega Menu for Mobile */
    .dropdown-menu-mega {
        min-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        background: transparent !important;
        position: static !important;
        transform: none !important;
    }

    .dropdown-menu .row {
        margin: 0 !important;
    }

    .dropdown-menu .col-lg-4,
    .dropdown-menu .col,
    .dropdown-menu .col-12 {
        padding: 0 !important;
        margin-bottom: 1rem;
    }

    .mega-menu-title {
        color: var(--primary-color) !important;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    .mega-menu-link {
        padding: 5px 0;
        font-size: 0.95rem;
    }

    .mobile-action-bar {
        justify-content: center;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 1rem;
    }
}

/* Cinematic Slider Styles (Modern & No-Crop) */
.cinematic-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    margin-top: 86px;
    /* Push slider below the fixed header (adjusted for height) */
}

.carousel-item {
    /* height: 100vh; REMOVED fixed height */
    height: auto;
    overflow: hidden;
    position: relative;
}

/* 1. Blurred Background Layer */
.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4);
    /* Blur & Darken */
    transform: scale(1.2);
    /* Zoom in to hide blurred edges */
    z-index: 0;
    animation: bgBreath 20s infinite alternate linear;
}

@keyframes bgBreath {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.3);
    }
}

/* 2. Foreground Image Container (Centers the image) */
.slider-image-container {
    position: relative;
    /* Changed from absolute to relative */
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    padding: 0;
}

/* 3. The Main Image (No Crop) */
.main-img {
    width: 100%;
    height: auto;
    /* Natural height */
    display: block;
    object-fit: cover;
    /* Fill the width */

    /* Modern UI Touch: float & shadow */
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    animation: floatImage 8s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.02);
    }
}

/* 4. Text Overlay Styling */
.slider-content {
    z-index: 10;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    /* Readability gradient */
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 50px;
    padding-top: 100px;
    /* Fade gradient better */
    position: absolute;
}

.slider-heading {
    font-family: 'serif';
    font-weight: 300;
    letter-spacing: 2px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Category Grid Section */
.category-card {
    position: relative;
    height: 45vh;
    /* Responsive height */
    min-height: 400px;
    /* Minimum height for content */
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Gradient Overlay for better text readability */
.category-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    /* Below text (z-index 10) */
}

.category-card:hover .category-bg {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

.category-title {
    color: white;
    font-family: 'serif';
    /* Assuming serif font from previous styles */
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.category-btn {
    background-color: #fdfbf7;
    /* Cream/White */
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 30px;
    border-radius: 0;
    /* Sharp edges as per ref, or slightly rounded */
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: black;
    size: 0.95rem;
}

@media (max-width: 768px) {
    .category-card {
        height: 400px;
    }

    .category-title {
        font-size: 2rem;
    }

    /* Hide divider on mobile */
    .promise-divider {
        display: none !important;
    }
}

/* Service Promises Section */
.service-promises-section {
    background-color: #fdfbf7;
    /* Light elegant cream */
    color: #333;
}

.promise-icon {
    color: var(--brand-color);
    /* Icons in brand color */
    margin-bottom: 0.5rem;
}

.promise-divider {
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.promise-item h6 {
    letter-spacing: 0.5px;
}

/* Product Slider Section */
.product-card {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4;
    /* Vertical portrait ratio like ref */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.wishlist-icon:hover {
    background: white;
    color: #e63946;
    /* Red on hover */
    transform: scale(1.1);
}

.product-title {
    font-family: 'serif';
    font-weight: 700;
    font-size: 1.1rem;
    color: #003366;
    /* Deep Blue from ref */
    margin-bottom: 0.2rem;
}

.product-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-text {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    /* This puts the line through the text */
    color: #aaa;
    margin-right: 8px;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Custom Carousel Controls for Product Slider */
.product-slider-controls {
    display: flex;
    gap: 10px;
}

.custom-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.custom-control-btn:hover {
    background: #003366;
    border-color: #003366;
    color: white;
}

/* Limit title to 2 lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
    /* Approximate height for 2 lines */
    line-height: 1.3;
}

/* RESPONSIVE LANDING SLIDER ADJUSTMENTS */
@media (max-width: 991px) {
    .cinematic-slider {
        margin-top: 70px;
    }

    .carousel-item {
        min-height: 50vh;
        /* Reduced from 60vh */
    }

    .slider-image-container {
        height: 50vh;
        /* Reduced from 60vh */
        width: 100%;
    }

    .main-img {
        height: 100%;
        width: 100%;
        object-fit: cover !important;
        object-position: center top;
        filter: drop-shadow(none);
        /* Remove shadow on mobile for cleaner look */
    }

    .slider-content {
        padding-left: 20px !important;
        padding-right: 20px;
        padding-bottom: 30px;
        justify-content: flex-end !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    }

    .slider-heading {
        font-size: 2.5rem;
        /* Smaller heading */
        margin-bottom: 1rem !important;
    }

    .slider-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 45vh;
        /* Reduced from 70vh to 45vh */
    }

    .slider-image-container {
        height: 45vh;
        /* Reduced from 70vh to 45vh */
    }

    .slider-heading {
        font-size: 1.8rem;
        /* Even smaller for mobile */
    }
}