/* ===================================================================
   tna W rna — Modern Mobile (v3 — overhaul)
   Header (SVG wordmark + unified icons)
   Bottom Nav (5 items + labels + active state)
   Hero (contrast fixes, shorter, readable)
   Side Menu (animations)
   =================================================================== */

:root {
    --mh-green: #16a34a;
    --mh-green-dark: #15803d;
    --mh-green-light: #4ade80;
    --mh-green-soft: #f0fdf4;
    --mh-blue: #2563eb;
    --mh-blue-dark: #1e40af;
    --mh-blue-light: #60a5fa;
    --mh-accent: #facc15;
    --mh-dark: #0f1f1a;
    --mh-text: #1e293b;
    --mh-muted: #64748b;
    --mh-border: rgba(22, 163, 74, .12);
}

/* =============================================================
   FIX: Hero slider overlap when Swiper not yet initialized
   ============================================================= */
.mh-hero__slider:not(.swiper-initialized) .swiper-wrapper { display: block; }
.mh-hero__slider:not(.swiper-initialized) .swiper-slide { display: none !important; }
.mh-hero__slider:not(.swiper-initialized) .swiper-slide:first-child { display: flex !important; }
.mh-hero__slider .swiper-slide { flex-shrink: 0 !important; }

/* =============================================================
   MOBILE HEADER — clean, unified
   ============================================================= */
.tnw-mobile-header,
.header.header--mobile {
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 14px -4px rgba(15, 31, 26, .10) !important;
    border-bottom: 1px solid var(--mh-border) !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Top bar — single row, balanced */
.tnw-mh__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 10px;
    min-height: 60px;
}

/* Logo — image with mascots, scaled so right-side icons keep room */
.tnw-mh__logo {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .25s ease;
    min-width: 0;
    overflow: visible;
    padding: 2px 4px;
}
.tnw-mh__logo picture { display: inline-block; line-height: 0; }
.tnw-mh__logo:active { transform: scale(.96); }
.tnw-mh__logo-img {
    height: 46px !important;
    width: auto !important;
    max-width: min(170px, 48vw);
    object-fit: contain;
    display: block;
    margin-block: -2px 0;
}
@media (max-width: 380px) {
    .tnw-mh__bar { padding: 4px 8px; gap: 4px; }
    .tnw-mh__logo-img { height: 40px !important; max-width: 42vw; }
}
@media (max-width: 340px) {
    .tnw-mh__logo-img { height: 36px !important; max-width: 38vw; }
}

/* Icon buttons — UNIFIED design (mint background, green icon) */
.tnw-mh__icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px !important;
    border: 1px solid var(--mh-border);
    cursor: pointer;
    background: var(--mh-green-soft) !important;
    color: var(--mh-green-dark) !important;
    transition: all .25s cubic-bezier(.4,0,.2,1) !important;
    flex-shrink: 0;
    text-decoration: none !important;
    position: relative;
    padding: 0;
}
.tnw-mh__icon-btn:hover {
    background: #dcfce7 !important;
    border-color: rgba(22, 163, 74, .3);
}
.tnw-mh__icon-btn:active {
    transform: scale(.92);
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%) !important;
    color: #fff !important;
    border-color: transparent;
}
.tnw-mh__icon-btn svg { display: block; }

/* Cart variant — soft blue tint, distinct but harmonious */
.tnw-mh__cart {
    background: #eff6ff !important;
    color: var(--mh-blue-dark) !important;
}
.tnw-mh__cart:hover { background: #dbeafe !important; }
.tnw-mh__cart:active {
    background: linear-gradient(135deg, var(--mh-blue) 0%, var(--mh-blue-dark) 100%) !important;
    color: #fff !important;
}

/* User variant — same as default for visual harmony */
.tnw-mh__user {
    background: var(--mh-green-soft) !important;
    color: var(--mh-green-dark) !important;
}

/* Cart badge */
.tnw-mh__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    animation: tnw-badge-bounce 1.5s ease-in-out infinite;
}
@keyframes tnw-badge-bounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

