/* Creative Goods BD — "Design 4": black / red / white — the original
   CreativeGoods brand identity applied to the design-2 layout patterns.
   Crisp white background, black structural bands (nav/hero/footer),
   red CTAs/prices/badges. Design 2 = _design2-backup.css,
   Design 3 (masjid.life green+gold) = _design3-backup.css. */

:root {
    --orange: #e11d48;      /* brand red (CTAs, prices) */
    --orange-dark: #be123c;
    --orange-soft: #fff1f2;
    --green-deep: #111111;  /* black structural bands */
    --green: #16a34a;       /* functional success/zone text only */
    --green-badge: #e11d48; /* Save% badges join the red family */
    --red: #dc2626;
    --ink: #111111;
    --gray: #6b7280;
    --cream: #ffffff;
    --card: #ffffff;
    --border: #e5e7eb;
    --amber: #d97706;
    --radius: 14px;
    --shadow: 0 2px 14px rgba(0, 0, 0, .09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 14px; }

/* ── Trust bar (green = COD trust) ─────────────────────── */
.trust-bar {
    background: var(--green-deep);
    color: #e5e5e5;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
}
.trust-bar-track {
    display: inline-flex;
    gap: 52px;
    padding: 7px 0;
    animation: marquee 18s linear infinite;
}
.trust-bar-track span { padding-left: 24px; }
@keyframes marquee {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo { font-size: 22px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.logo-black { color: var(--ink); }
.logo-red { color: var(--orange); }

.header-search {
    flex: 1;
    display: flex;
    max-width: 520px;
}
.header-search input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 999px 0 0 999px;
    padding: 9px 18px;
    font-size: 14px;
    background: #f6f6f6;
    min-width: 0;
}
.header-search input:focus { outline: none; border-color: var(--orange); }
.header-search button {
    border: none;
    background: var(--orange);
    color: #fff;
    border-radius: 0 999px 999px 0;
    padding: 0 18px;
    font-size: 16px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-icon { position: relative; font-size: 21px; display: flex; align-items: center; }
.cart-badge {
    position: absolute;
    top: -7px; right: -10px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; }

/* Category nav — deep green bar like the BD grocery leaders */
.category-nav { background: var(--green-deep); }
.category-menu {
    display: flex;
    gap: 2px;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-menu::-webkit-scrollbar { display: none; }
.category-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: #d4d4d4;
}
.category-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 28px 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 3px;
    border-radius: 3px;
    background: var(--orange);
}
.section-title .accent { color: var(--orange); }
.see-all { font-size: 13px; color: var(--orange); font-weight: 700; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    background: linear-gradient(115deg, #111 0%, #1e1e1e 70%, #2a2a2a 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 24px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(230, 57, 70, .22);
}
.hero h1 { font-size: 27px; line-height: 1.3; margin-bottom: 8px; position: relative; }
.hero p { color: #d4d4d4; font-size: 15px; margin-bottom: 18px; position: relative; }

.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    transition: background .15s;
    text-align: center;
    position: relative;
}
.btn:hover { background: var(--orange-dark); }
.btn-block { display: block; width: 100%; }
.btn-outline {
    background: #fff;
    color: var(--orange);
    border: 1.5px solid var(--orange);
}
.btn-outline:hover { background: var(--orange-soft); }
.btn-lg { font-size: 17px; padding: 14px 24px; }

/* ── Product grid & cards ──────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .card-img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #f5f1ea; }
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price-now { color: var(--orange); font-weight: 700; font-size: 18px; }
.price-was { color: var(--gray); font-size: 13px; text-decoration: line-through; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 6px; }

.badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--green-badge);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 2;
}
.badge-hot { background: #111; }
.badge-stock { background: var(--amber); }

/* ── Countdown ─────────────────────────────────────────── */
.countdown {
    display: inline-flex;
    gap: 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.countdown .unit {
    background: var(--green-deep);
    color: #fff;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 13px;
}

/* ── Combo cards ───────────────────────────────────────── */
.combo-card {
    border: 1.5px dashed var(--orange);
    border-radius: var(--radius);
    padding: 15px;
    background: var(--orange-soft);
}
.combo-card h3 { font-size: 15px; margin-bottom: 6px; }
.combo-items { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.combo-save { color: var(--green); font-weight: 700; font-size: 13px; }

/* ── Testimonials — auto-scrolling marquee (like the old site) ── */
.testimonial-scroller { overflow: hidden; }
.testimonial-track {
    display: flex;
    width: max-content;
    animation: review-scroll 45s linear infinite;
}
.testimonial-scroller:hover .testimonial-track { animation-play-state: paused; }
@keyframes review-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.testimonial {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    background: var(--card);
    width: 280px;
    flex-shrink: 0;
    margin-right: 14px; /* margin (not gap) keeps the -50% loop seamless */
    display: flex;
    flex-direction: column;
}
.testimonial .stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }
.testimonial .stars .verified { color: var(--gray); font-size: 11px; letter-spacing: 0; margin-left: 6px; font-weight: 600; }
.testimonial p { font-size: 14px; margin: 8px 0; }
.testimonial .who { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-top: auto; }
.testimonial .who span { color: var(--gray); font-weight: 400; }
.testimonial .who .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--green-deep);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Trust badges strip ────────────────────────────────── */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
}
.trust-item .ic { font-size: 22px; }

/* ── Product page ──────────────────────────────────────── */
.product-layout { display: grid; gap: 22px; padding: 20px 0; }
.product-layout > div { min-width: 0; }
@media (min-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.gallery-main {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    background: #fff;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
}
.gallery-thumbs img.active { border-color: var(--orange); }

.p-title { font-size: 20px; line-height: 1.35; font-weight: 400; }
.p-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.p-rating-stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; }
.p-rating-value { font-weight: 700; }
.p-rating-count { color: var(--gray); }
.p-price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.p-price { font-size: 30px; font-weight: 700; color: var(--orange); }
.p-price-was { font-size: 17px; color: var(--gray); text-decoration: line-through; }
.p-save {
    background: #dcfce7; color: var(--green);
    font-size: 13px; font-weight: 700;
    padding: 2px 10px; border-radius: 999px;
}
.p-stock { font-size: 14px; color: var(--amber); font-weight: 600; margin-bottom: 8px; }
.p-delivery-info {
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    margin: 12px 0;
}
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.qty-control button {
    background: #f3f3f3;
    border: none;
    width: 38px; height: 40px;
    font-size: 18px;
    font-weight: 700;
}
.qty-control input {
    width: 46px; height: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
}
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

/* ── Sticky bottom order bar (regular product pages) ── */
.sticky-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    transform: translateY(100%);
    transition: transform .25s ease;
}
.sticky-buy-bar.show { transform: translateY(0); }
.sticky-buy-bar-info { display: flex; align-items: center; gap: 10px; }
.sticky-buy-bar-info img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.sticky-buy-bar-info strong { font-size: 16px; }
.sticky-buy-bar-info span { font-size: 11px; color: var(--green); font-weight: 700; margin-left: 6px; }

.p-description {
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 30px;
}
.p-description h2 { font-size: 18px; margin-bottom: 10px; }
.p-description :is(p, li) { font-size: 15px; color: #3d4a42; margin-bottom: 8px; }
.p-description img { border-radius: 10px; }

/* ── Collapsible info sections (পণ্যের বিবরণ / বিশেষ বৈশিষ্ট্য / সাধারণ
   প্রশ্নোত্তর / ডেলিভারি ও পেমেন্ট) — same accordion on every product page ── */
.p-accordion { margin-bottom: 30px; }
.p-accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.p-accordion-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p-accordion-item summary::-webkit-details-marker { display: none; }
.p-accordion-plus { color: var(--orange); font-size: 22px; font-weight: 700; line-height: 1; transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.p-accordion-item[open] .p-accordion-plus { transform: rotate(45deg); }
.p-accordion-body { padding: 0 18px 18px; }
.p-accordion-body :is(p, li) { font-size: 15px; color: #3d4a42; margin-bottom: 8px; }
.p-accordion-body :is(h2, h3, h4) { font-size: 15px; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
.p-accordion-body :is(h2, h3, h4):first-child { margin-top: 0; }
.p-accordion-body b, .p-accordion-body strong { font-weight: 700; }
.p-accordion-body img { border-radius: 10px; }

.p-feature-checklist { list-style: none; }
.p-feature-checklist li { display: flex; gap: 8px; align-items: flex-start; }
.p-check { color: var(--green); font-weight: 700; flex-shrink: 0; }

.p-faq-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.p-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.p-faq-q { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.p-faq-a { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── Feature blocks ("why this product" grid, admin-editable) ─────── */
.feature-blocks-section { margin: 24px 0 30px; }
.feature-blocks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}
@media (min-width: 620px) { .feature-blocks-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-block-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--card);
}
.feature-block-card .fb-photo {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    display: block;
}
.fb-icon-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}
.feature-block-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-block-card p { font-size: 13px; color: var(--gray); line-height: 1.5; margin: 0; }

/* ── Numbered variant of the feature grid ("WHY CHOOSE" style) ─────── */
.fb-number-badge {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--green-deep);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* ── Visual block builder — free-form description content ──────────── */
.desc-block-heading { margin: 26px 0 16px; }
.desc-block-text { font-size: 15px; line-height: 1.7; margin: 16px 0; }
.desc-block-text :is(p, li) { margin-bottom: 8px; }
.desc-block-text img { border-radius: 10px; max-width: 100%; }

.desc-block-image { margin: 20px 0; text-align: center; }
.desc-block-image img { max-width: 100%; border-radius: var(--radius); }
.desc-block-image figcaption { font-size: 13px; color: var(--gray); margin-top: 8px; }

.desc-block-image-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    align-items: center;
}
@media (min-width: 700px) {
    .desc-block-image-text { flex-direction: row; }
    .desc-block-image-text.side-right { flex-direction: row-reverse; }
}
.desc-block-image-text .dit-photo { flex: 1; min-width: 0; }
.desc-block-image-text .dit-photo img { width: 100%; border-radius: var(--radius); display: block; }
.desc-block-image-text .dit-content { flex: 1; min-width: 0; }
.desc-block-image-text .dit-content h3 { font-size: 18px; margin-bottom: 8px; }
.desc-block-image-text .dit-content div { font-size: 15px; line-height: 1.7; color: #3d4a42; }

.desc-block-divider { border-top: 1px solid var(--border); margin: 28px 0; }

/* ── Forms ─────────────────────────────────────────────── */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-group :is(input, textarea, select) {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
.form-group :is(input, textarea, select):focus { outline: 2px solid var(--orange); border-color: transparent; }
.form-error { color: var(--red); font-size: 13px; margin-top: 4px; }
.alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 14px;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Cart & checkout ───────────────────────────────────── */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; background: #fff; }
.cart-item .ci-title { font-size: 14px; font-weight: 600; flex: 1; }
.cart-item .ci-price { font-weight: 700; color: var(--orange); white-space: nowrap; }
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 6px 0;
}
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--green-deep); margin-top: 6px; padding-top: 10px; }
.zone-note { font-size: 13px; color: var(--green); font-weight: 600; }

.checkout-layout { display: grid; gap: 18px; padding: 20px 0 40px; }
@media (min-width: 860px) { .checkout-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }

/* ── Buy Now modal ─────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(16, 41, 28, .6);
    z-index: 60;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 700px) { .modal-backdrop { align-items: center; } }
.modal-backdrop.open { display: flex; }
.modal {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    max-height: 92vh;
    overflow-y: auto;
}
@media (min-width: 700px) { .modal { border-radius: 16px; } }
.modal h3 { font-size: 18px; margin-bottom: 12px; }
.modal-close { float: right; background: none; border: none; font-size: 20px; color: var(--gray); }

/* ── Video preview popup (small preview box + modal) ─────── */
#gallery-stage { position: relative; }
.video-pop-preview {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 5;
    width: 72px; height: 72px;
    border: 2.5px solid #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: #000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    cursor: pointer;
}
.video-pop-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-pop-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 19px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.video-pop-play::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9px;
    animation: video-pop-pulse 1.8s ease-in-out infinite;
}
.video-pop-tag {
    position: absolute;
    left: 4px; bottom: 4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}
@keyframes video-pop-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
    50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}
