/* Build 3, the look switches (Admin → স্টোরফ্রন্ট ডিজাইন → সব সুইচ → চেহারা, লেআউট).
   Loaded only while at least one of them is on; every rule sits under its own body class,
   so each switch works alone and with all of them off nothing here applies. */

/* ---------- white_bg: every background pure white ---------- */
body.tw-white-bg {
    /* The cream switch reads these; white wins even with it on. */
    --cr-bg: #fff;
    --cr-surface: #fff;
    --cr-line: #ececf0;
    --rf-surface: #fff;
    --rf-pink-50: #fff;
    background: #fff;
}

body.tw-white-bg :is(.app-main, .site-header, .header-cat-dropdown, .header-child-dropdown, .cart-dropdown,
    .features-bar, .hl-trust, .twl-page, .twl-sheet, .top-categories-panel, .main-nav, .tw-dm-head, .sbn, .mobile-bottom-nav) {
    background-color: #fff;
}

body.tw-white-bg .features-bar,
body.tw-white-bg .hl-trust {
    border-color: #ececf0;
}

body.tw-white-bg :is(.header-search, .mobile-search) {
    background: #fff;
    border-color: #e3e4e8;
}

/* ---------- number_font: Roboto for digits and Latin, Hind Siliguri for Bangla ----------
   Roboto has no Bangla letters, so each Bangla character still comes from Hind Siliguri. */
body.tw-number-font,
body.tw-number-font :is(button, input, select, textarea, .product-price, .twl-price, .twl-price strong, .product-title) {
    font-family: "Roboto", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body.tw-number-font :is(.product-price, .twl-price, .product-detail-price, .hl-timer, .deal-countdown, input[type="tel"], input[type="number"]) {
    font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- focus_ring: one clean ring, no stray border beside the field ---------- */
body.tw-focus-ring :is(input, select, textarea, button, a) {
    -webkit-tap-highlight-color: transparent;
}

/* A field inside a search box: the box shows the ring, the input itself draws nothing. */
body.tw-focus-ring :is(.header-search, .mobile-search, .tw-dm-search) input,
body.tw-focus-ring :is(.header-search, .mobile-search, .tw-dm-search) input:focus,
body.tw-focus-ring :is(.header-search, .mobile-search, .tw-dm-search) input:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

body.tw-focus-ring :is(.header-search, .mobile-search, .tw-dm-search):focus-within {
    border-color: var(--primary, #e0004a);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 224, 0, 74), .16);
    outline: none;
}

/* Every other field: the border keeps its width, so nothing moves. */
body.tw-focus-ring :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):not(:is(.header-search, .mobile-search, .tw-dm-search) *):focus {
    outline: none;
    border-color: var(--primary, #e0004a);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 224, 0, 74), .16);
}

/* Keyboard users get a clear ring on everything else. */
body.tw-focus-ring :is(a, button, [tabindex], summary, input[type="checkbox"], input[type="radio"]):focus-visible {
    outline: 2px solid var(--primary, #e0004a);
    outline-offset: 2px;
}

/* ---------- wide_layout: 1440px pages, rows that fill the width ---------- */
@media (min-width: 992px) {
    body.tw-wide-layout {
        --container: 1440px;
    }

    body.tw-wide-layout .container {
        width: min(var(--container), calc(100% - 48px));
    }
}

@media (min-width: 768px) {
    /* Home rows: whole cards only, the rest one arrow or swipe away. */
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail {
        --r7-cols: 4;
        --r7-gap: 14px;
        gap: var(--r7-gap);
        grid-auto-columns: calc((100% - (var(--r7-cols) - 1) * var(--r7-gap)) / var(--r7-cols));
    }

    /* Fewer products than columns: the columns shrink to them, so the row has no empty end. */
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(4))) { --r7-cols: 3; }
}

@media (min-width: 1100px) {
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail { --r7-cols: 5; --r7-gap: 16px; }
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(5))) { --r7-cols: 4; }
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(4))) { --r7-cols: 3; }
}