/* Right group */
.tnw-mh__right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Collapsible search */
.tnw-mh__search {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(135deg, var(--mh-green-soft) 0%, #ecfdf5 100%);
    border-top: 1px solid var(--mh-border);
}
.tnw-mh__search.is-open { max-height: 200px; }
.tnw-mh__search form { padding: 12px 14px; margin: 0; }
.tnw-mh__search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    box-shadow: 0 4px 14px -4px rgba(15, 31, 26, .12);
    border: 2px solid transparent;
    transition: border-color .2s;
}
[dir="rtl"] .tnw-mh__search-wrap { padding: 4px 14px 4px 4px; }
.tnw-mh__search-wrap:focus-within {
    border-color: var(--mh-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}
.tnw-mh__search-icon { color: var(--mh-green-dark); flex-shrink: 0; margin-inline-end: 8px; }
.tnw-mh__search-wrap input {
    flex: 1;
    border: 0 !important;
    outline: none;
    padding: 8px 0 !important;
    font-size: 14px;
    background: transparent !important;
    color: var(--mh-text) !important;
    box-shadow: none !important;
    min-width: 0;
}
.tnw-mh__search-wrap input::placeholder { color: #94a3b8; }
.tnw-mh__search-wrap button {
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform .2s;
}
.tnw-mh__search-wrap button:active { transform: scale(.95); }

/* Hide old desktop header on mobile */
@media (max-width: 991px) {
    .header.header--1 { display: none !important; }
}
@media (min-width: 992px) {
    .tnw-mobile-header,
    .header.header--mobile { display: none !important; }
}

/* =============================================================
   MOBILE BOTTOM NAVIGATION — 5 items + labels + active state
   ============================================================= */
.navigation--list.tnw-bottom-nav,
.navigation--list {
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.99) 100%) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    border-top: 1px solid var(--mh-border) !important;
    box-shadow: 0 -8px 28px -8px rgba(15, 31, 26, .14) !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
}

.navigation--list .navigation__content {
    display: flex !important;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    max-width: 600px;
    margin: 0 auto;
}

.navigation--list .navigation__item,
.tnw-bn__item {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px !important;
    border-radius: 14px;
    color: var(--mh-muted) !important;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: visible;
    text-decoration: none !important;
    min-height: 54px;
    background: transparent;
}

/* Icon wrapper */
.tnw-bn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
}
.tnw-bn__icon svg {
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

/* Label text */
.tnw-bn__label {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1;
    letter-spacing: .2px;
    transition: color .25s ease, font-weight .25s ease;
    text-align: center;
    white-space: nowrap;
}

/* Hover/focus state */
.tnw-bn__item:hover .tnw-bn__icon,
.tnw-bn__item:focus .tnw-bn__icon {
    background: var(--mh-green-soft);
    color: var(--mh-green-dark);
}

/* Pressed state — ripple-ish */
.tnw-bn__item:active .tnw-bn__icon {
    transform: scale(.88);
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%);
    color: #fff;
}

/* ACTIVE state (current page) — green pill + label colored */
.tnw-bn__item.is-active {
    color: var(--mh-green-dark) !important;
}
.tnw-bn__item.is-active .tnw-bn__icon {
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(22, 163, 74, .45);
}
.tnw-bn__item.is-active .tnw-bn__icon svg { transform: translateY(-1px); }
.tnw-bn__item.is-active .tnw-bn__label {
    font-weight: 700 !important;
    color: var(--mh-green-dark) !important;
}
.tnw-bn__item.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mh-green) 0%, var(--mh-blue) 100%);
}

/* Cart badge inside bottom-nav icon */
.tnw-bn__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* Hide old i+span pattern from Botble's original markup */
.navigation--list .navigation__item > i,
.navigation--list .navigation__item > span:not(.tnw-bn__label):not(.tnw-bn__icon) {
    display: none !important;
}

/* On desktop, hide the bottom nav */
@media (min-width: 992px) {
    .navigation--list { display: none !important; }
}

