:root {
  --bg: #f8fafc;
  --line: #e4e9f0;
  --ink: #111827;
  --ink2: #374151;
  --ink3: #6b7280;
  --r: 8px;
  --rsm: 6px;
  --rxs: 5px;
}
* { letter-spacing: 0 !important; }
[hidden] { display: none !important; }
@media(min-width:640px) {
  body[data-page="page-store"] { padding-top: 0; }
}
.hero-body { padding-bottom: 16px; }
.hero-pills { gap: 6px; align-items: center; }
.hero-pill {
  min-height: 28px; padding: 4px 9px; font-size: 11px;
  line-height: 18px; white-space: nowrap; border-radius: 16px;
}
.hero-pill.open { animation: none; }
.hero-rating { font-family: inherit; cursor: pointer; }
.hero-rating:hover { background: #ffffff30; }
.hero-rating:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.rating-star { color: #fbbf24; }
.reviews-dialog { width: min(460px,calc(100% - 28px)); max-height: 80vh; margin: auto; padding: 20px; background: #fff; color: #111827; border: 1px solid #e4e9f0; border-radius: 8px; }
.reviews-dialog::backdrop { background: #0008; }
.reviews-dialog { overflow-y: auto; }
.reviews-dialog[open] { display: flex; flex-direction: column; }
#reviews-list { min-height: 0; overflow-y: auto; }
.reviews-heading, #reviews-summary, #reviews-pagination { flex-shrink: 0; }
.orders-modal { border-radius: 8px; }
.orders-modal > .list-pagination { flex-shrink: 0; padding: 12px 18px; margin-top: 0; background: #fff; }
.om-phone-row input { height: 44px; padding: 0 12px; border-radius: 5px; }
.om-btn { height: 44px; border-radius: 5px; box-shadow: none; }
.om-order { border-radius: 6px; }
.om-phone-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
#reviews-error { color: #dc2626; font-size: 12px; margin-top: 12px; }
#reviews-retry { margin-top: 10px; padding: 8px 12px; border: 1px solid #e4e9f0; border-radius: 5px; background: #fff; cursor: pointer; }
.reviews-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews-heading h2 { font-size: 18px; }
.reviews-heading button { width: 36px; height: 36px; border: 1px solid #e4e9f0; border-radius: 5px; background: #fff; font-size: 24px; cursor: pointer; }
#reviews-summary, #reviews-list { margin-top: 12px; font-size: 13px; }
.public-review { padding: 14px 0; border-top: 1px solid #e4e9f0; }
.public-review > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.public-review p { margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.public-review time, .public-review small { font-size: 11px; color: #6b7280; }
.benefits {
  margin: 12px auto 0; padding: 0 12px; gap: 8px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.benefit {
  min-height: 64px; padding: 10px; gap: 7px; align-items: flex-start;
  border-radius: 8px; box-shadow: 0 2px 8px #11182705;
}
.benefit svg { width: 16px; height: 16px; margin-top: 1px; }
.benefit strong { font-size: 11px; line-height: 1.3; }
.benefit span { font-size: 10px; line-height: 1.35; font-weight: 500; overflow-wrap: normal; }
@media(max-width:480px) {
  .hero-pills { gap: 5px; }
  .hero-pill { font-size: 10px; padding: 4px 7px; }
  .benefits { padding: 0 10px; gap: 6px; }
  .benefit { padding: 9px 8px; gap: 5px; }
  .benefit svg { width: 15px; height: 15px; }
  .benefit strong { font-size: 10px; }
  .benefit span { font-size: 9px; }
}
@media(max-width:359px) {
  .benefit { flex-direction: column; gap: 5px; }
}
.co-top { background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
.co-top h2 { font-family: var(--font-sans); font-size: 18px; }
.co-back { box-shadow: none; }
.co-body { max-width: 540px; padding: 16px 14px 30px; }
.co-card { border-radius: 8px; border: 1px solid var(--line); padding: 16px; box-shadow: 0 2px 10px #11182705; }
.co-card h3 { font-family: var(--font-sans); font-size: 13px; }
.co-steps { max-width: 420px; padding-top: 16px; }
.cs { width: 60px; gap: 6px; }
.cs-dot { width: 20px; height: 20px; border-width: 1px; }
.cs-dot svg { width: 11px; height: 11px; }
.cs.active .cs-dot { box-shadow: none; }
.cs-line { margin-top: 10px; }
.cs-lbl { font-size: 9px; }
.ci { padding: 10px 0; gap: 9px; flex-wrap: wrap; }
.ci-thumb { width: 44px; height: 54px; background: #f8fafc; border-radius: 5px; }
.ci-thumb img { object-fit: contain; }
.ci-name { font-size: 11px; }
.ci-each { font-size: 9px; }
.ci-sub { font-size: 12px; min-width: 58px; }
.ctrl, .ci-qty { width: 25px; height: 25px; min-width: 25px; border-radius: 5px; font-size: 12px; }
.co-totals .tr { font-size: 12px; }
.co-totals .tr.grand { background: #fff; border-radius: 0; border-top: 1px solid var(--line); padding: 12px 0 0; font-family: var(--font-sans); font-size: 16px; }
.co-totals .tr.grand span:last-child { font-size: 18px; }
.co-body .fg label { font-size: 11px; text-transform: none; }
.co-body input, .co-body textarea { border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.co-body .inp input { padding-left: 34px; }
.inp-ico { left: 10px; }
.inp-ico svg { width: 15px; height: 15px; }
.coupon-input-row { align-items: stretch; gap: 8px; }
.coupon-input-row .inp { flex: 1; min-width: 0; }
.co-body .coupon-input-row input {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px 0 34px;
  background: #fff; color: var(--ink); font-family: var(--font-sans);
  font-size: 14px; line-height: normal; outline: none;
}
.co-body .coupon-input-row input::placeholder { text-transform: none; color: var(--ink3); opacity: 1; }
.co-body .coupon-input-row input:focus { border-color: var(--c-link,var(--brand)); box-shadow: 0 0 0 2px var(--brand-l); }
.coupon-input-row .btn-coupon {
  flex: 0 0 auto; min-width: 84px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 13px; line-height: 1;
}
.coupon-input-row .btn-coupon:focus-visible { outline: 2px solid var(--c-link,var(--brand)); outline-offset: 2px; }
.coupon-msg { border-radius: 5px; }
.payment-method { border-radius: 6px; padding: 12px 10px; box-shadow: none; }
.payment-method-icon { border-radius: 5px; }
.payment-method-name { font-size: 12px; }
.payment-method-desc { font-size: 10px; }
.btn-wpp-order { background: var(--c-btn,var(--grad-brand)); border-radius: 6px; font-size: 13px; padding: 13px 12px; box-shadow: 0 3px 10px #ff5a1f24; }
.btn-wpp-order:disabled { opacity: .6; cursor: wait; }
.co-btn-total { font-size: 13px; }
.secure-note { font-size: 9px; text-align: center; }
.success-pg { max-width: 430px; margin: 0 auto; padding: 70px 24px 30px; }
.success-pg h1 { font-family: var(--font-sans); font-size: 25px; }
.success-pg > p { font-size: 13px; }
.success-ring { width: 76px; height: 76px; box-shadow: none; }
.success-num, .btn-open-wpp, .btn-track-order, .btn-new-order { border-radius: 6px; }
.success-actions { display: flex; flex-direction: column; gap: 10px; }
.success-actions .btn-track-order { order: -1; background: #00b55f; color: white; border-color: #00b55f; }
.success-actions .btn-open-wpp { background: white; border: 1px solid #00b55f; color: #00a957; }
@media(max-width:400px) {
  .co-body { padding: 12px 10px 24px; }
  .co-card { padding: 12px; }
  .ci-info { flex-basis: 150px; }
  .ci-qtybox { margin-left: 53px; }
  .ci-sub { margin-left: auto; }
  .co-card .form-row { flex-wrap: wrap; }
  .co-card .form-row:has(#c-phone) { flex-direction: column; }
  .co-card .form-row:has(#c-phone) .fg { width: 100%; }
  .co-card .form-row .fg { min-width: 110px; }
}
/* Demo catalogs use the compact, photo-first storefront from the reference. */
body[data-demo="true"] .app-header { background: var(--c-header); height: 64px; }
body[data-demo="true"] .hdr-name, body[data-demo="true"] .hdr-sub, body[data-demo="true"] .hdr-btn { color: #fff; }
body[data-demo="true"] .hdr-logo { width: 38px; height: 38px; }
body[data-demo="true"] .hdr-name { font-size: 18px; }
body[data-demo="true"] .hero { min-height: 338px; padding-top: 64px; }
body[data-demo="true"] .hero-overlay { background: linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.18)); }
body[data-demo="true"] .hero-logo { display: none; }
body[data-demo="true"] .hero-body { padding: 26px 18px 30px; }
body[data-demo="true"] .hero-name { font-size: 30px; line-height: 1.08; max-width: 260px; text-transform: none; letter-spacing: 0; }
body[data-demo="true"] .hero-desc { font-size: 13px; max-width: 240px; line-height: 1.45; }
body[data-demo="true"] .hero-pills { max-width: 390px; }
body[data-demo="true"] .hero-pill { font-size: 10px; padding: 5px 8px; }
body[data-demo="true"] .demo-pill { background: #fff; color: #263238; }
body[data-demo="true"] .cat-btn { font-size: 11px; padding: 9px 13px; border-radius: 20px; }
body[data-demo="true"] .cat-btn svg { display: none; }
body[data-demo="true"] .section-head h2 { font-size: 17px; }
body[data-demo="true"] .prod-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body[data-demo="true"] .cat-label { grid-column: 1 / -1; margin-top: 12px; }
body[data-demo="true"] .cat-label:first-child { display: none; }
body[data-demo="true"] .pr { display: flex; flex-direction: column; position: relative; gap: 0; padding: 0; border-radius: 8px; overflow: hidden; min-width: 0; }
body[data-demo="true"] .pr-img { width: 100%; height: 140px; flex: none; border-radius: 0; background: #fff; }
body[data-demo="true"] .pr-img img { width: 100%; height: 100%; object-fit: var(--demo-image-fit,cover); }
body[data-demo="true"] .pr-body { padding: 10px 9px 12px; min-height: 108px; justify-content: flex-start; }
body[data-demo="true"] .pr-name { font-size: 12px; line-height: 1.35; min-height: 33px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body[data-demo="true"] .pr-desc { font-size: 10px; line-height: 1.4; height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body[data-demo="true"] .pr-price { font-size: 15px; line-height: 30px; padding-right: 34px; margin-top: auto; }
body[data-demo="true"] .pr-side { position: absolute; inset: 0; pointer-events: none; }
body[data-demo="true"] .pr-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; pointer-events: auto; background: #fff; border-radius: 50%; }
body[data-demo="true"] .pr-fav svg { width: 17px; height: 17px; }
body[data-demo="true"] .btn-add { position: absolute; bottom: 12px; right: 9px; width: 30px; height: 30px; font-size: 23px; pointer-events: auto; }
body[data-demo="true"] .pr-qty { position: absolute; right: 8px; bottom: 45px; }
.demo-checkout-note { padding: 10px 12px; background: #fff7de; color: #684809; border: 1px solid #f3d681; border-radius: 6px; font-size: 12px; }
#demo-photo-credits:not([hidden]) { display: block; font-size: 11px; margin-top: 12px; color: var(--c-text); }
@media (min-width: 760px) {
  body[data-demo="true"] .hero { min-height: 370px; }
  body[data-demo="true"] .hero-name { font-size: 40px; max-width: 440px; }
  body[data-demo="true"] .hero-desc { max-width: 340px; }
  body[data-demo="true"] .pr-img { height: 180px; }
}
@media (min-width: 1024px) {
  body[data-demo="true"] .prod-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
