/* Şanur storefront — components. Needs tokens.css (generated from tokens.json) loaded first.
   Responsive rules use ONLY max-width media queries; the build mirrors each one as an
   @container shapp query so design-system previews can show a phone frame beside the desktop. */

/* ---------- Base ---------- */
.sh-app, .sh-app *, .sh-app *::before, .sh-app *::after { box-sizing: border-box; }
.sh-app {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100%; display: flex; flex-direction: column;
}
.sh-app main { flex: 1 0 auto; }
:where(.sh-app) img { max-width: 100%; display: block; }
:where(.sh-app) a { color: inherit; text-decoration: none; }
:where(.sh-app) button { font: inherit; color: inherit; }
:where(.sh-app) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.sh-app) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.sh-app :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.sh-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.sh-section { padding: var(--space-6) 0; }
.sh-section + .sh-section { padding-top: var(--space-2); }
.sh-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.sh-row { display: flex; align-items: center; gap: var(--space-3); }
.sh-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); flex-wrap: wrap; }
.sh-muted { color: var(--ink-muted); }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-hide-desktop { display: none !important; }
.sh-app [hidden] { display: none !important; }
.sh-divider { height: 1px; background: var(--line); border: 0; margin: var(--space-4) 0; }

/* type */
.sh-display { font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.sh-h1 { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.sh-h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.sh-h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.sh-title { font-size: 16px; line-height: 1.35; font-weight: 600; }
.sh-body { font-size: 15px; line-height: 1.55; }
.sh-small { font-size: 13px; line-height: 1.45; }
.sh-caption { font-size: 12px; line-height: 1.35; font-weight: 500; }
.sh-overline { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sh-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-1); }
.sh-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sh-link--ink { color: var(--ink); }

/* icons */
.sh-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-icon--sm { width: 16px; height: 16px; }
.sh-icon--lg { width: 24px; height: 24px; }
.sh-icon--xl { width: 32px; height: 32px; stroke-width: 1.5; }
.sh-icon--fill { fill: currentColor; }

/* logo (inline traced SVG, fill = currentColor) */
.sh-logo { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; }
.sh-logo svg { height: 34px; width: auto; }
.sh-logo--lockup svg { height: 96px; }
.sh-logo img { height: 34px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.sh-logo--lockup img { height: 96px; max-width: 300px; }

/* ---------- Buttons ---------- */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: 15px; line-height: 1.2; font-weight: 600; white-space: nowrap; cursor: pointer;
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sh-btn:hover { background: var(--surface-muted); }
.sh-btn--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.sh-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.sh-btn--primary:active { background: var(--primary-pressed); }
.sh-btn--sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.sh-btn--sand:hover { background: var(--sand-strong); border-color: var(--sand-strong); }
.sh-btn--ghost { background: transparent; border-color: transparent; color: var(--ink); }
.sh-btn--ghost:hover { background: var(--surface-muted); }
.sh-btn--danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.sh-btn--danger:hover { background: var(--danger-soft); }
.sh-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-sm); }
.sh-btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.sh-btn--block { width: 100%; }
.sh-btn--icon { width: 44px; padding: 0; }
.sh-btn--icon.sh-btn--sm { width: 36px; }
.sh-btn[disabled], .sh-btn.is-disabled { opacity: .45; pointer-events: none; }
.sh-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.sh-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--on-primary); border-right-color: transparent; animation: sh-spin .7s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* icon button with counter (header) */
.sh-iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.sh-iconbtn:hover { background: var(--surface-muted); }
.sh-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Forms ---------- */
.sh-field { display: flex; flex-direction: column; gap: 6px; }
.sh-label { font-size: 14px; font-weight: 600; }
.sh-label .sh-req { color: var(--danger); }
.sh-input, .sh-select, .sh-textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; outline: none;
}
.sh-textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; }
.sh-input::placeholder, .sh-textarea::placeholder { color: var(--ink-muted); }
.sh-input:focus, .sh-select:focus, .sh-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sh-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.sh-help { font-size: 13px; color: var(--ink-muted); }
.sh-field.is-error .sh-input, .sh-field.is-error .sh-select, .sh-field.is-error .sh-textarea { border-color: var(--danger); }
.sh-field.is-error .sh-help { color: var(--danger); }
.sh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.sh-form-grid .sh-span-2 { grid-column: 1 / -1; }
.sh-inputgroup { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.sh-inputgroup:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sh-inputgroup .sh-input { border: 0; box-shadow: none !important; border-radius: 0; }
.sh-inputgroup__addon { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-muted); color: var(--ink); font-weight: 600; border-right: 1px solid var(--line); white-space: nowrap; }
.sh-inputgroup__btn { border: 0; background: transparent; padding: 0 12px; color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; }
.sh-search { position: relative; display: flex; align-items: center; width: 100%; }
.sh-search .sh-icon { position: absolute; left: 14px; color: var(--ink-muted); pointer-events: none; }
.sh-search .sh-input { padding-left: 42px; background: var(--surface-muted); border-color: var(--line); height: 42px; }
.sh-search .sh-input:focus { background: var(--surface); }