#video-modal.modal-backdrop {
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    padding: 20px;
}
.video-modal {
    position: relative;
    width: auto;
    max-width: none;
    max-height: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}
.video-modal .modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(0, 0, 0, .55); color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    float: none; display: flex; align-items: center; justify-content: center;
}
.video-modal-frame {
    position: relative;
    height: min(85vh, 700px);
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 90vw;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Floating elements (both BD leaders use these) ─────── */
.whatsapp-float {
    position: fixed;
    bottom: 18px; right: 16px;
    width: 54px; height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 50;
}
.cart-float {
    position: fixed;
    top: 45%; right: 0;
    background: var(--orange);
    color: #fff;
    border-radius: 12px 0 0 12px;
    padding: 12px 12px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 50;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    overflow: hidden;
}
.cart-float .cf-count { font-size: 15px; }
.cart-float .cf-total {
    background: var(--green-deep);
    margin: 8px -12px 0;
    padding: 6px 12px;
}

/* ── Footer (deep green like the category nav) ─────────── */
.site-footer {
    background: var(--green-deep);
    color: #c9c9c9;
    margin-top: 40px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    gap: 22px;
    padding: 32px 14px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: #fff; margin-bottom: 8px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 8px; font-size: 18px; }
.site-footer .logo-black { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { font-size: 13px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: #8a8a8a;
}

/* ── Track order ───────────────────────────────────────── */
.track-status { display: flex; flex-direction: column; margin-top: 18px; }
.track-step { display: flex; gap: 12px; align-items: flex-start; }
.track-step .dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--border);
    margin-top: 4px;
    flex-shrink: 0;
}
.track-step.done .dot { background: var(--green-badge); }
.track-label { font-size: 15px; font-weight: 600; padding-bottom: 20px; }
.track-step.done .track-label { color: var(--green); }

/* ── Misc ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 50px 20px; color: var(--gray); }
.page-title { font-size: 22px; font-weight: 700; padding: 20px 0 4px; }

@media (max-width: 620px) {
    .header-search { display: none; }
}

/* ── Delivery zone fallback toggle (shown only when detection is uncertain) ── */
.zone-toggle { display: grid; grid-template-columns: 1fr; gap: 8px; }
.zone-toggle button {
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.zone-toggle button.active {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange);
}

/* ── Variant selector pills + gallery video thumbs ── */
.variant-sel-group { margin-bottom: 12px; }
.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }
/* Buy Now modal's picker: label + pills share one row instead of stacking,
   so adding a variant group doesn't add extra height to the order form */
