:root {
    --bg-light: #f6f1e5;
    --text-brown: #5b3d0f;
    --text-teal: #1b7b89;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-title: 'Patrick Hand', cursive;
    --font-text: 'Roboto Flex', sans-serif;
    --font-product-title: "Delius", cursive;
    --font-description: 'Quicksand', sans-serif;
    --font-karla: "Karla", sans-serif;
    --font-Delius-Swash-Caps: "Delius Swash Caps", cursive;
    --font-Delius: "Delius", cursive;
    --font-comic-relief: "Comic Relief", system-ui;
    --font-playpen-sans: "Playpen Sans", cursive;
}

/* Sticky Header for all pages - Desktop & Mobile */
/* Sticky with negative top offset allows marquee to scroll away before sticking */
#header-placeholder,
.header-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: -26px !important; /* Approx height of marquee on desktop */
    width: 100%;
    z-index: 1050;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 110px;
}

/* Products page mobile exception - header NOT sticky on mobile due to filter row */
@media (max-width: 768px) {
    #header-placeholder,
    .header-wrapper {
        top: -18px !important; /* Smaller marquee on mobile */
    }

    body.no-similar-products #header-placeholder,
    body.no-similar-products .header-wrapper {
        position: relative !important;
        top: auto !important;
    }
}

/* Marquee bar styling */
.marquee-bar {
    font-size: 12px;
    padding: 4px 0 !important;
    margin: 0;
}

.marquee-bar marquee {
    font-size: 12px;
    line-height: 1.2;
}

.marquee-bar .marquee-cta {
    color: var(--text-teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.marquee-bar .marquee-cta:hover {
    opacity: 0.85;
}

/* Small blinking NEW badge for marquee */
.marquee-new-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: var(--text-teal);
    color: #fff;
    vertical-align: middle;
    animation: marqueeBadgeBlink 1.2s ease-in-out infinite;
}

@keyframes marqueeBadgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}


/* Left controls (hamburger + search) */
.mobile-left-controls {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap to prevent touch target overlap */
    z-index: 1100;
    /* Ensure above everything else */
}