/* checkbox / radio */
.sh-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; user-select: none; }
.sh-check input, .sh-option > input { appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.sh-check input[type="radio"], .sh-option > input[type="radio"] { border-radius: 50%; }
.sh-check input:checked, .sh-option > input:checked { background: var(--primary); border-color: var(--primary); }
.sh-check input[type="checkbox"]:checked::after, .sh-option > input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.sh-check input[type="radio"]:checked::after, .sh-option > input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-primary); }
.sh-check__count { margin-left: auto; color: var(--ink-muted); font-size: 13px; }

/* selectable option card (delivery, payment, address) */
.sh-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.sh-option:hover { border-color: var(--sand-strong); }
.sh-option input { margin-top: 2px; }
.sh-option__body { flex: 1; min-width: 0; }
.sh-option__title { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sh-option__meta { display: block; font-size: 13px; color: var(--ink-muted); }
.sh-option__aside { font-weight: 700; white-space: nowrap; }
.sh-option.is-selected, .sh-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.sh-options { display: grid; gap: var(--space-3); }
.sh-options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* quantity stepper */
.sh-qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.sh-qty button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.sh-qty button:hover { background: var(--surface-muted); }
.sh-qty input { width: 52px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-qty__unit { padding-right: 12px; color: var(--ink-muted); font-size: 13px; }
.sh-qty--sm { height: 36px; }
.sh-qty--sm button { width: 32px; }
.sh-qty--sm input { width: 40px; }

/* OTP */
.sh-otp { display: flex; gap: var(--space-2); justify-content: center; }
.sh-otp input { width: 52px; height: 58px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); text-align: center; font: inherit; font-size: 22px; font-weight: 700; background: var(--surface); color: var(--ink); }
.sh-otp input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Badges, tags, swatches ---------- */
.sh-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; line-height: 1; background: var(--surface-muted); color: var(--ink); white-space: nowrap; }
.sh-badge--sale { background: var(--danger-soft); color: var(--danger); }
.sh-badge--new { background: var(--accent); color: var(--on-primary); }
.sh-badge--stock, .sh-badge--success { background: var(--success-soft); color: var(--success); }
.sh-badge--out, .sh-badge--danger { background: var(--danger-soft); color: var(--danger); }
.sh-badge--warning { background: var(--warning-soft); color: var(--warning); }
.sh-badge--info { background: var(--info-soft); color: var(--info); }
.sh-badge--sand { background: var(--sand); color: var(--ink); }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.sh-chip.is-active { background: var(--sand); border-color: var(--sand-strong); }
.sh-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.sh-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-swatch { width: 26px; height: 26px; border-radius: var(--radius-pill); border: 0; padding: 0; cursor: pointer; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(31, 25, 20, .18); position: relative; }
.sh-swatch.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.sh-swatch--lg { width: 36px; height: 36px; }
.sh-swatch--more { background: var(--surface-muted); font-size: 11px; font-weight: 700; color: var(--ink-muted); display: grid; place-items: center; box-shadow: none; }

/* option buttons (width, thickness, density) */
.sh-variants { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sh-variant { min-width: 56px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sh-variant:hover { border-color: var(--ink); }
.sh-variant.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-pressed); box-shadow: inset 0 0 0 1px var(--primary); }
.sh-variant.is-disabled { color: var(--ink-muted); text-decoration: line-through; border-style: dashed; cursor: not-allowed; }

/* rating */
.sh-rating { display: inline-flex; align-items: center; gap: 2px; color: var(--rating); }
.sh-rating .sh-icon { width: 16px; height: 16px; }
.sh-rating .is-on { fill: currentColor; }
.sh-rating__text { margin-left: 6px; color: var(--ink-muted); font-size: 13px; }