@media (min-width: 1360px) {
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail { --r7-cols: 6; }
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(6))) { --r7-cols: 5; }
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(5))) { --r7-cols: 4; }
    body.tw-wide-layout :is(.hl-rail, .hs-trending) .hs-rail:not(:has(> :nth-child(4))) { --r7-cols: 3; }

    body.tw-wide-layout .twl-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Arrows on a computer for rows longer than the page is wide (tw-r7.js adds them). */
.r7-rail-wrap {
    position: relative;
}

.r7-rail-btn {
    position: absolute;
    top: calc(50% - 32px);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e3e4e8;
    background: #fff;
    color: #1e2939;
    box-shadow: 0 4px 14px rgba(30, 41, 57, .12);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.r7-rail-btn.is-prev { left: -12px; }
.r7-rail-btn.is-next { right: -12px; }
.r7-rail-btn[disabled] { opacity: 0; pointer-events: none; }
.r7-rail-btn:hover { border-color: var(--primary, #e0004a); color: var(--primary, #e0004a); }

@media (min-width: 768px) {
    .r7-rail-wrap.is-scrollable .r7-rail-btn { display: inline-flex; }
}

/* ---------- compact_spacing: less padding inside, even room between sections ---------- */
body.tw-compact-spacing {
    --r7-between: 26px;
}

@media (min-width: 768px) {
    body.tw-compact-spacing { --r7-between: 36px; }
}

body.tw-compact-spacing .app-main > :is(.hl-block, .hs-section, .product-section, .top-categories-section, .hl-trust) {
    margin-top: var(--r7-between);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

body.tw-compact-spacing .app-main > .hero-banner + * {
    margin-top: calc(var(--r7-between) * .6);
}

body.tw-compact-spacing :is(.section-head, .top-categories-head) {
    margin-bottom: 12px;
}

body.tw-compact-spacing .top-categories-panel {
    padding: 14px;
}

body.tw-compact-spacing .product-card .product-body {
    padding: 10px 10px 12px;
}

@media (max-width: 767px) {
    body.tw-compact-spacing .top-categories-panel {
        padding: 12px 10px;
    }

    body.tw-compact-spacing .product-card .product-body {
        padding: 8px 8px 10px;
    }
}

/* ---------- section_heads: bold titles with a "সব দেখুন" pill ---------- */
body.tw-section-heads :is(.section-head, .top-categories-head) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding-bottom: 0;
}

body.tw-section-heads :is(.section-head h2, .top-categories-title, .related-title) {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #111318;
    line-height: 1.3;
}

body.tw-section-heads .section-head h2::before {
    display: none;
}

body.tw-section-heads :is(.btn-view-all, .top-categories-viewall) {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--primary, #e0004a);
    background: #fff;
    color: var(--primary, #e0004a);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
}

body.tw-section-heads :is(.btn-view-all, .top-categories-viewall)::after {
    content: '→';
}

body.tw-section-heads :is(.btn-view-all, .top-categories-viewall):hover {
    background: var(--primary, #e0004a);
    color: #fff;
}

@media (min-width: 768px) {
    body.tw-section-heads :is(.section-head h2, .top-categories-title, .related-title) {
        font-size: 23px;
    }
}

/* ---------- footer_black and phone_fit: phone only ---------- */
@media (max-width: 767px) {
    /* The footer keeps the room the bottom bar needs inside its own black; nothing below it. */
    body.tw-footer-black {
        padding-bottom: 0 !important;
    }

    body.tw-footer-black .site-footer {
        padding-bottom: 0 !important;
        margin-bottom: 0;
    }

    body.tw-footer-black .site-footer .footer-bottom {
        padding-bottom: calc(14px + 72px + env(safe-area-inset-bottom, 0px));
    }

    body.tw-footer-black.tw-has-sticky .site-footer .footer-bottom {
        padding-bottom: calc(14px + var(--tw-nav-h, 60px) + 76px);
    }

    html:has(> body.tw-footer-black) {
        background: var(--copyright-bg, #0d0e11);
    }

    /* Full-bleed rows sized to the screen, not 16px past it. */
    body.tw-phone-fit nav.twl-quick {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
    }

    /* The chat button: smaller, and out of the way while the page scrolls (tw-r7.js). */
    body.tw-phone-fit #gcc-toggle {
        width: 46px;
        height: 46px;
        transition: transform .25s ease, opacity .25s ease;
    }

    body.tw-phone-fit.r7-scrolling #gcc-toggle {
        transform: translateX(72px);
        opacity: 0;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tw-phone-fit #gcc-toggle { transition: none; }
}

/* ---------- brand_text_card: a brand with no logo shows its first letter, not a broken image ---------- */
body.tw-brand-text-card .r7-brand-mono {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0f5, #ffe1eb);
    border: 1px solid #ffd0de;
    color: var(--primary, #e0004a);
    font-family: "Roboto", "Hind Siliguri", system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

body.tw-brand-text-card .r7-brand-mono--sm {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

body.tw-brand-text-card .tw-mq-brand.r7-brand-text .r7-brand-mono {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

body.tw-brand-text-card .hs-brand-card.r7-brand-text .hs-brand-logo,
body.tw-brand-text-card .brand-card.r7-brand-text .brand-card-img {
    height: 64px;
}

body.tw-brand-text-card .brand-card.r7-brand-text .brand-card-img {
    height: 56px;
}

/* ---------- carousel_motion: each strip its own direction and speed, held while touched ---------- */
body.tw-carousel-motion .tw-mq--rev .tw-mq-track {
    animation-direction: reverse;
}

/* Two rows of one block sit close, as one piece. */
body.tw-carousel-motion .tw-mq + .tw-mq {
    margin-top: -4px;
}

/* A tap on a phone leaves :hover stuck; only a real mouse pauses by hovering. */
@media (hover: none) {
    body.tw-carousel-motion.tw-marquee .tw-mq:hover:not(.is-touch):not(.is-away):not(.is-off):not(:focus-within) .tw-mq-track {
        animation-play-state: running;
    }
}

/* ---------- video_row: product names under the videos; one or two videos fill the row ---------- */
body.tw-video-row .r7-vname {
    overflow: hidden;
    color: #1e2939;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.tw-video-row .hs-cf-product:has(.r7-vname) .hs-cf-cat {
    display: none;
}

/* One or two videos: side by side, each with its product beside it, no empty stage. */
body.tw-video-row .hs-cf[data-cf-static] {
    height: auto;
    max-width: none;
    padding: 4px 16px 10px;
}

body.tw-video-row .hs-cf[data-cf-static] .hs-cf-stage {
    position: static;
    display: flex;
    gap: 16px;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

body.tw-video-row .hs-cf[data-cf-static] .hs-cf-card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(78vw, 300px);
    width: auto;
    margin: 0;
    scroll-snap-align: center;
    opacity: 1;
    transform: none;
}

body.tw-video-row .hs-cf[data-cf-static] .hs-cf-arrow {
    display: none;
}

@media (min-width: 768px) {
    body.tw-video-row .hs-cf[data-cf-static] {
        max-width: 1440px;
        margin: 0 auto;
    }

    /* A computer: the video on the left, its product large on the right. */
    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-card {
        flex: 1 1 0;
        max-width: 640px;
        display: grid;
        grid-template-columns: 270px minmax(0, 1fr);
        box-shadow: 0 6px 22px rgba(30, 41, 57, .1);
        border: 1px solid #ececf0;
    }

    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-product {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 14px;
        padding: 24px;
    }

    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-product img {
        flex: 0 0 auto;
        width: 140px;
        height: 140px;
        border-radius: 14px;
    }

    body.tw-video-row .hs-cf[data-cf-static] .r7-vname {
        font-size: 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-price {
        font-size: 19px;
    }

    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-info {
        flex: 0 0 auto;
        gap: 8px;
    }

    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-product {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    body.tw-video-row .hs-cf[data-cf-static] .hs-cf-card:only-child {
        max-width: 960px;
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

/* ---------- product_accordion: one section under another on every screen, each opening from a faded preview ---------- */
body.tw-product-accordion .tw-info .tw-tabs {
    display: none;
}

body.tw-product-accordion .tw-info .tw-panel,
body.tw-product-accordion .tw-info .product-reviews.tw-panel {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ececf0;
    border-radius: 14px;
    background: #fff;
}

body.tw-product-accordion .tw-info .tw-panel-head {
    display: block;
}

body.tw-product-accordion .tw-info .tw-acc {
    min-height: 54px;
    padding: 0 18px;
    font-size: 17px;
}

body.tw-product-accordion .tw-info .tw-acc:focus-visible,
body.tw-product-accordion .tw-info .r7-more:focus-visible {
    outline: 2px solid var(--primary, #e0004a);
    outline-offset: 2px;
}

/* Closed: the first lines show, fading out; open: all of it. */
body.tw-product-accordion .tw-info .tw-panel-body {
    display: block;
    position: relative;
    max-height: 8.6em;
    overflow: hidden;
}

body.tw-product-accordion .tw-info .tw-panel-body > * {
    overflow: visible;
    visibility: visible;
}

body.tw-product-accordion .tw-info .tw-panel-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5em;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

body.tw-product-accordion .tw-info .tw-panel.is-open > .tw-panel-body,
body.tw-product-accordion .tw-info .tw-panel.r7-short > .tw-panel-body {
    max-height: none;
}

body.tw-product-accordion .tw-info .tw-panel.is-open > .tw-panel-body::after,
body.tw-product-accordion .tw-info .tw-panel.r7-short > .tw-panel-body::after,
body.tw-product-accordion .tw-info .tw-panel.r7-short > .r7-more {
    display: none;
}

body.tw-product-accordion .tw-info .tw-panel .pd-content,
body.tw-product-accordion .tw-info .product-reviews .tw-panel-body > div {
    padding: 0 18px 6px;
}

body.tw-product-accordion .tw-info .r7-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 18px 16px;
    min-height: 40px;
    padding: 6px 18px;
    border: 1.5px solid var(--primary, #e0004a);
    border-radius: 999px;
    background: #fff;
    color: var(--primary, #e0004a);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.tw-product-accordion .tw-info .r7-more::after {
    content: "▾";
    font-size: 12px;
}

body.tw-product-accordion .tw-info .r7-more[aria-expanded="true"]::after {
    content: "▴";
}

body.tw-product-accordion .tw-info .r7-more:hover {
    background: var(--primary, #e0004a);
    color: #fff;
}

@media (min-width: 992px) {
    body.tw-product-accordion .tw-info .r7-more {
        display: inline-flex;
        margin-left: 28px;
    }

    body.tw-product-accordion .tw-info .tw-panel .pd-content,
    body.tw-product-accordion .tw-info .product-reviews .tw-panel-body > div {
        padding: 0 28px 6px;
    }
}

/* ---------- cart_drawer_fit: the side cart takes most of a phone, never all of it ---------- */
@media (max-width: 767px) {
    body.tw-cart-drawer-fit .twmc-panel {
        width: min(380px, 85vw);
    }

    body.tw-cart-drawer-fit .twmc-backdrop {
        background: rgba(17, 17, 17, .55);
    }
}

/* ---- banner_v2: the slider keeps one shape (3:1 on a computer, 3:2 on a phone when a slide
   has a phone picture) so nothing jumps; single banners keep their own shape, never cropped;
   a slide with no phone picture sits whole on white instead of being cut. ---- */
body.tw-banner-v2 .bn2-picture,
body.tw-banner-v2 .bn2-link {
    display: block;
}

body.tw-banner-v2 .bn2-hero .hero-img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1920 / 640;
    object-fit: cover;
    object-position: center;
    background: #fff;
}

body.tw-banner-v2 .promo-section {
    padding: 10px 0;
}

@media (max-width: 767px) {
    body.tw-banner-v2 .bn2-hero--phone .hero-img {
        aspect-ratio: 3 / 2;
    }

    body.tw-banner-v2 .bn2-hero--phone .hero-img.bn2-desk-only {
        object-fit: contain;
    }

    body.tw-banner-v2 .promo-section {
        padding: 8px 0;
    }
}

/* ---- clean_cards: a white card, one "অফার" ribbon, the brand small above a two-line name,
   the old price struck and the new one pink, slimmer buttons; the other picture badges hide. ---- */
body.tw-clean-cards .product-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
}

body.tw-clean-cards .product-card:hover {
    border-color: #f5c4d5;
}

body.tw-clean-cards .product-thumb {
    background: #fff;
}

body.tw-clean-cards .product-thumb img {
    border-radius: 12px 12px 0 0;
}

body.tw-clean-cards .product-card .deal-badge,
body.tw-clean-cards .product-card .twl-off,
body.tw-clean-cards .product-card .twl-save,
body.tw-clean-cards .product-card .tw-cb {
    display: none !important;
}

body.tw-clean-cards .cc-ribbon {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 3;
    padding: 4px 12px 4px 9px;
    border-radius: 0 999px 999px 0;
    background: var(--primary, #e0004a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
}

body.tw-clean-cards .product-card .product-body {
    text-align: left;
    padding: 10px 10px 12px;
}

body.tw-clean-cards .cc-brand {
    display: block;
    margin: 0 0 2px;
    overflow: hidden;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.tw-clean-cards .product-card .product-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.tw-clean-cards .product-card .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    margin: 0 0 8px;
    color: var(--primary, #e0004a);
    font-size: 15px;
    font-weight: 700;
}

body.tw-clean-cards .product-card .product-price strong {
    color: var(--primary, #e0004a);
}

body.tw-clean-cards .product-card .product-price del {
    order: 2;
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 400;
}

body.tw-clean-cards .product-card .product-actions {
    gap: 6px;
}

body.tw-clean-cards .product-card .btn-order {
    padding: 7px 0;
    border-radius: 999px;
    font-size: 12.5px;
    text-transform: none;
}

body.tw-clean-cards .product-card .btn-cart {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

/* ---------- home_builder: the admin's own home blocks ---------- */
body.tw-home-builder .hb-block .hb-head { align-items: center; }

body.tw-home-builder .hb-scroll { position: relative; }

body.tw-home-builder .hb-track {
    --hb-gap: 12px;
    --hb-peek: 1.15;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--hb-gap)) / var(--hb-peek));
    gap: var(--hb-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

body.tw-home-builder .hb-track::-webkit-scrollbar { display: none; }

body.tw-home-builder .hb-track > * { scroll-snap-align: start; min-width: 0; }

body.tw-home-builder .hb-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    color: #1e2939;
    text-decoration: none;
    border: 1px solid #f0f0f3;
}

body.tw-home-builder .hb-card:focus-visible { outline: 2px solid var(--primary, #e0004a); outline-offset: 2px; }

body.tw-home-builder .hb-pic, body.tw-home-builder .hb-pic img { display: block; width: 100%; }
body.tw-home-builder .hb-pic img { height: 100%; object-fit: cover; background: #f7f7f8; }

/* Brand offer cards: tall picture, logo, a big offer line. */
body.tw-home-builder .hb-brand-offer .hb-track { --hb-peek: 1.6; }
body.tw-home-builder .hb-bo-media { display: block; aspect-ratio: 4 / 5; background: #f7f7f8; }
body.tw-home-builder .hb-bo-media .hb-pic { height: 100%; }
body.tw-home-builder .hb-bo-body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 10px 12px; text-align: center; }
body.tw-home-builder .hb-bo-logo { height: 30px; width: auto; max-width: 70%; object-fit: contain; }
body.tw-home-builder .hb-bo-name { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
body.tw-home-builder .hb-bo-offer { font-size: 18px; font-weight: 800; color: var(--primary, #e0004a); line-height: 1.25; }
body.tw-home-builder .hb-bo-sub { font-size: 12.5px; color: #6b7280; }

/* Circle tiles in a soft box. */
body.tw-home-builder .hb-circles-box { background: var(--hb-bg, #fdf2f6); border-radius: 16px; padding: 14px 12px 16px; }
body.tw-home-builder .hb-circles-row { display: grid; grid-template-columns: repeat(min(var(--hb-n), 3), minmax(0, 1fr)); gap: 14px 10px; }
body.tw-home-builder .hb-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #1e2939; text-decoration: none; }
body.tw-home-builder .hb-circle-pic { width: min(100%, 96px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(30, 41, 57, .08); }
body.tw-home-builder .hb-circle-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tw-home-builder .hb-circle-label { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
body.tw-home-builder .hb-circle:focus-visible .hb-circle-pic { outline: 2px solid var(--primary, #e0004a); outline-offset: 3px; }

/* Wide banner cards. */
body.tw-home-builder .hb-wide .hb-track { --hb-peek: 1.12; }
body.tw-home-builder .hb-wide-card .hb-pic { aspect-ratio: 3 / 2; }
body.tw-home-builder .hb-wide-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
body.tw-home-builder .hb-wide-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
body.tw-home-builder .hb-wide-sub { font-size: 13px; color: var(--primary, #e0004a); font-weight: 700; }
body.tw-home-builder .hb-wide-btn { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--primary, #e0004a); color: #fff; font-size: 12.5px; font-weight: 700; }

/* Brand cards. */
body.tw-home-builder .hb-brand-cards .hb-track { --hb-peek: 1.7; }
body.tw-home-builder .hb-bc-card .hb-pic { aspect-ratio: 32 / 21; }
body.tw-home-builder .hb-bc-name { padding: 8px 10px 10px; font-size: 13px; font-weight: 700; text-align: center; }

/* A banner place between two rows. */
body.tw-home-builder .hb-banner-list { display: grid; gap: 12px; }
body.tw-home-builder .hb-banner-link { display: block; border-radius: 12px; overflow: hidden; }
body.tw-home-builder .hb-banner-img, body.tw-home-builder .hb-banner-link img { display: block; width: 100%; height: auto; }

/* Arrows on a computer (tw-r7.js shows them when a row is longer than the page). */
body.tw-home-builder .hb-arrow {
    position: absolute;
    top: calc(50% - 20px);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e3e4e8;
    background: #fff;
    color: #1e2939;
    box-shadow: 0 4px 14px rgba(30, 41, 57, .12);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
body.tw-home-builder .hb-prev { left: -12px; }
body.tw-home-builder .hb-next { right: -12px; }
body.tw-home-builder .hb-arrow[disabled] { opacity: 0; pointer-events: none; }
body.tw-home-builder .hb-arrow:hover, body.tw-home-builder .hb-arrow:focus-visible { border-color: var(--primary, #e0004a); color: var(--primary, #e0004a); }

@media (min-width: 768px) {
    body.tw-home-builder .hb-track { --hb-gap: 16px; --hb-cols: min(var(--hb-n), var(--hb-max, 3)); grid-auto-columns: calc((100% - (var(--hb-cols) - 1) * var(--hb-gap)) / var(--hb-cols)); }
    body.tw-home-builder .hb-wide .hb-track { --hb-max: 2; }
    body.tw-home-builder .hb-wide-card .hb-pic { aspect-ratio: 2 / 1; }
    body.tw-home-builder .hb-circles-box { padding: 20px 24px 22px; }
    body.tw-home-builder .hb-circles-row { grid-template-columns: repeat(var(--hb-n), minmax(0, 1fr)); }
    body.tw-home-builder .hb-circle-pic { width: min(100%, 132px); }
    body.tw-home-builder .hb-circle-label { font-size: 14px; }
    body.tw-home-builder .hb-banner-list:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.tw-home-builder .hb-banner-list:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.tw-home-builder .hb-scroll.is-scrollable .hb-arrow:not([hidden]) { display: inline-flex; }
}

@media (min-width: 1200px) {
    body.tw-home-builder .hb-brand-offer .hb-track { --hb-max: 5; }
    body.tw-home-builder .hb-brand-cards .hb-track { --hb-max: 4; }
    body.tw-home-builder .hb-bo-offer { font-size: 20px; }
}

/* ---------- offer_chips: a row of offer and campaign chips under the header ---------- */
body.tw-offer-chips .oc-row { background: #fff; border-top: 1px solid #f3f4f6; }
body.tw-offer-chips .oc-track,
body.tw-all-categories-page .oc-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 8px;
    padding-bottom: 8px;
}
body.tw-offer-chips .oc-track::-webkit-scrollbar,
body.tw-all-categories-page .oc-track::-webkit-scrollbar { display: none; }
body.tw-offer-chips .oc-chip,
body.tw-all-categories-page .oc-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 14px;
    border: 1px solid #f9c6d8;
    border-radius: 999px;
    background: #fff5f9;
    color: #9d174d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
body.tw-offer-chips .oc-chip:hover,
body.tw-offer-chips .oc-chip.is-active,
body.tw-all-categories-page .oc-chip:hover,
body.tw-all-categories-page .oc-chip.is-active { background: var(--primary, #e0004a); border-color: var(--primary, #e0004a); color: #fff; }
body.tw-offer-chips .oc-chip:focus-visible,
body.tw-all-categories-page .oc-chip:focus-visible { outline: 2px solid var(--primary, #e0004a); outline-offset: 2px; }

/* ---------- all_categories_page: /categories ---------- */
body.tw-all-categories-page .acp-page { padding: 12px 0 32px; background: #fff; }
body.tw-all-categories-page .oc-row--inline { margin-bottom: 4px; }
body.tw-all-categories-page .acp-title { font-size: 20px; font-weight: 800; margin: 6px 0 14px; }
body.tw-all-categories-page .acp-part { padding: 14px 0 16px; border-top: 1px solid #f1f1f4; }
body.tw-all-categories-page .acp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.tw-all-categories-page .acp-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
body.tw-all-categories-page .acp-pill {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--primary, #e0004a);
    color: var(--primary, #e0004a);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
body.tw-all-categories-page .acp-pill:hover { background: var(--primary, #e0004a); color: #fff; }
body.tw-all-categories-page .acp-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
body.tw-all-categories-page .acp-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #1e2939; text-decoration: none; text-align: center; }
body.tw-all-categories-page .acp-pic {
    width: 100%;
    max-width: 88px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fdf2f6;
    display: grid;
    place-items: center;
}
body.tw-all-categories-page .acp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tw-all-categories-page .acp-mono { font-size: 26px; font-weight: 800; color: var(--primary, #e0004a); }
body.tw-all-categories-page .acp-name { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tw-all-categories-page .acp-tile:focus-visible .acp-pic { outline: 2px solid var(--primary, #e0004a); outline-offset: 3px; }
body.tw-all-categories-page .acp-empty { color: #6b7280; }

@media (min-width: 768px) {
    body.tw-all-categories-page .acp-tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 14px; }
    body.tw-all-categories-page .acp-pic { max-width: 104px; }
    body.tw-all-categories-page .acp-name { font-size: 13px; }
    body.tw-all-categories-page .acp-title { font-size: 24px; }
}

/* ---------- small_category_tiles: smaller home category tiles (category-menu-slider.js shows more) ---------- */
body.tw-small-category-tiles .category-menu-card { height: 150px; }

@media (max-width: 900px) {
    body.tw-small-category-tiles .category-menu-card { height: 128px; }
}

@media (max-width: 520px) {
    body.tw-small-category-tiles .category-menu-card { height: 112px; }
    body.tw-small-category-tiles .category-menu-label { bottom: 6px; padding: 4px 6px; }
    body.tw-small-category-tiles .category-menu-name { font-size: 12px; }
    body.tw-small-category-tiles .category-menu-count { display: none; }
}

/* ---------- free_gift: the cart line at ৳0 or the "আর ৳X কিনলে" hint, the gift page, the home block ---------- */
body.tw-free-gift .fg-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px dashed #f3b5cb;
    border-radius: 12px;
    background: #fff7fa;
    color: #1f2937;
    list-style: none;
}
body.tw-free-gift .fg-box.is-earned { border-style: solid; border-color: #f3b5cb; background: #fff0f5; }
body.tw-free-gift .fg-drawer { margin: 10px 12px; }
body.tw-free-gift .fg-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; object-fit: cover; background: #fff; }
body.tw-free-gift .fg-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary, #e0004a);
    color: #fff;
}
body.tw-free-gift .fg-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.tw-free-gift .fg-tag { font-size: 12px; font-weight: 700; color: var(--primary, #e0004a); }
body.tw-free-gift .fg-hint { font-size: 13px; font-weight: 600; }
body.tw-free-gift .fg-hint b { color: var(--primary, #e0004a); }
body.tw-free-gift .fg-name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tw-free-gift .fg-bar { display: block; height: 6px; margin-top: 4px; border-radius: 99px; background: #fbd5e3; overflow: hidden; }
body.tw-free-gift .fg-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--primary, #e0004a); }
body.tw-free-gift .fg-price { flex: 0 0 auto; text-align: right; font-size: 13px; }
body.tw-free-gift .fg-price s { display: block; color: #9ca3af; font-size: 12px; }
body.tw-free-gift .fg-price b { color: var(--primary, #e0004a); font-size: 15px; }
body.tw-free-gift .fg-more { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--primary, #e0004a); text-decoration: underline; text-underline-offset: 3px; }

body.tw-free-gift .fgp-page { padding: 18px 0 40px; background: #fff; }
body.tw-free-gift .fgp-head h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
body.tw-free-gift .fgp-head p { color: #4b5563; margin: 0 0 14px; }
body.tw-free-gift .fgp-cart { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #fff7fa; border: 1px dashed #f3b5cb; }
body.tw-free-gift .fgp-cart.is-earned { border-style: solid; background: #effaf3; border-color: #9fdcb5; }
body.tw-free-gift .fgp-cart b { color: var(--primary, #e0004a); }
body.tw-free-gift .fgp-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.tw-free-gift .fgp-card { display: flex; flex-direction: column; border: 1px solid #f1f1f4; border-radius: 14px; overflow: hidden; background: #fff; }
body.tw-free-gift .fgp-pic { position: relative; display: block; aspect-ratio: 1; background: #fafafa; }
body.tw-free-gift .fgp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tw-free-gift .fgp-free,
body.tw-free-gift .hb-gift-free {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--primary, #e0004a);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
body.tw-free-gift .fgp-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
body.tw-free-gift .fgp-name { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tw-free-gift .fgp-worth { font-size: 12px; color: #6b7280; }
body.tw-free-gift .fgp-rule { font-size: 13px; font-weight: 600; color: var(--primary, #e0004a); }
body.tw-free-gift .fgp-meta { font-size: 12px; color: #6b7280; }
body.tw-free-gift .fgp-note { font-size: 13px; color: #4b5563; }
body.tw-free-gift .fgp-empty { text-align: center; padding: 36px 12px; color: #4b5563; }
body.tw-free-gift .fgp-empty > i { font-size: 36px; color: var(--primary, #e0004a); }
body.tw-free-gift .fgp-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 99px;
    background: var(--primary, #e0004a);
    color: #fff;
    font-weight: 700;
}
body.tw-free-gift .fgp-btn:hover { color: #fff; filter: brightness(.95); }

body.tw-free-gift .hb-gift-card { display: flex; flex-direction: column; gap: 4px; color: #1f2937; }
body.tw-free-gift .hb-gift-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fafafa; }
body.tw-free-gift .hb-gift-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tw-free-gift .hb-gift-name { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tw-free-gift .hb-gift-rule { font-size: 12px; font-weight: 600; color: var(--primary, #e0004a); }

@media (min-width: 768px) {
    body.tw-free-gift .fgp-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
    body.tw-free-gift .fgp-head h1 { font-size: 26px; }
}
/* free_gift: gift cards stay product-card sized, two and a peek on phones, up to five a row on computers */
body.tw-free-gift .hb-gifts .hb-track { --hb-peek: 2.3; }
@media (min-width: 768px) { body.tw-free-gift .hb-gifts .hb-track { --hb-max: 5; } }
body.tw-free-gift .ck-products + .fg-checkout { margin: 8px 16px 0; }
