/* ==========================================================================
   Feed (template 25) — the shop home looks and scrolls like a Facebook page: white bar with the logo on the
   left, story rings, a pink active tab, trust chips, products as posts (page avatar, time · globe, ⋯ menu,
   caption + See more, swipeable photos with 1/N and a thumbnail strip, price + Buy Now, action bar), a Videos
   row and full-screen viewer, the shop's real reviews. Built on Pocket (template 24): pocket.css / style.css
   stay underneath (product page, cart, checkout, account are Pocket's); fd-* is only the feed layer.
   Phones first (most visitors come from the Facebook / TikTok in-app browsers); 3 columns on desktop.
   Tokens from pocket.css (--pk-*); the shop colour is --pk-acc / --pk-on. No libraries.
   ========================================================================== */

body.feed { --fd-gap: 8px; --fd-w: 620px; --fd-fb: #f0f2f5; --fd-ink: #050505; --fd-sub: #65676b; --fd-line: #e4e6eb; }

/* Type (owner's choice 2026-10-24): the phone's own font like the Facebook app — San Francisco / Roboto / Segoe UI
   for Latin, Noto Sans Bengali (built into most Android phones) for Bangla, Hind Siliguri (already loaded) as the
   fallback. Nothing extra is downloaded. Reading text is 15px with a taller line for Bangla's vowel signs. */
body.feed {
    --pk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;
    font-family: var(--pk-font);
}
body.feed .fd-clamp,
body.feed.pk-pd .t6pd-short p,
body.feed.pk-pd .t6pd-tabs .p-6,
body.feed .fd-sheet__head b { font-size: 15px; line-height: 1.55; }
body.feed.feed--home { --pk-bg: var(--fd-fb); }

/* ---------- app bar on the home page: white, logo left (like the Facebook app) ---------- */
body.feed .pk-bar--home { background: #fff; color: var(--fd-ink); border-bottom: 1px solid var(--fd-line); }
body.feed .pk-bar--home .pk-ico, body.feed .pk-bar--home .pk-bar__brand { color: var(--fd-ink); }
body.feed .pk-bar--home .pk-ico:active { background: var(--fd-fb); }
body.feed .pk-bar--home .pk-badge { box-shadow: 0 0 0 2px #fff; }
body.feed .pk-bar--home .pk-bar__brand { justify-content: flex-start; padding-left: 8px; flex: 1 1 auto; }
body.feed .pk-bar--home .pk-bar__logo { height: 40px; }
body.feed .pk-bar--home .pk-bar__logo img { max-width: 150px; }
body.feed .pk-bar--home .pk-bar__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--pk-acc); }
body.feed .pk-bar--home .fd-chat { color: var(--pk-acc); }
body.feed .pk-bar--home .pk-bar__actions { min-width: 0; }

/* App bar icons (every page): Facebook-app round buttons on a soft grey, the chat and cart in the shop colour,
   the cart count as a shop-colour pill; a light press animation. */
body.feed .pk-bar { background: rgba(255, 255, 255, .96); }
body.feed .pk-bar__actions { gap: 8px; padding-right: 6px; }
body.feed .pk-bar .pk-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--fd-fb); color: var(--fd-ink); transition: background .15s, transform .12s, box-shadow .15s; }
body.feed .pk-bar .pk-ico svg { width: 20px; height: 20px; stroke-width: 2.2; }
body.feed .pk-bar .pk-ico:hover { background: #e4e6eb; }
body.feed .pk-bar .pk-ico:active { transform: scale(.9); background: #d8dadf; }
body.feed .pk-bar .pk-ico:focus-visible { outline: 2px solid var(--pk-acc); outline-offset: 2px; }
body.feed .pk-bar .fd-chat { background: color-mix(in srgb, var(--pk-acc) 12%, #fff); color: var(--pk-acc); }
body.feed .pk-bar #cartToggle { background: var(--pk-acc); color: var(--pk-on); box-shadow: 0 6px 14px -8px var(--pk-acc); }
body.feed .pk-bar #cartToggle:hover { background: color-mix(in srgb, var(--pk-acc) 88%, #000); }
body.feed .pk-bar #cartToggle .pk-badge { top: -5px; right: -6px; min-width: 20px; height: 20px; line-height: 20px; padding: 0 5px; background: #fff; color: var(--pk-acc); font-size: 11px; box-shadow: 0 0 0 2px var(--pk-acc), 0 2px 6px rgba(0, 0, 0, .18); }
body.feed .pk-bar--inner .pk-bar__row > .pk-ico:first-child { background: transparent; }
@media (min-width: 1024px) {
    body.feed .pk-bar__search { border-radius: 999px; background: var(--fd-fb); transition: box-shadow .15s, background .15s; }
    body.feed .pk-bar__search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--pk-acc); }
    body.feed .pk-bar .pk-ico { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body.feed .pk-bar .pk-ico { transition: none; } }

/* ---------- page frame ---------- */
.fd-page { display: block; }
.fd-col { display: flex; flex-direction: column; gap: var(--fd-gap); min-width: 0; padding-bottom: 8px; }
.fd-side { display: none; }
.fd-box { background: #fff; }
@media (min-width: 640px) and (max-width: 1099px) {
    .fd-page { max-width: var(--fd-w); margin: 0 auto; padding: 12px 0 28px; }
    .fd-col .fd-box { border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
}
@media (min-width: 1100px) {
    .fd-page { display: grid; grid-template-columns: 260px minmax(0, var(--fd-w)) 300px; justify-content: center; gap: 28px; max-width: 1320px; margin: 0 auto; padding: 18px 24px 40px; align-items: start; }
    .fd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
    .fd-col .fd-box { border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
}

/* ---------- desktop side columns ---------- */
.fd-cats { display: flex; flex-direction: column; gap: 2px; }
.fd-cats a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 10px; color: var(--fd-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.fd-cats a:hover { background: rgba(0, 0, 0, .05); }
.fd-cats a.is-on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.fd-cats img, .fd-cats i { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--fd-line); flex: 0 0 auto; display: grid; place-items: center; color: var(--pk-acc); }
.fd-cats i svg { width: 18px; height: 18px; }
.fd-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.fd-card h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--fd-ink); }
.fd-card p { margin: 0; color: var(--fd-sub); font-size: 14px; line-height: 1.5; }
.fd-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; color: var(--fd-ink); background: var(--fd-line); cursor: pointer; font-size: 15px; }
.fd-btn--ink { background: var(--fd-ink); color: #fff; }
.fd-btn--acc { background: var(--pk-acc); color: var(--pk-on); }
.fd-btn svg { width: 18px; height: 18px; }
.fd-btn.is-off { background: var(--fd-fb); color: var(--fd-sub); pointer-events: none; }

/* ---------- stories ---------- */
.fd-stories { padding: 12px 0 10px; }
.fd-stories__row { display: flex; gap: 12px; overflow-x: auto; padding: 0 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.fd-stories__row::-webkit-scrollbar { display: none; }
.fd-story { flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--fd-ink); scroll-snap-align: start; }
.fd-story__ring { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; box-sizing: border-box; display: block;
    background: conic-gradient(from 210deg, var(--pk-acc), #f59e0b, #ec4899, #8b5cf6, var(--pk-acc)); }
.fd-story__ring img, .fd-story__ring i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 2.5px solid #fff; box-sizing: border-box; font-style: normal; font-weight: 800; color: var(--pk-acc); font-size: 22px; }
.fd-story__ring--me { background: var(--fd-line); }
.fd-story__ring--me img { object-fit: contain; }
.fd-story__plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--pk-acc); color: var(--pk-on); border: 2.5px solid #fff; display: grid; place-items: center; }
.fd-story__plus svg { width: 13px; height: 13px; stroke-width: 3; }
.fd-story__vid { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.fd-story__vid svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); fill: #fff; }
.fd-story > span:last-child { font-size: 12.5px; line-height: 1.2; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tabs ---------- */
.fd-tabsbar { display: flex; align-items: center; position: sticky; top: var(--fd-sticky, 56px); z-index: 20; border-bottom: 1px solid var(--fd-line); }
.fd-tabs { flex: 1 1 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 4px 8px 12px; scrollbar-width: none; }
.fd-tabs::-webkit-scrollbar { display: none; }
.fd-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; color: var(--fd-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.fd-tabs a:hover { background: var(--fd-fb); }
.fd-tabs a.is-on { background: var(--pk-acc); color: var(--pk-on); }
.fd-tabs__more { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fd-ink); display: grid; place-items: center; cursor: pointer; }
.fd-tabs__more svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .fd-tabsbar { position: static; border-bottom: 0; } }

/* ---------- trust chips ---------- */
/* One line, never wrapping (owner's request): a borderless strip "✓ … ✓ … ✓ …" spread across the width;
   only a very narrow phone (< 360px) scrolls it sideways. */
.fd-trust { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 10px; padding: 9px 14px; overflow-x: auto; scrollbar-width: none; }
.fd-trust::-webkit-scrollbar { display: none; }
.fd-trust span, .fd-trust a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; color: var(--fd-ink); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fd-trust svg { width: 14px; height: 14px; color: #16a34a; stroke-width: 3; flex: 0 0 auto; }
@media (max-width: 380px) { .fd-trust { gap: 6px; padding: 9px 10px; } .fd-trust span, .fd-trust a { font-size: 12px; gap: 3px; } }
@media (min-width: 640px) { .fd-trust { justify-content: center; gap: 28px; } }

/* ---------- post ---------- */
.fd-post { padding: 12px 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.fd-post__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 12px; }
.fd-av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; background: var(--pk-acc); color: var(--pk-on); display: grid; place-items: center; font-weight: 800; overflow: hidden; border: 1px solid var(--fd-line); }
.fd-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fd-post__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.fd-post__who b { font-size: 15px; font-weight: 700; color: var(--fd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-post__who span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fd-sub); }
.fd-globe { width: 12px; height: 12px; }
/* Facebook-style blue tick next to the shop name (every shop on this theme — owner's decision) */
.fd-tick { display: inline-grid; place-items: center; margin-left: 4px; vertical-align: -2px; color: #1877f2; }
.fd-tick svg { width: 16px; height: 16px; fill: #1877f2; stroke: #fff; stroke-width: 2.4; }
.fd-card h2 .fd-tick svg { width: 18px; height: 18px; }
.fd-ico { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--fd-sub); cursor: pointer; flex: 0 0 auto; }
.fd-ico:hover { background: var(--fd-fb); }
.fd-ico svg { width: 22px; height: 22px; }

.fd-post__text { padding: 0 12px; }
.fd-clamp { margin: 0; font-size: 15px; line-height: 1.45; color: var(--fd-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.fd-clamp.is-open { -webkit-line-clamp: unset; display: block; }
.fd-seemore { border: 0; background: none; padding: 2px 0; color: var(--fd-sub); font-weight: 700; font-size: 15px; cursor: pointer; }
.fd-seemore:hover { text-decoration: underline; }

.fd-gal { position: relative; margin: 0 12px; border-radius: 12px; overflow: hidden; background: var(--fd-fb); }
.fd-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.fd-gal__track::-webkit-scrollbar { display: none; }
.fd-gal__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; height: 100%; }
.fd-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-gal__count { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; }
.fd-gal__count b { font-weight: 700; }
.fd-gal__open { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.fd-gal__open svg { width: 18px; height: 18px; }
.fd-gal__play { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.fd-gal__play svg { width: 15px; height: 15px; fill: #fff; }
.fd-gal__flag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; }
.fd-gal__flag svg { width: 14px; height: 14px; }
.fd-post.is-out .fd-gal__slide img { opacity: .55; }

.fd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
.fd-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--fd-fb); cursor: pointer; }
.fd-thumb.is-on { border-color: var(--pk-acc); }
.fd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 800; font-size: 16px; }

.fd-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 12px 0; }
.fd-buy__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fd-buy__name { color: var(--fd-ink); font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-buy__name em { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--pk-sale); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.fd-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fd-price b { font-size: 20px; font-weight: 800; color: var(--pk-acc); }
.fd-price s { font-size: 14px; color: var(--fd-sub); }
.fd-pct { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--pk-sale) 12%, #fff); color: var(--pk-sale); font-size: 12.5px; font-weight: 800; }
.fd-buy__btns { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fd-cartbtn { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--pk-acc) 12%, #fff); color: var(--pk-acc); display: grid; place-items: center; cursor: pointer; }
/* small "+" on the cart so it reads as "add to cart" */
.fd-cartbtn__plus { position: absolute; top: -5px; right: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--pk-acc); color: var(--pk-on); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.fd-cartbtn .fd-cartbtn__plus svg { width: 12px; height: 12px; stroke-width: 3.2; }
.fd-cartbtn.is-done .fd-cartbtn__plus { background: #fff; color: #16a34a; box-shadow: 0 0 0 2px #16a34a; }
.fd-cartbtn svg { width: 21px; height: 21px; }
.fd-cartbtn.is-busy { opacity: .6; pointer-events: none; }
.fd-cartbtn.is-done { background: #16a34a; color: #fff; }
.fd-buynow { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--pk-acc); color: var(--pk-on); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 14px -8px var(--pk-acc); }

/* Action bar: equal cells, icon over label (app style); Like turns shop colour with a filled thumb and a small pop */
.fd-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 6px 12px 0; padding: 6px 0 8px; border-top: 1px solid var(--fd-line); }
.fd-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--fd-sub); font-weight: 600; font-size: 12.5px; line-height: 1.2; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.fd-act:hover { background: var(--fd-fb); color: var(--fd-ink); }
.fd-act:active { background: #e4e6eb; }
.fd-act:focus-visible { outline: 2px solid var(--pk-acc); outline-offset: -2px; }
.fd-act svg { width: 21px; height: 21px; stroke-width: 2; }
.fd-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fd-like.is-liked { color: var(--pk-acc); }
.fd-like.is-liked svg { fill: var(--pk-acc); stroke: var(--pk-acc); }
.fd-like.is-pop svg { animation: fd-pop .42s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes fd-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-12deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fd-like.is-pop svg { animation: none; } }

/* Contact sheet options */
.fd-sheet__ttl { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.fd-sheet__ttl b { font-size: 16px; color: var(--fd-ink); }
.fd-sheet__ttl small { font-size: 13px; color: var(--fd-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-opts { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 6px; }
.fd-opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 12px; border-radius: 14px; background: var(--fd-fb); color: var(--fd-ink); text-decoration: none; }
.fd-opt[hidden] { display: none; }
.fd-opt:active { transform: scale(.99); }
.fd-opt i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.fd-opt i svg { width: 22px; height: 22px; }
.fd-opt span { display: flex; flex-direction: column; min-width: 0; }
.fd-opt b { font-size: 15.5px; }
.fd-opt small { font-size: 13px; color: var(--fd-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-opt--call i { background: var(--pk-acc); color: var(--pk-on); }
.fd-opt--wa i { background: #25d366; }
.fd-opt--ms i { background: linear-gradient(135deg, #0a7cff, #a334fa); }

/* Share sheet: app icons in a row */
.fd-shares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 0 10px; }
.fd-sh { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; color: var(--fd-ink); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 12px; }
.fd-sh[hidden] { display: none; }
.fd-sh i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fd-sh i svg { width: 26px; height: 26px; }
.fd-sh--fb i { background: #1877f2; }
.fd-sh--wa i { background: #25d366; }
.fd-sh--ms i { background: linear-gradient(135deg, #0a7cff, #a334fa); }
.fd-sh--copy i { background: var(--fd-fb); color: var(--fd-ink); }

.fd-more { display: flex; justify-content: center; padding: 6px 12px; }
.fd-more .fd-btn { width: 100%; max-width: 420px; }

/* ---------- sections (Videos row) ---------- */
.fd-sec { padding: 12px 0; }
.fd-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 10px; }
.fd-sec__head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--fd-ink); display: flex; align-items: center; gap: 8px; }
.fd-sec__head h2 svg { width: 20px; height: 20px; color: var(--pk-acc); }
.fd-sec__head a { color: var(--pk-acc); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.fd-sec__head a svg { width: 16px; height: 16px; }
.fd-reelrow { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fd-reelrow::-webkit-scrollbar { display: none; }
.fd-reelcard { position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: #1b1820; color: #fff; cursor: pointer; scroll-snap-align: start; text-align: left; }
.fd-reelcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-reelcard__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 55%); }
.fd-reelcard__play { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; }
.fd-reelcard__play svg { width: 14px; height: 14px; fill: #fff; }
.fd-reelcard__txt { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.fd-reelcard__txt b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-reelcard__txt span { font-size: 13px; font-weight: 800; }

/* ---------- post menu (bottom sheet) ---------- */
.fd-sheet { position: fixed; inset: 0; z-index: 9980; }
.fd-sheet__backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; cursor: default; }
.fd-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 8px 12px max(14px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; transform: translateY(100%); transition: transform .22s var(--pk-ease, ease); }
.fd-sheet.is-open .fd-sheet__backdrop { opacity: 1; }
.fd-sheet.is-open .fd-sheet__panel { transform: none; }
.fd-sheet__grip { display: block; width: 40px; height: 4px; border-radius: 999px; background: #ccd0d5; margin: 2px auto 8px; }
.fd-sheet__head { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0 8px 6px; }
.fd-sheet__head b { flex: 1 1 auto; font-size: 16px; line-height: 1.35; color: var(--fd-ink); }
.fd-sheet__item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 8px; border: 0; border-top: 1px solid var(--fd-line); background: none; color: var(--fd-ink); font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left; }
.fd-sheet__item svg { width: 22px; height: 22px; color: var(--pk-acc); }

/* ---------- videos viewer (full screen) ---------- */
.fd-reels { position: fixed; inset: 0; z-index: 9990; background: #000; display: none; }
.fd-reels.is-open { display: block; }
html.fd-lock, html.fd-lock body { overflow: hidden; }
.fd-reels__list { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.fd-reels__list::-webkit-scrollbar { display: none; }
.fd-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.fd-reel__stage { position: relative; width: 100%; height: 100%; max-width: 480px; margin: 0 auto; background: #111; }
.fd-reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.fd-reel__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fd-reel__start { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #000; display: grid; place-items: center; cursor: pointer; }
.fd-reel__start svg { width: 30px; height: 30px; margin-left: 4px; fill: #000; }
.fd-reel__info { position: absolute; left: 10px; right: 10px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; color: var(--fd-ink); }
.fd-reel__info img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; background: var(--fd-fb); flex: 0 0 auto; }
.fd-reel__info div { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.fd-reel__info div a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-reel__info b { font-size: 16px; font-weight: 800; color: var(--pk-acc); }
.fd-reel__info .fd-buynow { min-height: 44px; padding: 0 14px; }
.fd-reels__close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fd-reels__close svg { width: 22px; height: 22px; }
.fd-reels__count { position: fixed; top: max(20px, env(safe-area-inset-top)); left: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* ---------- cart: a bottom sheet on every screen (owner's request) — grows with its content, centred and
   max 520px wide on big screens. Keeps #cartSidebar / .active / #cartOverlay that openCart()/closeCart() use. ---------- */
body.feed .cart-sidebar.t23-cd {
    top: auto; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 520px; height: auto; max-height: min(88vh, 760px);
    display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0;
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 -18px 44px -18px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom); overflow: hidden;
}
body.feed .cart-sidebar.t23-cd.active { transform: translateY(0); }
body.feed .cart-sidebar.t23-cd::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: #ccd0d5; }
body.feed .t23-cd__scrim { background: rgba(0, 0, 0, .45); }
body.feed .t23-cd__head { position: relative; justify-content: center; padding: 22px 52px 12px; border-bottom: 1px solid var(--fd-line); text-align: center; }
body.feed .t23-cd__head .t23-cd__title { margin: 0; font-family: var(--pk-font); font-size: 16px; font-weight: 700; color: var(--fd-ink); }
body.feed .t23-cd__head .t23-cd__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--fd-sub); }
body.feed .t23-cd__head #closeCart { position: absolute; right: 6px; top: 14px; width: 44px; height: 44px; }
body.feed .t23-cd__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
body.feed .t23-cd__empty { min-height: 0; padding: 30px 20px 18px; }
body.feed .t23-cd__empty > span { width: 76px; height: 76px; margin-bottom: 14px; background: color-mix(in srgb, var(--pk-acc) 12%, #fff); box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--pk-acc) 6%, #fff); }
body.feed .t23-cd__empty > span svg { width: 30px; height: 30px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: var(--pk-acc); color: var(--pk-on); }
body.feed .t23-cd__empty h4 { font-family: var(--pk-font); font-size: 19px; font-weight: 800; color: var(--fd-ink); }
body.feed .t23-cd__empty p { margin-bottom: 18px; color: var(--fd-sub); }
body.feed .t23-cd__empty .t23-btn { width: 100%; min-height: 50px; border-radius: 14px; background: var(--pk-acc); color: var(--pk-on); font-weight: 800; }
body.feed .t23-cd__foot { border-top: 1px solid var(--fd-line); background: #fff; }
body.feed .t23-cd__actions .t23-btn--accent { background: var(--pk-acc); color: var(--pk-on); border-radius: 14px; min-height: 50px; font-weight: 800; }
body.feed .t23-cd__actions .t23-btn--ghost { border-radius: 14px; min-height: 50px; }
@media (prefers-reduced-motion: reduce) { body.feed .cart-sidebar.t23-cd { transition: none; } }

/* ---------- product page (body.pk-pd): Facebook-app look on top of Pocket's product page. Only styling and
   order — #order-now, #add_to_cart, #easy-checkout-btn, #variant-select, the price ids and every script are
   Pocket's, so the ViewContent / AddToCart pixels and server CAPI fire exactly as before. ---------- */
body.feed.pk-pd { --pk-bg: var(--fd-fb); }
body.feed.pk-pd .t6pd-title { font-family: var(--pk-font) !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--fd-ink) !important; margin-bottom: 8px !important; }
body.feed.pk-pd .t6pd-price { margin-bottom: 10px !important; }
body.feed.pk-pd .t6pd-price > div { gap: 8px !important; flex-wrap: wrap; align-items: baseline !important; }
body.feed.pk-pd .t6pd-price .text-4xl { color: var(--pk-acc) !important; font-size: 28px !important; font-weight: 800 !important; line-height: 1.15; }
body.feed.pk-pd .t6pd-price .text-2xl { color: var(--fd-sub) !important; font-size: 15px !important; }
body.feed.pk-pd .t6pd-price .rounded-full { background: color-mix(in srgb, var(--pk-sale) 12%, #fff) !important; color: var(--pk-sale) !important; font-size: 12px !important; font-weight: 800 !important; padding: 3px 9px !important; border-radius: 6px !important; }
body.feed.pk-pd .fdpd-stat { margin-bottom: 12px !important; gap: 8px; }
body.feed.pk-pd .t6pd-stock { margin: 0 !important; }
body.feed.pk-pd .t6pd-stock > span { font-size: 12.5px !important; padding: 4px 10px; border-radius: 999px; background: #ecfdf5; }
body.feed.pk-pd .fdpd-stat button { border-radius: 999px !important; box-shadow: none !important; }

/* seller row + trust strip */
.fdpd-seller { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 0; padding: 12px 0; border-top: 1px solid var(--fd-line); }
.fdpd-seller__who { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--fd-ink); }
.fdpd-seller__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fdpd-seller__txt b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fdpd-seller__txt small { font-size: 12.5px; color: var(--fd-sub); }
.fdpd-seller__btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; background: color-mix(in srgb, var(--pk-acc) 12%, #fff); color: var(--pk-acc); font-weight: 700; font-size: 14px; text-decoration: none; }
body.feed .fdpd-trust { padding: 10px 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--fd-line); }
@media (min-width: 768px) {
    body.feed .fdpd-trust { justify-content: flex-start; gap: 22px; }
    body.feed.pk-pd .t6pd-title { font-size: 30px !important; line-height: 1.2 !important; }
    body.feed.pk-pd .t6pd-price .text-4xl { font-size: 34px !important; }
}

/* caption-like short description */
body.feed.pk-pd .t6pd-short { background: none !important; border: 0 !important; padding: 0 !important; margin-bottom: 14px !important; }
body.feed.pk-pd .t6pd-short p { color: var(--fd-ink) !important; font-size: 15px; line-height: 1.5; }

/* variants: labels in sentence case, pills, selected = shop colour */
body.feed.pk-pd .product-info label.uppercase { text-transform: none !important; letter-spacing: 0 !important; font-size: 14.5px !important; font-weight: 700 !important; color: var(--fd-ink) !important; }
body.feed.pk-pd .size-box { border-radius: 999px !important; border-width: 1.5px !important; border-color: var(--fd-line) !important; padding: 9px 18px !important; font-weight: 700 !important; }
body.feed.pk-pd .size-option input:checked + .size-box { border-color: var(--pk-acc) !important; background: color-mix(in srgb, var(--pk-acc) 10%, #fff) !important; color: var(--pk-acc) !important; }
/* colour options as pills like the quick-buy sheet: the variant's photo (or colour dot) + its name beside it */
body.feed.pk-pd .color-option { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 5px 14px 5px 5px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--fd-line); transition: box-shadow .15s, background .15s; }
body.feed.pk-pd .color-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pk-acc); background: color-mix(in srgb, var(--pk-acc) 8%, #fff); }
body.feed.pk-pd .color-option:has(input:focus-visible) { outline: 2px solid var(--pk-acc); outline-offset: 2px; }
body.feed.pk-pd .color-option > div:first-of-type { width: 36px !important; height: 36px !important; border: 0 !important; border-radius: 10px !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1) !important; transform: none !important; }
body.feed.pk-pd .color-option > span.absolute.rounded-full { display: none !important; }
body.feed.pk-pd .color-option > span.absolute:not(.rounded-full) { position: static !important; transform: none !important; font-size: 14px !important; font-weight: 600; color: var(--fd-ink) !important; }
body.feed.pk-pd .size-option > span.absolute, body.feed.pk-pd .color-option > span.absolute.rounded-full { background: var(--pk-acc) !important; }
/* the "pick a variant" line is a hint until the shopper tries to buy, so grey (not error red) */
body.feed.pk-pd #variant-select-hint { font-size: 12.5px; color: var(--fd-sub) !important; }
body.feed.pk-pd #variant-not-available { font-size: 12.5px; }

/* quantity + actions */
body.feed.pk-pd .t6pd-qty { border-radius: 12px !important; border-color: var(--fd-line) !important; }
body.feed.pk-pd .t6pd-qty > div > div { border-radius: 999px !important; }
body.feed.pk-pd .t23-oneclick { background: var(--pk-acc) !important; color: var(--pk-on) !important; border-radius: 12px !important; }
body.feed.pk-pd .t23-oneclick .t23-oneclick__ico { background: rgba(255, 255, 255, .2) !important; color: inherit !important; }
body.feed.pk-pd .t23-oneclick small { color: inherit !important; opacity: .85; }
body.feed.pk-pd .product-info a[href*="wa.me"], body.feed.pk-pd .product-info a[href*="m.me"], body.feed.pk-pd .product-info a[href*="facebook.com"] { border-radius: 12px !important; }

/* details list (category / brand / code / unit) — quiet, one line each */
body.feed.pk-pd .fdpd-meta { display: grid !important; grid-template-columns: 1fr; gap: 4px !important; margin: 4px 0 14px !important; font-size: 13.5px !important; color: var(--fd-sub) !important; }
body.feed.pk-pd .fdpd-meta > span { background: none !important; padding: 0 !important; border-radius: 0 !important; }

/* tabs: Facebook-style underline */
body.feed.pk-pd .t6pd-tabs > div { border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .1) !important; }
body.feed.pk-pd .t6pd-tabs .flex.flex-wrap { gap: 0 !important; padding: 0 6px !important; border-bottom: 1px solid var(--fd-line); flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
body.feed.pk-pd .t6pd-tabs .tab-button { flex: 0 0 auto !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; background: none !important; color: var(--fd-sub) !important; padding: 12px 14px !important; font-weight: 700 !important; font-size: 14.5px !important; }
body.feed.pk-pd .t6pd-tabs .tab-button.border-\[var\(--primary-color\)\] { color: var(--pk-acc) !important; border-bottom-color: var(--pk-acc) !important; background: none !important; }

/* sticky buy bar */
body.feed.pk-pd .t6pd-bar__buy { background: var(--pk-acc) !important; color: var(--pk-on) !important; border-radius: 12px !important; }
body.feed.pk-pd .t6pd-bar__cart { border-radius: 12px !important; color: var(--pk-acc) !important; box-shadow: none !important; background: color-mix(in srgb, var(--pk-acc) 12%, #fff) !important; }

/* No site footer on this theme: just the small "Powered by" line above the tab bar. */
.fd-pbwrap { max-width: 1320px; margin: 0 auto; color: var(--fd-sub); }

/* ---------- bottom tab bar: centre button as a round accent "+"-style FAB ---------- */
body.feed .pk-tab__fab { background: var(--pk-acc); color: var(--pk-on); box-shadow: 0 8px 18px -8px var(--pk-acc); }

@media (prefers-reduced-motion: reduce) {
    .fd-sheet__panel, .fd-sheet__backdrop { transition: none; }
    .fd-gal__track, .fd-stories__row, .fd-reelrow, .fd-reels__list { scroll-behavior: auto; }
}
