/* Kiss & Tell Mini App.
   Every colour goes through these tokens. Light is the shipped theme; a dark
   theme only needs to redefine them under :root[data-theme="dark"]. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --plate: #ffffff;
  --plate-line: rgba(17, 17, 17, .07);
  --line: rgba(17, 17, 17, .09);
  --line-2: rgba(17, 17, 17, .16);
  --text: #111111;
  --soft: #3d3936;
  --dim: #7b7570;
  --faint: #a9a29c;
  --wine: #600404;
  --wine-hi: #7a0a0a;
  --amp: rgba(96, 4, 4, .13);
  --stock: #4f7a48;
  --danger: #a3121b;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  --btn-accent: #ffffff;
  --nav-bg: rgba(255, 255, 255, .9);
  --chip-on-bg: #111111;
  --chip-on-fg: #ffffff;
  --sk-a: #f1efec;
  --sk-b: #f8f6f4;
  --press: rgba(17, 17, 17, .03);
  --hero-glow: transparent;
  --gutter: 20px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* Dark theme: the brand's own night look (#111 + wine, as on the banners).
   Product plates stay light porcelain: supplier photos are shot on white. */
:root[data-theme="dark"] {
  --bg: #0e0d0d;
  --surface: #161414;
  --plate: #f1ece6;
  --plate-line: transparent;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f1ece6;
  --soft: #cfc8c1;
  --dim: #8d857f;
  --faint: #615a55;
  --wine: #a01f1f;
  --wine-hi: #b8292a;
  --amp: rgba(122, 10, 10, .6);
  --stock: #9fb79a;
  --danger: #e2666d;
  --btn-bg: #600404;
  --btn-fg: #ffffff;
  --btn-accent: #ffffff;
  --nav-bg: rgba(14, 13, 13, .88);
  --chip-on-bg: #f1ece6;
  --chip-on-fg: #0e0d0d;
  --sk-a: #1b1919;
  --sk-b: #252222;
  --press: rgba(255, 255, 255, .04);
  --hero-glow: rgba(121, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

#app {
  padding: 12px var(--gutter) 104px;
  min-height: 100vh;
}

button { font-family: inherit; }
.row { display: flex; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--dim); font-size: 13px; }
.num { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; }