/* Hide mobile controls when offcanvas sidebar is open */
body.offcanvas-open .mobile-left-controls {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Also hide via body :has() selector for modern browsers */
body:has(.offcanvas.show) .mobile-left-controls,
body:has(.offcanvas.showing) .mobile-left-controls,
body:has(#navbarNav.show) .mobile-left-controls,
body:has(#navbarNav.showing) .mobile-left-controls {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.mobile-left-controls .navbar-toggler {
    left: 0;
    position: relative;
    z-index: 2;
}

.mobile-left-controls .mobile-search-icon {
    margin-left: 0;
    position: relative;
    z-index: 2;
}

/* Mobile marquee adjustments */
@media (max-width: 767px) {
    .marquee-bar {
        font-size: 10px;
        padding: 2px 0 !important;
    }

    .marquee-bar marquee {
        font-size: 10px;
        line-height: 1.1;
    }

    .marquee-new-badge {
        font-size: 8px;
        padding: 1px 5px;
        margin-left: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-new-badge {
        animation: none !important;
    }
}

/* Premium Hamburger Menu Styling */
.navbar-toggler {
    border: none;
    padding: 8px 10px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: none;
    /* Hidden on desktop by default */
    position: relative;
    z-index: 6;
    /* align with left controls */
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.navbar-toggler::after {
    content: '';
    position: absolute;
    inset: -8px;
    /* reduce hit area to avoid overlapping adjacent icons */
    border-radius: 16px;
    pointer-events: auto;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler:hover {
    background-color: rgba(91, 61, 15, 0.1);
}

/* Custom hamburger icon */
.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 20px;
    height: 16px;
    display: block;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    background-color: var(--text-brown);
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
}

.navbar-toggler-icon::before {
    top: -7px;
    width: 100%;
}

.navbar-toggler-icon::after {
    top: 7px;
    width: 75%;
}

.navbar-toggler-icon {
    width: 85%;
}

/* Hover effect for premium feel */
.navbar-toggler:hover .navbar-toggler-icon::before {
    width: 100%;
}

.navbar-toggler:hover .navbar-toggler-icon::after {
    width: 100%;
}

.navbar-toggler:hover .navbar-toggler-icon {
    width: 100%;
}

.logo {
    width: 150px;
    margin-left: 20px;
}

.footer-logo {
    width: 175px;
    margin-left: 0;
}


/* Navbar layout */

.navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(10px, 3vw, 80px);
    flex-grow: 1;
    /* Align nav items to bottom */
}

.nav-links a,
.nav-links-right a {
    font-family: var(--font-Delius);
    font-weight: bold;
    font-size: clamp(10px, 1.1vw, 15px);
    color: var(--text-brown);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links-right a:hover {
    color: var(--text-teal);
}

.nav-links a::after,
.nav-links-right a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--text-brown);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links-right a:hover::after {
    width: 100%;
}

.nav-links-right {
    display: flex;
    gap: clamp(10px, 2vw, 25px);
    justify-content: flex-end;
    align-items: center;
}

/* Cart and Profile Icons */
.nav-icon {
    position: relative;
    font-size: 18px;
    color: var(--text-brown);
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    color: var(--text-teal);
    background-color: rgba(27, 123, 137, 0.1);
    transform: translateY(-1px);
}

/* Wishlist icon specific styling */
.wishlist-icon {
    color: var(--text-brown);
}

.wishlist-icon:hover {
    color: #e74c3c;
    /* Red color for heart on hover */
    background-color: rgba(231, 76, 60, 0.1);
}

.wishlist-icon i {
    transition: all 0.3s ease;
}

.wishlist-icon:hover i {
    transform: scale(1.1);
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--text-teal);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: var(--font-text);
}

/* Adjust right positioning */
.nav-links-right {
    margin-right: 15px;
}


/* Icon to open Login/Signup on mobile */

.user-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-brown);
}


/* Mobile styles */

@media (max-width: 767px) {
    .navbar {
        position: relative;
    }

    .navbar .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
    }

    .offcanvas {
        width: 250px;
        background-color: #f6f1e5;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 10px;
        background-color: transparent;
        text-align: left;
        gap: 0;
    }

    .navbar-toggler {
        display: flex !important;
        /* visible on mobile */
        padding: 8px 10px;
        position: relative;
        /* keep within left controls wrapper */
        left: 0;
        top: 0;
        transform: none;
        z-index: 1;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 16px;
        background-image: none !important;
        position: relative;
        display: block;
        pointer-events: none;
    }

    .navbar-toggler-icon::before {
        top: -7px;
        height: 2px;
    }

    .navbar-toggler-icon::after {
        top: 7px;
        height: 2px;
    }

    .navbar-toggler-icon {
        height: 2px;
    }

    .nav-links a {
        padding: 15px 10px;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(91, 61, 15, 0.1);
        font-family: var(--font-montserrat) !important;
        font-size: 20px !important;
        font-weight: 500 !important;
        /* Responsive scaling */
    }

    /* Login and Signup dropdown for mobile */
    .nav-links-right {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: row;
        background-color: transparent;
        padding: 0;
        gap: 8px;
        margin-right: 0;
        z-index: 10;
    }

    .nav-icon {
        font-size: 16px;
        padding: 6px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -1px;
        right: -1px;
    }

    .nav-links-right.show {
        display: flex;
    }

    .nav-links a,
    .nav-links-right a {
        text-decoration: none;
        font-family: var(--font-montserrat) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .nav-links a:focus,
    .nav-links a:active,
    .nav-links-right a:focus,
    .nav-links-right a:active {
        text-decoration: underline;
        text-underline-offset: 4px;
        transition: transform 0.5s ease-in-out;
    }

    /* Remove animated underline bar in mobile for clarity */
    .nav-links a::after,
    .nav-links-right a::after {
        content: none;
    }
}