/* ---------- Tabs & segmented ---------- */
.sh-seg { display: inline-flex; width: max-content; max-width: 100%; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sh-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.sh-seg button.is-active { background: var(--sand); font-weight: 600; }
.sh-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs button, .sh-tabs a { position: relative; padding: 12px 0; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.sh-tabs .is-active { color: var(--ink); font-weight: 600; }
.sh-tabs .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.sh-tabpanel[hidden] { display: none; }

/* language switch */
.sh-lang { display: inline-flex; gap: 2px; }
.sh-lang a, .sh-lang button { height: 28px; min-width: 32px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sh-lang .is-active { background: var(--sand); }
.sh-lang--boxed a, .sh-lang--boxed button { height: 32px; min-width: 42px; background: var(--surface-muted); }
.sh-lang--boxed .is-active { background: var(--primary); color: var(--on-primary); }

/* ---------- Header ---------- */
.sh-header { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.sh-header__bar { height: var(--header-h); display: flex; align-items: center; gap: var(--space-6); }
.sh-header__search { flex: 1; max-width: 520px; position: relative; }
.sh-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-1); }
.sh-header__lang { margin-left: var(--space-3); }
.sh-header__mobile-search { display: none; }
.sh-nav { background: var(--surface-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sh-nav__list { display: flex; gap: var(--space-7); height: 44px; align-items: stretch; }
.sh-nav__list li { display: flex; }
.sh-nav__list a { position: relative; display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.sh-nav__list a:hover { color: var(--primary); }
.sh-nav__list a.is-active { font-weight: 600; }
.sh-nav__list a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--ink); }
.sh-nav__phone { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* search suggestions dropdown */
.sh-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: var(--space-2); }
.sh-suggest a { display: flex; align-items: center; gap: var(--space-3); padding: 8px; border-radius: var(--radius-sm); }
.sh-suggest a:hover { background: var(--surface-muted); }
.sh-suggest mark { background: none; color: var(--primary); font-weight: 700; }

/* ---------- Bottom navigation (mobile) ---------- */
.sh-bottom-nav { display: none; }

/* ---------- Hero ---------- */
.sh-hero { position: relative; overflow: hidden; background: var(--surface-sunken); }
.sh-hero__slides { display: grid; }
.sh-hero__slide { grid-area: 1 / 1; position: relative; min-height: 400px; display: flex; align-items: center; }
.sh-hero--slider .sh-hero__slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.sh-hero--slider .sh-hero__slide.is-active { opacity: 1; visibility: visible; }
.sh-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .88); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sh-hero__nav:hover { background: var(--surface); }
.sh-hero__nav:focus-visible, .sh-hero__dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sh-hero__nav--prev { left: 16px; }
.sh-hero__nav--next { right: 16px; }
.sh-hero__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 20px; background: rgba(255, 255, 255, .78); }
.sh-hero__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(31, 25, 20, .3); cursor: pointer; transition: width .25s ease, background .25s ease; }
.sh-hero__dot.is-active { width: 28px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .sh-hero--slider .sh-hero__slide, .sh-hero__dot { transition: none; } }
.sh-hero__art { position: absolute; inset: 0; }
.sh-hero__art img, .sh-hero__art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(246, 244, 238, 0) 62%); }
.sh-hero__content { position: relative; max-width: 560px; padding: var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.sh-hero__lead { font-size: 18px; line-height: 1.5; }

/* features strip */
.sh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.sh-feature { display: flex; align-items: center; gap: var(--space-3); padding: 18px var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); font-weight: 600; font-size: 16px; }
.sh-feature__icon { width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface); color: var(--ink); flex: none; }
.sh-feature small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-muted); }

/* section head */
.sh-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.sh-section-head .sh-link { color: var(--ink); font-size: 14px; }

/* grids */
.sh-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sh-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sh-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--space-5)) / 4); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.sh-scroller > * { scroll-snap-align: start; }

