/* the hidden attribute always wins, whatever display an element's own rule sets */
[hidden] { display: none !important; }

:root {
  --bg: #faf9f7;
  --fg: #1c1b1a;
  --muted: #6b6762;
  --line: #e6e2dc;
  --accent: #d7261e;
  --card: #ffffff;
  --radius: 6px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* the top bar: the logo left, the search in the middle; the country / language / buyer button lives in the footer */
.site-header {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 22px 0 18px; border-bottom: 1px solid var(--line);
}
.site-header .brand { font-size: 26px; letter-spacing: .04em; text-transform: uppercase; display: block; flex: 0 0 auto; }
.site-header .brand img { display: block; height: 64px; width: auto; }
.site-header .header-search { flex: 1 1 320px; max-width: 520px; margin-left: auto; }
/* the header icons: thin outlines, the customer's name beside the person, a small count on the heart and the bag */
.site-header .hicons { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.site-header .hicon { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.site-header .hicon svg { width: 26px; height: 26px; display: block; }
.site-header .hicon:hover { color: var(--accent); }
.site-header .hicon .hname { font: 13px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.site-header .hicon .hname:empty { display: none; }
.site-header .hicon b { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font: 11px/16px system-ui, sans-serif; text-align: center; }
.site-header .hicon b[hidden] { display: none; }
.site-header .hicon.on svg { color: var(--accent); }
@media (max-width: 600px) { .site-header .brand img { height: 50px; } .site-header { padding-top: 16px; gap: 14px; } .site-header .header-search { flex-basis: 100%; max-width: none; order: 3; margin-left: 0; } .site-header .hicons { order: 2; margin-left: auto; } .site-header .brand { order: 1; } }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .partner { flex-basis: 100%; font: 14px/1.5 system-ui, sans-serif; color: var(--muted); margin-top: 4px; }
.site-footer .partner a { color: var(--fg); }
/* the FAQ page */
.faq-page { padding: 24px 0 36px; max-width: 860px; }
.faq-page h1 { font-weight: normal; font-size: 30px; margin: 8px 0 6px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 22px; font: 14px/1.4 system-ui, sans-serif; }
.faq-section h2 { font-weight: normal; font-size: 22px; margin: 26px 0 10px; }
.faq-entry { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-entry summary { cursor: pointer; font-size: 17px; }
.faq-entry p { margin: 8px 0 0; color: var(--muted); max-width: 760px; }
/* the chat */
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 30; font: inherit; font-size: 15px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.chat-bubble.open { background: var(--fg); }
.chat-panel { position: fixed; right: 20px; bottom: 72px; z-index: 30; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-head b { font-weight: normal; font-size: 17px; }
.chat-close { font: 22px/1 system-ui, sans-serif; border: 0; background: none; cursor: pointer; color: var(--muted); }
.chat-intro { margin: 0; padding: 10px 16px 0; font: 13px/1.45 system-ui, sans-serif; color: var(--muted); }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.chat-msg p { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.chat-msg.user p { background: var(--accent); color: #fff; margin-left: 40px; border-bottom-right-radius: 3px; }
.chat-msg.assistant p { background: var(--bg); border: 1px solid var(--line); margin-right: 40px; border-bottom-left-radius: 3px; }
.chat-pieces { display: flex; flex-direction: column; gap: 6px; margin: 8px 40px 0 0; }
.chat-pieces a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: #fff; }
.chat-pieces img, .chat-pieces .ph { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: #f3f1ed; flex: none; }
.chat-pieces b { display: block; font-weight: normal; font-size: 14px; line-height: 1.3; }
.chat-pieces small { color: var(--muted); font: 12px/1.3 system-ui, sans-serif; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.chat-suggest button { font: 13px/1.3 system-ui, sans-serif; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--fg); }
.chat-suggest[hidden] { display: none; }
.chat-form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.chat-form .button { font-size: 14px; padding: 9px 14px; }
.chat-human { margin: 0; padding: 0 16px 12px; font: 12px/1.4 system-ui, sans-serif; color: var(--muted); }
.green { margin: 36px 0 0; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.green h2 { display: inline-flex; align-items: center; gap: 8px; font-weight: normal; font-size: 20px; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid #9bbf8a; color: var(--fg); }
.green .leaf { color: #5a8f49; display: inline-flex; }
.green-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 24px; margin: 0 0 10px; font: 15px/1.55 system-ui, sans-serif; }
.green-row b { font-weight: 600; color: #4f7f40; }
.green-row p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .green-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.site-footer .footer-prefs { order: 2; margin-left: auto; }
@media (max-width: 600px) { .site-footer .footer-prefs { order: 0; flex-basis: 100%; margin-left: 0; } }
.shipto { color: var(--muted); font-size: 14px; }
.shipto-btn { font: inherit; font-size: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--muted); cursor: pointer; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shipto-btn b { font-weight: normal; color: var(--fg); }
.shipto-btn:hover { border-color: var(--accent); color: var(--fg); }
.shipto-btn.unset b { color: var(--accent); }

/* the consent banner (N.consentBanner in common.js): a bar at the bottom, one click either way */
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  padding: 14px 20px; display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.consent-text { max-width: 760px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent-text b { color: var(--fg); font-weight: normal; }
.consent-text a { text-decoration: underline; }
.consent-btns { display: flex; gap: 10px; align-items: center; }
.consent-btns .button { font-size: 14px; padding: 9px 18px; }
.consent-necessary { font: inherit; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); cursor: pointer; }
.consent-necessary:hover { border-color: var(--fg); }

/* the country box: centred dialog asking where to ship (N.countryBox in common.js) */
.country-box { position: fixed; inset: 0; z-index: 20; background: rgba(28, 27, 26, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-card { background: var(--card); color: var(--fg); border-radius: 10px; padding: 28px 28px 24px; width: 100%; max-width: 470px; max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.cb-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: normal; letter-spacing: .02em; }
.cb-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cb-select { display: block; width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--fg); }
.cb-card .cb-q { display: block; margin: 16px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cb-card .cb-radios { display: flex; gap: 22px; flex-wrap: wrap; }
.cb-card .cb-radios label { display: flex; align-items: center; gap: 6px; font-size: 16px; cursor: pointer; }
.cb-card .cb-radios input { width: auto; margin: 0; }
.cb-card .cb-vat .cb-q { margin-top: 12px; }
.cb-card .cb-hint { font-size: 12px; margin: 6px 0 0; }
.cb-card .cb-error { color: #a3271f; font-size: 13px; margin: 6px 0 0; }
.cb-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.cb-actions .button { font-size: 15px; padding: 10px 22px; }
.cb-later { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.cb-later:hover { color: var(--fg); }
.details .vat-note { font-size: 13px; margin: 0 0 6px; }
.details .price-ask { font-size: 15px; color: var(--muted); }
.details .price-ask .ship-country { margin-top: 6px; }

.site-footer { color: var(--muted); font-size: 13px; padding: 40px 0; border-top: 1px solid var(--line); margin-top: 60px; }
.site-footer a:hover { color: var(--fg); }

/* imprint, terms and privacy */
.legal { padding: 24px 0 36px; font-size: 15px; line-height: 1.6; }
.legal-nav { display: flex; gap: 18px; margin-bottom: 28px; font-size: 14px; }
.legal-nav a { color: var(--muted); }
.legal-nav a:hover { color: var(--fg); }
.legal-nav #legal-langs { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .legal-nav { flex-wrap: wrap; gap: 10px 16px; } .legal-nav #legal-langs { margin-left: 0; flex-basis: 100%; } }
.legal section { margin-bottom: 44px; }
.legal h1 { font-weight: normal; font-size: 26px; margin: 0 0 12px; }
.legal h2 { font-weight: normal; font-size: 17px; margin: 22px 0 6px; }
.legal h3 { font-weight: normal; font-size: 15px; margin: 16px 0 4px; color: var(--muted); }
.legal p, .legal ul { margin: 0 0 12px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .back { text-decoration: none; }

.muted { color: var(--muted); }
.notice-bar { background: var(--fg); color: #fff; text-align: center; font: 13px/1.4 system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; }
.notice-bar:empty { display: none; }
.notice-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 40px 0; color: var(--muted); text-align: center; }

/* search + category chips */
/* the hero band runs edge to edge; its content stays aligned with the page column */
.hero { display: block; margin: 18px calc(50% - 50vw) 0; width: 100vw; }
body { overflow-x: clip; }
.hero > img, .hero > a > img { width: 100%; height: auto; display: block; }
/* the live strip: headline left, square tiles right, a heart on each */
.hero-strip { display: flex; align-items: center; gap: 32px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 4vw; }
.hero-text { flex: 0 0 200px; min-width: 0; }
.hero-text h2 { font-weight: normal; font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.hero-text .hero-sub { color: var(--fg); font-size: 15px; }
.hero-row { flex: 1 1 auto; min-width: 0; position: relative; }
.hero-tiles { display: flex; gap: 18px; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }   /* the tiles share the width; too many = a gallery */
.hero-tiles::-webkit-scrollbar { display: none; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--fg);
  font: 26px/36px system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); padding: 0; }
.hero-nav.prev { left: -20px; }
.hero-nav.next { right: -20px; }
.hero-nav:hover { border-color: var(--accent); }
.hero-nav[hidden] { display: none; }
.hero-tile { flex: 1 1 0; min-width: 180px; max-width: 320px; scroll-snap-align: start; aspect-ratio: 1 / 1; background: #f3f3f3; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; }
.hero-tile img { width: 82%; height: 82%; object-fit: contain; transition: transform .35s ease; }
.hero-tile.photo { background: #f2f2f2; border: 1px solid #e3e3e3; }   /* a plain photo sits on the grey ground too, with a margin, so a white photo shows its edge */
.hero-tile.gone img { opacity: .55; }
.hero-tile .badge { position: absolute; left: 10px; bottom: 10px; }
.hero-tile.photo img { width: 86%; height: 86%; }
.hero-tile:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .hero-strip { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; } .hero-text { flex-basis: auto; } .hero-text h2 { font-size: 22px; } .hero-tile { min-width: 150px; flex: 0 0 150px; } .hero-nav.prev { left: 4px; } .hero-nav.next { right: 4px; } }
.toolbar { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 4px; }
.toolbar[hidden] { display: none; }
/* the collection view: the filter column and the results */
.collection { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding: 22px 0 36px; align-items: start; }
.collection[hidden] { display: none; }
.filters { display: flex; flex-direction: column; gap: 18px; font: 14px/1.5 system-ui, sans-serif; }
.filters .fgroup h3 { font: 17px/1.3 Georgia, serif; font-weight: normal; margin: 0 0 8px; }
.filters .flist { display: flex; flex-direction: column; gap: 5px; }
.filters .flist a { text-decoration: none; color: var(--fg); }
.filters .flist a.on { color: var(--accent); }
.filters .flist label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters .n { color: var(--muted); font-size: 12px; }
.filters button.link { align-self: flex-start; font: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.results { min-width: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.results-head .count { margin: 0; }
.results-head .sort { font: 13px/1.4 system-ui, sans-serif; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.results-head .sort select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); }
.results .more { display: block; margin: 24px auto 0; background: transparent; color: var(--accent); }
.results .more[hidden] { display: none; }
@media (max-width: 800px) { .collection { grid-template-columns: minmax(0, 1fr); gap: 18px; } .filters { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; } .filters .fgroup { min-width: 140px; } }
/* the collection view: the filter column and the results */
.collection { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding: 22px 0 36px; align-items: start; }
.collection[hidden] { display: none; }
.filters { display: flex; flex-direction: column; gap: 18px; font: 14px/1.5 system-ui, sans-serif; }
.filters .fgroup h3 { font: 17px/1.3 Georgia, serif; font-weight: normal; margin: 0 0 8px; }
.filters .flist { display: flex; flex-direction: column; gap: 5px; }
.filters .flist a { text-decoration: none; color: var(--fg); }
.filters .flist a.on { color: var(--accent); }
.filters .flist label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters .n { color: var(--muted); font-size: 12px; }
.filters button.link { align-self: flex-start; font: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.results { min-width: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.results-head .count { margin: 0; }
.results-head .sort { font: 13px/1.4 system-ui, sans-serif; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.results-head .sort select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); }
.results .more { display: block; margin: 24px auto 0; background: transparent; color: var(--accent); }
.results .more[hidden] { display: none; }
@media (max-width: 800px) { .collection { grid-template-columns: minmax(0, 1fr); gap: 18px; } .filters { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; } .filters .fgroup { min-width: 140px; } }
/* the category menu under the header */
.catnav-wrap { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.catnav { flex: 1 1 auto; min-width: 0; display: flex; gap: 26px; padding: 10px 0 12px; font: 14px/1.4 system-ui, sans-serif; overflow-x: auto; scrollbar-width: none; white-space: nowrap; scroll-behavior: smooth; }
.catnav::-webkit-scrollbar { display: none; }
.catnav-arrow { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--fg); font: 18px/1 system-ui, sans-serif; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.catnav-arrow.prev { margin-right: 10px; }
.catnav-arrow.next { margin-left: 10px; }
.catnav-arrow:hover { border-color: var(--accent); color: var(--accent); }
.catnav-arrow[hidden] { display: none; }
.catnav a { color: var(--fg); text-decoration: none; }
.catnav a:hover, .catnav a.active { color: var(--accent); }
.catnav a:first-child { color: var(--accent); }
/* the landing page */
.landing { display: flex; flex-direction: column; gap: 44px; padding: 20px 0 8px; }
.landing h2 { font-weight: normal; font-size: 24px; margin: 0 0 16px; }
.promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px 220px; gap: 16px; }
.promo .tile { position: relative; display: flex; text-decoration: none; color: var(--fg); border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.promo .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .tile .txt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.promo .tile .kicker { font: 12px/1.3 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.promo .tile .h { font-size: 26px; line-height: 1.2; }
.promo .tile .cta { font: 14px/1.4 system-ui, sans-serif; text-decoration: underline; }
.promo .tile .cta.wa { color: #1f9d55; }
.promo .tile.big { grid-row: 1 / 3; align-items: flex-end; background: #1c1b1a; color: #fff; }
.promo .tile.big img { opacity: .85; }
.promo .tile.big .txt { background: linear-gradient(transparent, rgba(0, 0, 0, .55)); width: 100%; padding-top: 60px; }
.promo .tile.big .kicker { color: #fff; }
.promo .tile.big .h { font-size: 32px; }
.promo .tile.wide { align-items: center; padding-left: 200px; min-height: 200px; }
.promo .tile.wide img { position: absolute; inset: auto; left: 12px; top: 50%; width: 176px; height: 176px; transform: translateY(-50%); object-fit: contain; }   /* inset first: the shorthand would cancel left and top */
.promo .tiles-small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promo .tile.accent { background: var(--accent); color: #fff; border-color: var(--accent); flex-direction: column; justify-content: center; gap: 6px; padding: 22px; }
.promo .tile.accent .h { font-size: 22px; }
.promo .tile.accent .small { font: 13px/1.4 system-ui, sans-serif; opacity: .9; }
.promo .tile.plain { flex-direction: column; justify-content: center; gap: 6px; padding: 22px; }
.promo .tile.plain .h { font-size: 22px; }
.promo .tile.plain .small { font: 13px/1.4 system-ui, sans-serif; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 36px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.welcome h2 { font-size: 28px; margin: 0 0 10px; }
.welcome p { margin: 0 0 10px; font-size: 17px; line-height: 1.6; }
.welcome .partners { font-size: 14px; color: var(--muted); }
.welcome .partners a { color: inherit; text-decoration: underline; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promises li { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--bg); border-radius: 6px; }
.promises b { font-weight: normal; font-size: 17px; }
.promises span { font: 13px/1.45 system-ui, sans-serif; color: var(--muted); }
.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 8px; text-align: center; text-decoration: none; color: var(--fg); }
.cat-tile .ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #f3f1ed; border-radius: 8px; overflow: hidden; }
.cat-tile .ph img { width: 76%; height: 76%; object-fit: contain; transition: transform .35s ease; }
.cat-tile:hover .ph img { transform: scale(1.04); }
.cat-tile .lab { font-size: 15px; }
.cat-tile .n { font: 12px/1 system-ui, sans-serif; color: var(--muted); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-head h2 { margin: 0 0 16px; }
.row-head a { font: 14px/1.4 system-ui, sans-serif; }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .promo { grid-template-columns: minmax(0, 1fr); grid-template-rows: 260px auto auto; } .promo .tile.big { grid-row: auto; } .welcome { grid-template-columns: minmax(0, 1fr); } .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promises { grid-template-columns: minmax(0, 1fr); } .promo .tile.wide { padding-left: 24px; } .promo .tile.wide img { display: none; } }
.search { display: flex; gap: 8px; max-width: 520px; }
.search input { flex: 1; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.search button, .button { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 13px/1 system-ui, sans-serif; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip .n { opacity: .55; margin-left: 4px; font-size: 11px; }
.chip:hover { color: var(--fg); }
.chip.active { background: var(--fg); color: #fff; border-color: var(--fg); }
/* phones: the categories are one row to swipe through, not a wall above the pieces */
@media (max-width: 700px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .toolbar { gap: 10px; padding-top: 16px; }
}
.count { margin: 8px 0 0; font-size: 14px; }

/* collection grid */
.grid {
  display: grid; gap: 28px 24px; padding: 24px 0;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
/* a card in the marketplace manner: a white card, the photo on a light grey ground, the title and price centred under it */
.card { display: block; background: #fff; padding-bottom: 18px; text-align: center; border: 1px solid #e6e2dc; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.card .frame {
  aspect-ratio: 1 / 1; background: #f2f2f2; border: 0; border-bottom: 1px solid #e6e2dc; padding: 18px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.card .heart { background: transparent; box-shadow: none; font-size: 26px; top: 8px; right: 8px; }
.card .heart:hover { background: #fff; }
/* the heart: a white disc top right of a photo, an outlined heart that fills when loved */
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #1c1b1a;
  font: 20px/36px system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); padding: 0; z-index: 1; }
.heart:hover { color: #b3261e; }
.sale-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font: 12px/1 system-ui, sans-serif; letter-spacing: .04em; background: #1c1b1a; color: #fff; padding: 6px 9px; border-radius: 999px; }
.sale-badge.inline { position: static; margin-left: 10px; vertical-align: middle; }
.price s { color: var(--muted); font-weight: normal; margin-right: 4px; }
.catnav a.sale { color: #b3261e; }
.catnav a.muted-link { margin-left: auto; color: var(--muted); }
.heart.on { color: #b3261e; }
.heart.sm { width: 28px; height: 28px; font-size: 16px; line-height: 28px; top: 4px; right: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.promo .tile.big { position: relative; }
.chat-pieces a { position: relative; }
.basket-line .thumb { position: relative; display: inline-block; }
.order-line .pic { position: relative; display: inline-block; }
.acc-piece { position: relative; }
.heart.big { position: static; display: inline-block; vertical-align: middle; margin-left: 10px; width: 40px; height: 40px; font-size: 22px; line-height: 40px; border: 1px solid var(--line); box-shadow: none; }

/* My account */
.account-page { padding: 36px 0; }
.account-page h1 { font-weight: normal; font-size: 30px; margin: 0 0 14px; }
.acc-login { max-width: 560px; }
.acc-form { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.acc-form label { font-size: 14px; color: var(--muted); }
.acc-form input[type=email], .acc-form input[type=text], .acc-form input[type=tel] { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.acc-form .check { display: flex; gap: 8px; align-items: center; color: var(--fg); margin-top: 6px; }
.acc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acc-row input { flex: 1 1 240px; }
.acc-row .button { font-size: 14px; padding: 10px 18px; }
.acc-hello { font-size: 18px; margin: 0 0 14px; }
.acc-nav { display: flex; gap: 22px; flex-wrap: wrap; font: 14px/1.4 system-ui, sans-serif; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.acc-nav a { text-decoration: none; }
.acc-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.acc-section h2 { font-weight: normal; font-size: 22px; margin: 0 0 14px; }
.acc-orders { display: grid; gap: 14px; }
.acc-order { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.acc-order .badge { position: absolute; top: 14px; right: 14px; }
.acc-pieces { display: flex; flex-direction: column; gap: 10px; }
.acc-piece { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); }
.acc-piece img, .acc-piece .ph { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: #f3f1ed; flex: none; }
.acc-order dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.acc-order dt { color: var(--muted); }
.acc-order dd { margin: 0; }
.acc-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-actions .btn { font: 13px/1.4 system-ui, sans-serif; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--fg); }
.acc-actions .btn:hover { border-color: var(--accent); }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.account-page button.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; margin-top: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) { .acc-order { grid-template-columns: minmax(0, 1fr); } }
.card .frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .frame img { transform: scale(1.02); }
.card .frame.empty { color: var(--muted); font-size: 13px; }
.card h3 { margin: 16px 14px 6px; font: 15px/1.4 system-ui, sans-serif; color: var(--fg); }
.card .meta { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 14px; font: 13px/1.4 system-ui, sans-serif; color: var(--muted); }
.card .meta .price { color: var(--fg); font-weight: 600; font-size: 15px; white-space: nowrap; }

.badge { display: inline-block; font: 12px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 3px; background: #efe9e2; color: var(--accent); }
.badge.sold { background: #eee; color: #777; }
.badge.reserved { background: #f4ecd8; color: #8a6a1e; }
.badge.draft { background: #e8e8f4; color: #4a4a8a; }

/* item page */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--fg); }
/* The product page: a vertical strip of thumbnails, the photo, and a column on the right that stays on screen
   (title, price, buy); below, the story on the left and the details on the right. */
.item { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 32px; padding: 16px 0 36px; align-items: start; }
.item .left, .item .right { min-width: 0; }
.item .top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; }
.item .text { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.item .facts { grid-column: 1 / -1; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }   /* the full page width, under both columns */
.item .facts .ask { display: none; }
.item .images { min-width: 0; }
.item .details { width: 100%; min-width: 0; }
.item .summary { position: sticky; top: 16px; }   /* alone in its column, so it can follow the reader without covering anything */
.item .text h2, .item .facts h2 { font-weight: normal; font-size: 22px; margin: 0 0 12px; }
.item .text h3 { font-weight: normal; font-size: 18px; margin: 18px 0 6px; }
.item .text .description { white-space: pre-line; max-width: 720px; }
.item .text .condition { max-width: 720px; margin: 0 0 18px; }
.item .text .back { display: none; }
.item .text .maker-about { max-width: 720px; margin-top: 8px; }
.item .text .maker-about p { margin: 0 0 10px; color: var(--muted); }
.item .text .maker-about a { font: 14px/1.4 system-ui, sans-serif; }
.maker-page, .about-page { padding: 24px 0 36px; }
.maker-page h1, .about-page h1 { font-weight: normal; font-size: 30px; margin: 8px 0 4px; }
.maker-bio { max-width: 760px; margin: 12px 0 28px; font-size: 17px; line-height: 1.6; }
.maker-bio p { margin: 0 0 12px; }
.about-text { max-width: 760px; font-size: 17px; line-height: 1.6; margin: 12px 0 28px; }
.about-text p { margin: 0 0 12px; }
.about-page .promises { max-width: 760px; }
.about-page #about-contact { margin-top: 22px; }
.welcome .about-link { font: 14px/1.4 system-ui, sans-serif; }
.item .facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; font-size: 14px; border-top: 1px solid var(--line); }
.item .facts .fact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 12px; border-bottom: 1px solid var(--line); }
.item .facts dt { color: var(--muted); padding: 9px 0; }
.item .facts dd { margin: 0; padding: 9px 0; }
@media (max-width: 800px) { .item .facts dl { grid-template-columns: minmax(0, 1fr); } }
.item .facts .more { margin-top: 16px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.item .facts .more summary { cursor: pointer; }
.item .facts .more p { margin: 8px 0 0; }
.item .facts .ask { margin-top: 16px; }
@media (max-width: 1000px) { .item { grid-template-columns: minmax(0, 1fr); } .item .top { grid-template-columns: 72px minmax(0, 1fr); } .item .summary { margin-top: 20px; } .item .text { order: 2; } }
@media (max-width: 600px) { .item .top { grid-template-columns: minmax(0, 1fr); } .item .thumbs { order: 2; } .item .images { order: 1; } }
/* A square stage: photos and videos are fitted inside it and overlap in the same box, so the page never reshapes. */
.item .main-image { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.item .main-image img, .item .main-image video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.item .main-image img { cursor: zoom-in; }
.item .main-image video { background: #000; z-index: 1; }
.item .main-image [hidden] { display: none; }
.item .main-image .img-count { position: absolute; bottom: 12px; right: 12px; z-index: 2; font: 12px/1 system-ui, sans-serif; color: var(--muted); background: rgba(255, 255, 255, .9); padding: 6px 10px; border-radius: 999px; }
.item .main-image .heart { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; line-height: 40px; z-index: 2; }
/* previous / next, over the photo or the clip (clear of the video controls at the bottom) */
.item .main-image .img-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: #1c1b1a; cursor: pointer;
  font: 34px/1 system-ui, sans-serif; display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.item .main-image .img-nav[hidden] { display: none; }
.item .main-image .img-nav:hover { background: #fff; }
.item .main-image .img-prev { left: 10px; }
.item .main-image .img-next { right: 10px; }
/* The thumbnails: a column beside the photo (scrolls when there are many); a row under it on a phone. */
.thumbs { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 640px; scrollbar-width: thin; min-width: 0; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--card); cursor: pointer; width: 100%; aspect-ratio: 1 / 1; flex: none; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button.active { border: 2px solid var(--accent); }
@media (max-width: 600px) { .thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: 6px; } .thumbs button { width: 64px; height: 64px; } }
.thumbs button.is-video { position: relative; }
.thumbs button.is-video::after { content: "\25B6"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font: 22px/1 system-ui, sans-serif; text-shadow: 0 0 6px rgba(0,0,0,.8); pointer-events: none; }
.thumbs .novideo { display: block; width: 100%; height: 100%; background: #333; }
.details h1 { font-weight: normal; font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
.details .maker { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.details .price { font-size: 30px; margin: 10px 0 2px; }
.details .shipping { font-size: 13px; margin: 0 0 12px; }
.details .only-one { display: inline-block; font: 13px/1 system-ui, sans-serif; color: var(--accent); margin-left: 8px; vertical-align: middle; }
.details .ship-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.details .ship-card .ship-label { margin: 0; }
.details .ship-card .small { font-size: 12px; }
.details .cta-row { display: flex; gap: 10px; margin: 0 0 8px; }
.details .cta-row .button { flex: 1 1 0; margin: 0; text-align: center; }
.details .cta .ask-link { display: block; text-align: center; font-size: 14px; margin: 6px 0 0; }
.details .cta .offer { margin: 2px 0 6px; }
.details .cta .offer-btn { display: block; width: 100%; font-size: 15px; padding: 12px 18px; background: transparent; color: var(--accent); border-color: var(--accent); }
.details .cta .offer-btn:hover, .details .cta .offer-btn.open { background: var(--accent); color: #fff; }
.details .cta .ask { margin: 12px 0 0; }
.details .cta .offer-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.details .cta .offer-form[hidden] { display: none; }
.details .cta .offer-form h3 { font-weight: normal; font-size: 17px; margin: 0; }
.details .cta .offer-form label { font-size: 13px; color: var(--muted); }
.details .cta .offer-form input, .details .cta .offer-form textarea { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.details .cta .offer-form .small { margin: 0; font-size: 13px; }
.details .trust { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font: 13px/1.4 system-ui, sans-serif; color: var(--muted); }
.details .trust li::before { content: "\2713"; color: var(--accent); margin-right: 8px; }
.coupon { font-size: 14px; margin: -8px 0 14px; }
.coupon .link, .details .coupon button.link { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.coupon .coupon-on { color: #1f6e3e; margin-right: 10px; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row[hidden], .details .cta .view-basket[hidden] { display: none; }
.coupon-row input { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-transform: uppercase; max-width: 180px; }
.coupon .button.small { font-size: 13px; padding: 7px 14px; }
.coupon .error { color: #a3271f; margin: 6px 0 0; }
.details .cta { margin: 0 0 22px; }
.details .cta .button { display: inline-block; }
.details .cta .buy { display: block; width: 100%; font-size: 17px; padding: 14px 22px; margin-bottom: 10px; }
.details .cta .buy:disabled { opacity: .5; cursor: default; }
.details .cta .ship-label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.details .cta .ship-country { display: block; width: 100%; max-width: 360px; margin-top: 4px; font: inherit; font-size: 15px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); }
.terms { display: block; font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.terms input { margin-right: 4px; }
.terms a { color: var(--fg); }
.details .cta .add-basket { font-size: 15px; padding: 12px 18px; background: transparent; color: var(--accent); }
.details .cta .add-basket:disabled { opacity: .6; cursor: default; }
.details .cta a.view-basket { margin: 0; }
.details .cta .teaser { margin-top: 8px; }
.details .cta .error { color: #a3271f; font-size: 14px; margin: 6px 0; }
.details .cta .small { font-size: 13px; margin: 4px 0 0; }
.details .cta a.button { background: transparent; color: var(--accent); }
.details .cta a.button.wa { display: inline-block; margin: 0; border-color: #1f9d55; color: #1f9d55; }
.details .cta a.button.wa:hover { background: #1f9d55; color: #fff; }
/* contact form under the price */
.ask { margin: 0 0 24px; padding: 16px; background: var(--card); border: 1px solid var(--line); }
.ask h2 { font-weight: normal; font-size: 17px; margin: 0 0 10px; }
.ask-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ask input, .ask textarea { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%; box-sizing: border-box; }
.ask textarea { resize: vertical; margin-bottom: 8px; }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ask-actions .button { font-size: 14px; padding: 9px 18px; }
@media (max-width: 480px) { .ask-row { flex-direction: column; } }
/* the emailed confirmation code, asked for under a form */
.code-host .small { font-size: 13px; margin: 8px 0 6px; }
.code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.code-row input { font: inherit; font-size: 16px; letter-spacing: .2em; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 140px; box-sizing: border-box; }
.code-row .button { font-size: 14px; padding: 9px 16px; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
button.link:hover { color: var(--fg); }

/* sign-up for news */
.signup { margin: 48px 0 0; padding: 24px 28px; background: #efe9e2; border: 1px solid var(--line); border-radius: 8px; }
.signup h2 { font-weight: normal; font-size: 22px; margin: 0 0 4px; }
.signup p { margin: 0 0 12px; }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-form input { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #d9d2c8; border-radius: var(--radius); background: #fff; flex: 1; min-width: 180px; }
.signup-form button { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius); cursor: pointer; }
.signup-form button:disabled { opacity: .45; cursor: default; }
.signup-form .terms, .order-news .terms, .acc-terms .terms { flex-basis: 100%; display: block; font: 13px/1.4 system-ui, sans-serif; color: var(--muted); margin: 4px 0 0; }
.signup-form .terms input, .order-news .terms input, .acc-terms .terms input { flex: none; width: auto; min-width: 0; padding: 0; margin: 0 6px 0 0; vertical-align: -1px; }
.order-news .terms { margin: 8px 0; }
.legal-nav .legal-pdf { border: 1px solid var(--line); border-radius: var(--radius); padding: 1px 8px; }
.legal .legal-version { font-size: 13px; margin: -6px 0 14px; }
.signup .small { font-size: 13px; margin: 8px 0 0; }

/* embedded payment form on the product page */
.pay { margin: 8px 0 40px; background: var(--card); border: 1px solid var(--line); padding: 18px 20px 24px; }
.pay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pay-head h2 { font-weight: normal; font-size: 20px; margin: 0; }
.pay-head .spacer { flex: 1; }
.pay-head button { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); cursor: pointer; }
.pay .small { font-size: 13px; margin: 0 0 12px; }
#checkout { min-height: 400px; }

/* order / thank-you page */
.order-page { padding: 36px 0; }
.order-news { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); background: var(--card); }
.order-news button { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius); cursor: pointer; }
.order-page h1 { font-weight: normal; font-size: 30px; margin: 0 0 6px; }
/* the card uses the whole width: the piece on the left, the facts on the right */
.order-card { background: var(--card); border: 1px solid var(--line); padding: 24px; margin: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.order-item { display: flex; flex-direction: column; gap: 14px; }
.order-line { display: flex; gap: 20px; align-items: center; }
.order-line img { width: 160px; height: 160px; object-fit: cover; }
@media (max-width: 800px) { .order-card { grid-template-columns: minmax(0, 1fr); } .order-line img { width: 96px; height: 96px; } }
/* the basket page */
.basket-page { padding: 36px 0; }
.basket-page h1, .basket-page #basket-empty, .basket-page .notice { max-width: 760px; margin-left: auto; margin-right: auto; }
.basket-page h1 { font-weight: normal; font-size: 30px; margin: 0 auto 18px; }
.basket-lines { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.basket-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 12px; }
.basket-line.problem { opacity: .75; }
.basket-line .thumb img { width: 96px; height: 96px; object-fit: cover; display: block; }
.basket-line .what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.basket-line .what .t { font-size: 17px; text-decoration: none; color: var(--fg); }
.basket-line .what .link, .basket-line .what button.link { align-self: flex-start; font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.basket-line .amount { font-size: 17px; white-space: nowrap; }
.basket-line .amount.error { color: #a3271f; font-size: 14px; white-space: normal; text-align: right; }
.basket-sum { max-width: 760px; margin: 22px auto 0; background: var(--card); border: 1px solid var(--line); padding: 20px 22px; }
.basket-sum .ship-label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.basket-sum .ship-country { display: block; width: 100%; max-width: 360px; margin-top: 4px; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.basket-sum dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: 16px; margin: 0 0 10px; }
.basket-sum dt { color: var(--muted); }
.basket-sum dd { margin: 0; text-align: right; white-space: nowrap; }
.basket-sum dl dt:last-of-type, .basket-sum dl dd:last-of-type { font-weight: 600; color: var(--fg); border-top: 1px solid var(--line); padding-top: 8px; }
.basket-sum .buy { display: inline-block; font-size: 16px; padding: 12px 22px; margin: 8px 0 6px; }
.basket-sum .buy:disabled { opacity: .5; cursor: default; }
.basket-sum .error { color: #a3271f; font-size: 14px; margin: 6px 0; }
.basket-sum .small { font-size: 13px; }
.basket-sum .back { display: inline-block; margin-top: 10px; }
.basket-sum .coupon { margin: 0 0 10px; }
@media (max-width: 600px) { .basket-line { grid-template-columns: 72px minmax(0, 1fr); } .basket-line .thumb img { width: 72px; height: 72px; } .basket-line .amount { grid-column: 2; text-align: left; } }
.order-item-title { font-size: 18px; }
.order-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; margin: 0; }
.order-card dt { color: var(--muted); }
.order-card dd { margin: 0; }
.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; margin: 22px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details .description { white-space: pre-line; margin: 0; }
.related { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.related h2 { font-weight: normal; font-size: 20px; margin: 0; }
.related .grid { padding-top: 16px; }
.back { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 15px; }
.back:hover { color: var(--fg); }

.version { font: 12px/1 system-ui, sans-serif; color: var(--muted); }

/* lightbox: full-screen viewer with zoom and pan (see N.lightbox in common.js) */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 16, .96); z-index: 10; }
.lightbox .lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; cursor: zoom-in; }
.lightbox.zoomed .lb-stage { cursor: grab; }
.lightbox.zoomed .lb-stage:active { cursor: grabbing; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none;
  transform-origin: center center; transition: transform .12s ease-out; will-change: transform; }
.lightbox.zoomed img { transition: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  font: 28px/1 system-ui, sans-serif; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-hint, .lightbox .lb-count { position: absolute; bottom: 14px; color: rgba(255, 255, 255, .7);
  font: 13px/1.4 system-ui, sans-serif; pointer-events: none; }
.lightbox .lb-hint { left: 50%; transform: translateX(-50%); }
.lightbox .lb-count { left: 16px; }
.lightbox.zoomed .lb-hint { display: none; }
@media (max-width: 600px) { .lightbox .lb-hint { display: none; } }
