/* =====================================================================
   Storefront round 5. Loaded only while a round 5 switch is on; every
   rule is scoped to that switch's body class (tw-<key>), so a switch that
   is off changes nothing.
   ===================================================================== */

/* ---------- desktop_menu: one line, no icons, the rest under "আরও ▾" ---------- */
@media (min-width: 901px) {
    body.tw-desktop-menu .header-category-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        /* Room for "আরও" is measured in tw-r5.js; this keeps the row one line high. */
        min-width: 0;
    }

    /* Sprint R-A S5 ("chips_center"): centred, like the chip row under it. "safe": a row that is
       still too long (before tw-r5.js measures) starts at the left edge. */
    body.tw-desktop-menu.tw-chips-center .header-category-inner {
        justify-content: safe center;
    }

    body.tw-desktop-menu.tw-chips-center .tw-more {
        margin-left: 0;
    }

    body.tw-desktop-menu .header-cat-link {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14.5px;
    }

    body.tw-desktop-menu .header-cat-item[hidden],
    body.tw-desktop-menu .header-category-inner > .header-cat-link[hidden],
    body.tw-desktop-menu [data-tw-more-item][hidden] {
        display: none !important;
    }

    body.tw-desktop-menu .tw-more {
        margin-left: auto;
        border-right: 0;
    }

    body.tw-desktop-menu .tw-more-btn {
        background: none;
        border: 0;
        cursor: pointer;
        font-family: inherit;
        gap: 6px;
    }

    /* The last entries open their sub-menu to the left: "আরও" sits at the right edge. */
    body.tw-desktop-menu .tw-more .header-cat-dropdown {
        left: auto;
        right: 0;
    }

    body.tw-desktop-menu .tw-more .header-child-dropdown {
        left: auto;
        right: calc(100% + 4px);
    }

    body.tw-desktop-menu .tw-more.is-open > .header-cat-dropdown {
        display: block;
    }
}

/* ---------- cream_theme: a warm cream page, white cards ---------- */
body.tw-cream-theme {
    --cr-bg: #FAF6EF;
    --cr-surface: #F3EDE2;
    --cr-line: #EBE3D5;
    --cr-shadow: 0 1px 2px rgba(104, 76, 38, .05), 0 6px 18px rgba(104, 76, 38, .07);
    --cr-shadow-raise: 0 2px 6px rgba(104, 76, 38, .08), 0 14px 30px rgba(104, 76, 38, .12);
    /* Surfaces the other stylesheets already take from tokens follow along. */
    --rf-surface: var(--cr-surface);
    --rf-line: var(--cr-line);
    --border: var(--cr-line);
    /* Grey text a shade deeper, so it stays at 4.5:1 or more on the darkest cream
       (#6A7282 is 4.4:1 on "sand"). */
    --rf-muted: #5F6776;
    --muted: #5F6776;
    background: var(--cr-bg);
}