.label {
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}
.label.num { letter-spacing: .1em; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
.title-xl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  margin: 6px 0 18px;
}
.title-md { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 0 0 14px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn:disabled { opacity: .35; }
.btn.split { justify-content: space-between; }
.btn .accent { color: var(--btn-accent); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.small { width: auto; height: 40px; padding: 0 16px; font-size: 11px; }
.btn + .btn { margin-top: 10px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge, .bottom-nav .badge {
  position: absolute;
  top: 2px;
  right: 1px;
  background: var(--wine);
  color: #fff;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 500;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.lang-btn { font-size: 11px; letter-spacing: .16em; font-weight: 400; color: var(--dim); }

/* ---------------------------------------------------------------- top bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 12px;
}
.mark { font-family: var(--serif); font-style: italic; font-size: 23px; letter-spacing: .01em; }
.mark i { color: var(--wine-hi); }

.fallback-back { margin: 0 0 6px -8px; }

/* ---------------------------------------------------------------- home */

.hero {
  position: relative;
  height: 290px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
/* The dark theme's wine glow: a blurred disc, because a radial gradient bands into a visible edge. */
.hero::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -40px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--hero-glow);
  filter: blur(45px);
  pointer-events: none;
}
.hero .amp {
  position: absolute;
  right: -10px;
  top: -18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 300px;
  line-height: 1;
  color: var(--amp);
  pointer-events: none;
}
.hero h1 {
  position: absolute;
  left: 0;
  bottom: 58px;
  font-style: italic;
  font-size: 52px;
  line-height: .92;
}
.hero p {
  position: absolute;
  left: 0;
  bottom: 24px;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust div { padding: 14px 0; }
.trust div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.trust strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }
.trust span { font-size: 11.5px; color: var(--dim); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 0 12px;
}

/* Editorial list of categories: big serif names, hairlines, counts. */
.cat-list { margin: 0 calc(-1 * var(--gutter)); }
.cat-list .cat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px var(--gutter);
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cat-list .cat-row:last-child { border-bottom: 1px solid var(--line); }
.cat-list .cat-row:active { background: var(--press); }
.cat-list em { font-family: var(--serif); font-style: normal; font-size: 24px; line-height: 1.15; }
.cat-list small { flex: none; font-size: 11px; color: var(--faint); letter-spacing: .08em; }

/* ---------------------------------------------------------------- product grid */

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }

.card { position: relative; cursor: pointer; min-width: 0; }
.card .ph {
  aspect-ratio: 4/5;
  background: var(--plate);
  border: 1px solid var(--plate-line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card .ph img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.card .brand { margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .price { margin-top: 6px; }
.card .in-cart {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 4px 8px;
}

.price { font-size: 13px; letter-spacing: .06em; font-weight: 400; color: var(--text); }
.price .old { color: var(--faint); text-decoration: line-through; margin-right: 8px; font-weight: 300; }
.price.sale { color: var(--wine); }

.tag-ribbon {
  position: absolute;
  left: 0;
  top: 10px;
  background: var(--wine);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: .2em;
  padding: 4px 8px 4px 9px;
  z-index: 1;
}

.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .06em;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pagination .link-btn:disabled { opacity: .3; }

/* ---------------------------------------------------------------- favourites, chips, sort, more */

.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  color: #3a3330;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}
.fav-btn svg { width: 19px; height: 19px; transition: transform .2s, fill .2s; }
.fav-btn.on { color: var(--wine); }
.fav-btn.on svg { fill: var(--wine); transform: scale(1.06); }
.fav-btn:active svg { transform: scale(.88); }
.fav-btn.big {
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.fav-btn.big svg { width: 20px; height: 20px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -4px calc(-1 * var(--gutter)) 18px;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--soft);
  cursor: pointer;
}
.chip.on { background: var(--chip-on-bg); color: var(--chip-on-fg); border-color: var(--chip-on-bg); }

.sort { position: relative; cursor: pointer; color: var(--soft); }
.sort select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 16px; }

.more { margin: 30px 0 6px; display: grid; gap: 12px; justify-items: center; }

/* ---------------------------------------------------------------- description, similar, info */

.about { margin-top: 6px; }
.rich { font-size: 14px; line-height: 1.65; color: var(--soft); overflow-wrap: anywhere; }
.rich p { margin: 0 0 10px; }
.rich strong { font-weight: 500; color: var(--text); }
.rich h4 { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--text); margin: 14px 0 6px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 18px; }
.rich table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 13px; }
.rich td, .rich th { border-bottom: 1px solid var(--line); padding: 7px 4px; text-align: left; vertical-align: top; }
.rich.clamped { max-height: 9.6em; overflow: hidden; position: relative; }
.rich.clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
#about-toggle { margin-top: 4px; }

.similar-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.similar-rail::-webkit-scrollbar { display: none; }
.similar-rail .card { flex: 0 0 42%; }
#similar:not(:empty) { margin-top: 10px; }

.info-list section { padding: 18px 0; border-top: 1px solid var(--line); }
.info-list section:last-child { border-bottom: 1px solid var(--line); }
.info-list h3 { font-style: italic; font-size: 22px; margin-bottom: 8px; }
.info-list p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--soft); }

/* Loading placeholders (replace the spinner). */
.sk {
  background: linear-gradient(90deg, var(--sk-a) 25%, var(--sk-b) 50%, var(--sk-a) 75%);
  background-size: 200% 100%;
  animation: sk 1.2s ease-in-out infinite;
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 10px 0; width: 85%; }
.sk-line.short { width: 35%; }
.sk-line.big { height: 22px; }
.sk-title { height: 38px; width: 70%; margin: 12px 0 24px; }
.sk-card { aspect-ratio: 4/5; }
.sk-gallery { height: 400px; margin: -12px calc(-1 * var(--gutter)) 0; }

/* ---------------------------------------------------------------- delivery details */

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--text); margin: 0 0 12px; }
.segmented button {
  height: 44px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.segmented button.on { background: var(--text); color: var(--bg); }
.segmented svg { width: 16px; height: 16px; }
.form-note { font-size: 12.5px; line-height: 1.45; margin: 0 0 20px; min-height: 1px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gift-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); }
.gift-mark svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- reviews */

.stars { display: inline-flex; gap: 2px; }
.stars i { display: flex; }
.stars svg { width: 14px; height: 14px; fill: none; stroke: var(--faint); stroke-width: 1.2; stroke-linejoin: round; }
.stars i.on svg { fill: var(--wine); stroke: var(--wine); }
.stars.small svg { width: 12px; height: 12px; }