/* ---------- Media placeholders (preview only; production uses <img>) ---------- */
.sh-media { position: relative; overflow: hidden; background: var(--surface-sunken); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.sh-media > img { width: 100%; height: 100%; object-fit: cover; }
.sh-media--square { aspect-ratio: 1 / 1; }
.sh-media--wide { aspect-ratio: 16 / 9; }
.sh-ph { --ph: #b98c64; --ph2: #8a6446; background-color: var(--ph); }
.sh-ph--velvet { background-image: radial-gradient(120% 90% at 20% 15%, rgba(255,255,255,.28), transparent 55%), radial-gradient(90% 80% at 85% 90%, rgba(0,0,0,.22), transparent 60%), linear-gradient(160deg, var(--ph), var(--ph2)); }
.sh-ph--weave { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 5px), linear-gradient(170deg, var(--ph), var(--ph2)); }
.sh-ph--linen { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px), linear-gradient(150deg, var(--ph), var(--ph2)); }
.sh-ph--boucle { background-image: radial-gradient(circle at 3px 3px, rgba(255,255,255,.55) 1.6px, transparent 2.2px), radial-gradient(circle at 7px 8px, rgba(0,0,0,.12) 1.6px, transparent 2.2px), linear-gradient(150deg, var(--ph), var(--ph2)); background-size: 9px 9px, 11px 11px, 100% 100%; }
.sh-ph--foam { background-image: linear-gradient(180deg, transparent 0 18%, rgba(0,0,0,.08) 18% 19%, transparent 19% 40%, rgba(0,0,0,.08) 40% 41%, transparent 41% 62%, rgba(0,0,0,.08) 62% 63%, transparent 63%), radial-gradient(circle at 2px 2px, rgba(0,0,0,.06) 1px, transparent 1.4px), linear-gradient(180deg, #f3ecd9 0 40%, var(--ph) 40% 62%, #ebe7df 62%); background-size: 100% 100%, 5px 5px, 100% 100%; }
.sh-ph--fiber { background-image: radial-gradient(60% 50% at 30% 40%, #ffffff, transparent 70%), radial-gradient(50% 45% at 70% 60%, #fbfbf8, transparent 70%), radial-gradient(40% 40% at 50% 85%, #f1efe9, transparent 70%), linear-gradient(180deg, #e9e6df, #d9d4ca); }
.sh-ph--metal { background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 55%), linear-gradient(180deg, #c9c7c2, #8e8b85); }
.sh-ph--wood { background-image: repeating-linear-gradient(95deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px), linear-gradient(160deg, var(--ph), var(--ph2)); }
.sh-ph__label { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,.86); font-size: 11px; font-weight: 600; color: var(--ink); }

/* ---------- Category card ---------- */
.sh-cat-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease; }
.sh-cat-card:hover { transform: translateY(-2px); }
.sh-cat-card .sh-media { border-radius: 0; aspect-ratio: 5 / 4; }
.sh-cat-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 14px var(--space-4); font-weight: 600; font-size: 16px; }
.sh-cat-card__count { display: block; font-size: 13px; font-weight: 400; color: var(--ink-muted); }

/* ---------- Product card ---------- */
.sh-product-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--space-2); padding-bottom: var(--space-3); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.sh-product-card .sh-media { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.sh-product-card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 1px 3px rgba(31,25,20,.12); }
.sh-product-card__fav .sh-icon { width: 17px; height: 17px; }
.sh-product-card__fav.is-active { color: var(--danger); }
.sh-product-card__fav.is-active .sh-icon { fill: currentColor; }
.sh-product-card__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; }
.sh-product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--space-2); flex: 1; }
.sh-product-card__name { font-size: 16px; line-height: 1.3; font-weight: 600; }
.sh-product-card__name a:hover { color: var(--primary); }
.sh-product-card__sku { font-size: 12px; color: var(--ink-muted); margin-top: -6px; }
.sh-product-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; flex-wrap: wrap; }
.sh-price { font-size: 20px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.sh-price__unit { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.sh-price__old { font-size: 13px; font-weight: 500; color: var(--ink-muted); text-decoration: line-through; margin-left: 6px; }
.sh-price--lg { font-size: 30px; font-weight: 800; }
.sh-sample-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.sh-sample-link:hover { text-decoration: underline; }
.sh-product-card .sh-btn { margin: 0 var(--space-2); }
.sh-product-card.is-out .sh-media { opacity: .6; }

/* horizontal product row (cart, order, wishlist lists) */
.sh-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.sh-line:last-child { border-bottom: 0; }
.sh-line .sh-media { aspect-ratio: 1; border-radius: var(--radius-sm); }
.sh-line__name { font-weight: 600; }
.sh-line__meta { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.sh-line__meta .sh-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: -1px; margin-right: 4px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sh-line__end { display: flex; align-items: center; gap: var(--space-5); }
.sh-line__total { min-width: 96px; text-align: right; font-weight: 700; font-size: 17px; white-space: nowrap; }

/* ---------- Promo banner ---------- */
.sh-promo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-sunken); min-height: 220px; display: flex; align-items: center; }
.sh-promo__art { position: absolute; inset: 0 0 0 auto; width: 58%; }
.sh-promo__art svg, .sh-promo__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-promo__content { position: relative; padding: var(--space-6) var(--space-7); max-width: 480px; display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.sh-promo--flush { border-radius: 0; }

/* ---------- Breadcrumbs, pagination ---------- */
.sh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); padding: var(--space-4) 0 0; }
.sh-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.sh-crumbs .sh-icon { width: 14px; height: 14px; }
.sh-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.sh-pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-6); }
.sh-pagination a, .sh-pagination span { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.sh-pagination .is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.sh-pagination .is-gap { border: 0; background: none; }

/* ---------- Page head ---------- */
.sh-pagehead { padding: var(--space-3) 0 var(--space-5); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.sh-pagehead p { color: var(--ink-muted); margin-top: 6px; }

/* ---------- Catalog ---------- */
.sh-catalog { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.sh-filters { position: sticky; top: calc(var(--header-h) + 60px); display: flex; flex-direction: column; gap: var(--space-2); }
.sh-filter { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--line); }
.sh-filter > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--space-4); font-weight: 700; cursor: pointer; }
.sh-filter > summary::-webkit-details-marker { display: none; }
.sh-filter > summary .sh-icon { transition: transform .2s; }
.sh-filter[open] > summary .sh-icon { transform: rotate(180deg); }
.sh-filter__body { padding: 0 var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.sh-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.sh-range .sh-input { height: 40px; }
.sh-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.sh-toolbar__right { display: flex; align-items: center; gap: var(--space-2); }
.sh-toolbar .sh-select { height: 40px; width: auto; min-width: 200px; font-size: 14px; }
.sh-filter-open { display: none; }
.sh-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.sh-active-filters .sh-chip .sh-icon { width: 14px; height: 14px; }

/* drawer (mobile filters, mobile menu) */
.sh-drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.sh-drawer.is-open { display: block; }
.sh-drawer__overlay { position: absolute; inset: 0; background: var(--overlay); }
.sh-drawer__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); }
.sh-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--line); }
.sh-drawer__body { overflow: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.sh-drawer__foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- Product details ---------- */
.sh-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.sh-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-3); position: sticky; top: calc(var(--header-h) + 60px); }
.sh-gallery__thumbs { display: flex; flex-direction: column; gap: var(--space-2); }
.sh-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; background: none; }
.sh-gallery__thumb .sh-media { aspect-ratio: 1; border-radius: 4px; }
.sh-gallery__thumb.is-active { border-color: var(--ink); }
.sh-gallery__main { position: relative; }
.sh-gallery__main .sh-media { aspect-ratio: 1; border-radius: var(--radius-lg); }
.sh-gallery__dots { display: none; }
.sh-pdp__info { display: flex; flex-direction: column; gap: var(--space-5); }
.sh-pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: 13px; color: var(--ink-muted); }
.sh-pdp__price { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.sh-pdp__group { display: flex; flex-direction: column; gap: 10px; }
.sh-pdp__group-label { font-size: 14px; font-weight: 600; }
.sh-pdp__group-label span { font-weight: 400; color: var(--ink-muted); }
.sh-pdp__buy { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.sh-pdp__buy .sh-btn--primary { flex: 1; min-width: 200px; }
.sh-pdp__calc { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-muted); font-size: 14px; display: flex; justify-content: space-between; gap: var(--space-3); }
.sh-infolist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sh-infolist li { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border-bottom: 1px solid var(--line); font-size: 14px; }
.sh-infolist li:last-child { border-bottom: 0; }
.sh-infolist strong { display: block; font-size: 15px; }
.sh-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-specs th, .sh-specs td { text-align: left; padding: 12px var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.sh-specs th { width: 38%; font-weight: 500; color: var(--ink-muted); }
.sh-specs tr:nth-child(odd) { background: var(--surface-muted); }
.sh-prose { font-size: 16px; line-height: 1.7; max-width: 760px; }
.sh-prose p + p, .sh-prose p + ul, .sh-prose ul + p, .sh-prose h2 + p, .sh-prose h3 + p { margin-top: 14px; }
.sh-prose h2 { font-size: 24px; line-height: 1.25; margin-top: 32px; }
.sh-prose h3 { font-size: 19px; margin-top: 24px; }
.sh-prose ul { list-style: disc; padding-left: 22px; }
.sh-prose li + li { margin-top: 6px; }
.sh-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sh-sticky-buy { display: none; }

/* reviews */
.sh-reviews { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-7); }
.sh-review-summary { display: flex; flex-direction: column; gap: var(--space-3); }
.sh-review-summary__score { font-size: 48px; font-weight: 800; line-height: 1; }
.sh-bars { display: grid; gap: 6px; }
.sh-bars div { display: grid; grid-template-columns: 22px 1fr 32px; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-muted); }
.sh-bars i { display: block; height: 6px; border-radius: 3px; background: var(--surface-sunken); position: relative; overflow: hidden; }
.sh-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--rating); border-radius: 3px; }
.sh-review { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sh-review__head { display: flex; align-items: center; gap: var(--space-3); }
.sh-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; color: var(--ink); }
.sh-avatar--lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Cards & panels ---------- */
.sh-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: var(--space-5); }
.sh-card--flat { border: 0; box-shadow: var(--shadow-card); }
.sh-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.sh-summary { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sh-summary__row { display: flex; justify-content: space-between; gap: var(--space-3); }
.sh-summary__row span:first-child { color: var(--ink-muted); }
.sh-summary__row--discount span:last-child { color: var(--danger); }
.sh-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); margin-top: 4px; border-top: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.sh-summary__total strong { font-size: 24px; font-weight: 800; }
.sh-coupon { display: flex; gap: var(--space-2); }
.sh-coupon .sh-input { height: 44px; }
.sh-layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6); align-items: start; }
.sh-layout-aside > aside { position: sticky; top: calc(var(--header-h) + 60px); display: flex; flex-direction: column; gap: var(--space-4); }

