/* ═══════════════════ Beta Food IQ — storefront ═══════════════════
   Templates (chosen in the dashboard) switch with html[data-tpl]:
   fresh (default) · market (dense wholesale list) · noir (dark) · showcase (large photos) */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ── demo bar ── */
.demo-bar { background: #FFF3CD; color: #6B4E00; font-size: 12.5px; font-weight: 700; text-align: center; padding: 7px 12px; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 60; background: rgba(250, 247, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.top-in { height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: var(--surface); box-shadow: var(--sh-1); flex: 0 0 auto; }
.brand .logo-mark { flex: 0 0 auto; border-radius: 12px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { flex: 1 1 auto; max-width: 460px; margin-inline: auto; position: relative; display: flex; align-items: center; }
.top-search .ic { position: absolute; inset-inline-start: 14px; color: var(--text-3); pointer-events: none; }
.top-search input { width: 100%; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); padding: 0 44px; font-size: 14.5px; transition: border-color var(--t), box-shadow var(--t); }
.top-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.top-search input::-webkit-search-cancel-button { display: none; }
.q-clear { position: absolute; inset-inline-end: 6px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.q-clear:hover { background: var(--surface-2); color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: 0 0 auto; }
.icon-btn { height: 42px; min-width: 42px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); font-weight: 800; font-size: 13px; transition: background var(--t); position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.cart-btn .count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.cart-btn .count:empty, .cart-btn .count[data-n="0"] { display: none; }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.only-mobile { display: none; }
@media (max-width: 760px) {
  .top-in { gap: 8px; }
  .top-search { display: none; }
  .only-mobile { display: inline-flex; }
  .top.searching .top-search { display: flex; position: absolute; inset: 0 12px; max-width: none; background: var(--bg); align-items: center; }
  .top.searching .brand, .top.searching .top-actions { visibility: hidden; }
}

/* language menu */
.lang-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 6px; z-index: 80; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-align: start; }
.menu button:hover { background: var(--surface-2); }
.menu button.on { color: var(--brand-strong); background: var(--brand-soft); }
.menu button .ic { color: var(--brand); }

/* ── hero ── */
.hero { margin-top: 10px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 240px; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #0F3D27, #1F7A4D);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--brand) 55%, #9BE15D) 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #0B2E1E 0%, transparent 60%), var(--brand-strong); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 34c0-9 6-16 18-17-1 12-8 17-18 17Zm0 0 10-9'/%3E%3Ccircle cx='86' cy='28' r='9'/%3E%3Cpath d='M78 92c6-10 18-10 24 0M90 82v-6'/%3E%3Cpath d='M26 88h22l-3 14H29Z'/%3E%3C/svg%3E"); }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-card.has-img::before { display: none; }
.hero-card.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 20, 13, .86) 0%, rgba(6, 20, 13, .35) 55%, rgba(6, 20, 13, .05) 100%); }
.hero-in { width: 100%; padding: 22px; display: flex; align-items: flex-end; gap: 16px; }
.hero-logo { width: 76px; height: 76px; border-radius: 22px; object-fit: contain; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); border: 3px solid rgba(255, 255, 255, .9); flex: 0 0 auto; }
.hero-in .logo-mark { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); border: 3px solid rgba(255, 255, 255, .9); }
.hero-txt { min-width: 0; flex: 1; }
.hero h1 { font-size: clamp(24px, 4.4vw, 38px); line-height: 1.25; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.hero p { margin-top: 4px; font-size: clamp(13.5px, 1.6vw, 16px); opacity: .9; max-width: 640px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.glass { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: 13px; transition: background var(--t); }
a.glass:hover, button.glass:hover { background: rgba(255, 255, 255, .26); }
.glass .ic { width: 17px; height: 17px; }
.glass.icon { width: 34px; padding: 0; justify-content: center; }
.star-c { color: #FFC83D; }
@media (min-width: 761px) { .hero-card { min-height: 320px; } .hero-in { padding: 32px; } .hero-logo, .hero-in .logo-mark { width: 92px; height: 92px; border-radius: 26px; } }
@media (max-width: 480px) { .hero-in { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ── announcement marquee ── */
.ann { margin-top: 12px; border-radius: var(--r); overflow: hidden; color: #fff; font-weight: 700; font-size: 14px; position: relative; }
.ann-track { display: flex; width: max-content; padding: 10px 0; animation: marquee var(--speed, 20s) linear infinite; }
.ann-track span { padding-inline: 32px; white-space: nowrap; }
.ann:hover .ann-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ann-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── perks ── */
.perks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; }
.perks::-webkit-scrollbar { display: none; }
.perk { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; flex: 0 0 auto; }
.perk .ic { width: 17px; height: 17px; color: var(--brand); }
a.perk:hover { border-color: var(--brand-line); color: var(--text); }

/* ── categories ── */
.cats { position: sticky; top: 64px; z-index: 50; background: var(--bg); margin-top: 6px; }
.cats.stuck { box-shadow: 0 10px 18px -18px rgba(0, 0, 0, .5); }
.cats-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; scroll-behavior: smooth; }
.cats-row::-webkit-scrollbar { display: none; }
.cats .chip { flex: 0 0 auto; height: 40px; padding: 0 16px; font-size: 14px; }
.cats .chip .em { font-size: 17px; line-height: 1; }

/* ── featured rail ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.sec-head h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.sec-head h2 .ic { color: var(--accent); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 200px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { gap: 14px; grid-auto-columns: calc((100% - 28px) / 3); } }
@media (min-width: 960px) { .rail { gap: 16px; grid-auto-columns: calc((100% - 48px) / 4); } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 64px) / 5); } }

/* ── toolbar ── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.toolbar h2 { font-size: 19px; }
.toolbar .count { color: var(--text-3); font-size: 13px; font-weight: 700; margin-inline-start: 8px; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools .select { min-height: 38px; height: 38px; padding-top: 0; padding-bottom: 0; font-size: 13.5px; font-weight: 700; border-radius: 11px; width: auto; }
.view-seg button { width: 38px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.view-seg .ic { width: 18px; height: 18px; }

/* ── product grid & card ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 40px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pc { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; content-visibility: auto; contain-intrinsic-size: 300px; }
@media (hover: hover) { .pc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); } .pc:hover .pc-media img { transform: scale(1.045); } }
.pc-media { position: relative; display: block; width: 100%; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 46px; background: radial-gradient(circle at 50% 40%, var(--brand-soft), var(--surface-2) 70%); }
.ph-ic { color: var(--brand-line); }
.ph-ic .ic { width: 44px; height: 44px; }
.pc-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.tag-new { background: var(--brand); }
.tag-dark { background: rgba(22, 32, 27, .82); }
.pc.out .pc-media img, .pc.out .ph { filter: grayscale(1); opacity: .55; }
.pc-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pc-name { font-family: var(--font); font-size: 14.5px; font-weight: 700; line-height: 1.45; min-height: 2.9em; }
.pc-unit { font-size: 12px; color: var(--text-3); font-weight: 600; }
.pc-stock { font-size: 11.5px; font-weight: 800; color: var(--warn); }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.price b { font-family: "Manrope", var(--font); font-size: 16px; font-weight: 800; color: var(--brand-strong); white-space: nowrap; }
[data-theme="dark"] .price b { color: #7FD6A6; }
.price b small { font-size: 11px; font-weight: 700; color: var(--text-3); margin-inline-end: 3px; }
.price s { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.price .req { font-size: 13px; font-weight: 800; color: var(--text-2); }
.add-btn { width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 16px -10px var(--brand); transition: transform .15s, background var(--t); }
.add-btn:hover { background: var(--brand-strong); }
.add-btn:active { transform: scale(.9); }
.add-btn[disabled] { background: var(--surface-3); color: var(--text-3); box-shadow: none; }
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 13px; background: var(--brand-soft); border: 1px solid var(--brand-line); flex: 0 0 auto; }
.stepper button { width: 34px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-strong); }
[data-theme="dark"] .stepper button { color: #9FE0BC; }
.stepper button .ic { width: 17px; height: 17px; }
.stepper input, .stepper output { width: 34px; text-align: center; font-weight: 800; font-size: 15px; border: 0; background: transparent; padding: 0; font-family: "Manrope", var(--font); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

/* list view */
.grid.list { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 960px) { .grid.list { grid-template-columns: 1fr 1fr; } }
.grid.list .pc { flex-direction: row; align-items: stretch; border-radius: var(--r); contain-intrinsic-size: 110px; }
.grid.list .pc-media { width: 104px; aspect-ratio: auto; flex: 0 0 auto; }
.grid.list .ph { font-size: 34px; }
.grid.list .pc-badges { top: 6px; inset-inline-start: 6px; }
.grid.list .tag { height: 20px; font-size: 10.5px; padding: 0 6px; }
.grid.list .pc-body { padding: 10px 12px; }
.grid.list .pc-name { min-height: 0; }
@media (hover: hover) { .grid.list .pc:hover { transform: none; } }

.skel-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.skel-card .sk-img { aspect-ratio: 1; border-radius: 0; }
.skel-card .sk-l { height: 12px; margin: 12px; }
.skel-card .sk-l.s { width: 50%; margin-top: 0; }

/* ── footer ── */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 20px; padding: 30px 0 calc(110px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; } .foot { padding-bottom: 40px; } }
.foot h3 { font-size: 15px; margin-bottom: 10px; }
.foot p, .foot a { color: var(--text-2); font-size: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; }
.foot-links a:hover { color: var(--brand); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soc { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); transition: all var(--t); }
.soc:hover { background: var(--brand); color: #fff; }
.foot-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── floating cart bar (phones) ── */
.cart-bar { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 58px; border-radius: 18px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 16px; box-shadow: 0 18px 40px -16px rgba(12, 48, 30, .7); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--brand) 85%, #000), 0 6px 14px -6px rgba(0, 0, 0, .3); font-weight: 800; transform: translateY(0); transition: transform .3s var(--ease), opacity .3s; }
html[dir="rtl"] .cart-bar { padding: 0 16px 0 10px; }
.cart-bar[hidden] { display: flex !important; transform: translateY(140%); opacity: 0; pointer-events: none; }
.cart-bar .cb-n { min-width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; padding: 0 6px; }
.cart-bar .cb-l { display: flex; align-items: center; gap: 10px; }
.cart-bar .cb-t { background: rgba(0, 0, 0, .16); height: 40px; border-radius: 12px; padding: 0 14px; display: inline-flex; align-items: center; font-family: "Manrope", var(--font); }
@media (min-width: 761px) { .cart-bar { left: auto; right: 24px; width: 360px; } html[dir="rtl"] .cart-bar { right: auto; left: 24px; } }

/* ── product sheet ── */
.sheet-product { max-width: 980px; }
.pd { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 26px; } }
.gal { position: relative; margin: -18px -18px 0; background: var(--surface-2); }
@media (min-width: 820px) { .gal { margin: 0; border-radius: var(--r-lg); overflow: hidden; align-self: start; position: sticky; top: 0; } }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track > * { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 100%; }
.gal-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-track .ph { font-size: 90px; }
.gal-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); transition: width .25s var(--ease), background .25s; }
.gal-dots i.on { width: 20px; background: #fff; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #16201B; display: none; align-items: center; justify-content: center; box-shadow: var(--sh-1); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; } /* the track is always LTR */
@media (hover: hover) { .gal:hover .gal-nav.can { display: inline-flex; } }
.gal-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.gal-thumbs button { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; border: 2px solid transparent; opacity: .65; transition: all var(--t); background: var(--surface-2); }
.gal-thumbs button.on { border-color: var(--brand); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); color: #16201B; }
.pd-info { padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 820px) { .pd-info { padding-top: 4px; } }
.pd-cat { font-size: 12.5px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.pd-title { font-size: clamp(20px, 2.6vw, 26px); }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.pd-price b { font-family: "Manrope", var(--font); font-size: 26px; font-weight: 800; color: var(--brand-strong); }
[data-theme="dark"] .pd-price b { color: #7FD6A6; }
.pd-price s { color: var(--text-3); font-size: 15px; }
.pd-price .per { color: var(--text-3); font-size: 13.5px; font-weight: 700; }
.opt-label { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 42px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; transition: all var(--t); }
.opt small { font-size: 11.5px; color: var(--text-3); font-weight: 700; font-family: "Manrope", var(--font); }
.opt:hover { border-color: var(--text-3); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); box-shadow: 0 0 0 1px var(--brand) inset; }
.opt.on small { color: var(--brand-strong); }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); transition: box-shadow var(--t); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--brand); }
.opt-color { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.pd-desc { color: var(--text-2); font-size: 14.5px; white-space: pre-line; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.pd-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-table td:first-child { color: var(--text-2); font-weight: 700; width: 40%; background: var(--surface-2); }
.pd-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r); background: #000; }
.pd-video.tall iframe { aspect-ratio: 9/16; max-height: 70vh; max-width: 360px; margin: 0 auto; display: block; }
.pd-stock { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.pd-stock.low { color: var(--warn); } .pd-stock.out { color: var(--err); } .pd-stock.ok { color: var(--ok); }
.pd-foot { display: flex; align-items: center; gap: 10px; }
.pd-foot .stepper { height: 52px; border-radius: var(--r); }
.pd-foot .stepper button { width: 42px; }
.pd-foot .stepper input { width: 40px; font-size: 17px; }
.pd-foot .btn { flex: 1; min-width: 0; }
@media (max-width: 430px) { .pd-foot .btn .num { display: none; } }
.sec-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ── cart ── */
.sheet-cart { max-width: 520px; }
.ci { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci:first-child { padding-top: 0; }
.ci-img { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; background: var(--surface-2); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img .ph { font-size: 28px; }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.ci-var { font-size: 12px; color: var(--text-3); font-weight: 700; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ci-row .stepper { height: 36px; border-radius: 11px; }
.ci-row .stepper button { width: 32px; }
.ci-total { font-family: "Manrope", var(--font); font-weight: 800; font-size: 15px; white-space: nowrap; }
.ci-del { color: var(--text-3); width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.ci-del:hover { color: var(--err); background: var(--err-soft); }
.ci-del .ic { width: 17px; height: 17px; }
.box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.box-title { font-weight: 800; font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box-title .ic { color: var(--brand); }
.box .field:last-child { margin-bottom: 0; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; text-align: center; line-height: 1.3; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); box-shadow: 0 0 0 1px var(--brand) inset; }
.pay-info { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--brand-line); display: flex; gap: 12px; align-items: flex-start; }
.pay-info img { width: 110px; height: 110px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.pay-info .copy-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; font-weight: 800; }
.pay-info .copy-row span { font-family: "Manrope", var(--font); direction: ltr; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-2); padding: 3px 0; }
.sum-row b { color: var(--text); font-family: "Manrope", var(--font); }
.sum-row.grand { font-size: 17px; color: var(--text); font-weight: 800; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.sum-row.grand b { color: var(--brand-strong); font-size: 19px; }
[data-theme="dark"] .sum-row.grand b { color: #7FD6A6; }
.cart-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.link-btn { color: var(--text-3); font-size: 13px; font-weight: 700; padding: 6px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--err); }

/* ── success ── */
.done { text-align: center; max-width: 420px; }
.done-ic { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; animation: popin .5s var(--ease); }
.done-ic .ic { width: 40px; height: 40px; stroke-width: 2.5; }
.done-ic.wa { background: #E3F7EA; color: #1FAF54; }
@keyframes popin { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.done h2 { font-size: 22px; margin-bottom: 6px; }
.done p { color: var(--text-2); margin-bottom: 18px; }
.done .no { display: inline-block; font-family: "Manrope", var(--font); font-weight: 800; color: var(--brand-strong); background: var(--brand-soft); padding: 2px 10px; border-radius: 8px; }
.done .stack { gap: 8px; }

/* ── review stars ── */
.stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 16px; direction: ltr; }
.stars button { width: 46px; height: 46px; color: var(--line-2); transition: transform .15s, color .15s; }
.stars button .ic { width: 40px; height: 40px; }
.stars button.on { color: var(--gold); }
.stars button.on .ic { fill: currentColor; }
.stars button:active { transform: scale(.85); }

/* ── WhatsApp picker ── */
.wa-pick { display: flex; flex-direction: column; gap: 10px; }
.wa-pick a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: #1FAF54; color: #fff; font-weight: 800; }
.wa-pick a small { display: block; font-weight: 600; opacity: .85; font-family: "Manrope", var(--font); direction: ltr; text-align: start; }
html[dir="rtl"] .wa-pick a small { text-align: right; }
.wa-pick .ic { width: 26px; height: 26px; }

/* ════════════════ templates ════════════════ */
/* market — dense wholesale catalogue */
html[data-tpl="market"] .hero-card { min-height: 0; }
html[data-tpl="market"] .hero-in { padding: 18px; }
html[data-tpl="market"] .hero h1 { font-size: clamp(20px, 3vw, 28px); }
html[data-tpl="market"] .hero-logo, html[data-tpl="market"] .hero-in .logo-mark { width: 60px; height: 60px; border-radius: 18px; }
html[data-tpl="market"] .pc { border-radius: var(--r); }
html[data-tpl="market"] .grid:not(.list) .pc-name { font-size: 13.5px; }

/* noir — dark, premium */
html[data-tpl="noir"] { --bg: #0C100E; --surface: #131915; --surface-2: #19211C; --surface-3: #212B25; --line: #222C26; --line-2: #2F3B34; --text: #EEF3EF; --text-2: #B0BBB4; --text-3: #7B8780; --brand-soft: color-mix(in srgb, var(--brand) 20%, #0C100E); --brand-line: color-mix(in srgb, var(--brand) 45%, #0C100E); color-scheme: dark; }
html[data-tpl="noir"] .top { background: rgba(12, 16, 14, .82); }
html[data-tpl="noir"] .price b, html[data-tpl="noir"] .pd-price b, html[data-tpl="noir"] .sum-row.grand b { color: color-mix(in srgb, var(--brand) 55%, #fff); }
html[data-tpl="noir"] .btn-soft, html[data-tpl="noir"] .stepper button, html[data-tpl="noir"] .opt.on, html[data-tpl="noir"] .pay-opt.on { color: color-mix(in srgb, var(--brand) 50%, #fff); }
html[data-tpl="noir"] .hero-card { background: #0A0E0C; background: radial-gradient(90% 90% at 80% 0%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 60%), #0A0E0C; }
html[data-tpl="noir"] .ph { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand) 18%, #131915), #131915 70%); }
html[data-tpl="noir"] .demo-bar { background: #3A2E0A; color: #FFE08A; }

/* showcase — big photography, editorial */
html[data-tpl="showcase"] .grid:not(.list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { html[data-tpl="showcase"] .grid:not(.list) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
html[data-tpl="showcase"] .grid:not(.list) .pc { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
html[data-tpl="showcase"] .grid:not(.list) .pc-media { aspect-ratio: 4/5; border-radius: var(--r-lg); }
html[data-tpl="showcase"] .grid:not(.list) .pc-body { padding: 10px 2px 0; }
html[data-tpl="showcase"] .grid:not(.list) .pc-name { font-family: var(--font-head); font-size: 15.5px; min-height: 0; }
@media (hover: hover) { html[data-tpl="showcase"] .grid:not(.list) .pc:hover { transform: none; box-shadow: none; } }
html[data-tpl="showcase"] .hero-card { min-height: 320px; }
@media (min-width: 761px) { html[data-tpl="showcase"] .hero-card { min-height: 420px; } }