.rating-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; cursor: pointer; }
.mini-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--soft); }
.mini-rating svg { width: 11px; height: 11px; fill: var(--wine); }
.mini-rating span { color: var(--faint); }

#reviews:not(:empty) { margin-top: 10px; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review.pending { opacity: .6; }
.review.pending .label { color: var(--wine); }
.review p { margin: 8px 0 8px; font-size: 14px; line-height: 1.55; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.review-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-foot .who { font-family: var(--serif); font-style: italic; font-size: 16px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stock); }
.verified svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.review-form { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.stars.input { gap: 6px; margin-bottom: 14px; }
.stars.input button { background: none; border: 0; padding: 2px; cursor: pointer; }
.stars.input svg { width: 30px; height: 30px; }
.stars.input button.on svg { fill: var(--wine); stroke: var(--wine); }
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
}
.review-form textarea:focus { border-color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 20px; height: 20px; border: 1px solid var(--text); display: grid; place-items: center; }
.check input:checked + .box { background: var(--text); }
.check input:checked + .box::after { content: ""; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check-hint { font-size: 12px; margin: 0 0 14px; line-height: 1.4; }
.rate-btn { margin-top: 6px; color: var(--wine); }

/* ---------------------------------------------------------------- journal */

.journal-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.journal-rail::-webkit-scrollbar { display: none; }
.journal-rail .post-card { flex: 0 0 62%; scroll-snap-align: start; }

.journal-list { display: grid; gap: 30px; }

.post-card { cursor: pointer; min-width: 0; }
.post-card .cover { aspect-ratio: 4/5; overflow: hidden; background: var(--sk-a); margin-bottom: 10px; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:active .cover img { transform: scale(1.02); }
.post-card h3 { font-size: 20px; line-height: 1.12; margin-top: 4px; }
.journal-list .post-card h3 { font-size: 24px; }

/* Slides are finished designs (often dark): no plate, no multiply, true 4:5. */
.gallery.post-gallery { background: #111; border-bottom: 0; }
.gallery.post-gallery .slide { height: auto; aspect-ratio: 4/5; }
.gallery.post-gallery .slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.gallery.post-gallery .dots i { background: rgba(255, 255, 255, .35); }
.gallery.post-gallery .dots i.on { background: #fff; }

.post-caption { white-space: pre-line; font-size: 15px; line-height: 1.6; color: var(--soft); margin: 4px 0 0; }

.post-product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.post-product:last-of-type { border-bottom: 1px solid var(--line); }
.post-product .ph {
  width: 84px;
  height: 104px;
  flex: none;
  background: var(--plate);
  border: 1px solid var(--plate-line);
  display: grid;
  place-items: center;
}
.post-product .ph img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.post-product .info { min-width: 0; }
.post-product .name { font-family: var(--serif); font-size: 18px; line-height: 1.15; margin: 4px 0 6px; }

/* ---------------------------------------------------------------- likes and comments */

.social-row { display: flex; gap: 22px; align-items: center; margin-top: 18px; }
.like-btn, .comment-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.like-btn svg, .comment-link svg { width: 24px; height: 24px; }
.like-btn svg { fill: none; stroke: currentColor; transition: transform .2s, fill .2s; }
.like-btn.on svg { fill: var(--wine); stroke: var(--wine); transform: scale(1.08); }
.like-btn:active svg { transform: scale(.9); }

.comments { margin-top: 8px; }
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment:last-child { border-bottom: 1px solid var(--line); }
.comment .who { font-family: var(--serif); font-style: italic; font-size: 17px; }
.comment p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.comment.pending { opacity: .6; }
.comment.pending .label { color: var(--wine); }

.composer { margin-top: 16px; }
.composer textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
}
.composer textarea:focus { border-color: var(--text); }
.composer-foot { margin-top: 10px; gap: 14px; align-items: flex-start; }
.composer-foot .muted { font-size: 12px; line-height: 1.4; }
.composer-foot .btn { flex: none; }
.form-error.ok { color: var(--stock); }

.choice.nick svg { stroke: var(--wine-hi); }

/* ---------------------------------------------------------------- product page */

.gallery {
  margin: -12px calc(-1 * var(--gutter)) 0;
  position: relative;
  background: var(--plate);
  border-bottom: 1px solid var(--plate-line);
}
.gallery .track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide {
  flex: 0 0 100%;
  height: 400px;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}
.gallery .slide img { width: 80%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.gallery .dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gallery .dots i { width: 18px; height: 1.5px; background: rgba(17, 17, 17, .16); }
.gallery .dots i.on { background: var(--wine); }
.gallery .fallback-back {
  position: absolute;
  top: 12px;
  left: 14px;
  margin: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.pd-body { padding-top: 22px; }
.pd-body h1 { font-size: 30px; line-height: 1.05; margin: 8px 0 12px; }
.pd-body .price { font-size: 20px; letter-spacing: .04em; }
.pd-body .stock { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--stock); }
.pd-body .desc { font-size: 14px; line-height: 1.6; color: var(--soft); margin: 20px 0 0; }

.specs { margin-top: 22px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.specs div span:first-child { color: var(--dim); }
.specs div span:last-child { text-align: right; }

.promise { margin-top: 22px; display: grid; gap: 12px; }
.promise div { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--soft); line-height: 1.4; }
.promise svg { flex: none; width: 18px; height: 18px; stroke: var(--wine-hi); fill: none; stroke-width: 1.3; margin-top: 1px; }

.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  height: 40px;
}
.qty-stepper button {
  width: 40px;
  height: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
}
.qty-stepper span { min-width: 28px; text-align: center; font-size: 14px; }
.qty-stepper.compact { height: 32px; }
.qty-stepper.compact button { width: 30px; font-size: 16px; }

/* Primary action pinned to the bottom (browser fallback for Telegram's MainButton). */
.sticky-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
  z-index: 60;
}

/* ---------------------------------------------------------------- search */

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--text);
  padding: 8px 0 10px;
  margin: 4px 0 22px;
}
.search-field svg { width: 20px; height: 20px; flex: none; color: var(--dim); }
.search-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--text);
  padding: 0;
  min-width: 0;
}
.search-field input::placeholder { color: var(--faint); }
.search-field[role="button"] { cursor: pointer; }
.search-field .placeholder { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--faint); }