/* alerts & toasts */
.sh-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border-radius: var(--radius-md); background: var(--info-soft); color: var(--info); font-size: 14px; }
.sh-alert strong { display: block; color: inherit; }
.sh-alert--success { background: var(--success-soft); color: var(--success); }
.sh-alert--warning { background: var(--warning-soft); color: var(--warning); }
.sh-alert--danger { background: var(--danger-soft); color: var(--danger); }
.sh-toast { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px 12px var(--space-4); border-radius: var(--radius-md); background: var(--ink); color: var(--surface); box-shadow: var(--shadow-pop); font-size: 14px; max-width: 420px; }
.sh-toast .sh-link { color: var(--sand); }

/* empty state */
.sh-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-4); }
.sh-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--surface-muted); display: grid; place-items: center; color: var(--ink-muted); margin-bottom: var(--space-2); }
.sh-empty p { color: var(--ink-muted); max-width: 380px; }

/* modal */
.sh-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.sh-modal.is-open { display: flex; }
.sh-modal__overlay { position: absolute; inset: 0; background: var(--overlay); }
.sh-modal__dialog { position: relative; width: 100%; max-width: 520px; max-height: 92%; overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: var(--space-6); }
.sh-modal__dialog--wide { max-width: 900px; }
.sh-modal__close { position: absolute; top: 12px; right: 12px; }
.sh-modal--inline { position: relative; display: flex; inset: auto; padding: var(--space-6); z-index: auto; }