/* Navigation Section Titles */
.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section:first-child {
    padding-top: 1rem;
    /* Add top padding to first section (SHOP) */
}

.nav-section-title {
    font-family: var(--font-montserrat) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #999999 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.75rem 0;
    padding: 0 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.nav-section .nav-links {
    margin-bottom: 0;
}

.nav-section:last-child {
    margin-bottom: 0;
}

/* Account Section Styling */
.user-account-links .nav-item i {
    color: var(--text-teal) !important;
    /* Teal color for account icons */
    margin-right: 8px;
}


/* Desktop navbar styling */
@media (min-width: 768px) {
    .navbar-toggler {
        display: none !important;
        /* Ensure hamburger is hidden on desktop */
    }

    .navbar-nav {
        display: flex !important;
        width: 100% !important;
    }

    .nav-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .offcanvas-lg {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        transform: none !important;
    }

    .offcanvas-body {
        padding: 0 !important;
    }
}

/* Ensure proper desktop layout overrides */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

/* Desktop header layout fixes */
@media (min-width: 768px) {
    .logo {
        position: static !important;
        transform: none !important;
        margin-left: 20px !important;
        margin-top: 0 !important;
        width: 150px;
    }

    .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .navbar-nav {
        position: static !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    .d-none.d-lg-flex {
        display: flex !important;
    }
}

/* Swiper styles */

/* Remove any unwanted spacing after header */
section:first-of-type,
.products-section-entrance,
.hero-section,
main > section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.swiper {
    aspect-ratio: 3 / 1;
    overflow: hidden;
    margin-top: 20px; /* Reduced from 110px to eliminate excessive spacing */
    /* Matches header height */
}


/* Mobile: override with taller ratio (e.g., 4:5) */

@media (max-width: 767px) {
    .swiper {
        aspect-ratio: 3 / 1;
        /* Disable fixed ratio */
        height: auto;
    }

    .swiper-slide picture,
    .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
        /* Ensure full image is visible without cropping */
    }
}


/* Slide itself should not stretch height */

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide picture,
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background-color: #000;
}

.swiper-pagination-bullet-active {
    background-color: #0056b3;
}


/* Category Section */

.categories-section {
    /*background: url('resources/backgrounds/categories-bg.jpg') center center / cover no-repeat;*/
    backdrop-filter: brightness(0.9);
}

.categories-title {
    text-align: center;
    color: var(--text-brown);
    font-family: var(--font-Delius-Swash-Caps);
}


/* Category card */

.category-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

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

.category-card img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.category-card p {
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background-color: #1b7b89;
    /* Updated background */
    color: #ffffff;
    font-family: 'Roboto Flex', sans-serif;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Patrick Hand', cursive;
    font-size: 25px;
    color: #ABD6DFFF;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #E7EBE0FF;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1b7b89;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #ffffff;
    color: #949398;
    text-align: center;
    margin-right: 10px;
    display: inline-block;
    border-radius: 50%;
    /* 👈 Makes the icon circular */
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}

.social-icon:hover {
    background: #1b7b89;
    color: #ffffff;
}

.social-icon:hover {
    background: #1b7b89;
    color: white;
}


/* ─── Flowing Cards ─────────────────── */

.flowing-cards-section {
    background-color: #fdfcf5;
    overflow: hidden;
}

.card-track {
    display: flex;
    width: max-content;
    animation: slide-cards 30s linear infinite;
}

.card-track img {
    width: 160px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-right: 20px;
}

@keyframes slide-cards {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* ─── Shop by Age ───────────────────── */

.shop-by-age-section {
    background-color: #fdfcf5;
}

.section-title {
    font-family: var(--font-Delius-Swash-Caps);
    color: var(--text-brown);
    font-size: 2rem;
}


/* Circular image frame */

.circle-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* pastel border */
    transition: transform 0.3s ease;
}

.circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-frame:hover {
    transform: scale(1.05);
}

.age-label {
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 600;
    color: #4e3629;
}


/* Responsive adjustment for mobile view */

@media (max-width: 767px) {
    .circle-frame {
        width: 100px;
        height: 100px;
    }
}


/* Preloader Overlay */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fffbe6;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Spinner Animation */

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #e0cfa9;
    border-top-color: #1b7b89;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Hide content during load*/

body.loading {
    overflow: hidden;
}

/* Festive Pongal Loading Overlay - Redesigned */
.pongal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.pongal-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fef6f0 0%, #fff9f3 50%, #fef3eb 100%);
    z-index: 0;
}

.pongal-overlay.active {
    display: flex;
    opacity: 1;
}

#pongal-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
    display: none;
}

.pongal-content {
    text-align: center;
    z-index: 2;
    max-width: 90vw;
    padding: 40px 30px;
    position: relative;
    animation: pongalFloatIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pongal-rice-pot {
    font-size: clamp(80px, 15vw, 140px);
    margin-bottom: 20px;
    animation: pongalPotBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(205, 133, 63, 0.15));
}

.pongal-title {
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 700;
    background: linear-gradient(135deg, #d4a574 0%, #c89b6a 50%, #b8845a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-family: 'Noto Sans Tamil', 'Georgia', serif;
    line-height: 1.3;
    letter-spacing: 0.5px;
    animation: pongalTitleGlow 1s ease-in-out 0.3s both;
}

.pongal-subtitle {
    font-size: clamp(18px, 4vw, 26px);
    color: #a0826d;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    animation: pongalSubtitleFade 0.8s ease-out 0.5s both;
}

.pongal-message {
    font-size: clamp(16px, 3.5vw, 20px);
    color: #8b7355;
    line-height: 1.8;
    font-family: 'Noto Sans Tamil', 'Georgia', serif;
    font-weight: 400;
    animation: pongalMessageFade 1s ease-out 0.7s both;
}

.pongal-small {
    display: block;
    font-size: clamp(12px, 2.5vw, 14px);
    color: #b89968;
    margin-top: 12px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Pongal Animations */
@keyframes pongalFloatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pongalPotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes pongalTitleGlow {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pongalSubtitleFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pongalMessageFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pongal-content {
        padding: 30px 20px;
    }
    
    .pongal-rice-pot {
        margin-bottom: 15px;
    }
    
    .pongal-title {
        margin-bottom: 6px;
    }
    
    .pongal-subtitle {
        margin-bottom: 15px;
    }
    
    .pongal-spinner {
        width: 50px;
        height: 50px;
        margin: 16px auto;
    }
    
    .confetti {
        width: 8px;
        height: 8px;
    }
}

/* Safe area support for mobile devices */
@supports (padding: max(0px)) {
    #pongal-festive-overlay {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Disable scrolling when overlay is active */
body.pongal-loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* Mobile adjustments for header and logo */

@media (max-width: 767px) {
    #header-placeholder,
    .header-wrapper {
        height: 80px;
        overflow: visible;
        /* Ensure content stays within header */
    }

    .navbar {
        height: calc(80px - 18px);
        /* Subtract marquee height more precisely */
        display: flex;
        align-items: center;
        margin-top: 4px;
        /* Moved up slightly for better centering */
    }

    .navbar .container-fluid {
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
        height: 100%;
        display: flex !important;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .logo {
        width: 115px !important;
        /* Increased size slightly */
        margin-left: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 48% !important;
        /* Moved up slightly from 50% */
        transform: translate(-50%, -50%) !important;
        z-index: 5;
    }

    .footer-logo {
        width: 120px;
        margin-left: 0;
    }

    .swiper {
        margin-top: 10px; /* Reduced from 80px to eliminate excessive spacing on mobile */
    }
}

/* iOS Safari: prevent header/logo overlapping page content on small screens */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
        /* Force header to be non-sticky on iOS for products page to avoid overlap */
        body.no-similar-products #header-placeholder,
        body.no-similar-products .header-wrapper {
            position: relative !important;
            top: 0 !important;
            height: auto !important;
            min-height: 80px !important;
        }

        /* General mobile header fix */
        #header-placeholder,
        .header-wrapper {
            height: auto !important;
            min-height: 80px !important;
        }

        .navbar {
            height: auto !important;
            min-height: 60px !important;
            margin-top: 0 !important;
        }

        .logo {
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            -webkit-transform: translate(-50%, -50%) !important;
        }
    }
}


/* ─── Our Process Section ───────────────────────────── */

.our-process-section {
    border-left: 5px solid #dcdcdc;
    border-right: 5px solid #dcdcdc;
    background-color: #fdfcf5;
}

#process-slider {
    max-width: calc(300px * 16 / 9);
    margin: 0 auto;
}

#process-slider .splide__track {
    aspect-ratio: 16 / 9;
    max-height: 300px;
}

