/* ==========================================================================
   Knit & Ispira — design tokens, base styles, layout helpers, forms, buttons
   ========================================================================== */

:root {
  /* Colour */
  --c-bg: #fbf8f3;
  --c-surface: #ffffff;
  --c-surface-2: #f5eee4;
  --c-surface-3: #ece2d4;
  --c-ink: #2a2421;
  --c-ink-2: #5b514a;
  --c-ink-3: #72665e;
  --c-line: #e7ddd0;
  --c-line-strong: #d6c8b6;
  --c-accent: #a64f2e;
  --c-accent-hover: #8a3f22;
  --c-accent-soft: #f6e5dc;
  --c-accent-ink: #ffffff;
  --c-sage: #627759;
  --c-sage-soft: #e6ece1;
  --c-berry: #9a3552;
  --c-berry-soft: #f6e1e7;
  --c-success: #3d7a54;
  --c-success-soft: #e3f0e7;
  --c-warning: #a86a12;
  --c-warning-soft: #fbefdb;
  --c-danger: #b0352c;
  --c-danger-soft: #f9e2df;
  --c-dark: #2b2622;
  --c-dark-2: #3a332e;
  --c-on-dark: #f3ece3;
  --c-focus: #1f6feb;

  /* Type */
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-s: 0.875rem;
  --fs-m: 1rem;
  --fs-l: 1.125rem;
  --fs-xl: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --fs-h1: clamp(1.95rem, 1.6rem + 1.8vw, 3rem);
  --fs-display: clamp(2.4rem, 1.8rem + 3vw, 4.25rem); /* the big decorative titles of the home page */
  --fs-display-2: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --lh-tight: 1.15;
  /* Headings use the plain font: it is for reading. The decorative one (--font-accent) stays for the big home-page
     titles, the logo and a few large numbers. SiteSettings.heading_font switches this (body.typo-*). */
  --font-heading: var(--font-body);
  --heading-weight: 700;
  --heading-tracking: -0.02em;
  --font-accent: var(--font-display);
  --accent-weight: 500;
  --lh-body: 1.6;

  /* Shape & depth */
  --radius-xs: 6px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgb(42 36 33 / 0.06), 0 1px 3px rgb(42 36 33 / 0.05);
  --shadow-m: 0 10px 30px -12px rgb(42 36 33 / 0.22);
  --shadow-l: 0 30px 70px -25px rgb(42 36 33 / 0.35);

  /* Layout */
  --container: 1320px;
  --container-narrow: 860px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(56px, 7vw, 112px);
  --header-h: 68px;
  --nav-h: 0px; /* desktop menu row under the header, see components.css */
  --sticky-top: calc(var(--header-h) + var(--nav-h)); /* height of the sticky header */
  --ratio: 4 / 5;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 260ms;

  --z-header: 50;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;

  color-scheme: light;
}
@media (min-width: 1200px) { :root { --nav-h: 48px; } }

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-top) + 16px); }
body {
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: var(--lh-body);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p, h1, h2, h3, h4, h5, h6, li { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.no-js .js-only, .js .no-js-only { display: none !important; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--lh-tight);
  letter-spacing: var(--heading-tracking);
  color: var(--c-ink);
}
/* Decorative headings everywhere, as the shop's first design had them (never italic: italics are hard to read) */
body.typo-classic {
  --font-heading: var(--font-display);
  --heading-weight: 500;
  --heading-tracking: -0.01em;
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --fs-h1: clamp(2.4rem, 1.8rem + 3vw, 4.25rem);
}
/* No decorative font anywhere */
body.typo-plain {
  --font-accent: var(--font-body);
  --accent-weight: 700;
  --fs-display: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --fs-display-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
}
.accent-title { font-family: var(--font-accent); font-weight: var(--accent-weight); letter-spacing: -0.01em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-l); font-weight: 700; line-height: 1.3; }
.display em, h1 em, h2 em { font-style: normal; color: var(--c-accent); }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.lead { font-size: var(--fs-l); color: var(--c-ink-2); max-width: 62ch; }
.muted { color: var(--c-ink-3); }
.small { font-size: var(--fs-s); }
.tiny { font-size: var(--fs-xs); }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-accent { color: var(--c-accent); }