/* ---------- Checkout ---------- */
.sh-steps { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-5); }
.sh-step { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.sh-step__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink); }
.sh-step.is-done .sh-step__num { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sh-step.is-current { color: var(--ink); }
.sh-step.is-current .sh-step__num { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.sh-steps__line { flex: 1; height: 1px; background: var(--line-strong); min-width: 16px; }
.sh-address { position: relative; }
.sh-address .sh-badge { position: absolute; top: 14px; right: 14px; }

/* success */
.sh-success { max-width: 620px; margin: var(--space-7) auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.sh-success__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.sh-success__icon .sh-icon { width: 40px; height: 40px; stroke-width: 2.2; }

/* ---------- Auth ---------- */
.sh-auth { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sh-auth__art { position: relative; background: var(--surface-sunken); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-7); }
.sh-auth__art svg.sh-auth__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-auth__quote { position: relative; max-width: 420px; display: flex; flex-direction: column; gap: var(--space-3); background: rgba(246,244,238,.92); padding: var(--space-5); border-radius: var(--radius-lg); }
.sh-auth__panel { display: flex; align-items: center; justify-content: center; padding: var(--space-7) var(--space-6); }
.sh-auth__box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--space-5); }
.sh-auth__box .sh-tabs { gap: var(--space-6); }
.sh-or { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.sh-or::before, .sh-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Account ---------- */
.sh-account { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.sh-account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); position: sticky; top: calc(var(--header-h) + 60px); }
.sh-account-nav__user { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.sh-account-nav__user small { display: block; color: var(--ink-muted); font-size: 13px; }
.sh-account-nav a { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-md); font-size: 15px; font-weight: 500; }
.sh-account-nav a:hover { background: var(--surface-muted); }
.sh-account-nav a.is-active { background: var(--sand); font-weight: 600; }
.sh-account-nav a .sh-badge { margin-left: auto; }
.sh-account-nav__logout { color: var(--danger) !important; }
.sh-account__main { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.sh-stat { display: flex; flex-direction: column; gap: 4px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.sh-stat__value { font-size: 28px; font-weight: 800; line-height: 1.1; }
.sh-stat--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sh-stat--primary .sh-muted, .sh-stat--primary .sh-overline { color: var(--on-primary); opacity: .85; }
.sh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

/* tables */
.sh-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface-muted); padding: 12px var(--space-4); white-space: nowrap; }
.sh-table td { padding: 14px var(--space-4); border-top: 1px solid var(--line); vertical-align: middle; }
.sh-table td.sh-num, .sh-table th.sh-num { text-align: right; white-space: nowrap; }
.sh-table tbody tr:hover { background: var(--bg); }

/* order cards (mobile list of orders) */
.sh-order-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sh-order-card__thumbs { display: flex; gap: 6px; }
.sh-order-card__thumbs .sh-media { width: 48px; aspect-ratio: 1; }

/* timeline */
.sh-timeline { display: flex; justify-content: space-between; position: relative; gap: var(--space-2); }
.sh-timeline::before { content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: var(--surface-sunken); }
.sh-timeline__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; font-size: 13px; color: var(--ink-muted); }
.sh-timeline__dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--surface-sunken); color: var(--ink-muted); }
.sh-timeline__step.is-done { color: var(--ink); }
.sh-timeline__step.is-done .sh-timeline__dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sh-timeline__step.is-current .sh-timeline__dot { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.sh-timeline__step strong { font-weight: 600; font-size: 14px; }

/* coupon ticket */
.sh-ticket { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sh-ticket__value { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--primary); color: var(--on-primary); font-size: 26px; font-weight: 800; position: relative; padding: var(--space-3); }
.sh-ticket__value small { font-size: 12px; font-weight: 600; opacity: .9; }
.sh-ticket__value::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed var(--surface); }
.sh-ticket__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.sh-code { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: var(--space-2); height: 36px; padding: 0 6px 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; letter-spacing: .06em; background: var(--surface-muted); align-self: flex-start; }
.sh-code button { border: 0; background: var(--surface); height: 26px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

/* chat */
.sh-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sh-chat__list { border-right: 1px solid var(--line); overflow: auto; }
.sh-chat__item { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); cursor: pointer; }
.sh-chat__item.is-active { background: var(--surface-muted); }
.sh-chat__item small { display: block; color: var(--ink-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-chat__main { display: flex; flex-direction: column; min-width: 0; }
.sh-chat__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sh-chat__msgs { flex: 1; overflow: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); background: var(--bg); }
.sh-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; align-self: flex-start; }
.sh-bubble small { display: block; font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.sh-bubble--me { align-self: flex-end; background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sh-bubble--me small { color: var(--on-primary); opacity: .8; }
.sh-chat__compose { display: flex; gap: var(--space-2); padding: var(--space-3); border-top: 1px solid var(--line); }

/* FAQ accordion */
.sh-accordion { display: flex; flex-direction: column; gap: var(--space-2); }
.sh-accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sh-accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); font-weight: 600; font-size: 16px; cursor: pointer; }
.sh-accordion summary::-webkit-details-marker { display: none; }
.sh-accordion summary .sh-icon { transition: transform .2s; flex: none; }
.sh-accordion details[open] summary .sh-icon { transform: rotate(45deg); }
.sh-accordion details > div { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); }

/* blog */
.sh-post-card { display: flex; flex-direction: column; gap: var(--space-3); }
.sh-post-card .sh-media { aspect-ratio: 16 / 10; border-radius: var(--radius-md); }
.sh-post-card__meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: var(--space-3); }
.sh-post-card--feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); align-items: center; }
.sh-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-7); align-items: start; }

/* contacts */
.sh-contact-cards { display: grid; gap: var(--space-3); }
.sh-contact-card { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sh-contact-card .sh-feature__icon { background: var(--surface-muted); }
.sh-map { border-radius: var(--radius-lg); background: var(--surface-sunken); position: relative; overflow: hidden; min-height: 260px; }
.sh-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* maintenance (standalone) */
.sh-maint { min-height: 100%; display: grid; place-items: center; padding: var(--space-7) var(--space-4); text-align: center; }
.sh-maint__box { max-width: 520px; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }

/* ---------- Footer ---------- */
.sh-footer { margin-top: var(--space-7); background: var(--bg); border-top: 1px solid var(--line); }
.sh-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-6); padding-top: var(--space-7); padding-bottom: var(--space-6); }
.sh-footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.sh-footer__brand p { color: var(--ink-muted); font-size: 14px; max-width: 280px; }
.sh-footer h4 { font-size: 15px; font-weight: 700; margin: 0 0 var(--space-3); }
.sh-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sh-footer__links a:hover { color: var(--primary); text-decoration: underline; }
.sh-footer__social { display: flex; gap: var(--space-2); }
.sh-footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); }
.sh-footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }

/* ---------- Invoice (mPDF: tables only, no flex/grid) ---------- */
.sh-invoice { background: var(--surface); width: 100%; max-width: 820px; margin: 0 auto; padding: 40px; font-size: 13px; color: var(--ink); }
.sh-invoice table { width: 100%; border-collapse: collapse; }
.sh-invoice .sh-inv-items th { background: var(--surface-muted); text-align: left; padding: 8px 10px; font-size: 12px; }
.sh-invoice .sh-inv-items td { padding: 10px; border-bottom: 1px solid var(--line); }
.sh-invoice .sh-inv-right { text-align: right; }

/* =======================================================================
   TABLET  (≤ 1023px)
   ======================================================================= */
@media (max-width: 1023.98px) {
  .sh-container { padding: 0 var(--space-5); }
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-grid--5, .sh-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-scroller { grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3); }
  .sh-catalog { grid-template-columns: minmax(0, 1fr); }
  .sh-catalog > .sh-filters { display: none; }
  .sh-filter-open { display: inline-flex; }
  .sh-pdp { gap: var(--space-5); }
  .sh-layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); }
  .sh-account { grid-template-columns: 230px minmax(0, 1fr); gap: var(--space-5); }
  .sh-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-footer__brand { grid-column: 1 / -1; }
  .sh-nav__list { gap: var(--space-6); }
  .sh-article { grid-template-columns: minmax(0, 1fr); }
}

/* =======================================================================
   MOBILE  (≤ 767px) — bottom navigation, 2-column products, sheets
   ======================================================================= */
