:root {
  --bg: #fff;
  --text: #141414;
  --muted: #6b6b70;
  --line: #e7e4df;
  --soft: #f5f3ef;
  --border: #cfcac2;
  --accent: #111;
  --wa: #0e7c55;
  --wa-hover: #0a6545;
  --danger: #b42318;
  --gutter: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 6px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.985); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { filter: brightness(1.25); }
.btn-ghost { background: #fff; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

/* ── header / footer ─────────────────────── */
.announce { background: #111; color: #fff; font-size: 12.5px; text-align: center; padding: 8px var(--gutter); letter-spacing: .02em; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-size: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.brand-logo { max-height: 32px; width: auto; }
.header-chat { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.header-chat svg { width: 20px; height: 20px; }
@media (max-width: 359px) { .header-chat span { display: none; } }

.site-footer { margin-top: 72px; background: var(--soft); border-top: 1px solid var(--line); padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-brand { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 600; text-decoration: none; }
.footer-wa svg { width: 20px; height: 20px; }
.footer-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 14px; word-break: break-all; }
.footer-mail svg { width: 19px; height: 19px; flex: none; }
.socials { display: flex; gap: 14px; }
.socials a { display: inline-flex; color: var(--text); }
.socials svg { width: 22px; height: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.pay-accept { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.paypal { display: inline-flex; align-items: center; padding: 3px 9px; background: #fff; border: 1px solid var(--line); border-radius: 5px; font: italic 800 14px/1.25 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.paypal i { font-style: italic; }
.paypal i:first-child { color: #003087; }
.paypal i:last-child { color: #009cde; }
.copyright { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ── contact & policy pages ──────────────── */
.legal { max-width: 780px; padding-top: 40px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
@media (min-width: 768px) { .legal h1 { font-size: 40px; } }
.legal-updated { font-size: 13.5px; margin-bottom: 26px; }
.legal-body { font-size: 15.5px; line-height: 1.7; margin-top: 18px; }
.legal-body h2 { font-size: 18px; line-height: 1.3; margin: 30px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.contact-cards { display: grid; gap: 12px; margin: 26px 0 16px; }
@media (min-width: 600px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.contact-card:hover { border-color: var(--text); }
.contact-card > svg { width: 28px; height: 28px; flex: none; }
.contact-card.is-wa > svg { color: var(--wa); }
.contact-card b { display: block; font-size: 16px; }
.contact-card b + span { display: block; color: var(--muted); font-size: 14px; word-break: break-all; }
.contact-address { white-space: pre-line; font-size: 14.5px; }

/* ── home ────────────────────────────────── */
.hero { position: relative; background: var(--soft); padding: 40px 0 32px; text-align: center; overflow: hidden; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; letter-spacing: -.01em; }
.hero-sub { color: var(--muted); max-width: 34em; margin: 10px auto 0; }
.hero.has-image { padding: 96px 0 40px; color: #fff; }
.hero.has-image .hero-sub { color: rgba(255, 255, 255, .88); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); }
.hero-inner { position: relative; z-index: 2; }
@media (min-width: 768px) { .hero { padding: 64px 0 48px; } .hero h1 { font-size: 46px; } }

.code-search {
  display: flex; align-items: center; gap: 6px; max-width: 440px; margin: 22px auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 4px 4px 14px; color: var(--text);
}
.code-search:focus-within { border-color: var(--text); }
.code-search-icon { display: inline-flex; color: var(--muted); }
.code-search-icon svg { width: 18px; height: 18px; }
.code-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 8px 4px; }
.code-search input::-webkit-search-cancel-button { display: none; }
.code-search .btn { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; }
.code-msg { margin-top: 10px; color: var(--danger); font-size: 13.5px; }
.code-msg.is-found { color: var(--wa); }

.shop { padding-top: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { display: block; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); border-radius: 4px; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.card-media .alt { opacity: 0; }
@media (hover: hover) {
  .card a:hover .card-media .alt { opacity: 1; }
  .card a:hover .card-media img { transform: scale(1.02); }
}
.is-soldout .card-media img { opacity: .6; }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: #fff; color: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.badge-muted { background: #111; color: #fff; }
.card-body { padding-top: 10px; }
.card-title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.code { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.mini-swatches { display: flex; gap: 5px; margin-top: 8px; }
.mini-swatches i { width: 11px; height: 11px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.highlights { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.highlights-inner { display: grid; gap: 20px; }
@media (min-width: 768px) { .highlights-inner { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 2px; }
.highlight-title { font-weight: 600; margin-bottom: 2px; }
.highlight .muted { font-size: 14px; }

.faq { max-width: 780px; padding-top: 56px; }
.faq h2, .related h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 12px; }

/* ── accordions ──────────────────────────── */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 500; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; font-weight: 300; line-height: 1; color: var(--muted); }
.acc[open] summary::after { content: "−"; }
.acc > p, .acc > .table-scroll, .acc > .muted { color: var(--muted); padding-bottom: 16px; }
.acc > .table-scroll { padding-bottom: 8px; }

/* ── product page ────────────────────────── */
.crumbs { padding-top: 12px; padding-bottom: 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 16px; height: 16px; }

.product { display: grid; gap: 0; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .info { position: sticky; top: 76px; }
}

.gallery { margin: 0 calc(-1 * var(--gutter)); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 4 / 5; margin: 0; scroll-snap-align: start; background: var(--soft); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d4d0c9; transition: width .25s, background-color .25s; }
.gallery-dots i.is-active { width: 18px; background: var(--text); }
.gallery-thumbs { display: none; }
@media (min-width: 900px) {
  .gallery { margin: 0; }
  .gallery-track { border-radius: 4px; }
  .gallery-dots { display: none; }
  .gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; background: var(--soft); cursor: pointer; opacity: .7; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .thumb.is-active { border-color: var(--text); opacity: 1; }
}

.info { padding-top: 18px; }
.info-code { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.soldout-tag { color: var(--danger); font-weight: 600; }
.badge-tag { color: var(--text); font-weight: 600; }
.info-title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.2; margin: 6px 0 8px; }
@media (min-width: 900px) { .info-title { font-size: 34px; } }
.info-price { display: flex; align-items: center; gap: 10px; }
.price-lg { font-size: 20px; }
.save { background: #fdecea; color: var(--danger); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }

.options { margin-top: 22px; }
.opt { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; width: 100%; }
.opt-value { font-weight: 400; color: var(--muted); }
.size-guide-link { float: right; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch, .size { position: relative; cursor: pointer; }
.swatch input, .size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); transition: box-shadow .15s; }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px #fff, 0 0 0 3.5px var(--text); }
.swatch input:focus-visible + span, .size input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 4px; }
.size span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.size:hover span { border-color: var(--text); }
.size input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt.has-error .size span { border-color: var(--danger); }
.opt-error { color: var(--danger); font-size: 13.5px; margin-top: 8px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.actions { display: grid; gap: 10px; margin: 4px 0 26px; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -12px 0 26px; font-size: 13px; color: var(--muted); }
.pay-note svg { width: 16px; height: 16px; flex: none; }

/* PayPal checkout */
.btn-paypal { background: #ffc439; color: #111; }
.btn-paypal:hover { background: #f2b52a; }
.btn-paypal .paypal { background: none; border: 0; padding: 0; font-size: 18px; }
.btn-paypal:disabled { opacity: .75; cursor: progress; }
.btn-paypal.is-busy .paypal { display: none; }
.ship-line { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.ship-line svg { width: 17px; height: 17px; flex: none; }
.opt-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--soft); }
.qty input { width: 48px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-error { color: var(--danger); font-size: 14px; text-align: center; }
.buy-error.is-neutral { color: var(--muted); }

/* order confirmation */
.order-page { max-width: 640px; padding-top: 40px; }
.order-head { text-align: center; }
.order-head h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 14px 0 10px; }
.order-head p { color: var(--muted); line-height: 1.6; }
.order-head .btn { margin-top: 18px; }
.order-icon { width: 56px; height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); font-size: 26px; font-weight: 700; }
.order-icon.is-ok { background: #e3f4ec; color: var(--wa); }
.order-icon.is-bad { background: #fdecea; color: var(--danger); }
.order-tracking { margin-top: 8px; color: var(--text) !important; }
.order-box { margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.order-no { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-item img { width: 52px; height: 65px; object-fit: cover; border-radius: 4px; background: var(--soft); flex: none; }
.order-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-item .muted { font-size: 13.5px; }
.order-sum { margin: 12px 0 0; }
.order-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; }
.order-sum dt { color: var(--muted); }
.order-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.order-sum .order-total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.order-sum .order-total dt { color: var(--text); }
.order-ship { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.order-ship .muted { font-size: 13px; margin-bottom: 4px; }
.order-help { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.order-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 600; text-decoration: none; }
.order-help svg { width: 18px; height: 18px; }
.desc { font-size: 15px; line-height: 1.65; }
.details-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.accordions { margin-top: 22px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--soft); color: var(--text); font-weight: 600; }

.related { margin-top: 64px; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar .btn { flex: 1; min-height: 48px; }
.mobile-bar-price { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.page-product .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  .page-product .site-footer { padding-bottom: 24px; }
}

/* ── WhatsApp fallback sheet ─────────────── */
.wa-sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .4); }
.wa-sheet-panel { width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0; padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); animation: up .25s ease; }
@media (min-width: 600px) { .wa-sheet { align-items: center; } .wa-sheet-panel { border-radius: 16px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.wa-sheet-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--wa); }
.wa-sheet-title svg { width: 22px; height: 22px; }
.wa-sheet-fallback { margin-top: 14px; }
.wa-sheet-fallback .muted { font-size: 14px; }
.wa-sheet-number { font-size: 19px; font-weight: 700; letter-spacing: .02em; margin: 10px 0; user-select: all; }
.wa-sheet-msg { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 var(--sans); background: var(--soft); border-radius: 8px; padding: 12px; margin: 0 0 14px; max-height: 200px; overflow: auto; user-select: all; }
.wa-sheet-actions { display: grid; gap: 8px; }
@media (min-width: 420px) { .wa-sheet-actions { grid-template-columns: 1fr 1fr; } }
.wa-sheet-actions .btn { font-size: 14.5px; padding: 0 12px; white-space: nowrap; }
.wa-sheet-close { display: block; width: 100%; margin-top: 10px; padding: 10px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.notfound { text-align: center; padding: 96px var(--gutter) 40px; }
.notfound h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin-bottom: 10px; }
.notfound .btn { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── payment-link checkout form ──────────── */
.no-scroll, .no-scroll body { overflow: hidden; }
.co-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.co-panel { width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease; }
@media (min-width: 600px) { .co-sheet { align-items: center; } .co-panel { border-radius: 14px; } }
.co-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.co-head h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.co-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.co-summary { background: var(--soft); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.co-item { display: flex; align-items: center; gap: 10px; }
.co-item img { width: 44px; height: 55px; object-fit: cover; border-radius: 4px; flex: none; }
.co-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.co-item .muted { font-size: 13px; }
.co-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.co-sum { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.co-sum div { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.co-sum dt { color: var(--muted); }
.co-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.co-sum .co-total { font-weight: 700; font-size: 15.5px; }
.co-sum .co-total dt { color: var(--text); }
.co-section { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.co-field { display: block; margin-bottom: 10px; }
.co-field span { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.co-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; background: #fff; }
.co-field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.co-field small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.co-error { color: var(--danger); font-size: 14px; margin: 4px 0 10px; }
.co-panel .btn-paypal { margin-top: 6px; }
.co-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* order page: payment-link steps */
.pay-steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.pay-steps li { counter-increment: step; position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 16px 54px; display: flex; flex-direction: column; gap: 6px; }
.pay-steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pay-steps li > span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pay-steps .btn { margin-top: 6px; align-self: flex-start; }
.paid-note { color: var(--wa) !important; font-size: 14px; font-weight: 600; }
.order-sub { margin-top: 10px; font-size: 14px; }
.returned-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #e3f4ec; color: var(--wa); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.co-terms { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.co-terms a { color: inherit; text-decoration: underline; }
.pay-note + .co-terms { margin: -18px 0 22px; }

/* ── open / close motion ─────────────────── */
/* our popups: backdrop fades, panel slides (opening uses the panels' "up" animation) */
.wa-sheet, .co-sheet { animation: veil-in .2s ease both; }
.wa-sheet.is-closing, .co-sheet.is-closing { animation: veil-out .2s ease both; }
.wa-sheet.is-closing .wa-sheet-panel, .co-sheet.is-closing .co-panel { animation: panel-out .2s ease-in both; }
@keyframes veil-in { from { background-color: rgba(0, 0, 0, 0); } }
@keyframes veil-out { to { background-color: rgba(0, 0, 0, 0); } }
@keyframes panel-out { to { transform: translateY(40px); opacity: 0; } }

/* Tawk.to chat. Tawk's own open/close animation can't fade (it pins opacity: 1 !important
   inline), so it just jumps. These rules replace it (more specific + !important) and fade with
   filter: opacity(), moving with the separate scale / translate properties it leaves alone.
   The close animation stays under Tawk's 0.25s, after which it hides the window.
   (On the very first open the frame has no class yet, hence :not(.closed).) */
#min-widget iframe { animation: chat-pop .42s cubic-bezier(.2, 1.35, .4, 1) both; }
#max-widget iframe:not(.closed) { animation: chat-open .32s cubic-bezier(.2, .9, .25, 1) both !important; transform-origin: 100% 100% !important; }
#max-widget iframe.closed { animation: chat-close .2s ease-in both !important; transform-origin: 100% 100% !important; }
@keyframes chat-pop { from { scale: .3; filter: opacity(0); } }
@keyframes chat-open { from { translate: 0 22px; scale: .92; filter: opacity(0); } }
@keyframes chat-close { to { translate: 0 22px; scale: .92; filter: opacity(0); } }
