/* Jobell storefront experience layer: one visual language across shop, product, cart,
   checkout and account pages. Loaded last so it refines (never replaces) page styles.
   Brand: warm ink + gold on cream. Motion is subtle and disabled for reduced-motion users. */
:root {
  --jb-ink: #191916;
  --jb-ink-soft: #2c2b25;
  --jb-gold: #d2af34;
  --jb-gold-soft: #e5bd68;
  --jb-gold-deep: #805e24;
  --jb-cream: #f8f5ef;
  --jb-paper: #ffffff;
  --jb-line: #ebe4d6;
  --jb-muted: #6f6a5e;
  --jb-radius: 16px;
  --jb-shadow: 0 1px 2px rgba(25, 25, 22, .06), 0 10px 30px rgba(70, 55, 20, .07);
  --jb-shadow-hover: 0 2px 4px rgba(25, 25, 22, .08), 0 18px 40px rgba(70, 55, 20, .14);
  --jb-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Campaign strip with live countdown (always in view under the header) ---------- */
.bf-campaign-strip { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px 14px;
  min-height: 44px; padding: 6px 16px; background: linear-gradient(90deg, #191916, #2c2618 50%, #191916);
  background-size: 200% 100%; animation: jb-strip-sheen 9s linear infinite; color: #f5deb2 !important;
  font-size: .9rem; line-height: 1.3; text-decoration: none; }
.bf-campaign-strip.is-peak { background: linear-gradient(90deg, #000, #3a2a0a 50%, #000); background-size: 200% 100%; color: #f2d499 !important; }
.bf-campaign-strip.is-upcoming { background: #24231e; }
.bf-strip-name { color: var(--jb-gold-soft); letter-spacing: .12em; font-size: .82rem; white-space: nowrap; }
.bf-strip-offer { color: #faf8f2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-strip-time { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bf-strip-label { color: #c6c1b6; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.bf-strip-cta { color: var(--jb-gold-soft); font-weight: 700; white-space: nowrap; }
.bf-clock { display: inline-flex; align-items: center; min-height: 28px; }
.bf-clock time { color: #faf8f2; font-weight: 700; }
.bf-clock-ticks { display: inline-flex; gap: 4px; }
.bf-clock-ticks[hidden] { display: none; }
.bf-clock-ticks > span { display: inline-flex; align-items: baseline; gap: 1px; min-width: 38px; justify-content: center;
  padding: 3px 5px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(229, 189, 104, .28); }
.bf-clock-ticks b { color: var(--jb-gold-soft); font-variant-numeric: tabular-nums; font-size: .98rem; }
.bf-clock-ticks i { font-style: normal; color: #c6c1b6; font-size: .7rem; }
.bf-campaign-strip:hover .bf-strip-cta { text-decoration: underline; text-underline-offset: 4px; }
@keyframes jb-strip-sheen { to { background-position: -200% 0; } }

/* ---------- Shared surfaces ---------- */
.customer-app .store-panel,
.customer-app .account-card,
.customer-app .history-card,
.customer-app .order-card,
.customer-app .cart-panel { border-radius: var(--jb-radius); border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow); }
.customer-app .store-title,
.customer-app .account-story h1 { letter-spacing: -.02em; }
.customer-app .store-eyebrow,
.customer-app .account-kicker { color: var(--jb-gold-deep); letter-spacing: .14em; }

/* Buttons: tactile, consistent, keyboard visible. */
.customer-app :is(.store-btn, .account-primary, .btn-cart-primary, .platform-card-cart, .bf-button, .bf-deal-add) {
  transition: transform .18s var(--jb-ease), box-shadow .18s var(--jb-ease), background-color .18s, filter .18s; }
.customer-app :is(.store-btn, .account-primary, .btn-cart-primary, .platform-card-cart, .bf-button):hover {
  box-shadow: 0 8px 20px rgba(160, 120, 30, .28); filter: saturate(1.08); }
.customer-app :is(.store-btn, .store-btn-outline, .account-primary, .btn-cart-primary, .platform-card-cart, .bf-button, .bf-deal-add):active { transform: scale(.97); }
.customer-app :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--jb-gold); outline-offset: 3px; }
.jb-added { animation: jb-pop .5s var(--jb-ease); }
@keyframes jb-pop { 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- Product cards ---------- */
.customer-app .platform-product-card { border-radius: 14px; transition: transform .25s var(--jb-ease), box-shadow .25s var(--jb-ease), border-color .25s; }
.customer-app .platform-product-card:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow-hover); border-color: #d9c89a; }
.customer-app .platform-product-image img { transition: transform .45s var(--jb-ease); }
.customer-app .platform-product-card:hover .platform-product-image img { transform: scale(1.06); }
.customer-app .platform-product-price { color: var(--jb-ink); }
.price-off-badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.platform-off-badge, .bf-deal-media .price-off-badge, .bf-hero-bottle .price-off-badge { animation: jb-badge-in .5s var(--jb-ease) both; }
@keyframes jb-badge-in { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bf-hero-bottle { position: relative; }
.bf-hero-bottle .price-off-badge { position: absolute; top: 8px; left: 8px; }

/* ---------- Benefits, recently viewed and suggestions ---------- */
.jb-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.jb-benefits li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--jb-paper);
  border: 1px solid var(--jb-line); border-radius: 14px; color: var(--jb-ink); }
.jb-benefits i { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: #f6ecd0; color: var(--jb-gold-deep); font-size: 1.35rem; }
.jb-benefits strong { display: block; font-size: .95rem; }
.jb-benefits span { display: block; font-size: .82rem; color: var(--jb-muted); }

.jb-rail { margin: 28px 0; }
.jb-rail[hidden] { display: none; }
.jb-rail-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jb-rail-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--jb-ink); letter-spacing: -.02em; }
.jb-rail-head p { margin: 4px 0 0; color: var(--jb-muted); font-size: .9rem; }
.jb-rail-head button { border: 0; background: none; color: var(--jb-gold-deep); text-decoration: underline; min-height: 44px; cursor: pointer; }
.jb-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 190px); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px; }
.jb-rail-item { scroll-snap-align: start; display: block; background: var(--jb-paper); border: 1px solid var(--jb-line); border-radius: 14px;
  padding: 10px; color: var(--jb-ink); text-decoration: none; transition: transform .25s var(--jb-ease), box-shadow .25s; }
.jb-rail-item:hover { transform: translateY(-3px); box-shadow: var(--jb-shadow-hover); color: var(--jb-ink); }
.jb-rail-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--jb-cream); border-radius: 10px; }
.jb-rail-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: .9rem; line-height: 1.3; min-height: 2.6em; }
.jb-rail-item span { display: block; margin-top: 2px; color: var(--jb-gold-deep); font-weight: 700; font-size: .88rem; }