/* ---------------------------------------------------------------- profile */

.profile-head { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--wine);
  flex: none;
}
.profile-name { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.menu-list { margin: 0 calc(-1 * var(--gutter)); }
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 15px;
}
.menu-row:last-child { border-bottom: 1px solid var(--line); }
.menu-row svg { width: 18px; height: 18px; color: var(--faint); }

/* ---------------------------------------------------------------- cart */

.cart-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-of-type { border-top: 1px solid var(--line); }
.cart-line .ph {
  width: 76px;
  height: 92px;
  flex: none;
  background: var(--plate);
  border: 1px solid var(--plate-line);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cart-line .ph img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-line .name { font-family: var(--serif); font-size: 17px; line-height: 1.15; cursor: pointer; }
.cart-line .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }

.totals { margin-top: 18px; }
.totals .row { justify-content: space-between; padding: 6px 0; font-size: 14px; }
.totals .row.final { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
/* Directly under a hairline list the list's own bottom border is enough. */
.totals .row.final:first-child { border-top: 0; margin-top: 0; }
.totals .row.final span:first-child { font-family: var(--serif); font-size: 22px; }
.totals .row.final span:last-child { font-size: 18px; }

/* ---------------------------------------------------------------- checkout */

.steps { display: flex; gap: 6px; margin: 2px 0 18px; }
.steps i { flex: 1; height: 1.5px; background: var(--line-2); }
.steps i.on { background: var(--wine); }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  cursor: pointer;
  margin-bottom: 10px;
}
.choice:active { border-color: var(--text); }
.choice svg { width: 22px; height: 22px; stroke: var(--wine-hi); fill: none; stroke-width: 1.3; flex: none; }
.choice strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.choice span { font-size: 12px; color: var(--dim); }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  outline: none;
}
.field input:focus { border-bottom-color: var(--text); }
.field input::placeholder { color: var(--faint); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; }

.summary-lines .line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-lines .line span:first-child { font-family: var(--serif); font-size: 16px; }
.summary-lines .line span:last-child { flex: none; }
.kv { margin-top: 20px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; }
.kv div span:first-child { color: var(--dim); }
.kv div span:last-child { text-align: right; }

/* ---------------------------------------------------------------- orders */

.order-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.order-row:first-of-type { border-top: 1px solid var(--line); }
.order-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.order-row strong { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine);
  border: 1px solid currentColor;
  padding: 3px 8px;
}
.order-item-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.order-item-line .nm { font-family: var(--serif); font-size: 16px; line-height: 1.2; }