body.tw-cream-ivory { --cr-bg: #FBF8F3; --cr-surface: #F5F0E7; --cr-line: #EDE6DA; }
body.tw-cream-cream { --cr-bg: #FAF6EF; --cr-surface: #F3EDE2; --cr-line: #EBE3D5; }
body.tw-cream-sand  { --cr-bg: #F8F4EC; --cr-surface: #F1EADD; --cr-line: #E9E0D0; }

body.tw-cream-theme .app-main,
body.tw-cream-theme .site-header,
body.tw-cream-theme .header-cat-dropdown,
body.tw-cream-theme .header-child-dropdown,
body.tw-cream-theme .cart-dropdown {
    background: var(--cr-bg);
}

body.tw-cream-theme .site-header {
    border-bottom: 1px solid var(--cr-line);
}

/* The search field is the one white thing in the header, so it reads as a field. */
body.tw-cream-theme .header-search,
body.tw-cream-theme .mobile-search {
    background: #fff;
    border-color: var(--cr-line);
}

body.tw-cream-theme .header-sub-link:hover,
body.tw-cream-theme .header-child-dropdown a:hover {
    background: rgba(255, 26, 88, .06);
}

body.tw-cream-theme .product-card,
body.tw-cream-theme .product-card.twl-card {
    background: #fff;
    border: 1px solid var(--cr-line);
    box-shadow: var(--cr-shadow);
}

body.tw-cream-theme .product-card:hover {
    box-shadow: var(--cr-shadow-raise);
}

body.tw-cream-theme .product-thumb {
    background: #fff;
}

/* Small pink text (card prices) takes the deeper pink so it reads at 4.5:1 or
   more on white and on every cream; big pink fills keep #FF1A58. */
body.tw-cream-theme .twl-price strong {
    color: var(--rf-pink-700, #D6003F);
}

body.tw-cream-theme .twl-page {
    --twl-line: var(--cr-line);
    --twl-soft: var(--cr-surface);
}

body.tw-cream-theme .twl-sheet {
    background: var(--cr-bg);
}

@media (max-width: 900px) {
    body.tw-cream-theme .main-nav,
    body.tw-cream-theme .tw-dm-head,
    body.tw-cream-theme .mobile-bottom-nav,
    body.tw-cream-theme .sbn {
        background: var(--cr-bg);
    }

    body.tw-cream-theme .sbn,
    body.tw-cream-theme .mobile-bottom-nav {
        box-shadow: 0 -1px 0 var(--cr-line), 0 -4px 16px rgba(104, 76, 38, .08);
    }

    body.tw-cream-theme .tw-dm-search,
    body.tw-cream-theme .tw-dm-head .drawer-close {
        background: #fff;
    }
}

/* ---------- small shared helpers ---------- */
.tw-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- marquee: endless strips (brands, reviews, trust badges) ----------
   The track holds two identical lists and slides by exactly one list (-50%),
   so the loop has no seam. Only transform moves; nothing is laid out again. */
body.tw-marquee .tw-mq {
    --mq-gap: 14px;
    position: relative;
    overflow: hidden;
    padding: 6px 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 56px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 56px), transparent 100%);
}

body.tw-marquee .tw-mq-track {
    display: flex;
    width: max-content;
    animation: tw-mq-slide var(--mq-dur, 40s) linear infinite;
    will-change: transform;
}

body.tw-marquee .tw-mq-list {
    display: flex;
    align-items: stretch;
    gap: var(--mq-gap);
    margin: 0;
    padding: 0 var(--mq-gap) 0 0;
    list-style: none;
    flex-shrink: 0;
}

body.tw-marquee .tw-mq-item {
    flex-shrink: 0;
    display: flex;
}

@keyframes tw-mq-slide {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* Paused: under the mouse, while a link inside has keyboard focus, on touch
   (tw-r5.js), while off screen (tw-r5.js) and while the tab is hidden (tw-r5.js).
   There is no pause button (storefront hotfix, 2026-10-01). */
body.tw-marquee .tw-mq:hover .tw-mq-track,
body.tw-marquee .tw-mq:focus-within .tw-mq-track,
body.tw-marquee .tw-mq.is-touch .tw-mq-track,
body.tw-marquee .tw-mq.is-off .tw-mq-track,
body.tw-marquee .tw-mq.is-away .tw-mq-track {
    animation-play-state: paused;
}

/* "Reduce motion": no movement; the first set scrolls by hand. */
@media (prefers-reduced-motion: reduce) {
    body.tw-marquee .tw-mq {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: none;
    }

    body.tw-marquee .tw-mq-track {
        animation: none;
        padding: 0 16px;
    }

    body.tw-marquee .tw-mq-list[aria-hidden="true"],
    body.tw-marquee .tw-mq-item[data-ghost] {
        display: none;
    }
}

/* Brands: logo cards, each opens that brand's products. */
body.tw-marquee .tw-mq-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px;
    height: 92px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--cr-line, #ECEEF2);
    border-radius: 14px;
    box-shadow: var(--cr-shadow, 0 1px 2px rgba(30, 41, 57, .05));
    color: var(--rf-ink, #1E2939);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.tw-marquee .tw-mq-brand:hover,
body.tw-marquee .tw-mq-brand:focus-visible {
    border-color: var(--rf-pink, #FF1A58);
    box-shadow: var(--cr-shadow-raise, 0 6px 18px rgba(30, 41, 57, .08));
}

body.tw-marquee .tw-mq-brand img {
    width: 96px;
    height: 40px;
    object-fit: contain;
}

body.tw-marquee .tw-mq-brand span {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reviews: quote cards and screenshot cards. */
body.tw-marquee .tw-mq--reviews {
    --mq-gap: 16px;
}

body.tw-marquee .tw-mq--reviews .tw-mq-list {
    align-items: center;
}

body.tw-marquee .tw-mq-review {
    width: 272px;
    margin: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--cr-line, #ECEEF2);
    border-radius: 16px;
    box-shadow: var(--cr-shadow, 0 1px 2px rgba(30, 41, 57, .05));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.tw-marquee .tw-mq-stars {
    color: #E8A317;
    font-size: 12px;
    letter-spacing: 1px;
}

body.tw-marquee .tw-mq-review p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rf-ink, #1E2939);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

body.tw-marquee .tw-mq-review footer {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #4A5565;
}

body.tw-marquee .tw-mq-shot {
    margin: 0;
    width: 150px;
    background: #fff;
    border: 1px solid var(--cr-line, #ECEEF2);
    border-radius: 16px;
    overflow: hidden;
}

body.tw-marquee .tw-mq-shot img {
    display: block;
    width: 150px;
    height: 232px;
    object-fit: cover;
}

body.tw-marquee .tw-mq-shot figcaption {
    padding: 6px 10px;
    font-size: 12px;
    color: #4A5565;
}

/* Trust badges: one calm line of promises. */
body.tw-marquee .tw-mq--trust {
    --mq-gap: 36px;
    padding: 14px 0;
}

body.tw-marquee .tw-mq-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--rf-ink, #1E2939);
}

body.tw-marquee .tw-mq-trust > i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #FFE8EF;
    color: var(--rf-pink-700, #D6003F);
    font-size: 15px;
}

body.tw-marquee .tw-mq-trust strong {
    font-size: 14px;
    font-weight: 700;
}

body.tw-marquee .tw-mq-trust small {
    font-size: 12.5px;
    color: #4A5565;
    margin-left: 4px;
}

/* ---------- home_layout: the approved order, even spacing ---------- */
body.tw-home-layout .hl-block {
    margin-top: 28px;
}

body.tw-home-layout .hl-block.top-categories-section {
    margin-top: 20px;
}

body.tw-home-layout .hl-trust {
    margin: 36px 0 0;
    background: var(--cr-surface, #F8F9FB);
    border-top: 1px solid var(--cr-line, #ECEEF2);
    border-bottom: 1px solid var(--cr-line, #ECEEF2);
}

body.tw-home-layout .hl-trust .features-bar {
    margin: 0;
    background: transparent;
}

body.tw-home-layout .hl-trust-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

body.tw-home-layout .hl-reviews .tw-mq,
body.tw-home-layout .hl-brands .tw-mq {
    margin-top: 4px;
}

@media (min-width: 901px) {
    body.tw-home-layout .hl-block {
        margin-top: 44px;
    }
}


/* ---------- purchase_pop: the small recent-order card ----------
   Bottom-left, above whatever sits at the bottom of the screen (the bottom
   bar, the sticky buy bar): tw-r5.js measures those into --twpp-bottom. It
   stays clear of the chat and WhatsApp buttons on the right. */
.twpp {
    position: fixed;
    left: 16px;
    bottom: var(--twpp-bottom, 16px);
    z-index: 290;
    width: min(340px, calc(100vw - 104px));
    background: #fff;
    border: 1px solid var(--cr-line, #ECEEF2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 41, 57, .14), 0 1px 3px rgba(30, 41, 57, .06);
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
}

.twpp.is-shown {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.twpp[hidden] {
    display: none;
}

.twpp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 40px 10px 10px;
    color: var(--rf-ink, #1E2939);
    text-decoration: none;
    border-radius: 16px;
}

.twpp-link:focus-visible {
    outline: 2px solid var(--rf-pink-700, #D6003F);
    outline-offset: 2px;
}

.twpp-img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cr-surface, #F8F9FB);
}

.twpp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.twpp-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.twpp-kicker {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rf-pink-700, #D6003F);
    letter-spacing: .01em;
}

.twpp-kicker i {
    margin-right: 4px;
}

.twpp-product {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.twpp-meta {
    font-size: 12px;
    line-height: 1.4;
    color: #4A5565;
}

.twpp-meta b {
    color: var(--rf-ink, #1E2939);
    font-weight: 700;
}

/* Chips from real data: buyers this week, low stock. Text 6:1 on its fill. */
.twpp-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.twpp-extra[hidden] {
    display: none;
}

.twpp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #FFF0F4;
    color: #B8003A;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.twpp-chip--stock {
    background: #FFF4E5;
    color: #8A4B00;
}

.twpp-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6A7282;
    font-size: 15px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.twpp-close:hover {
    background: var(--cr-surface, #F3F4F6);
    color: var(--rf-ink, #1E2939);
}

.twpp-close:focus-visible {
    outline: 2px solid var(--rf-pink-700, #D6003F);
    outline-offset: 0;
}

@media (min-width: 901px) {
    .twpp {
        left: 24px;
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .twpp {
        transform: none;
        transition: opacity .2s linear;
    }
}

/* ---------- popup_care: the offer popup as a proper dialog ---------- */
.twpu {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.twpu[hidden] {
    display: none;
}

.twpu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 12, .55);
    opacity: 0;
    transition: opacity .25s ease;
}

.twpu-box {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(20, 16, 12, .28);
    padding: 12px 12px 14px;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
}

.twpu.is-open .twpu-backdrop,
.twpu.is-open .twpu-box {
    opacity: 1;
}

.twpu.is-open .twpu-box {
    transform: none;
}

.twpu-box:focus {
    outline: none;
}

.twpu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(20, 16, 12, .18);
    color: var(--rf-ink, #1E2939);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.twpu-close:focus-visible,
.twpu-later:focus-visible,
.twpu-btn:focus-visible,
.twpu-media:focus-visible {
    outline: 3px solid var(--rf-pink-700, #D6003F);
    outline-offset: 2px;
}

.twpu-title {
    margin: 6px 52px 10px 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--rf-ink, #1E2939);
}

.twpu-media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--cr-surface, #F8F9FB);
}

.twpu-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62vh;
    object-fit: contain;
}

.twpu-body {
    padding: 12px 6px 0;
    text-align: center;
}

.twpu-desc {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4A5565;
}

.twpu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--rf-pink, #FF1A58);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}

.twpu-foot {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #6A7282;
}

.twpu-later {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 0;
    background: none;
    color: #4A5565;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* The page behind stays still; its scrollbar width is kept so nothing shifts. */
html.twpu-lock,
html.twpu-lock body {
    overflow: hidden;
}

@media (max-width: 575px) {
    .twpu {
        align-items: flex-end;
        padding: 0;
    }

    .twpu-box {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        transform: translate3d(0, 40px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .twpu-box,
    .twpu-backdrop {
        transition: opacity .15s linear;
        transform: none;
    }
}

/* ---------- ajax_cart: slide-in mini cart, fly-to-cart, badge bounce ---------- */
/* The header's hover dropdown gives way to the drawer once the script is ready
   (without JavaScript it stays as it was). */
html.tw-mc-ready body.tw-ajax-cart .cart-dropdown {
    display: none !important;
}

.twmc {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.twmc[hidden] {
    display: none;
}

.twmc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 12, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.twmc-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--cr-bg, #fff);
    box-shadow: -12px 0 40px rgba(20, 16, 12, .18);
    transform: translate3d(100%, 0, 0);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.twmc.is-open .twmc-backdrop {
    opacity: 1;
}

.twmc.is-open .twmc-panel {
    transform: none;
}

.twmc-panel:focus {
    outline: none;
}

.twmc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 12px 12px 20px;
    border-bottom: 1px solid var(--cr-line, #ECEEF2);
}

.twmc-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--rf-ink, #1E2939);
}

.twmc-count {
    font-size: 14px;
    font-weight: 600;
    color: #6A7282;
}

.twmc-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rf-ink, #1E2939);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.twmc-close:hover {
    background: var(--cr-surface, #F3F4F6);
}

.twmc-note {
    margin: 0;
    padding: 0 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0B7A43;
}

.twmc-note:not(:empty) {
    padding: 10px 20px;
    background: #EAF7EF;
}

.twmc-items {
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px 16px;
    list-style: none;
}

.twmc-items[aria-busy="true"] {
    opacity: .6;
    pointer-events: none;
}

.twmc-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px 36px 12px 12px;
    margin: 8px 0;
    background: #fff;
    border: 1px solid var(--cr-line, #ECEEF2);
    border-radius: 14px;
}

.twmc-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cr-surface, #F8F9FB);
}

.twmc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.twmc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.twmc-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rf-ink, #1E2939);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.twmc-opt {
    font-size: 12px;
    color: #6A7282;
}

.twmc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.twmc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cr-line, #E5E7EB);
    border-radius: 999px;
    background: #fff;
}

.twmc-qty button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: var(--rf-ink, #1E2939);
    font-size: 12px;
    cursor: pointer;
}

.twmc-qty button:disabled {
    color: #C4C8CF;
    cursor: default;
}

.twmc-qty output {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.twmc-line {
    font-size: 15px;
    font-weight: 800;
    color: var(--rf-ink, #1E2939);
}

.twmc-remove {
    position: absolute;
    top: 6px;
    right: 4px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8A919C;
    cursor: pointer;
}

.twmc-remove:hover {
    color: var(--rf-pink-700, #D6003F);
    background: #FFF0F4;
}

.twmc-empty {
    padding: 48px 12px;
    text-align: center;
    color: #6A7282;
}

.twmc-empty i {
    font-size: 34px;
    color: #C4C8CF;
}

.twmc-foot {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--cr-line, #ECEEF2);
    background: #fff;
}

.twmc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
    color: #4A5565;
}

.twmc-total strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--rf-ink, #1E2939);
}

.twmc-hint {
    margin: 2px 0 12px;
    font-size: 12px;
    color: #6A7282;
}

.twmc-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 999px;
    background: var(--rf-pink, #FF1A58);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.twmc-checkout:hover {
    background: var(--rf-pink-700, #D6003F);
}

.twmc-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.twmc-links a,
.twmc-links button {
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #4A5565;
    text-decoration: none;
    cursor: pointer;
}

.twmc [data-twmc]:focus-visible,
.twmc a:focus-visible {
    outline: 2px solid var(--rf-pink-700, #D6003F);
    outline-offset: 2px;
}

.twmc-foot.is-empty .twmc-total,
.twmc-foot.is-empty .twmc-hint,
.twmc-foot.is-empty .twmc-checkout {
    display: none;
}

/* The product picture that flies to the cart (transform and opacity only). */
.twmc-fly {
    position: fixed;
    z-index: 100002;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(20, 16, 12, .25);
    pointer-events: none;
    will-change: transform, opacity;
}

body.tw-ajax-cart .twmc-bump {
    animation: twmc-bump .55s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes twmc-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .twmc-panel,
    .twmc-backdrop {
        transition: opacity .15s linear;
    }

    .twmc-panel {
        transform: none;
        opacity: 0;
    }

    .twmc.is-open .twmc-panel {
        opacity: 1;
    }

    body.tw-ajax-cart .twmc-bump {
        animation: none;
    }
}

/* ---------- instant_search: the dropdown under the search box ---------- */
/* Room between the field and the search button for the voice-search mic that
   comes later (nothing is built there yet). */
body.tw-instant-search .header-search .search-submit {
    margin-left: 32px;
}

body.tw-instant-search .header-search input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

/* The whole field already shows focus (pink border and ring), so the input's own
   box inside it is not drawn twice. */
body.tw-instant-search .header-search:focus-within input[name="keyword"] {
    outline: none;
}

/* While suggestions are open the chat button steps aside so it does not sit on
   top of them. */
html.tws-open #gcc-toggle {
    visibility: hidden;
}

.tws {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 620;
    display: flex;
    flex-direction: column;
    max-height: min(72vh, 580px);
    background: #fff;
    border: 1px solid var(--cr-line, #ececec);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(104, 76, 38, .08), 0 18px 40px rgba(104, 76, 38, .14);
    overflow: hidden;
    text-align: left;
}

.tws[hidden] {
    display: none;
}

.tws-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.tws-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0 8px;
}

.tws-note {
    margin: 0;
    padding: 10px 16px 2px;
    font-size: 13px;
    color: #5f5a54;
}

.tws-note:empty {
    display: none;
}

.tws-note b {
    color: #1d1b19;
}

.tws-top,
.tws-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #6b645c;
}

.tws-clear {
    border: 0;
    background: none;
    padding: 4px 6px;
    margin: -4px -6px;
    min-height: 28px;
    font: inherit;
    font-weight: 600;
    color: var(--rf-pink-700, #D6003F);
    cursor: pointer;
    border-radius: 6px;
}

.tws-clear:hover,
.tws-clear:focus-visible {
    text-decoration: underline;
}

.tws-p {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #1d1b19;
    text-decoration: none;
    transition: background-color .12s ease;
}

.tws-p img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--cr-surface, #f5f5f5);
}

.tws-p-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tws-p-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
}

.tws-p-name mark,
.tws-chip mark {
    background: none;
    color: inherit;
    font-weight: 700;
}

.tws-p-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--rf-pink-700, #D6003F);
}

.tws-p-price s {
    margin-left: 6px;
    font-weight: 400;
    color: #6b645c;
}

.tws-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 16px 6px;
}

.tws-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--cr-line, #e8e8e8);
    border-radius: 999px;
    background: var(--cr-bg, #fafafa);
    color: #1d1b19;
    font-size: 13px;
    text-decoration: none;
    transition: border-color .12s ease, background-color .12s ease;
}

.tws-chip i {
    font-size: 12px;
    color: #8a837b;
}

.tws-p:hover,
.tws-p.is-active {
    background: rgba(255, 26, 88, .06);
}

.tws-chip:hover,
.tws-chip.is-active {
    border-color: #FF1A58;
    background: rgba(255, 26, 88, .06);
}

.tws-p.is-active,
.tws-chip.is-active {
    outline: 2px solid #FF1A58;
    outline-offset: -2px;
}

.tws-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border-top: 1px solid var(--cr-line, #eee);
    background: var(--cr-bg, #fafafa);
    color: var(--rf-pink-700, #D6003F);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tws-all.is-active,
.tws-all:hover {
    background: rgba(255, 26, 88, .08);
}

.tws-all.is-active {
    outline: 2px solid #FF1A58;
    outline-offset: -2px;
}

.tws-state {
    margin: 0;
    padding: 18px 16px 6px;
    font-size: 14px;
    color: #5f5a54;
}

.tws.is-busy .tws-scroll {
    opacity: .6;
    transition: opacity .15s ease .12s;
}

/* On a phone the dropdown takes the screen's width, not the field's. */
@media (max-width: 900px) {
    .tws {
        position: fixed;
        top: var(--tws-top, 64px);
        left: 8px;
        right: 8px;
        max-height: calc(100vh - var(--tws-top, 64px) - 84px);
        max-height: calc(100dvh - var(--tws-top, 64px) - 84px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tws-p,
    .tws-chip,
    .tws.is-busy .tws-scroll {
        transition: none;
    }
}

/* ---------- smart_sort: one-tap sorts and a calmer, roomier listing ---------- */
body.tw-smart-sort .twl-toolbar {
    flex-wrap: wrap;
}

.twl-quick {
    order: 3;
    display: flex;
    flex: 1 1 100%;
    gap: 8px;
    margin: 2px -16px 0;
    padding: 2px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.twl-quick::-webkit-scrollbar {
    display: none;
}

.twl-quick-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--twl-line, #e8e8e8);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1d1b19);
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease;
}

.twl-quick-item:hover {
    border-color: #FF1A58;
    color: var(--text, #1d1b19);
}

.twl-quick-item.is-on {
    border-color: #FF1A58;
    background: rgba(255, 26, 88, .08);
    color: var(--rf-pink-700, #D6003F);
}

.twl-quick-item .tw-i {
    width: 14px;
    height: 14px;
}

body.tw-smart-sort .product-card.twl-card {
    border-radius: 14px;
}

body.tw-smart-sort .product-thumb.twl-thumb {
    overflow: hidden;
}

body.tw-smart-sort .product-body.twl-body {
    padding: 10px 12px 12px;
}

@media (min-width: 992px) {
    .twl-quick {
        order: 0;
        flex: 1 1 auto;
        flex-wrap: wrap;
        margin: 0 auto 0 0;
        padding: 0;
        overflow: visible;
    }

    body.tw-smart-sort .twl-toolbar {
        margin: 18px 0 16px;
    }

    body.tw-smart-sort .twl-sort-desk {
        order: 2;
    }

    body.tw-smart-sort .twl-grid {
        gap: 20px;
    }

    body.tw-smart-sort .product-body.twl-body {
        padding: 12px 14px 14px;
    }

    body.tw-smart-sort .product-title.twl-name {
        font-size: 14px;
    }

    body.tw-smart-sort .twl-price strong {
        font-size: 17px;
    }
}

/* A lift and a slow zoom on hover (transform only, pointer devices only). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.tw-smart-sort .product-card.twl-card {
        transition: transform .25s ease, box-shadow .25s ease;
    }

    body.tw-smart-sort .product-card.twl-card:hover {
        transform: translateY(-3px);
    }

    body.tw-smart-sort .twl-thumb img {
        transition: transform .45s ease;
    }

    body.tw-smart-sort .product-card.twl-card:hover .twl-thumb img {
        transform: scale(1.04);
    }
}

/* ---------- pink_button: the deeper pink ----------
   #FF1A58 with white text is 3.6:1; #E0004A is 4.9:1, so white text on every
   pink button and badge passes 4.5:1. Only the pink moves: the page, the
   cards and the small pink text (#D6003F) stay as they are. */
body.tw-pink-button {
    --rf-pink: #E0004A;
    --rf-pink-600: #C4003F;
    --primary: #E0004A;
    --primary-color: #E0004A;
    --primary-rgb: 224, 0, 74;
}

/* ---------- card_badges: small badges on the card picture (top right) ---------- */
body.tw-card-badges .product-thumb { position: relative; }
body.tw-card-badges .tw-cb {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
}
body.tw-card-badges .tw-cb-item {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff;
    background: rgba(17, 24, 39, .78);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
body.tw-card-badges .tw-cb-flash { background: linear-gradient(135deg, #E0004A, #ff4d7e); }
body.tw-card-badges .tw-cb-hot { background: linear-gradient(135deg, #f97316, #fb923c); }
body.tw-card-badges .tw-cb-free { color: #065f46; background: rgba(236, 253, 245, .95); box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .35); }
@media (max-width: 480px) {
    body.tw-card-badges .tw-cb { top: 6px; right: 6px; gap: 3px; }
    body.tw-card-badges .tw-cb-item { padding: 2px 7px; font-size: 10px; }
}

/* ---------- home_layout: the flash-sale row's countdown (on a white row) ---------- */
body.tw-home-layout .hl-flash .hs-head { flex-wrap: wrap; row-gap: 10px; column-gap: 12px; }
body.tw-home-layout .hl-timer { margin-left: auto; gap: 4px; }
body.tw-home-layout .hl-timer .timer-label { color: #6b7280; font-size: 12px; font-weight: 600; }
body.tw-home-layout .hl-timer .timer-box { background: #fff0f5; box-shadow: inset 0 0 0 1px rgba(224, 0, 74, .12); min-width: 40px; padding: 5px 3px; }
body.tw-home-layout .hl-timer .timer-box b { font-size: 16px; }
body.tw-home-layout .hl-timer .timer-box small { color: #9ca3af; text-transform: none; letter-spacing: 0; }
body.tw-home-layout .hl-timer .timer-colon { color: var(--primary, #E0004A); font-size: 16px; }
@media (max-width: 767px) {
    body.tw-home-layout .hl-timer { order: 3; flex-basis: 100%; margin-left: 0; }
    body.tw-home-layout .hl-timer .timer-label { margin-right: auto; }
}