.jb-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--jb-line); list-style: none; color: var(--jb-muted); font-size: .84rem; }
.jb-trust li { display: inline-flex; align-items: center; gap: 6px; }
.jb-trust i { color: var(--jb-gold-deep); font-size: 1.05rem; }

.jb-suggest { margin-top: 26px; }

/* Empty states: a gentle float draws the eye to the next action. */
.customer-app :is(.empty-cart-icon, .store-empty-icon, .empty-state-icon, .history-empty-icon) { animation: jb-float 3.6s ease-in-out infinite; }
@keyframes jb-float { 50% { transform: translateY(-6px); } }

/* ---------- Contact page ---------- */
.account-contact-method { transition: transform .2s var(--jb-ease), box-shadow .2s, border-color .2s; }
.account-contact-method:hover { transform: translateX(4px); box-shadow: var(--jb-shadow); border-color: #d9c89a; }
.jb-contact-whatsapp { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 48px; padding: 12px 20px;
  border-radius: 12px; background: #176844; color: #fff !important; font-weight: 700; text-decoration: none; }
.jb-contact-whatsapp:hover { background: #12583a; }
.jb-faq { margin-top: 22px; }
.jb-faq details { border-top: 1px solid var(--jb-line); padding: 12px 0; }
.jb-faq summary { cursor: pointer; font-weight: 700; min-height: 32px; color: var(--jb-ink); }
.jb-faq p { margin: 8px 0 0; color: var(--jb-muted); }

/* ---------- Back to top ---------- */
.jb-top { position: fixed; right: 18px; bottom: calc(var(--app-tabs-height, 0px) + 84px); z-index: 30; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #d9c89a; background: var(--jb-paper); color: var(--jb-ink); box-shadow: var(--jb-shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s var(--jb-ease); cursor: pointer; }
.jb-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Scroll reveal (added by store-experience.js only when motion is allowed) ---------- */
.jb-motion .jb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--jb-ease), transform .6s var(--jb-ease); }
.jb-motion .jb-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .jb-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bf-campaign-strip { justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: .8rem; }
  .bf-strip-extra, .bf-strip-cta, .bf-strip-label { display: none; }
  .bf-strip-name { font-size: .72rem; letter-spacing: .08em; }
  .bf-strip-offer { flex: 1 1 auto; min-width: 0; }
  .bf-clock-ticks > span { min-width: 30px; padding: 2px 3px; }
  .bf-clock-ticks b { font-size: .86rem; }
  .bf-clock-ticks i { font-size: .62rem; }
}
@media (max-width: 560px) {
  .bf-strip-name { display: none; }
  .jb-benefits { gap: 8px; margin: 16px 0; }
  .jb-benefits li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .jb-benefits i { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.15rem; }
  .jb-benefits strong { font-size: .88rem; }
  .jb-rail-track { grid-auto-columns: 44%; }
  .jb-top { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-campaign-strip, .platform-off-badge, .bf-deal-media .price-off-badge, .bf-hero-bottle .price-off-badge,
  .customer-app :is(.empty-cart-icon, .store-empty-icon, .empty-state-icon, .history-empty-icon) { animation: none !important; }
  .customer-app .platform-product-card:hover, .customer-app .platform-product-card:hover .platform-product-image img,
  .jb-rail-item:hover, .account-contact-method:hover { transform: none; }
}

/* ---------- Shop page promo ---------- */
.jb-shop-promo { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag title cta" "tag note cta"; align-items: center; gap: 2px 16px;
  margin: 4px 0 18px; padding: 14px 18px; border-radius: var(--jb-radius); background: linear-gradient(110deg, #191916 0%, #2c2618 60%, #4a3a14 100%);
  color: #faf8f2 !important; text-decoration: none; box-shadow: var(--jb-shadow); overflow: hidden; position: relative; }
.jb-shop-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(229, 189, 104, .18) 50%, transparent 70%);
  transform: translateX(-100%); animation: jb-shine 4.5s ease-in-out infinite; }
.jb-shop-promo.is-peak { background: linear-gradient(110deg, #000 0%, #2b1f08 60%, #6b5530 100%); }
.jb-shop-promo-tag { grid-area: tag; padding: 6px 10px; border-radius: 8px; background: var(--jb-gold-soft); color: var(--jb-ink); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.jb-shop-promo strong { grid-area: title; font-size: 1.05rem; }
.jb-shop-promo-note { grid-area: note; color: #c6c1b6; font-size: .84rem; }
.jb-shop-promo-cta { grid-area: cta; color: var(--jb-gold-soft); font-weight: 700; white-space: nowrap; }
@keyframes jb-shine { 60%, 100% { transform: translateX(100%); } }
@media (max-width: 560px) {
  .jb-shop-promo { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "note"; justify-items: start; padding: 14px; }
  .jb-shop-promo-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .jb-shop-promo::after { animation: none; display: none; } }
.bf-strip-short { display: none; }
@media (max-width: 560px) { .bf-strip-long { display: none; } .bf-strip-short { display: inline; } }

/* ---------- Welcome sound toggle (homepage) ---------- */
.jb-sound { position: fixed; left: 18px; bottom: calc(var(--app-tabs-height, 0px) + 24px); z-index: 30; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d9c89a; background: var(--jb-ink); color: var(--jb-gold-soft);
  box-shadow: var(--jb-shadow); font-size: 1.3rem; cursor: pointer; }
.jb-sound[hidden] { display: none; }
.jb-sound.is-playing { animation: jb-sound-pulse 1.2s ease-in-out infinite; }
@keyframes jb-sound-pulse { 50% { box-shadow: 0 0 0 8px rgba(229, 189, 104, .25); } }
@media (max-width: 560px) { .jb-sound { left: 12px; bottom: calc(var(--app-tabs-height, 0px) + 16px); width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .jb-sound.is-playing { animation: none; } }

/* ================= Layout and spacing refinements ================= */
/* Hero: compact enough that the offer, countdown and button sit above the fold. */
.bf-hero { min-height: 0; align-items: stretch; border-radius: 20px; }
.bf-hero-copy { padding: 48px 24px 40px 52px; display: flex; flex-direction: column; justify-content: center; }
.bf-hero h1 { font-size: clamp(2.8rem, 4.4vw, 4.4rem); margin-bottom: 18px; }
.bf-hero .bf-countdown-hero { margin: 0 0 20px; }
.bf-hero .bf-intro { margin: 0 0 22px; max-width: 460px; }
.bf-hero .bf-teaser { margin-top: 18px; }
.bf-hero-gallery { min-height: 420px; padding: 40px 32px 64px; gap: 16px; }
.bf-hero-bottle { border-radius: 10px; gap: 2px; text-decoration: none; transition: transform .35s var(--jb-ease), box-shadow .35s; }
.bf-hero-bottle:hover { box-shadow: 0 28px 50px #0007; }
.bf-hero-bottle img { border-radius: 6px; }
.bf-hero-bottle small { display: block; }
.bf-hero-price { display: block; margin-top: 6px; font-style: normal; font-weight: 800; color: #191916; font-size: .95rem; }
.bf-hero-price del { display: block; font-weight: 500; color: #8a857a; font-size: .8rem; margin-right: 4px; }
/* One or two offers: upright spotlight cards instead of a lonely tilted fan. */
.bf-gallery-1 .bf-hero-bottle, .bf-gallery-2 .bf-hero-bottle { transform: none !important; width: min(300px, 46%); min-height: 0; padding: 16px 14px 18px; }
.bf-gallery-1 .bf-hero-bottle { width: min(320px, 80%); }
.bf-gallery-1 .bf-hero-bottle img, .bf-gallery-2 .bf-hero-bottle img { height: 260px; }
.bf-gallery-1 .bf-hero-bottle:hover, .bf-gallery-2 .bf-hero-bottle:hover { transform: translateY(-6px) !important; }
.bf-gallery-0 { display: none; }
.bf-hero:has(.bf-gallery-0) { grid-template-columns: 1fr; }

/* Deals row: cards share space evenly; a single deal becomes a wide spotlight card. */
.bf-deals { padding: 32px; border-radius: 20px; margin: 32px 0 12px; }
.bf-deals-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
.bf-deal { padding: 12px; background: #fff; border: 1px solid var(--jb-line); border-radius: 14px; transition: transform .25s var(--jb-ease), box-shadow .25s; }
.bf-deal:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow-hover); }
.bf-deal-media { border-radius: 10px; }
.bf-deals-grid:has(> li:only-child) { grid-template-columns: minmax(0, 680px); }
.bf-deals-grid > li:only-child { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 26px; row-gap: 0;
  align-content: center; align-items: start; padding: 18px; }
.bf-deals-grid > li:only-child > * { grid-column: 2; }
.bf-deals-grid > li:only-child .bf-deal-media { grid-column: 1; grid-row: 1 / span 6; align-self: center; }
.bf-deals-grid > li:only-child .bf-deal-meta { margin-top: 8px; }
.bf-deals-grid > li:only-child h3 { font-size: 1.35rem; min-height: 0; margin-bottom: 4px; }
.bf-deals-grid > li:only-child .bf-deal-price { margin-bottom: 14px; }
.bf-deals-grid > li:only-child .bf-deal-price strong { font-size: 1.5rem; }
.bf-deals-grid > li:only-child form { margin-top: 0; max-width: 300px; }
.bf-deals-grid > li:only-child .jb-wa-button { max-width: 300px; margin-top: 8px; }

/* Landing page: tier cards and product grid fill the width whatever the count. */
.bf-tiers { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-radius: 14px; overflow: hidden; }
.bf-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 22px; }
.bf-product { padding: 12px; background: #fff; border: 1px solid var(--jb-line); border-radius: 14px; }
.bf-product-image { border-radius: 10px; }

/* Home product rails: more air between cards and steady card heights. */
@media (min-width: 701px) {
  .platform-home .platform-product-scroll { gap: 22px; padding: 6px 4px 14px; }
  .platform-home .platform-product-scroll .platform-product-card { flex: 0 0 250px; padding: 14px; }
}
.platform-home .platform-product-card { display: flex; flex-direction: column; }
.platform-home .platform-product-card .platform-product-purchase { margin-top: auto; padding-top: 10px; }
.platform-home .platform-panel { margin-bottom: 28px; }
.platform-home .platform-section-heading { margin-bottom: 18px; }

/* Shop grid spacing. */
.shop-page .platform-product-grid, .shop-page .shop-product-grid { gap: 24px 20px; }

@media (max-width: 1100px) { .bf-hero-copy { padding: 40px 20px 32px 32px; } }
@media (max-width: 760px) {
  .bf-hero { border-radius: 16px; }
  .bf-hero-copy { padding: 28px 22px 18px; }
  .bf-hero-gallery { min-height: 0; padding: 12px 18px 52px; }
  .bf-gallery-1 .bf-hero-bottle, .bf-gallery-2 .bf-hero-bottle { width: min(220px, 48%); }
  .bf-gallery-1 .bf-hero-bottle img, .bf-gallery-2 .bf-hero-bottle img { height: 170px; }
  .bf-deals { padding: 20px 14px; border-radius: 0; }
  .bf-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .bf-deals-grid:has(> li:only-child) { grid-template-columns: 1fr; }
  .bf-deals-grid > li:only-child { grid-template-columns: 38% minmax(0, 1fr); column-gap: 14px; padding: 12px; }
  .bf-deals-grid > li:only-child form, .bf-deals-grid > li:only-child .jb-wa-button { max-width: none; }
  .bf-deals-grid > li:only-child h3 { font-size: 1.05rem; }
  .bf-deal { padding: 8px; }
  .bf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .bf-product { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .bf-deal:hover, .bf-gallery-1 .bf-hero-bottle:hover, .bf-gallery-2 .bf-hero-bottle:hover { transform: none !important; } }

/* Breathing room between the sale strip and the homepage banner. */
.bf-home { padding-top: 28px; }
@media (max-width: 760px) { .bf-home { padding-top: 24px; } }

/* ---------- WhatsApp order button (partials/whatsapp_button.html) ---------- */
.jb-wa-form { margin: 8px 0 0; }
.jb-wa-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 10px 16px;
  border: 0; border-radius: 12px; background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; font-weight: 800; font-size: .95rem;
  letter-spacing: .01em; cursor: pointer; box-shadow: 0 6px 16px rgba(18, 140, 74, .25);
  transition: transform .18s var(--jb-ease), box-shadow .18s, filter .18s; }
.jb-wa-button i { font-size: 1.3rem; line-height: 1; }
a.jb-wa-button, a.jb-wa-button:hover { color: #fff !important; text-decoration: none !important; }
.jb-wa-button:hover { filter: brightness(1.05); box-shadow: 0 10px 22px rgba(18, 140, 74, .35); }
.jb-wa-button:active { transform: scale(.97); }
.jb-wa-button:focus-visible { outline: 3px solid #0b5e33; outline-offset: 3px; }
.jb-wa-button.is-compact { min-height: 44px; font-size: .85rem; padding: 8px 10px; border-radius: 10px; }
.jb-wa-button.is-loading { opacity: .85; cursor: progress; }
.jb-wa-button.is-loading i { animation: jb-wa-spin 1s linear infinite; }
@keyframes jb-wa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jb-wa-button.is-loading i { animation: none; } }
.bf-hero-bottle-link { display: flex; flex-direction: column; align-items: center; width: 100%; color: inherit !important; text-decoration: none; }
.bf-hero-bottle .jb-wa-button { margin-top: 10px; min-height: 40px; font-size: .82rem; }
.order-total-box .jb-wa-button { margin-top: 10px; }
.jb-wish-sale { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--jb-gold-soft); color: var(--jb-ink); }

/* ---------- Mini-cart drawer ---------- */
.jb-minicart { position: fixed; top: 0; right: 0; z-index: 2000; width: min(400px, 100vw); height: 100dvh; display: flex; flex-direction: column;
  background: var(--jb-paper); color: var(--jb-ink); box-shadow: -16px 0 40px rgba(0, 0, 0, .18); transform: translateX(105%);
  transition: transform .32s var(--jb-ease); visibility: hidden; outline: none; }
.jb-minicart.is-open { transform: none; visibility: visible; }
.jb-minicart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--jb-line); }
.jb-minicart-head strong { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.jb-minicart-head strong::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e6f4ea; color: #176844; font-size: .85rem; }
.jb-minicart-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--jb-cream); font-size: 1.3rem; cursor: pointer; }
.jb-minicart-items { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1 1 auto; }
.jb-minicart-items li { border-bottom: 1px solid var(--jb-line); }
.jb-minicart-items li.is-new { background: linear-gradient(90deg, #fff8e6, transparent); }
.jb-minicart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; color: inherit; text-decoration: none; }
.jb-minicart-item img { width: 56px; height: 56px; object-fit: contain; background: var(--jb-cream); border-radius: 10px; }
.jb-minicart-copy b { display: block; font-size: .92rem; line-height: 1.3; }
.jb-minicart-copy small { color: var(--jb-muted); }
.jb-minicart-price { display: grid; justify-items: end; gap: 2px; font-size: .9rem; }
.jb-minicart-price del { color: #8a857a; font-size: .78rem; }
.jb-minicart-more { padding: 12px 0; color: var(--jb-muted); font-size: .88rem; }
.jb-minicart-totals { padding: 14px 20px 4px; border-top: 1px solid var(--jb-line); }
.jb-minicart-totals p { display: flex; justify-content: space-between; margin: 0 0 6px; }
.jb-minicart-totals p strong { font-size: 1.1rem; }
.jb-minicart-totals .is-saving { color: #176844; }
.jb-minicart-totals small { color: var(--jb-muted); }
.jb-minicart-actions { display: grid; gap: 8px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.jb-minicart-checkout { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; background: var(--jb-gold);
  color: var(--jb-ink) !important; font-weight: 800; text-decoration: none; }
.jb-minicart-checkout:hover { filter: brightness(1.05); }
.jb-minicart-view, .jb-minicart-keep { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--jb-line); background: #fff; color: var(--jb-ink) !important; font-weight: 700; text-decoration: none; cursor: pointer; }
.jb-minicart-actions .jb-wa-button { min-height: 48px; }
@media (min-width: 561px) { .jb-minicart-actions { grid-template-columns: 1fr 1fr; } .jb-minicart-checkout, .jb-minicart-actions .jb-wa-button { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .jb-minicart { transition: none; } }

/* ---------- You may also like ---------- */
.jb-related { margin: 32px 0 8px; }
.jb-related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.jb-related-card { display: flex; flex-direction: column; padding: 12px; background: var(--jb-paper); border: 1px solid var(--jb-line); border-radius: 14px;
  transition: transform .25s var(--jb-ease), box-shadow .25s; }
.jb-related-card:hover { transform: translateY(-4px); box-shadow: var(--jb-shadow-hover); }
.jb-related-media { position: relative; display: block; aspect-ratio: 1; background: var(--jb-cream); border-radius: 10px; overflow: hidden; }
.jb-related-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.jb-related-media .price-off-badge { position: absolute; top: 8px; left: 8px; }
.jb-related-meta { margin: 10px 0 2px; color: var(--jb-muted); font-size: .8rem; }
.jb-related-card h3 { margin: 0 0 6px; font-size: .98rem; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jb-related-card h3 a { color: var(--jb-ink); text-decoration: none; }
.jb-related-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 10px; }
.jb-related-price del { color: #8a857a; font-size: .82rem; }
.jb-related-card form { margin-top: auto; }
.jb-related-add { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--jb-ink); color: #fff; font-weight: 700; cursor: pointer; }
.jb-related-add:hover { background: var(--jb-ink-soft); }
@media (max-width: 560px) { .jb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .jb-related-card { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .jb-related-card:hover { transform: none; } }

/* ---------- Size chips ---------- */
.jb-chips-source { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.jb-chip { display: grid; gap: 1px; min-width: 110px; min-height: 52px; padding: 8px 14px; text-align: left; border: 1.5px solid var(--jb-line);
  border-radius: 12px; background: #fff; color: var(--jb-ink); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s var(--jb-ease); }
.jb-chip b { font-size: .92rem; }
.jb-chip span { font-size: .82rem; font-weight: 700; color: var(--jb-gold-deep); }
.jb-chip del { font-size: .74rem; color: #8a857a; }
.jb-chip:hover { border-color: #d9c89a; }
.jb-chip.is-active { border-color: var(--jb-ink); box-shadow: 0 0 0 2px var(--jb-gold-soft); }
.jb-chip.is-out { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.jb-chip:focus-visible { outline: 3px solid var(--jb-gold); outline-offset: 2px; }

/* ---------- Sticky buy bar (phones) ---------- */
.jb-buybar { display: none; }
@media (max-width: 760px) {
  .jb-buybar { position: fixed; left: 0; right: 0; bottom: var(--app-tabs-height, 0px); z-index: 1040; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--jb-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    transform: translateY(calc(110% + var(--app-tabs-height, 0px))); visibility: hidden; transition: transform .25s var(--jb-ease), visibility 0s .25s; }
  .jb-buybar.is-visible { transform: none; visibility: visible; transition: transform .25s var(--jb-ease), visibility 0s; }
  .jb-buybar-price { flex: 1 1 auto; min-width: 0; font-size: 1rem; color: var(--jb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jb-buybar-add { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--jb-gold); color: var(--jb-ink); font-weight: 800; }
  .jb-buybar-wa { width: 46px; height: 46px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; font-size: 1.4rem; }
  body.has-buybar .platform-chat-button, body.has-buybar .jb-top { bottom: calc(var(--app-tabs-height, 0px) + 84px); }
}
@media (prefers-reduced-motion: reduce) { .jb-buybar { transition: none; } }
.jb-sale-toggle { display: inline-flex; align-items: center; margin: 10px 0 4px; cursor: pointer; }
.jb-sale-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jb-sale-toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--jb-line);
  border-radius: 999px; background: #fff; font-weight: 700; font-size: .88rem; color: var(--jb-ink); transition: background .18s, border-color .18s; }
.jb-sale-toggle input:checked + span { background: var(--jb-ink); border-color: var(--jb-ink); color: var(--jb-gold-soft); }
.jb-sale-toggle input:focus-visible + span { outline: 3px solid var(--jb-gold); outline-offset: 2px; }

/* ---------- Search suggestions ---------- */
.jb-search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1100; min-width: min(420px, 92vw); max-height: min(70vh, 520px);
  overflow-y: auto; background: #fff; color: var(--jb-ink); border: 1px solid var(--jb-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.jb-search-suggest[hidden] { display: none; }
.jb-search-suggest ul { list-style: none; margin: 0; padding: 6px; }
.jb-search-suggest li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.jb-search-suggest li[aria-selected="true"] a, .jb-search-suggest li a:hover { background: var(--jb-cream); }
.jb-search-suggest img { width: 44px; height: 44px; object-fit: contain; background: var(--jb-cream); border-radius: 8px; }
.jb-search-suggest b { display: block; font-size: .92rem; line-height: 1.25; }
.jb-search-suggest small { color: var(--jb-muted); font-size: .78rem; }
.jb-search-suggest-price { display: grid; justify-items: end; font-size: .85rem; }
.jb-search-suggest-price del { color: #8a857a; font-size: .74rem; }
.jb-search-suggest .jb-search-suggest-all a { display: block; text-align: center; font-weight: 700; color: var(--jb-gold-deep); }
.jb-search-suggest-status { margin: 0; padding: 8px 14px 12px; color: var(--jb-muted); font-size: .82rem; }

/* ---------- Guest order tracking ---------- */
.jb-track-head { margin: 8px 0 18px; }
.jb-track-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.jb-track-form { display: grid; gap: 8px; padding: 22px; }
.jb-track-form label { font-weight: 700; font-size: .9rem; margin-top: 6px; }
.jb-track-form input { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--jb-line); border-radius: 12px; font-size: 1rem; }
.jb-track-form input:focus { border-color: var(--jb-gold); outline: none; box-shadow: 0 0 0 3px rgba(210, 175, 52, .25); }
.jb-track-form .store-btn { margin-top: 10px; min-height: 48px; }
.jb-track-error { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8a2a1b; font-size: .9rem; }
.jb-track-result { padding: 22px; }
.jb-track-result h2 { margin: 0 0 14px; font-family: Georgia, serif; font-weight: 400; }
.jb-track-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.jb-track-steps li { position: relative; padding-top: 30px; text-align: center; font-size: .8rem; color: var(--jb-muted); counter-increment: step; }
.jb-track-steps li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--jb-line); color: var(--jb-ink); font-weight: 800; font-size: .8rem; }
.jb-track-steps li.is-done::before { content: "✓"; background: #176844; color: #fff; }
.jb-track-steps li.is-current { color: var(--jb-ink); font-weight: 800; }
.jb-track-steps li.is-current::before { background: var(--jb-gold); }
.jb-track-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 18px; }
.jb-track-facts dt { color: var(--jb-muted); font-size: .8rem; font-weight: 600; }
.jb-track-facts dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) { .jb-track-grid { grid-template-columns: 1fr; } }
.jb-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.jb-confirm-actions .jb-wa-button { width: auto; }
.jb-wish-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Shop by category: compact, neat tiles ---------- */
.platform-home .platform-category-grid { display: flex !important; flex-wrap: nowrap; gap: 12px !important; overflow-x: auto; padding: 4px 2px 12px !important;
  scroll-snap-type: x proximity; scrollbar-width: thin; }
.platform-home .platform-category-grid > a.platform-category-card { flex: 0 0 120px !important; width: 120px !important; min-width: 0; min-height: 0 !important;
  display: flex !important; flex-direction: column; align-items: center !important; gap: 8px !important; padding: 10px 8px 12px !important;
  border: 1px solid var(--jb-line) !important; border-radius: 14px !important; background: var(--jb-paper) !important; box-shadow: none !important;
  text-align: center; text-decoration: none; scroll-snap-align: start; transition: transform .2s var(--jb-ease), border-color .2s, box-shadow .2s; }
.platform-home .platform-category-grid > a.platform-category-card:hover { transform: translateY(-3px); border-color: #d9c89a !important; box-shadow: var(--jb-shadow) !important; }
.platform-home .platform-category-grid .platform-category-media { flex: 0 0 auto !important; width: 76px !important; height: 76px !important; padding: 0 !important;
  border-radius: 12px !important; overflow: hidden; background: var(--jb-cream) !important; border: 0 !important; }
.platform-home .platform-category-grid .platform-category-media img { width: 100% !important; height: 100% !important; object-fit: cover !important; padding: 0 !important; }
.platform-home .platform-category-grid .platform-category-copy { display: block !important; width: 100%; min-height: 0 !important; padding: 0 !important; }
.platform-home .platform-category-grid .platform-category-copy strong { display: block; font-size: 13px !important; font-weight: 700 !important; line-height: 1.25;
  color: var(--jb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-home .platform-category-grid .platform-category-arrow { display: none !important; }
.platform-home .platform-category-panel .platform-section-heading { margin-bottom: 12px; }
@media (max-width: 560px) {
  .platform-home .platform-category-grid { gap: 10px !important; }
  .platform-home .platform-category-grid > a.platform-category-card { flex-basis: 96px !important; width: 96px !important; padding: 8px 6px 10px !important; }
  .platform-home .platform-category-grid .platform-category-media { width: 64px !important; height: 64px !important; }
  .platform-home .platform-category-grid .platform-category-copy strong { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) { .platform-home .platform-category-grid > a.platform-category-card:hover { transform: none; } }

/* ---------- Best sellers row ---------- */
.jb-row-sub { margin: 4px 0 0; color: var(--jb-muted); font-size: .9rem; }
.platform-home .jb-rank-wrap { position: relative; display: flex; flex: 0 0 auto; }
.platform-home .jb-rank-wrap > .platform-product-card { flex: 1 1 auto; }
.jb-rank { position: absolute; top: -9px; left: 12px; z-index: 4; display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--jb-ink); color: var(--jb-gold-soft); font-size: .78rem; font-weight: 800; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
@media (max-width: 700px) {
  .platform-home .platform-product-scroll .jb-rank-wrap { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); scroll-snap-align: start; }
  .platform-home .platform-product-scroll .jb-rank-wrap > .platform-product-card { width: 100%; flex-basis: 100%; }
}

/* ---------- Sale banner product slideshow ---------- */
.bf-hero-gallery.jb-hero-slider { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 36px 28px 56px; }
.jb-slides { position: relative; width: min(100%, 360px); min-height: 430px; }
.jb-slide { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f7f3ea; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35); opacity: 0; transform: translateX(24px) scale(.98); pointer-events: none;
  transition: opacity .45s var(--jb-ease), transform .45s var(--jb-ease); }
.jb-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.jb-slide-media { position: relative; display: block; height: 260px; background: #fff; }
.jb-slide-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.jb-slide-media .price-off-badge { position: absolute; top: 12px; left: 12px; }
.jb-slide-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; color: var(--jb-ink); }
.jb-slide-body small { color: var(--jb-muted); font-size: .8rem; }
.jb-slide-name { color: var(--jb-ink) !important; font-weight: 800; font-size: 1.05rem; line-height: 1.25; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.jb-slide-price { display: flex; align-items: baseline; gap: 8px; }
.jb-slide-price del { color: #8a857a; font-size: .85rem; }
.jb-slide-price strong { font-size: 1.15rem; }
.jb-slide-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 8px; }
.jb-slide-actions .jb-wa-button, .jb-slide-actions .jb-wa-form { margin: 0; }
.jb-slide-view { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; background: var(--jb-ink);
  color: #fff !important; font-weight: 800; font-size: .88rem; text-decoration: none !important; }
.jb-slide-view:hover { background: var(--jb-ink-soft); }
.jb-slider-controls { display: flex; align-items: center; gap: 12px; }
.jb-slider-controls[hidden] { display: none; }
.jb-slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(229, 189, 104, .5); background: rgba(255, 255, 255, .06);
  color: var(--jb-gold-soft); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.jb-slider-btn:hover { background: rgba(229, 189, 104, .18); }
.jb-slider-dots { display: flex; gap: 6px; }
.jb-slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer;
  transition: width .25s, background .25s; }
.jb-slider-dots button.is-active { width: 22px; background: var(--jb-gold-soft); }
.jb-hero-slider .bf-gallery-caption { position: static; margin-top: 2px; }
@media (max-width: 760px) {
  .bf-hero-gallery.jb-hero-slider { padding: 8px 18px 28px; }
  .jb-slides { width: min(100%, 320px); min-height: 380px; }
  .jb-slide-media { height: 210px; }
}
@media (prefers-reduced-motion: reduce) { .jb-slide { transition: none; } }

/* ---------- Homepage layout (one source per message) ---------- */
.platform-home .platform-marketplace-top { display: block !important; }
.platform-home .platform-marketplace-top .platform-hero { width: 100%; }
.platform-home .bf-home { padding-top: 18px; }
.platform-home .platform-panel { margin-top: 0; }
.platform-home .platform-shell > * + * { margin-top: 22px; }
.platform-home .jb-benefits { margin: 26px 0; }
@media (max-width: 760px) { .platform-home .platform-shell > * + * { margin-top: 16px; } .platform-home .bf-home { padding-top: 10px; } }