/* ---------------------------------------------------------------- bottom nav */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 0 12px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}
.bottom-nav .nav-item.active { color: var(--text); }
.bottom-nav .nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wine);
}
.bottom-nav .nav-item .icon { display: flex; }
.bottom-nav .nav-item .icon svg { width: 20px; height: 20px; }
.bottom-nav .badge { top: 6px; right: calc(50% - 20px); }

/* ---------------------------------------------------------------- states */

.empty-state {
  text-align: center;
  padding: 56px 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--dim);
}

.center-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  z-index: 100;
  overflow: hidden;
}
.center-screen .amp {
  position: absolute;
  right: -40px;
  top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 420px;
  line-height: 1;
  color: var(--amp);
  pointer-events: none;
}
.center-screen .mark { font-size: 44px; margin-bottom: 26px; position: relative; }
.center-screen h1 { font-style: italic; font-size: 34px; line-height: 1.05; margin-bottom: 12px; position: relative; }
.center-screen p { color: var(--dim); font-size: 14px; line-height: 1.5; margin: 0 0 28px; position: relative; }
.center-screen .btn { position: relative; }

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  border-top-color: var(--wine);
  animation: spin .8s linear infinite;
  margin: 80px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- profile switch */

.toggle-row { cursor: pointer; }
.switch-ui { position: relative; width: 42px; height: 24px; flex: none; }
.switch-ui input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .2s;
  pointer-events: none;
}
.switch-ui i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.switch-ui input:checked + i { background: var(--wine); }
.switch-ui input:checked + i::after { transform: translateX(18px); }

/* ---------------------------------------------------------------- Nova Poshta hints */

.field.ac { position: relative; }
.ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.ac-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:active { background: var(--press); }
.ac-item small { font-size: 11px; color: var(--dim); letter-spacing: .04em; }

/* ---------------------------------------------------------------- veiled journal photos */

.veil { position: relative; overflow: hidden; }
.veil img { filter: blur(22px) brightness(.75); transform: scale(1.12); }
.cover img, .slide img { transition: filter .35s ease, transform .35s ease; }
.veil-note {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.veil .veil-note { display: flex; }
.veil-note svg { width: 26px; height: 26px; }
.veil-note span { font-family: var(--serif); font-style: italic; font-size: 18px; }
.veil-note b { font-weight: 400; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.slide.veil { cursor: pointer; }
.post-card .cover { position: relative; }
.eye-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(14, 13, 13, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
}
.eye-btn svg { width: 19px; height: 19px; }
.gallery .eye-btn { top: 12px; right: 14px; width: 38px; height: 38px; }

/* ---------------------------------------------------------------- order status, card requisites */

.status-track {
  list-style: none;
  margin: 4px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.status-track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line-2);
}
.status-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.status-track i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.status-track span { font-size: 9.5px; line-height: 1.2; color: var(--faint); text-align: center; white-space: nowrap; }
.status-track li.done i { background: var(--text); border-color: var(--text); }
.status-track li.done span { color: var(--dim); }
.status-track li.now i { background: var(--wine); border-color: var(--wine); box-shadow: 0 0 0 4px rgba(96, 4, 4, .14); }
.status-track li.now span { color: var(--wine); }
.status-cancelled {
  display: inline-block;
  margin: 2px 0 20px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--danger);
  border: 1px solid currentColor;
  padding: 5px 10px;
}

.card-pay { border: 1px solid var(--line-2); padding: 16px 16px 14px; margin: 0 0 18px; text-align: left; position: relative; background: var(--surface); }
.card-pay .label { margin-bottom: 10px; }
.card-pay .amount { font-size: 16px; }
.card-no { font-size: 22px; letter-spacing: .08em; margin: 10px 0 8px; cursor: pointer; -webkit-user-select: all; user-select: all; }
.card-pay .link-btn { color: var(--wine); }
.center-screen.with-card { overflow-y: auto; justify-content: flex-start; padding-top: 60px; }
.center-screen.with-card .btn { margin-top: 4px; }

.gift-off {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--soft);
}
.gift-off svg { width: 18px; height: 18px; flex: none; color: var(--wine-hi); margin-top: 1px; }
.gift-off .link-btn { color: var(--wine); font-size: 10.5px; margin-left: 4px; }