#process-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products {
    margin-top: 20px;
    padding-bottom: 40px;
}

@media (max-width: 767px) {
    #process-slider {
        max-width: 100%;
    }

    .products {
        margin-top: 20px;
        padding-bottom: 40px;
    }
}


/* Product Details Page Styles */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    box-shadow: var(--shadow-card);
    border: none;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.product-details-section {
    margin-top: 160px;
    padding-bottom: 40px;
}

.product-title {
    font-family: var(--font-product-title);
    color: var(--text-brown);
}

.product-desc {
    font-family: var(--font-description);
    color: var(--text-brown);
}

.main-image img {
    width: 80%;
    border-radius: 12px;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumb-img.selected,
.thumb-img:hover {
    border-color: var(--text-teal);
}

.quantity-field input::-webkit-outer-spin-button,
.quantity-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Hide number input spinners in Firefox and other browsers */

.quantity-field input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    /* Chrome, Safari, Edge */
    margin: 0;
}

.quantity-field input[type="number"] {
    border: 1px solid #ccc;
    background-color: #f6f1e5;
    padding: 6px 10px;
    border-radius: 4px;
}

.navbar .container-fluid {
    align-items: center !important;
    position: relative;
}


/* ─── Our Process Section ───────────────────────────── */

.our-process-section {
    background-image: url("resources/process/BG.png");
}

#product-page {
    background-color: #edd9c7
}

#process-slider {
    max-width: calc(400px * 16 / 9);
    margin: 0 auto;
}

#process-slider .splide__track {
    aspect-ratio: 16 / 9;
    max-height: 400px;
}

#process-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-options {
    font-family: var(--font-karla);
}

.btn-add-cart {
    background-color: #FC766AFF;
    /* New background color */
    color: #fff;
    /* Text color */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-buy-now {
    background-color: #4CAF50;
    /* New background color */
    color: #fff;
    /* Text color */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (max-width: 767px) {
    #process-slider {
        max-width: 100%;
    }

    .product-details-section {
        margin-top: 100px;
        padding-bottom: 40px;
    }
}


/* Product Info Tabs */

#product-info {
    background-color: #edd9c7;
    padding-bottom: 40px;
}

#product-info .nav-tabs {
    justify-content: left;
    flex-wrap: wrap;
    gap: 120px;
    margin: 0 !important;
    /* Add spacing between tabs */
}

#product-info .nav-link {
    color: var(--text-brown);
    font-family: var(--font-karla);
    font-weight: bold;
    margin: 0 !important;
}

#product-info .nav-link.active {
    background-color: var(--text-teal);
    color: #fff;
}

#product-info .tab-content {
    background: #edd9c7;
    border-top: 1px solid var(--text-teal);
}