.prose { max-width: 72ch; color: var(--c-ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-xl); margin-top: 1.4em; }
.prose h4 { margin-top: 1.2em; }
.prose a { color: var(--c-accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-left: 3px solid var(--c-accent); padding: 0.2em 0 0.2em 1em; font-size: var(--fs-l); font-weight: 500; color: var(--c-ink); }
.prose table { font-size: var(--fs-s); border: 1px solid var(--c-line); border-radius: var(--radius-s); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.55em 0.8em; border-bottom: 1px solid var(--c-line); text-align: left; white-space: nowrap; }
.prose th { background: var(--c-surface-2); color: var(--c-ink); font-weight: 700; }
/* Headers wrap instead of pushing columns off a phone screen; a shade at the edge shows there is more to scroll */
.prose th { white-space: normal; min-width: 4.5em; vertical-align: bottom; }
.prose tbody th { background: none; font-weight: 600; vertical-align: top; }
.prose table {
  background:
    linear-gradient(to right, var(--c-surface), var(--c-surface)) left / 24px 100% no-repeat local,
    linear-gradient(to left, var(--c-surface), var(--c-surface)) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.14), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.14), transparent) right / 12px 100% no-repeat scroll
    var(--c-surface);
}
@media (max-width: 600px) {
  .prose th, .prose td { padding: 0.5em 0.6em; }
}
.prose img { border-radius: var(--radius-m); }
.prose strong, .prose b { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: calc(var(--section-gap) * 0.6); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, 0.75rem); align-items: center; }
.grid { display: grid; gap: var(--gap, clamp(16px, 2.2vw, 28px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head__text { max-width: 640px; }
.section-head__text > * + * { margin-top: 0.5rem; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }

.bg-cream { background: var(--c-bg); }
.bg-sand { background: var(--c-surface-2); }
.bg-sage { background: var(--c-sage-soft); }
.bg-dark { background: var(--c-dark); color: var(--c-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .lead, .bg-dark .muted { color: rgb(243 236 227 / 0.75); }
.bg-dark .eyebrow, .bg-dark h1 em, .bg-dark h2 em, .bg-dark .display em { color: #f3c9b6; }

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; fill: none; flex: none; display: inline-block; vertical-align: middle; }
.icon--s { width: 1em; height: 1em; }
.icon--l { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.2em; height: 2.2em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: #fff;
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-m);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--c-dark-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn--accent { --btn-bg: var(--c-accent); }
.btn--accent:hover { --btn-bg: var(--c-accent-hover); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-border: var(--c-line-strong); }
.btn--outline:hover { --btn-bg: var(--c-surface); --btn-border: var(--c-ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); }
.btn--light:hover { --btn-bg: var(--c-surface-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-border: transparent; }
.btn--ghost:hover { --btn-bg: var(--c-surface-2); }
.btn--sm { min-height: 38px; padding: 0.45em 1em; font-size: var(--fs-s); }
.btn--lg { min-height: 56px; padding: 0.9em 2em; font-size: var(--fs-l); }
.btn--block { width: 100%; white-space: normal; } /* full-width buttons may wrap rather than overflow on phones */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c-ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.icon-btn__count:empty, .icon-btn__count[data-count="0"] { display: none; }

.link { color: var(--c-accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; }
.link:hover { text-decoration: underline; }
.link--muted { color: var(--c-ink-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 16px; }
.field-row > .field + .field { margin-top: 0; } /* fields side by side are spaced by the grid gap */
.field > label, .label { font-size: var(--fs-s); font-weight: 700; color: var(--c-ink); }
fieldset.field > legend { margin-bottom: 8px; }
.field .required-mark { color: var(--c-accent); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"],
.field input[type="number"], .field input[type="date"], .field input[type="search"], .field input[type="url"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input[type="file"] { width: 100%; max-width: 100%; font-size: var(--fs-s); color: var(--c-ink-2); }
.field input[type="file"]::file-selector-button { margin-right: 12px; min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font: inherit; font-weight: 700; cursor: pointer; }
.field input[type="file"]::file-selector-button:hover { border-color: var(--c-ink); }
.field select, select.input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b514a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* Radios and checkboxes keep the browser control and the global :focus-visible ring */
.input:focus, .field input:not([type="radio"], [type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px rgb(42 36 33 / 0.08); }
.field input:not([type="radio"], [type="checkbox"]):disabled, .field select:disabled, .field textarea:disabled { background-color: var(--c-surface-2); color: var(--c-ink-2); cursor: not-allowed; }
.field.has-error input:not([type="radio"], [type="checkbox"]), .field.has-error select, .field.has-error textarea { border-color: var(--c-danger); background-color: #fffafa; }
.field__help { font-size: var(--fs-xs); color: var(--c-ink-3); line-height: 1.45; }
.field__error { font-size: var(--fs-s); color: var(--c-danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.form-errors { background: var(--c-danger-soft); color: var(--c-danger); border-radius: var(--radius-s); padding: 12px 16px; font-weight: 600; font-size: var(--fs-s); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-s); line-height: 1.45; color: var(--c-ink-2); }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c-accent); cursor: pointer; }
.check a { color: var(--c-accent); }

.choice-list { display: grid; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.choice:hover { border-color: var(--c-ink-3); }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-accent); }
.choice:has(input:checked) { border-color: var(--c-accent); background: #fffaf7; box-shadow: 0 0 0 3px var(--c-accent-soft); }
.choice.is-disabled { opacity: 0.45; pointer-events: none; }
.choice__body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.choice__title { font-weight: 700; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.choice__meta { font-size: var(--fs-s); color: var(--c-ink-3); }
.choice__price { font-weight: 800; white-space: nowrap; margin-left: auto; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { cursor: pointer; }
.choice-chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill); font-size: var(--fs-s); font-weight: 600; background: var(--c-surface); transition: all var(--t-fast); }
.choice-chips input:checked + span { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.choice-chips input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill); background: var(--c-surface); height: 48px; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--c-ink-2); border-radius: var(--radius-pill); }
.qty button:hover { color: var(--c-ink); background: var(--c-surface-2); }
.qty input { width: 44px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Small UI pieces
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--c-surface); color: var(--c-ink); line-height: 1.3; }
.badge--sale { background: var(--c-berry); color: #fff; }
.badge--new { background: var(--c-sage); color: #fff; }
.badge--unique { background: var(--c-dark); color: #fff; }
.badge--order { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.badge--custom { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-s); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--c-surface-2); font-size: var(--fs-s); font-weight: 600; color: var(--c-ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-s); font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--new, .status--confirmed { background: #e8eefc; color: #2c55b5; }
.status--in_production, .status--ready { background: var(--c-warning-soft); color: var(--c-warning); }
.status--shipped { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.status--delivered, .status--paid { background: var(--c-success-soft); color: var(--c-success); }
.status--cancelled, .status--returned, .status--failed { background: var(--c-danger-soft); color: var(--c-danger); }
.status--unpaid, .status--pending { background: var(--c-surface-2); color: var(--c-ink-2); }

.stars { display: inline-flex; gap: 1px; color: #c9922e; vertical-align: middle; }
.stars .icon { width: 15px; height: 15px; }
.stars .is-full { fill: currentColor; }
.stars .star-half { position: relative; display: inline-flex; }
.stars .star-half .is-full { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.stars .is-empty { color: var(--c-line-strong); fill: currentColor; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__now { font-weight: 800; font-size: var(--fs-l); color: var(--c-ink); }
.price__now.is-sale { color: var(--c-berry); }
.price__old { color: var(--c-ink-3); text-decoration: line-through; font-size: var(--fs-s); }
.price__until { flex-basis: 100%; color: var(--c-berry); font-size: var(--fs-s); font-weight: 600; }
.price__from { font-size: var(--fs-s); color: var(--c-ink-3); font-weight: 600; }

.swatch { --size: 18px; width: var(--size); height: var(--size); border-radius: 50%; background: var(--swatch, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); flex: none; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-m); background: var(--c-surface-2); color: var(--c-ink-2); font-size: var(--fs-s); }
.alert .icon { margin-top: 2px; }
.alert--info { background: #eef3fb; color: #274b8f; }
.alert--success { background: var(--c-success-soft); color: var(--c-success); }
.alert--warning { background: var(--c-warning-soft); color: #7f5010; }
.alert--error { background: var(--c-danger-soft); color: var(--c-danger); }

.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(18px, 2.5vw, 28px); }
.card--flat { border: 0; background: var(--c-surface-2); }
.card__title { font-family: var(--font-body); font-size: var(--fs-l); font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--c-ink-3); font-size: var(--fs-s); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }

.empty { text-align: center; padding: clamp(40px, 8vw, 96px) 16px; display: grid; gap: 14px; justify-items: center; }
.empty__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-accent); }
.empty__icon .icon { width: 38px; height: 38px; }
.empty p { color: var(--c-ink-2); max-width: 46ch; }

.breadcrumbs { font-size: var(--fs-s); color: var(--c-ink-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumbs a { text-decoration: none; color: var(--c-ink-2); }
.breadcrumbs a:hover { color: var(--c-accent); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; color: var(--c-ink-2); }
.pagination a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.pagination .is-current { background: var(--c-ink); color: #fff; }

.table { width: 100%; font-size: var(--fs-s); }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table th { color: var(--c-ink-3); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.specs { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; font-size: var(--fs-s); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px dashed var(--c-line-strong); margin: 0; }
.specs dt { color: var(--c-ink-3); padding-right: 16px; }
.specs dd { color: var(--c-ink); font-weight: 600; }

details.accordion { border-bottom: 1px solid var(--c-line); }
details.accordion > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: var(--fs-m); }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary .icon { transition: transform var(--t-med) var(--ease); color: var(--c-ink-3); }
details.accordion[open] > summary .icon { transform: rotate(45deg); }
details.accordion > .accordion__body { padding: 0 0 20px; color: var(--c-ink-2); }