#variant-selector-modal .variant-sel-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#variant-selector-modal .variant-sel-group > div:first-child { margin-bottom: 0; flex-shrink: 0; }
.variant-pill {
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.variant-pill.active {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange);
}
.gallery-thumbs .video-thumb {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-block;
}
.gallery-thumbs .video-thumb img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
}
.gallery-thumbs .video-thumb.active img { border-color: var(--orange); }
.gallery-thumbs .video-thumb .play-ic {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
    pointer-events: none;
}
iframe.gallery-main { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

/* variant pill with linked image thumbnail */
.variant-pill.has-img { display: inline-flex; align-items: center; gap: 7px; padding-left: 8px; }
.variant-pill .pill-thumb {
    width: 26px; height: 26px;
    object-fit: cover;
    border-radius: 6px;
    display: inline-block;
}

/* mandatory terms acceptance in order forms */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-top: 12px;
    cursor: pointer;
    line-height: 1.5;
}
.terms-check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.terms-check a { font-weight: 700; text-decoration: underline; }

/* red highlight when the customer tries to order without accepting terms */
.terms-check.terms-error {
    background: #fef2f2;
    border: 1.5px solid #dc2626;
    border-radius: 10px;
    padding: 10px;
    animation: terms-shake .35s;
}
.terms-check.terms-error span, .terms-check.terms-error a { color: #b91c1c; }
@keyframes terms-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ── Order success (thank-you) page ────────────────────── */
.os-check {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    animation: os-pop .35s ease-out;
}
@keyframes os-pop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.os-order-no {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #fff5f5; border: 1px solid #fecaca; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 14px;
}
.os-copy-btn {
    background: #fff; border: 1.5px solid var(--orange); color: var(--orange);
    font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
    white-space: nowrap;
}
.os-copy-btn:hover { background: var(--orange-soft); }
.os-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.os-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.os-item-noimg {
    width: 44px; height: 44px; border-radius: 8px; background: var(--orange-soft);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.os-item-title { font-size: 14px; flex: 1; }
.os-item-price { font-weight: 700; white-space: nowrap; }
.os-steps { display: flex; flex-direction: column; gap: 14px; }
.os-step { display: flex; align-items: flex-start; gap: 12px; }
.os-step-num {
    width: 26px; height: 26px; border-radius: 50%; background: var(--green-deep); color: #fff;
    font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.os-step strong { font-size: 14px; }
.os-step-note { font-size: 13px; color: var(--gray); margin-top: 2px; }