.tab-pane-inner {
    font-family: var(--font-description);
}

@media (max-width: 767px) {
    #product-info .tab-pane {
        padding: 0 15px;
        margin: 0;
        background: #edd9c7;
        border-top: none;
        border-radius: 0 0 6px 6px;
    }

    #product-info .tab-pane-inner {
        padding: 15px 0;
    }

    #product-info .nav-tabs {
        display: block;
        border-bottom: none;
    }

    #product-info .nav-item {
        margin-bottom: 10px;
    }

    #product-info .nav-link {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e0cfa9;
        border-top: 1px solid #edd9c7;
        border-right: 1px solid #edd9c7;
        border-left: 1px solid #edd9c7;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    #product-info .nav-link.active {
        background-color: var(--text-teal);
        border-radius: 6px 6px 0 0;
    }

    #product-info .tab-content {
        background: #edd9c7;
        border-top: 0px;
    }

    .tab-pane-inner {
        font-family: var(--font-description);
        font-size: 15px;
    }
}

/* Offcanvas logo styling */
.offcanvas-logo {
    width: 80px;
    height: auto;
    margin: 0;
}

.offcanvas-header {
    padding: 1rem 1rem 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(91, 61, 15, 0.1);
}

/* User account links in mobile sidebar */
.user-account-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(91, 61, 15, 0.1);
}

.user-account-links .nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-account-links .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-brown);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.user-account-links .nav-item:hover {
    background-color: rgba(91, 61, 15, 0.08);
    color: var(--text-teal);
    text-decoration: none;
}

.user-account-links .wishlist-link:hover {
    color: #e74c3c;
}

.user-account-links .nav-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* Cart Sidebar Styles - Moved to css/cart-sidebar.css */

/* Mobile Category Tree Styles */
.shop-by-category {
    margin: 0;
    padding: 0;
}

.category-toggle {
    padding: 10px 0;
    cursor: pointer;
    color: var(--text-brown);
    font-family: var(--font-montserrat) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(91, 61, 15, 0.1);
    line-height: 1.2;
    display: block;
    position: relative;
    margin: 0;
}

.category-toggle .toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.category-toggle:hover {
    color: var(--text-teal);
}

.category-title {
    font-family: var(--font-montserrat) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: inherit;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: inline;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    position: relative;
}

.category-content.show {
    max-height: unset;
    /* Remove the fixed height constraint */
    padding: 10px 0 0 0;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in, visibility 0s, padding 0.3s ease;
    overflow-y: visible;
}

.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-item {
    margin-bottom: 8px;
}

.tree-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    color: var(--text-brown);
    font-family: var(--font-montserrat) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
}

.tree-toggle:hover {
    color: var(--text-teal);
}

.tree-toggle.single-category {
    cursor: default;
    padding: 10px 0;
    margin-left: 0;
}

.tree-toggle.single-category:hover {
    color: var(--text-brown);
}

.tree-toggle.single-category a {
    color: var(--text-brown);
    text-decoration: none;
    font-family: var(--font-montserrat) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
}

.tree-toggle.single-category a:hover {
    color: var(--text-teal);
}

.tree-title {
    flex: 1;
}

.toggle-icon {
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--text-teal);
}

.tree-toggle.expanded .toggle-icon,
.category-toggle.expanded .toggle-icon {
    transform: rotate(45deg);
}

.branch-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.branch-list.show {
    max-height: 200px;
    padding: 8px 0 0 20px;
}

.branch-item {
    margin-bottom: 6px;
}

.branch-item a {
    color: var(--text-brown);
    text-decoration: none;
    font-family: var(--font-montserrat) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    padding: 6px 0;
    display: block;
    transition: color 0.3s ease;
}

.branch-item a:hover {
    color: var(--text-teal);
}

/* Import Desktop Mega Menu Styles */
@import url("desktop-mega-menu.css");