@media (max-width: 767.98px) {
  .sh-container { padding: 0 var(--space-4); }
  .sh-section { padding: var(--space-5) 0; }
  .sh-hide-mobile { display: none !important; }
  .sh-hide-desktop { display: revert !important; }
  .sh-display { font-size: 32px; }
  .sh-h1 { font-size: 26px; }
  .sh-h2 { font-size: 22px; }
  .sh-h3 { font-size: 18px; }

  /* header: logo + icons row, search row below; navbar strip hidden (bottom nav replaces it) */
  .sh-header { border-bottom: 1px solid var(--line); }
  .sh-header__bar { height: 56px; gap: var(--space-3); }
  .sh-header .sh-logo svg, .sh-header .sh-logo img { height: 26px; }
  .sh-header__search { display: none; }
  .sh-header__actions .sh-hide-mobile { display: none; }
  .sh-header__lang { margin-left: 0; }
  .sh-header__mobile-search { display: block; padding-bottom: 10px; }
  .sh-nav { display: none; }

  .sh-bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: sticky; bottom: 0; z-index: 60; margin-top: auto;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface); box-shadow: var(--shadow-bar);
  }
  .sh-bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
  .sh-bottom-nav a .sh-icon { width: 23px; height: 23px; }
  .sh-bottom-nav a.is-active { color: var(--primary); font-weight: 700; }
  .sh-bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
  .sh-bottom-nav .sh-count { top: 6px; right: calc(50% - 22px); }

  /* hero */
  .sh-hero { background: var(--bg); }
  .sh-hero__slide { min-height: 0; flex-direction: column; align-items: stretch; background: var(--bg); }
  .sh-hero__nav { display: none; }
  .sh-hero__dots { bottom: auto; top: 164px; }
  .sh-hero__art { position: relative; inset: auto; height: 200px; order: -1; }
  .sh-hero__veil { background: linear-gradient(180deg, rgba(246,244,238,0) 55%, var(--bg) 100%); }
  .sh-hero__content { padding: var(--space-2) 0 var(--space-5); gap: var(--space-3); }
  .sh-hero__lead { font-size: 15px; }
  .sh-hero .sh-btn { width: 100%; }

  .sh-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .sh-feature { flex-direction: column; text-align: center; gap: 6px; padding: var(--space-3) 6px; font-size: 12px; line-height: 1.25; }
  .sh-feature__icon { width: 36px; height: 36px; }
  .sh-feature small { display: none; }

  .sh-section-head { margin-bottom: var(--space-3); }
  .sh-grid, .sh-grid--3, .sh-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .sh-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .sh-grid--1m, .sh-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .sh-scroller { grid-auto-columns: 44%; gap: var(--space-3); margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4) 4px; scroll-padding: 0 var(--space-4); }
  .sh-scroller--cats { grid-auto-columns: 38%; }

  .sh-cat-card__foot { padding: 10px var(--space-3); font-size: 14px; }
  .sh-cat-card__foot .sh-icon { width: 16px; height: 16px; }

  .sh-product-card { padding: 6px; padding-bottom: var(--space-2); gap: 8px; }
  .sh-product-card__body { padding: 0 4px; gap: 6px; }
  .sh-product-card__name { font-size: 14px; }
  .sh-product-card__sku { font-size: 11px; }
  .sh-price { font-size: 16px; }
  .sh-price__unit { font-size: 12px; }
  .sh-swatch { width: 20px; height: 20px; }
  .sh-product-card .sh-btn { margin: 0 4px; height: 38px; font-size: 14px; padding: 0 8px; }
  .sh-product-card .sh-sample-link { font-size: 11px; }

  .sh-promo { flex-direction: column; align-items: stretch; min-height: 0; }
  .sh-promo__art { position: relative; width: 100%; height: 170px; }
  .sh-promo__content { padding: var(--space-5) var(--space-4); }
  .sh-promo .sh-btn { width: 100%; }

  .sh-pagehead { padding: var(--space-2) 0 var(--space-4); }
  .sh-crumbs { padding-top: var(--space-3); }
  .sh-toolbar .sh-select { min-width: 0; flex: 1; }
  .sh-toolbar__right { width: 100%; }
  .sh-toolbar__right .sh-seg { display: none; }

  .sh-modal { align-items: flex-end; padding: 0; }
  .sh-modal__dialog { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-5) var(--space-4); }

  .sh-pdp { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .sh-gallery { grid-template-columns: minmax(0, 1fr); position: static; margin: 0 calc(-1 * var(--space-4)); }
  .sh-gallery__thumbs { display: none; }
  .sh-gallery__main .sh-media { border-radius: 0; }
  .sh-gallery__dots { display: flex; gap: 6px; justify-content: center; position: absolute; bottom: 12px; left: 0; right: 0; }
  .sh-gallery__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); }
  .sh-gallery__dots i.is-active { background: var(--surface); width: 18px; border-radius: 4px; }
  .sh-pdp__info { gap: var(--space-4); }
  .sh-price--lg { font-size: 26px; }
  .sh-pdp__buy .sh-btn--primary, .sh-pdp__buy .sh-btn--sand { display: none; }
  .sh-sticky-buy {
    display: flex; gap: var(--space-2); align-items: center; position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 55;
    padding: 10px var(--space-4); background: var(--surface); box-shadow: var(--shadow-bar);
  }
  .sh-sticky-buy__price { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
  .sh-sticky-buy__price small { font-size: 12px; color: var(--ink-muted); }
  .sh-sticky-buy .sh-btn { height: 44px; }
  .sh-reviews { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .sh-specs th { width: 45%; }

  .sh-line { grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
  .sh-line__end { grid-column: 2; justify-content: space-between; gap: var(--space-3); }
  .sh-line__total { min-width: 0; font-size: 16px; }

  .sh-layout-aside { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .sh-layout-aside > aside { position: static; }
  .sh-form-grid, .sh-options--2 { grid-template-columns: minmax(0, 1fr); }
  .sh-steps { overflow-x: auto; gap: 6px; margin-bottom: var(--space-4); }
  .sh-step__label { display: none; }
  .sh-step.is-current .sh-step__label { display: inline; }
  .sh-card { padding: var(--space-4); border-radius: var(--radius-md); }

  .sh-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sh-auth__art { display: none; }
  .sh-auth__panel { padding: var(--space-5) var(--space-4); align-items: flex-start; }
  .sh-otp input { width: 46px; height: 54px; }

  .sh-account { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .sh-account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 0; background: none; border: 0; border-radius: 0; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); scrollbar-width: none; }
  .sh-account-nav::-webkit-scrollbar { display: none; }
  .sh-account-nav__user { display: none; }
  .sh-account-nav a { flex: none; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
  .sh-account-nav a .sh-icon { width: 16px; height: 16px; }
  .sh-account-nav a .sh-badge { display: none; }
  .sh-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
  .sh-stats > :first-child { grid-column: 1 / -1; }
  .sh-stat { padding: var(--space-4); }
  .sh-stat__value { font-size: 22px; }
  .sh-table-wrap--cards { border: 0; background: none; border-radius: 0; }
  .sh-table-wrap--cards .sh-table thead { display: none; }
  .sh-table-wrap--cards .sh-table, .sh-table-wrap--cards .sh-table tbody, .sh-table-wrap--cards .sh-table tr, .sh-table-wrap--cards .sh-table td { display: block; width: 100%; }
  .sh-table-wrap--cards .sh-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2); }
  .sh-table-wrap--cards .sh-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--space-3); text-align: right; }
  .sh-table-wrap--cards .sh-table td::before { content: attr(data-label); color: var(--ink-muted); font-size: 13px; text-align: left; }
  .sh-table-wrap--cards .sh-table td.sh-num { text-align: right; }
  .sh-timeline { overflow-x: auto; }
  .sh-timeline__step { min-width: 72px; font-size: 11px; }
  .sh-timeline__step strong { font-size: 12px; }
  .sh-ticket { grid-template-columns: 96px minmax(0, 1fr); }
  .sh-ticket__value { font-size: 20px; }
  .sh-chat { grid-template-columns: minmax(0, 1fr); height: 560px; }
  .sh-chat__list { display: none; }
  .sh-bubble { max-width: 86%; }

  .sh-post-card--feature { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .sh-article { gap: var(--space-5); }

  .sh-footer { margin-top: var(--space-5); }
  .sh-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-4); }
  .sh-footer__bottom { flex-direction: column; gap: 4px; }

  .sh-invoice { padding: 16px; }
}