/* Body padding so content doesn't hide behind bottom nav */
@media (max-width: 991px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* =============================================================
   MOBILE HERO — contrast + readability fixes
   ============================================================= */
@media (max-width: 991px) {
    .mh-hero__slide { min-height: 460px !important; padding: 24px 16px !important; }

    /* Eyebrow / "Top Pick" / "Smart Agriculture" — readable pill */
    .mh-hero__eyebrow {
        display: inline-block !important;
        padding: 7px 16px !important;
        background: rgba(255, 255, 255, .92) !important;
        color: var(--mh-green-dark) !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 12px -3px rgba(15, 31, 26, .15);
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 14px !important;
    }

    /* Main title — solid dark color (no gradient on mobile) */
    .mh-hero__title {
        font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
        color: var(--mh-dark) !important;
        font-weight: 900 !important;
        margin-bottom: 8px !important;
        text-shadow: 0 2px 8px rgba(255, 255, 255, .35);
    }

    /* Title accent (Hydroponics, Technology, One App) — solid green, NOT transparent gradient */
    .mh-hero__title-accent {
        display: inline-block !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: var(--mh-green-dark) !important;
        color: var(--mh-green-dark) !important;
        font-weight: 900 !important;
    }
    .mh-hero__slide--3 .mh-hero__title-accent {
        -webkit-text-fill-color: var(--mh-blue-dark) !important;
        color: var(--mh-blue-dark) !important;
    }

    /* Subtitle — opaque white card behind text */
    .mh-hero__subtitle {
        font-size: 14px !important;
        line-height: 1.55 !important;
        color: var(--mh-text) !important;
        background: rgba(255, 255, 255, .82);
        padding: 12px 16px !important;
        border-radius: 14px;
        margin: 12px auto 18px !important;
        max-width: 92%;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 14px -4px rgba(15, 31, 26, .12);
    }

    /* CTAs */
    .mh-hero__ctas {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .mh-hero__ctas .mh-btn--primary {
        font-size: 14px !important;
        padding: 12px 22px !important;
        box-shadow: 0 8px 20px -4px rgba(22, 163, 74, .4);
    }

    /* Visuals — smaller on mobile */
    .mh-hero__visual {
        margin-top: 18px !important;
        transform: scale(.85);
        transform-origin: center top;
    }

    /* Pagination */
    .mh-hero__pagination .swiper-pagination-bullet {
        width: 22px !important;
        height: 4px !important;
        background: rgba(15, 31, 26, .25) !important;
    }
    .mh-hero__pagination .swiper-pagination-bullet-active {
        width: 32px !important;
        background: var(--mh-green) !important;
    }

    /* Chip placement on mobile - corners, not on mascots */
    .mh-hero__chip { font-size: 11px; padding: 7px 12px; }
    .mh-hero__chip--1 { top: 0;    left: 0;     right: auto; bottom: auto; }
    .mh-hero__chip--2 { top: 0;    right: 0;    left: auto;  bottom: auto; }
    .mh-hero__chip--3 { bottom: 0; left: 0;     right: auto; top: auto; }
    .mh-hero__chip--4 { bottom: 0; right: 0;    left: auto;  top: auto; }

    .mh-hero__nav { display: none !important; }
    .mh-hero__stats { justify-content: center; text-align: center; }
    .mh-hero__content { text-align: center; }

    /* Animations — fade-up on each block */
    .mh-hero__slider .swiper-slide-active .mh-hero__content > * {
        animation: tnw-mh-fade-up .8s cubic-bezier(.4,0,.2,1) both;
    }
    .mh-hero__slider .swiper-slide-active .mh-hero__eyebrow  { animation-delay: .1s; }
    .mh-hero__slider .swiper-slide-active .mh-hero__title    { animation-delay: .25s; }
    .mh-hero__slider .swiper-slide-active .mh-hero__subtitle { animation-delay: .4s; }
    .mh-hero__slider .swiper-slide-active .mh-hero__ctas     { animation-delay: .55s; }
    .mh-hero__slider .swiper-slide-active .mh-hero__stats    { animation-delay: .7s; }
    .mh-hero__slider .swiper-slide-active .mh-hero__visual   { animation: tnw-mh-zoom-in 1s ease both .5s; }
}

/* =============================================================
   SIDE MENU (off-canvas) — animated slide-in
   ============================================================= */
.ps-panel--sidebar {
    background: linear-gradient(180deg, #fff 0%, var(--mh-green-soft) 100%) !important;
    box-shadow: 4px 0 24px -4px rgba(15, 31, 26, .25);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1) !important;
}
.ps-panel__header {
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%) !important;
    color: #fff !important;
    padding: 18px 20px !important;
    border-bottom: 0 !important;
}
.ps-panel__header h3,
.ps-panel__header strong {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}
.ps-panel__header .ps-panel__close,
.ps-panel__header > a {
    color: #fff !important;
    background: rgba(255, 255, 255, .15);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ps-panel__content { padding: 12px 0 !important; }
.menu--mobile {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.menu--mobile li {
    border-bottom: 1px solid rgba(22, 163, 74, .08);
    animation: tnw-mh-slide-in .4s cubic-bezier(.4, 0, .2, 1) both;
}
.menu--mobile li:nth-child(1) { animation-delay: .04s; }
.menu--mobile li:nth-child(2) { animation-delay: .08s; }
.menu--mobile li:nth-child(3) { animation-delay: .12s; }
.menu--mobile li:nth-child(4) { animation-delay: .16s; }
.menu--mobile li:nth-child(5) { animation-delay: .2s; }
.menu--mobile li:nth-child(6) { animation-delay: .24s; }
.menu--mobile li:nth-child(7) { animation-delay: .28s; }
.menu--mobile li:nth-child(8) { animation-delay: .32s; }
.menu--mobile li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 20px !important;
    color: var(--mh-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all .25s ease;
}
.menu--mobile li a i {
    color: var(--mh-green-dark);
    font-size: 18px;
    width: 22px;
    text-align: center;
}
.menu--mobile li a:hover,
.menu--mobile li a:active {
    background: rgba(22, 163, 74, .08);
    color: var(--mh-green-dark) !important;
    padding-inline-start: 26px !important;
}

/* =============================================================
   FOOTER — mobile redesign
   ============================================================= */
@media (max-width: 768px) {
    .ps-footer { padding: 36px 0 0 !important; }
    .ps-footer__widgets {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    .ps-footer__widgets aside,
    .ps-footer__widgets > div { width: 100% !important; }
    .ps-footer .widget-title,
    .ps-footer h4 { font-size: 14px !important; margin-bottom: 12px !important; }
    .ps-footer ul li a { font-size: 13px !important; }

    .ps-footer .ps-list--social {
        margin-top: 12px !important;
        flex-wrap: wrap;
        gap: 8px;
        display: flex !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .ps-footer .ps-list--social li {
        animation: tnw-mh-pop .5s cubic-bezier(.34,1.56,.64,1) both;
    }
    .ps-footer .ps-list--social li:nth-child(1) { animation-delay: 0s; }
    .ps-footer .ps-list--social li:nth-child(2) { animation-delay: .08s; }
    .ps-footer .ps-list--social li:nth-child(3) { animation-delay: .16s; }
    .ps-footer .ps-list--social li:nth-child(4) { animation-delay: .24s; }
    .ps-footer .ps-list--social li:nth-child(5) { animation-delay: .32s; }
    .ps-footer .ps-list--social li a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.1);
        border-radius: 50%;
        transition: transform .25s, background .25s;
    }
    .ps-footer .ps-list--social li a:active {
        background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%);
        transform: scale(.92);
    }

    .ps-footer__copyright {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        padding: 20px 0 calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
@media (max-width: 480px) {
    .ps-footer__widgets { grid-template-columns: 1fr !important; }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes tnw-mh-pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes tnw-mh-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tnw-mh-zoom-in {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes tnw-mh-slide-in {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] @keyframes tnw-mh-slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =============================================================
   FORCE PANEL VISIBILITY when active (override Botble inline display:none)
   Triple-belt approach: display + visibility + opacity + transform
   ============================================================= */
.ps-panel--sidebar.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    inset-inline-start: 0 !important;
    z-index: 9100 !important;
}

/* =============================================================
   CUSTOM "All categories" DROPDOWN — branded, animated
   ============================================================= */
.ps-form--quick-search .form-group--icon { position: relative; }

.tnw-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

.tnw-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 6px 4px 6px 8px;
    cursor: pointer;
    color: var(--mh-text, #1e293b);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}
.tnw-dropdown__trigger:hover { color: var(--mh-green-dark, #15803d); }
.tnw-dropdown__chevron {
    color: var(--mh-muted, #64748b);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.tnw-dropdown.is-open .tnw-dropdown__chevron {
    transform: rotate(180deg);
    color: var(--mh-green, #16a34a);
}

.tnw-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 260px;
    max-height: min(640px, calc(100vh - 140px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(22, 163, 74, .15);
    border-radius: 14px;
    box-shadow: 0 14px 40px -10px rgba(15, 31, 26, .25), 0 4px 12px -4px rgba(15, 31, 26, .1);
    padding: 6px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1), visibility .2s ease;
    pointer-events: none;
}
.tnw-dropdown.is-open .tnw-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tnw-dropdown__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tnw-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    color: var(--mh-text, #1e293b);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    user-select: none;
    opacity: 0;
    transform: translateY(-4px);
    animation: tnw-dd-item-in .25s cubic-bezier(.4,0,.2,1) both;
    animation-delay: calc(var(--i, 0) * 18ms + 80ms);
}
.tnw-dropdown.is-open .tnw-dropdown__item {
    /* Trigger animation only when open — restart each open */
}
.tnw-dropdown__item:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--mh-green-dark, #15803d);
    transform: translateX(2px);
}
[dir="rtl"] .tnw-dropdown__item:hover { transform: translateX(-2px); }
.tnw-dropdown__item.is-selected {
    background: linear-gradient(135deg, var(--mh-green, #16a34a) 0%, var(--mh-green-dark, #15803d) 100%);
    color: #fff;
    font-weight: 700;
}
.tnw-dropdown__item.is-selected:hover {
    color: #fff;
    transform: none;
}
.tnw-dropdown__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0);
    color: transparent;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.tnw-dropdown__item.is-selected .tnw-dropdown__check {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}
.tnw-dropdown__text { flex: 1; line-height: 1.3; }

/* Scrollbar inside dropdown */
.tnw-dropdown__menu::-webkit-scrollbar { width: 6px; }
.tnw-dropdown__menu::-webkit-scrollbar-track { background: transparent; }
.tnw-dropdown__menu::-webkit-scrollbar-thumb {
    background: rgba(22, 163, 74, .25);
    border-radius: 3px;
}
.tnw-dropdown__menu::-webkit-scrollbar-thumb:hover { background: rgba(22, 163, 74, .45); }

@keyframes tnw-dd-item-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* RTL adjustments */
[dir="rtl"] .tnw-dropdown__menu { inset-inline-start: auto; inset-inline-end: 0; }

/* =============================================================
   DESKTOP HERO CONTRAST FIXES (apply everywhere, not just mobile)
   ============================================================= */
.mh-hero__eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, .94);
    color: #15803d !important;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px -3px rgba(15, 31, 26, .18);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 18px;
}
/* Title accent — solid colors, no transparent gradient */
.mh-hero__title-accent {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #15803d !important;
    color: #15803d !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 6px rgba(255, 255, 255, .25);
}
.mh-hero__slide--3 .mh-hero__title-accent {
    -webkit-text-fill-color: #1e40af !important;
    color: #1e40af !important;
}
/* Subtitle — readable card */
.mh-hero__subtitle {
    background: rgba(255, 255, 255, .88);
    padding: 14px 22px;
    border-radius: 16px;
    color: #1e293b !important;
    line-height: 1.6;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px -4px rgba(15, 31, 26, .12);
    max-width: 540px;
}
/* Title — strong dark, NO blur shadow (caused doubled-text effect) */
.mh-hero__title {
    color: #0f1f1a !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}
.mh-hero__title-accent {
    text-shadow: none !important;
}

/* =============================================================
   HIDE empty "0" cart/wishlist badges (visual noise)
   ============================================================= */
.header__actions .ps-block--user-header .ps-block__count:empty,
.header__actions a[href*="cart"] .header__count:empty,
.header__actions a[href*="wishlist"] .header__count:empty,
.header__count[data-count="0"],
.header__count.is-empty,
.header__extra span.tnw-zero-hide {
    display: none !important;
}

/* =============================================================
   NEWSLETTER section — text was black on dark green = unreadable
   ============================================================= */
.mh-newsletter,
.mh-newsletter__inner,
.ps-newsletter,
.newsletter-section,
section[class*="newsletter"] {
    color: #fff;
}
.mh-newsletter h2,
.mh-newsletter h3,
.mh-newsletter__title,
.ps-newsletter h2,
.ps-newsletter h3,
section[class*="newsletter"] h2,
section[class*="newsletter"] h3,
section[class*="newsletter"] .title {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.mh-newsletter p,
.mh-newsletter__subtitle,
.ps-newsletter p,
section[class*="newsletter"] p {
    color: rgba(255, 255, 255, .92) !important;
}

/* =============================================================
   FOOTER bottom — Product Categories list readability
   ============================================================= */
.ps-footer__bottom,
.ps-footer__links,
.footer-categories,
.footer__bottom {
    color: rgba(255, 255, 255, .85) !important;
}
.ps-footer__bottom a,
.ps-footer__links a,
.footer-categories a {
    color: rgba(255, 255, 255, .75) !important;
    transition: color .2s ease;
}
.ps-footer__bottom a:hover,
.ps-footer__links a:hover,
.footer-categories a:hover {
    color: #facc15 !important;
}
.ps-footer__bottom strong,
.ps-footer__bottom b,
.ps-footer__bottom .label {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* =============================================================
   FIX "All" dropdown trigger — remove underline / strikethrough
   ============================================================= */
.tnw-dropdown__trigger,
.tnw-dropdown__trigger:hover,
.tnw-dropdown__trigger:focus,
.tnw-dropdown__trigger:active {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
.tnw-dropdown__label {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/* "Shop by Department" — brand colors instead of red */
.menu--product-categories .menu__toggle {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #fff !important;
}
.menu--product-categories .menu__toggle i,
.menu--product-categories .menu__toggle span { color: #fff !important; }
.menu--product-categories .menu__toggle:hover {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%) !important;
}

/* =============================================================
   PANEL BACKDROP + CLOSE BUTTON
   ============================================================= */
.tnw-mh-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 26, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9000;
    pointer-events: none;
}
.tnw-mh-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
html.tnw-mh-no-scroll,
html.tnw-mh-no-scroll body { overflow: hidden !important; }

.ps-panel--sidebar { z-index: 9100 !important; }

.tnw-mh-panel__close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.tnw-mh-panel__close:hover {
    background: rgba(255, 255, 255, .28);
}
.tnw-mh-panel__close:active {
    background: rgba(255, 255, 255, .35);
    transform: scale(.92);
}
.tnw-mh-panel__close svg { display: block; }

.ps-panel__header { position: relative; padding-inline-end: 60px !important; }

/* Search panel injected header (no title) */
.tnw-mh-panel__header--injected {
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%) !important;
    min-height: 56px;
}

/* =============================================================
   SEARCH PANEL — empty state suggestions
   ============================================================= */
#search-sidebar .ps-panel__content,
#search-sidebar .navigation__content:empty {
    display: none;
}
.tnw-search-empty {
    padding: 22px 18px;
    color: var(--mh-text);
}
.tnw-search-empty__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mh-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 4px 0 12px;
}
.tnw-search-empty__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.tnw-search-empty__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--mh-green-soft);
    color: var(--mh-green-dark) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--mh-border);
    transition: all .2s;
}
.tnw-search-empty__chip:hover,
.tnw-search-empty__chip:active {
    background: linear-gradient(135deg, var(--mh-green) 0%, var(--mh-green-dark) 100%);
    color: #fff !important;
    transform: translateY(-1px);
}
.tnw-search-empty__cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.tnw-search-empty__cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: 14px;
    color: var(--mh-text) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all .25s;
}
.tnw-search-empty__cat:hover,
.tnw-search-empty__cat:active {
    border-color: var(--mh-green);
    background: var(--mh-green-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .3);
}
.tnw-search-empty__cat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-green-soft);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* =============================================================
   FOOTER PAYMENT METHODS — clean grid of badges
   ============================================================= */
.tnw-payments {
    margin-top: 18px;
    width: 100%;
}
.tnw-payments .payment-method-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 14px;
}
.tnw-payments__grid {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}
.tnw-payments__item {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 4px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
    overflow: hidden;
}
.tnw-payments__item:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}
.tnw-payments__item img {
    width: 60px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* Inline SVG payment cards (e-wallets) */
.tnw-pay-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 36px;
    border-radius: 6px;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.tnw-pay-card svg { width: 100%; height: 100%; display: block; }
.tnw-pay-card--instapay { background: linear-gradient(135deg, #0F2D5C 0%, #1E3A8A 100%); }
.tnw-pay-card--vodafone { background: linear-gradient(135deg, #E60000 0%, #B80000 100%); }
.tnw-pay-card--etisalat { background: linear-gradient(135deg, #84BD00 0%, #5C8200 100%); }
.tnw-pay-card--orange   { background: linear-gradient(135deg, #FF7900 0%, #DD6500 100%); }
.tnw-pay-card--we       { background: linear-gradient(135deg, #5C2D91 0%, #3F1F66 100%); }
.tnw-pay-card--fawry    { background: linear-gradient(135deg, #FFB300 0%, #E59500 100%); }
.tnw-pay-card--cod      { background: linear-gradient(135deg, #15803D 0%, #14532D 100%); }

@media (max-width: 480px) {
    .tnw-payments__grid { justify-content: center; }
    .tnw-payments__item img { width: 56px; height: 39px; }
    .tnw-pay-card { width: 72px; height: 32px; }
    .tnw-payments .payment-method-title { text-align: center; }
}

/* =============================================================
   COOKIE CONSENT BANNER
   ============================================================= */
.tnw-cookie {
    position: fixed;
    inset-inline: 16px;
    bottom: -120px;
    z-index: 9500;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid rgba(22, 163, 74, .2);
    border-radius: 18px;
    box-shadow: 0 16px 40px -10px rgba(15, 31, 26, .35), 0 4px 14px -4px rgba(15, 31, 26, .15);
    padding: 14px 18px;
    max-width: 640px;
    margin: 0 auto;
    transition: bottom .45s cubic-bezier(.34, 1.56, .64, 1);
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}
.tnw-cookie.is-visible {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) {
    .tnw-cookie.is-visible { bottom: 16px; }
}
.tnw-cookie__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tnw-cookie__icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: tnw-cookie-wiggle 2s ease-in-out infinite;
}
@keyframes tnw-cookie-wiggle {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-8deg); }
    75%      { transform: rotate(8deg); }
}
.tnw-cookie__msg {
    flex: 1;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
    min-width: 200px;
}
.tnw-cookie__link {
    color: #15803d;
    text-decoration: underline;
    font-weight: 600;
}
.tnw-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.tnw-cookie__btn {
    border: 0;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.tnw-cookie__btn--decline {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.tnw-cookie__btn--decline:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.tnw-cookie__btn--accept {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(22, 163, 74, .4);
}
.tnw-cookie__btn--accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -6px rgba(22, 163, 74, .5);
}
@media (max-width: 480px) {
    .tnw-cookie__inner { gap: 10px; }
    .tnw-cookie__icon { font-size: 26px; }
    .tnw-cookie__msg { font-size: 12px; }
    .tnw-cookie__btn { padding: 8px 14px; font-size: 12px; }
}

/* =============================================================
   FLOATING BUTTONS — avoid bottom nav
   ============================================================= */
@media (max-width: 768px) {
    #back2top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }
    [class*="whatsapp"][class*="float"],
    .whatsapp-button,
    .ws-float-button {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
