/****** Global CSS ******/
/* ------------------- */

:root {
    --brand: #111111;
    --brand-dark: #000000;
    --brand-bright: #333333;
    --brand-soft: rgba(17, 17, 17, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", "Noto Sans Bengali", sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #1f2937;
}

/* ===== Thin scrollbar everywhere ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, 0.28) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background: transparent;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
    background: transparent;
    border: none;
    box-shadow: none;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(17, 17, 17, 0.28);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(17, 17, 17, 0.45);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}


.section-title {
    text-align: left;
    margin: 20px 0 20px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-right: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 2px;
    background-color: #111111;
}


/******* Header Styles *******/
/* ------------------------ */

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.site-logo {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    /* The wordmark's "p" descender leaves empty space at the bottom of the image,
       so the letters sit above the box's centre. Nudge it down to optically
       line up with the header icons and search bar. */
    transform: translateY(10%);
}

@media (max-width: 767px) {
    .site-logo {
        height: 32px;
        max-width: 140px;
    }
}

.logo h1 {
    font-size: 24px;
    color: #111111;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar button {
    padding: 8px 15px;
    background: #111111;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.user-actions a {
    margin-left: 15px;
    font-size: 18px;
    color: #555;
}

.logo-h {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/****** Navigation Styles ******/
/* -------------------------- */

nav {
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu>li {
    position: relative;
    margin-right: 20px;
}

.nav-menu>li>a {
    display: block;
    padding: 8px 0;
    font-weight: 500;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    display: none;
    z-index: 100;
}

.nav-menu>li:hover .submenu {
    display: block;
}

.desktop-nav-menu .nav-menu > li:hover > .submenu {
    display: none !important;
}

.desktop-nav-menu .nav-menu > li.is-submenu-open > .submenu {
    display: block !important;
    box-shadow: none;
}

.submenu li a {
    display: block;
    padding: 8px 15px;
}

.submenu li a:hover {
    background: #f5f5f5;
}


/******* Hero Slider *******/
/* --------------------- */

.hero-slider {
    /* margin: 20px 0; */
    margin: 10px 0;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Desktop and Mobile Image Display */
.slide .desktop-image {
    display: block;
}

.slide .mobile-image {
    display: none;
}

/* Show mobile image on mobile devices, hide desktop image */
@media (max-width: 768px) {
    .slide .desktop-image {
        display: none;
    }

    .slide .mobile-image {
        display: block;
    }

    .hero-slider {
        height: 300px;
    }
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.slide-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.slide-description {
    margin-bottom: 15px;
}

.slide-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #111111;
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-slider:hover .slider-controls {
    opacity: 1;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: #111111;
    color: white;
}

.slider-controls button i {
    font-size: 18px;
}

.slider-controls .prev-slide {
    margin-right: auto;
}

.slider-controls .next-slide {
    margin-left: auto;
}

.hero-slider-ad-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 10px 0 0.5rem;
}
@media (min-width: 768px) {
    .hero-slider-ad-row {
        flex-direction: row;
        align-items: stretch;
        gap: 1rem;
    }
    .hero-slider-ad-row .hero-slider {
        width: 65%;
        margin: 0;
    }
    .hero-slider-ad-row .ad-image-container {
        width: 35%;
        position: relative;
        align-self: stretch;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        border-radius: 8px;
        margin: 0;
    }
    .hero-slider-ad-row .ad-image-container a {
        display: block;
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: inherit;
    }
    .hero-slider-ad-row .ad-image-container img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}


/******* Categories Section *******/
/* ----------------------------- */

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img {
    height: 100px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img i {
    font-size: 30px;
    color: #111111;
}

.category-name {
    padding: 10px;
    font-weight: 500;
}



/******* Products CSS *******/
/* ------------------------ */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.product-card > a {
    display: block;
    flex-shrink: 0;
}

.product-img {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 250px;
    overflow: hidden;
    /* Fixed height for consistency */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintains aspect ratio while filling container */
    transition: opacity 0.8s ease, transform 0.3s ease;
}

.product-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    /* Maintains aspect ratio while filling container */
    transition: opacity 0.9s ease;
}

.product-card:hover .hover-img {
    opacity: 1;
}

.product-card:hover .default-img {
    opacity: 0;
}

.product-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    background: #111111;
    color: white;
    padding: 10px 6px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.product-discount-always .product-badge {
    opacity: 1;
}

@media (hover: hover) {
    body.product-discount-hover .product-badge {
        opacity: 0;
    }

    body.product-discount-hover .product-card:hover .product-badge {
        opacity: 1;
    }
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
}

.product-actions button {
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #555;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-card-actions {
    margin-top: auto;
    /* The card markup has `sm:gap-0`, which made the cart and order buttons touch. */
    gap: 8px !important;
}

.product-name {
    font-weight: 500;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.product-affiliate-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0 0 10px;
    width: 100%;
    min-width: 0;
}

.product-affiliate-commission {
    color: #047857;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-affiliate-commission strong {
    font-weight: 700;
}

.product-affiliate-commission .aff-per-pc {
    color: #059669;
    font-weight: 500;
}

.product-affiliate-share {
    flex-shrink: 0;
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid #059669;
    border-radius: 4px;
    background: transparent;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.product-affiliate-share:hover,
.product-affiliate-share:focus {
    background: #ecfdf5;
    text-decoration: none;
    outline: none;
}

.order-affiliate-commission-label {
    color: #047857;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-affiliate-commission-value {
    display: inline-block;
    color: #047857;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.current-price {
    font-weight: bold;
    font-size: 16px;
    color: #111111;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discount {
    color: #4caf50;
    font-size: 14px;
    margin-left: auto;
}

.product-rating {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 12px;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 8px;
    background: #fff;
    color: #111111;
    border: 1px solid #111111;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.order-now {
    display: block;
    width: 192px;
    padding: 8px 12px;
    background: #111111;
    color: #fff;
    border: 1px solid #111111;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.add-to-cart:hover {
    background: #000000;
    color: #fff;
}

.order-now:hover {
    background: #2a2a2a;
    color: #fff;
}



/****** Mobile Navigation ******/
/* --------------------------- */

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    z-index: 100;
}

.mobile-menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.mobile-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    width: 100%;
    max-width: 72px;
    font-size: 11px;
    color: #4b5563;
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 12px;
    transition: color 0.2s ease;
    text-align: center;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu a:focus,
.mobile-menu a:focus-visible,
.mobile-menu a:active {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.mobile-menu a.active {
    color: #111111;
    font-weight: 600;
}

.mobile-menu i {
    font-size: 20px;
    margin-bottom: 5px;
    color: inherit;
}

.mobile-menu a.active span {
    color: #111111;
}

.mobile-home-btn {
    position: relative;
    margin-top: -22px;
    padding: 0 0 4px !important;
    max-width: none;
    width: auto;
    color: #64748b !important;
    background: transparent !important;
    justify-self: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-home-btn:focus,
.mobile-home-btn:focus-visible,
.mobile-home-btn:active {
    outline: none;
    box-shadow: none;
    background: transparent !important;
}

.mobile-home-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2A2A2A 0%, #111111 48%, #000000 100%);
    color: #fff;
    box-shadow:
        0 8px 22px rgba(17, 17, 17, 0.38),
        0 2px 6px rgba(17, 17, 17, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    border: 3px solid #fff;
    margin-bottom: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-home-btn__icon i {
    font-size: 22px !important;
    margin-bottom: 0 !important;
    color: #fff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.mobile-home-btn__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-home-btn:hover .mobile-home-btn__icon {
        transform: translateY(-2px) scale(1.04);
        box-shadow:
            0 12px 28px rgba(17, 17, 17, 0.42),
            0 4px 10px rgba(17, 17, 17, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.32);
    }
}

.mobile-home-btn.active .mobile-home-btn__icon {
    background: linear-gradient(145deg, #3A3A3A 0%, #111111 45%, #000000 100%);
    box-shadow:
        0 10px 26px rgba(17, 17, 17, 0.48),
        0 0 0 4px rgba(17, 17, 17, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mobile-home-btn.active .mobile-home-btn__label {
    color: #111111;
    font-weight: 700;
}

.header-account-link,
.header-account-link i,
.header-track-link,
.header-track-link i {
    color: #1f2937;
}

.header-account-link.logged-in {
    color: #1f2937;
    font-weight: 700;
    gap: 8px;
    border: 1.5px solid #111111;
    border-radius: 6px;
    padding: 4px 12px;
}

.header-account-link.logged-in i {
    color: #1f2937;
    font-size: 1.5rem;
}

.header-account-label {
    font-size: 14px;
    font-weight: 700;
}



/****** Mobile Menu Toggle Button ******/
/* ---------------------------------- */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/****** Mobile Menu Styles ******/
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-nav-menu:before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


/* Menu Tab Mobile Menu */
/* ------------------- */

.nav-tab {
    display: inline-block;
    padding: 16px;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    width: 50%;
    text-align: center;
}

.nav-tab-non-active {
    background: #f5f5f5;
}

.nav-tab-active {
    background: #e9e9e9;
}

.nav-tab-active::after {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    content: "";
    background: #000000;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-menu .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-menu ul {
    list-style: none;
}

.mobile-nav-menu>ul>li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu>ul>li>a {
    display: block;
    color: white;
    font-size: 18px;
    padding: 10px 0;
    font-weight: 500;
}

.mobile-nav-menu .submenu {
    position: static;
    width: 100%;
    background: transparent;
    box-shadow: none;
    display: none;
}

.mobile-nav-menu .submenu.active {
    display: block;
}

.mobile-nav-menu .submenu li a {
    color: #ddd;
    background: #ffffff;
    margin: 10px 5px;
    border-radius: 5px;
    color: #000;
    padding: 7px 13px;
}

.mobile-nav-menu .has-submenu {
    position: relative;
}

.mobile-nav-menu .submenu-toggle {
    position: absolute;
    right: 0;
    top: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/****** Footer ******/
/* ---------------- */

footer {
    background: #0e1726;
    color: #e2e8f0;
    padding: 48px 0 0;
    border-top: 3px solid #111111;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #f5f5f5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-column img {
    max-width: 100%;
    height: auto;
    margin-top: 8px;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.footer-column img.footer-payment-img {
    width: 220px;
    max-width: 100%;
    margin-top: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-methods i {
    font-size: 24px;
    color: #ddd;
}

.footer-contact-links {
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #94a3b8;
}


/********** Mobile Responsive CSS *************/
/*********************************************/

@media (max-width: 768px) {

    /********** Products - Mobile *************/
    .products {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row */
    }

    .product-img {
        height: 200px;
        /* Fixed height for consistency */
    }

    /********** Top Header - Mobile *************/
    .top-header {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin: 10px 0 0;
    }

    .user-actions {
        order: 2;
    }

    /********** Navigation - Mobile *************/
    nav .container .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 30;
        padding: 6px 10px;
    }

    /********** Hero Slider - Mobile *************/
    .hero-slider {
        height: 180px;
    }

    .slide-content {
        left: 20px;
        bottom: 20px;
        max-width: 80%;
    }

    .mobile-nav {
        display: block;
    }

    /********** Body - Mobile *************/
    body {
        padding-bottom: 72px;
    }

    /********** Order Now - Mobile *************/
    .order-now {
        width: 100%;
        font-size: 14px;
        padding: 9.5px 30px;
    }

    /********** Footer - Mobile *************/
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .payment-methods {
        gap: 8px;
    }

    .payment-methods i {
        font-size: 20px;
    }
}

@media (max-width: 517px) {
    .order-now {
        width: 100%;
        font-size: 14px;
        padding: 9.5px 19px;
    }
}


@media (max-width: 420px) {
    .order-now {
        width: 100%;
        font-size: 15px;
        padding: 8.5px 10px;
    }
}

/********** WhatsApp Marquee Mobile *************/
.whatsapp-marquee-mobile {
    background: linear-gradient(135deg, #333333 0%, #111111 100%);
    color: white;
    padding: 9px 0px 0px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.15);
    overflow: hidden;
    white-space: nowrap;
}

.whatsapp-marquee-mobile--device {
    display: none;
}

.whatsapp-marquee-mobile--device.is-visible-mobile {
    display: block;
}

@media (min-width: 768px) {
    .whatsapp-marquee-mobile--device.is-visible-mobile {
        display: none;
    }

    .whatsapp-marquee-mobile--device.is-visible-desktop {
        display: block;
    }
}

.whatsapp-marquee-mobile i {
    font-size: 16px;
}

/* Cart badge in mobile footer nav */
.mobile-menu .fa-shopping-cart {
    position: relative;
}

@media (min-width: 1024px) {
    .desktop-nav-menu .submenu {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/******* Home Category Strip (below banner) *******/
.mobile-category-strip {
    margin: 0 0 12px 0;
    overflow: hidden;
}

.mobile-category-strip--mobile {
    display: block;
}

.mobile-category-strip--desktop {
    display: none;
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
    padding: 10px 0;
}

@media (min-width: 768px) {
    .mobile-category-strip--mobile {
        display: none;
    }

    .mobile-category-strip--desktop {
        display: block;
        margin: 0 0 24px 0;
        overflow: visible; /* keep active outline from being clipped */
        padding: 4px 2px 0;
    }

    .mobile-category-strip--desktop .mobile-category-grid {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 18px 14px;
        padding: 8px 6px 4px; /* space for outline on first/last items */
    }

    .mobile-category-strip--desktop .mobile-category-item {
        padding: 4px 2px;
    }

    .mobile-category-strip--desktop .mobile-category-item:hover {
        transform: translateY(-3px);
    }

    .mobile-category-strip--desktop .mobile-category-item:active {
        transform: translateY(-1px);
    }

    .mobile-category-strip--desktop .mobile-category-img {
        width: 100%;
        max-width: none;
        aspect-ratio: 1;
        border-radius: 16px;
        border: none;
        background: transparent;
        box-shadow: none;
        margin-bottom: 8px;
        padding: 0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-category-strip--desktop .mobile-category-item:hover .mobile-category-img {
        box-shadow: none;
    }

    .mobile-category-strip--desktop .mobile-category-img img {
        object-fit: cover;
        border-radius: 16px;
    }

    .mobile-category-strip--desktop .mobile-category-img--placeholder {
        border-radius: 16px;
        font-size: 24px;
        background: transparent;
        color: #111111;
    }

    .mobile-category-strip--desktop .mobile-category-name {
        font-size: 12px;
        font-weight: 600;
        color: #1f2937;
        line-height: 1.35;
    }

    .mobile-category-strip--desktop .mobile-category-item.is-active .mobile-category-img {
        outline: 2px solid #111111;
        outline-offset: 2px;
    }

    .mobile-category-strip--desktop .mobile-category-item.is-active .mobile-category-name {
        color: #111111;
    }
}

.desktop-category-panel {
    margin: 0 0 28px 0;
}

.desktop-category-panel[hidden] {
    display: none !important;
}

.desktop-category-panel-loading,
.desktop-category-panel-error {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

.desktop-category-panel-inner {
    padding-top: 4px;
}

.listing-page-header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin: 12px 0 18px;
    padding: 16px 18px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff8f6 0%, #fff 72%);
    border: none;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.listing-page-header__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 0 1 24%;
    max-width: 24%;
    overflow: hidden;
    align-self: stretch;
}

.listing-page-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    max-width: 100%;
}

.listing-page-header__media {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.listing-page-header__media picture,
.listing-page-header__media img {
    width: 100%;
    height: 100%;
    display: block;
}

.listing-page-header__media img {
    object-fit: cover;
}

.listing-page-header__media-icon {
    color: #111111;
    font-size: 1.6rem;
}

.listing-page-header__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-top: 0;
}

.listing-page-header__trail {
    display: none;
}

.listing-page-header__trail-link {
    color: inherit;
    text-decoration: none;
}

.listing-page-header__trail-link:hover {
    color: #111111;
    text-decoration: underline;
}

.listing-page-header__trail-link--parent {
    color: inherit;
}

.listing-page-header__trail-sep {
    color: inherit;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
}

.listing-page-header__trail-current {
    color: inherit;
}

.listing-page-header__under {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #111111;
}

.listing-page-header__title {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2937;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-page-header__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.listing-page-header__title-link:hover {
    color: #111111;
}

.listing-page-header__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff5f2;
    border: none;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-page-header__parent-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff5f2;
    border: 1px solid #f3d5cc;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.listing-page-header__parent-pill:hover {
    background: #111111;
    border-color: #111111;
    color: #fff;
}

.listing-page-header__desc {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.925rem;
    line-height: 1.5;
    max-width: 52rem;
}

.listing-page-header__subs-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    margin-left: auto;
    padding: 0 36px;
    border-top: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    align-self: stretch;
    overflow: visible;
}

.listing-page-header__subs.desktop-subcategory-row {
    display: flex;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    margin: 0 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 8px;
    scroll-padding-inline: 8px;
}

.listing-page-header__subs.desktop-subcategory-row::-webkit-scrollbar {
    display: none;
}

.listing-page-header__subs .desktop-subcategory-chip {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 84px;
    min-width: 84px;
    height: 100%;
    min-height: calc(64px + 6px + 1.25em * 2);
    padding: 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
}

.listing-page-header__subs .desktop-subcategory-chip:hover {
    border-color: transparent;
    color: #111111;
    background: transparent;
}

.listing-page-header__subs .desktop-subcategory-chip.is-active {
    border-color: transparent;
    background: transparent;
    color: #111111;
}

.listing-page-header__subs .desktop-subcategory-chip__img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.listing-page-header__subs .desktop-subcategory-chip.is-active .desktop-subcategory-chip__img {
    box-shadow: 0 2px 10px rgba(17, 17, 17, 0.22);
}

.listing-page-header__subs .desktop-subcategory-chip__label {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-width: 100%;
    min-height: calc(1.25em * 2);
}

.listing-page-header__subs-arrow {
    position: absolute;
    top: 32px;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #111111;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.listing-page-header__subs-arrow[hidden] {
    display: none !important;
}

.listing-page-header__subs-arrow:hover {
    background: transparent;
    color: #c73d1a;
}

.listing-page-header__subs-arrow--prev {
    left: 6px;
}

.listing-page-header__subs-arrow--next {
    right: 6px;
}

@media (max-width: 768px) {
    .listing-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 14px 14px;
        margin: 10px 0 16px;
        border-radius: 20px;
    }

    .listing-page-header__main {
        position: relative;
        gap: 12px;
        width: 100%;
        max-width: none;
        flex: none;
        padding-right: 108px;
        align-items: center;
    }

    .listing-page-header__body {
        padding-top: 0;
        justify-content: center;
        gap: 8px;
    }

    .listing-page-header__media {
        width: 60px;
        height: 60px;
    }

    .listing-page-header__title {
        font-size: 1.05rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .listing-page-header__meta {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .listing-page-header__count {
        font-size: 11px;
    }

    .listing-page-header__desc {
        display: none;
    }

    .listing-page-header__subs-wrap {
        max-width: none;
        width: 100%;
        flex: none;
        margin-left: 0;
        padding: 12px 0 0;
        border-top: 1px solid rgba(17, 17, 17, 0.18);
        display: block;
        justify-content: flex-start;
    }

    .listing-page-header__subs.desktop-subcategory-row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 8px;
        justify-content: center;
        margin: 0;
        width: 100%;
        max-width: none;
        padding: 0;
        overflow: visible;
    }

    .listing-page-header__subs .desktop-subcategory-chip {
        width: auto;
        min-width: 0;
        max-width: none;
        font-size: 11px;
    }

    .listing-page-header__subs .desktop-subcategory-chip__img {
        width: 100%;
        max-width: 72px;
        height: auto;
        aspect-ratio: 1;
    }

    .listing-page-header__subs-arrow {
        display: none !important;
    }
}

.desktop-subcategory-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.desktop-subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.desktop-subcategory-chip:hover {
    border-color: #f5c4b8;
    color: #111111;
}

.desktop-subcategory-chip.is-active {
    border-color: #111111;
    background: #fff5f2;
    color: #111111;
}

.desktop-subcategory-chip__img {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.desktop-subcategory-chip__img picture,
.desktop-subcategory-chip__img img {
    width: 100%;
    height: 100%;
    display: block;
}

.desktop-subcategory-chip__img img {
    object-fit: cover;
}

.desktop-subcategory-chip__img--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5f2;
    color: #111111;
    font-size: 12px;
}

.desktop-category-panel-footer {
    margin-top: 16px;
    text-align: center;
}

.desktop-category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #111111;
    font-weight: 600;
    text-decoration: none;
}

.desktop-category-view-all:hover {
    text-decoration: none;
    color: #000000;
}

@media (max-width: 767px) {
    .desktop-category-panel {
        display: none !important;
    }
}

#mobileCategoryGrid {
    display: none;
}

#mobileCategoryGrid.is-active {
    display: grid;
}

.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: none;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.mobile-category-item:active {
    transform: scale(0.95);
}

.mobile-category-img {
    width: 100%;
    aspect-ratio: 1;
    max-width: 72px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-category-img--placeholder {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #111111;
    font-size: 18px;
}

.mobile-category-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    color: #374151;
}

.mobile-subcategory-panel {
    display: none;
}

.mobile-subcategory-panel.is-active {
    display: block;
}

.mobile-category-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-category-back i {
    font-size: 12px;
}

/* Form controls: remove focus outline/ring (site-wide) */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
.form-control:focus,
.form-control:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.home-reviews {
    margin: 12px 0 48px;
}

.home-reviews__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* Spacing lives on the row so the title and arrows share one centre line. */
    margin: 20px 0 16px;
}

.home-reviews .section-title {
    margin: 0;
    color: #111111;
}

.home-reviews .section-title:after {
    display: none;
}

.home-reviews__nav {
    display: flex;
    gap: 6px;
}

.home-reviews__arrow {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #111111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-reviews__arrow:hover,
.home-reviews__arrow:focus-visible {
    background: #111111;
    color: #fff;
    border-color: #111111;
    outline: none;
}

.home-reviews__viewport {
    overflow: hidden;
    cursor: grab;
}

.home-reviews__track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s ease;
}

.home-review-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-height: 220px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}

.home-review-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    color: #d4d4d4;
    font-size: 13px;
}

.home-review-card__stars .is-on {
    color: #111111;
}

.home-review-card__text {
    margin: 0;
    color: #3f3f46;
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
}

.home-review-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f2f2f2;
}

.home-review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 42px;
}

.home-review-card__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-review-card__meta strong {
    color: #111111;
    font-size: 14px;
}

.home-review-card__meta a {
    color: #71717a;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-review-card__meta a:hover {
    color: #111111;
}

.home-reviews__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.home-reviews__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #e4e4e7;
    cursor: pointer;
}

.home-reviews__dot.is-active {
    width: 22px;
    background: #111111;
}

.home-reviews.is-single .home-reviews__nav,
.home-reviews.is-single .home-reviews__dots {
    display: none;
}

@media (max-width: 991px) {
    .home-review-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 639px) {
    .home-reviews {
        margin-bottom: 32px;
    }

    .home-review-card {
        flex-basis: 100%;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reviews__track {
        transition: none;
    }
}
