/* Al Qamis — shared components and shop page sections. */

/* ---- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-border: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); box-shadow: 0 8px 18px -12px rgba(19, 39, 41, .6); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--primary:hover { --btn-bg: var(--ink-2); }
.btn--brass { --btn-bg: var(--brass); --btn-border: var(--brass); --btn-fg: var(--ink); }
.btn--brass:hover { --btn-bg: #c5a06a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--paper); --btn-border: var(--ink-soft); box-shadow: none; }
.btn--danger { --btn-bg: var(--danger); --btn-border: var(--danger); }
.btn--danger:hover { --btn-bg: #8c2f2b; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-border: #e4b9b4; }
.btn--danger-ghost:hover { --btn-bg: var(--danger-soft); box-shadow: none; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn.is-busy::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink-soft);
}
.icon-btn:hover { background: var(--ivory-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---- forms -------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field + .field { margin-top: 0; } }
.field > label, .field-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field-label .muted, .field > label .muted { font-weight: 400; }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316213a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(45, 91, 140, .18); }
input::placeholder, textarea::placeholder { color: #8A9799; }
[aria-invalid='true'] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(162, 59, 54, .12) !important; }
input[readonly] { background: var(--ivory-2); }
input:disabled, select:disabled, textarea:disabled { background: var(--ivory-2); color: var(--muted); cursor: not-allowed; }

.field-help { margin: 0; font-size: .82rem; color: var(--muted); }
.field-error { margin: 0; font-size: .84rem; font-weight: 500; color: var(--danger); }
.field-error::before { content: '! '; font-weight: 700; }

.input-unit { position: relative; }
.input-unit input { padding-right: 46px; }
.input-unit__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--muted); pointer-events: none; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; font-size: .8rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.password-toggle:hover { background: var(--ivory-2); }

.help-tip {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px;
  border: 1px solid var(--line-2); border-radius: 50%; background: #fff;
  font-size: .75rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; vertical-align: middle;
}
.help-tip[aria-expanded='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.help-pop { margin: 4px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ink); color: #f2eee6; font-size: .84rem; line-height: 1.45; }

/* Selectable cards (radio/checkbox styled as cards). */
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s var(--ease);
}
/* Choice cards and filter chips are shared by the designer and the content pages. */
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice:has(input:disabled) { cursor: not-allowed; opacity: .55; background: var(--ivory-2); box-shadow: none; }
.choice__body { flex: 1; min-width: 0; }
.choice__title { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink); }
.choice__price { font-size: .85rem; font-weight: 600; color: var(--brass-ink); white-space: nowrap; }
.choice__desc { display: block; margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.choice__note { display: block; margin: 6px 0 0; font-size: .8rem; color: var(--danger); }
.choice__tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: transparent; transition: all .2s;
}
.choice__tick svg { width: 14px; height: 14px; }
.choice:has(input:checked) .choice__tick { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- cards, notices, badges -------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 24px; }
@media (min-width: 768px) { .card--pad { padding: 28px; } }
.card__title { margin-bottom: 16px; font-size: 1.35rem; }
.card + .card { margin-top: 20px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: .92rem;
}
.notice__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.notice strong { display: block; color: var(--ink); }
.notice--info { background: var(--info-soft); border-color: #c7d6e8; }
.notice--info .notice__icon { background: var(--info); color: #fff; }
.notice--success { background: var(--success-soft); border-color: #bfd8c8; }
.notice--success .notice__icon { background: var(--success); color: #fff; }
.notice--warning { background: var(--warning-soft); border-color: #ecd3a5; }
.notice--warning .notice__icon { background: var(--warning); color: #fff; }
.notice--danger { background: var(--danger-soft); border-color: #e9c1bc; }
.notice--danger .notice__icon { background: var(--danger); color: #fff; }
.notice ul { margin: 6px 0 0 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  background: var(--ivory-2); color: var(--ink-soft);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--brass { background: var(--brass-soft); color: var(--brass-ink); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--ink { background: #e3e6ee; color: var(--ink); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--muted { background: #ebe8e2; color: #5b5f69; }

.empty { padding: 48px 24px; text-align: center; }
.empty h2, .empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.empty__art { width: 120px; margin: 0 auto 16px; opacity: .9; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--ivory-2), #fbf8f1, var(--ivory-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- tabs --------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; min-height: 46px; padding: 0 16px;
  border: 0; background: none; cursor: pointer;
  font-size: .95rem; font-weight: 500; color: var(--muted);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); font-weight: 600; }
.tab[aria-selected='true']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brass); border-radius: 2px; }
.tab__count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ivory-2); font-size: .75rem; }

/* ---- steppers ----------------------------------------------------------- */
.stepper { display: flex; gap: 6px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.stepper::-webkit-scrollbar { display: none; }
.stepper__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .85rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.stepper__btn:hover:not(:disabled) { border-color: var(--line-2); color: var(--ink); }
.stepper__btn:disabled { cursor: default; }
.stepper__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ivory-2); font-size: .78rem; font-weight: 600; }
.stepper__btn.is-done { color: var(--ink); }
.stepper__btn.is-done .stepper__num { background: var(--brass-soft); color: var(--brass-ink); }
.stepper__btn[aria-current='step'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.stepper__btn[aria-current='step'] .stepper__num { background: rgba(255, 255, 255, .16); color: #fff; }
.stepper__btn.has-error .stepper__num { background: var(--danger); color: #fff; }

/* ---- quantity ----------------------------------------------------------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; border-radius: 999px; font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.qty button:hover:not(:disabled) { background: var(--ivory-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- price lines -------------------------------------------------------- */
.price-lines { display: grid; gap: 8px; margin: 0; font-size: .9rem; }
.price-lines div { display: flex; justify-content: space-between; gap: 16px; }
.price-lines dt { color: var(--muted); }
.price-lines dt span { color: var(--ink); }
.price-lines dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lines .is-zero dd { color: var(--muted); font-weight: 400; }
.price-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-total__label { font-size: .9rem; color: var(--muted); }
.price-total__value { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--ink); }
.price-total__value.is-changing { animation: tick .35s var(--ease); }
@keyframes tick { 0% { opacity: .4; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

.spec-list { display: grid; gap: 4px; margin: 0; font-size: .88rem; }
.spec-list div { display: flex; gap: 8px; }
.spec-list dt { color: var(--muted); min-width: 110px; }
.spec-list dd { margin: 0; color: var(--ink); }

/* ---- modal -------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 16px;
  background: rgba(19, 39, 41, .48);
  opacity: 0; transition: opacity .2s;
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98); transition: transform .25s var(--ease);
}
.modal--lg { max-width: 720px; }
.modal-backdrop.is-open .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal__title { margin: 0; font-size: 1.6rem; }
.modal__body { padding: 16px 24px 8px; }
.modal__lead { color: var(--muted); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; flex-wrap: wrap; }

/* ---- toasts ------------------------------------------------------------- */
.toasts { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
@media (min-width: 640px) { .toasts { left: auto; right: 24px; bottom: 24px; justify-items: end; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  max-width: 440px; padding: 12px 12px 12px 16px; border-radius: 4px;
  background: var(--ink); color: #f5f1e8; box-shadow: var(--shadow-lg); font-size: .92rem;
  opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }
.toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.toast--success::before { background: #7cc39d; }
.toast--error::before { background: #f08a83; }
.toast__text { flex: 1; }
.toast__action { color: var(--brass); font-weight: 600; white-space: nowrap; }
.toast__action:hover { color: #e3c38f; }
.toast__close { border: 0; background: none; color: #b9bdc8; font-size: 1.25rem; cursor: pointer; width: 32px; height: 32px; border-radius: 3px; }
.toast__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---- timeline ----------------------------------------------------------- */
.timeline { list-style: none; position: relative; margin: 0; padding: 0; }
.tl-item { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.is-done::before { background: var(--brass); }
.tl-dot {
  position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper);
}
.tl-item.is-done .tl-dot { border-color: var(--brass); background: var(--brass); box-shadow: inset 0 0 0 4px var(--paper); }
.tl-item.is-current .tl-dot { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 5px rgba(19, 39, 41, .12); animation: pulse 2.2s var(--ease) infinite; }
.tl-item.is-stopped .tl-dot { border-color: var(--danger); background: var(--danger); box-shadow: inset 0 0 0 4px var(--paper); }
.tl-item.is-upcoming .tl-dot { border-style: dashed; }
.tl-item--notice .tl-dot { width: 14px; height: 14px; margin: 4px 4px 0; border-color: var(--warning); background: var(--warning-soft); }
.tl-item--notice::before { background: var(--line); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(19, 39, 41, .12); } 50% { box-shadow: 0 0 0 8px rgba(19, 39, 41, .04); } }
.tl-body { min-width: 0; }
.tl-title { margin: 0; font-weight: 600; color: var(--ink); }
.tl-item.is-upcoming .tl-title { color: var(--muted); font-weight: 500; }
.tl-item.is-stopped .tl-title { color: var(--danger); }
.tl-meta { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.tl-note { margin: 6px 0 0; padding: 8px 12px; border-left: 2px solid var(--brass); background: var(--ivory); border-radius: 0 6px 6px 0; font-size: .88rem; }
.tl-item--notice .tl-note { margin: 0; padding: 0; border: 0; background: none; color: var(--warning); font-weight: 500; }
.timeline--compact .tl-item { padding-bottom: 14px; }

.progress-dots { display: flex; gap: 4px; }
.progress-dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress-dots span.is-on { background: var(--brass); }
.progress-dots span.is-current { background: var(--ink); }
.progress-dots.is-stopped span.is-on { background: #cfc8bb; }

/* ---- swatches ----------------------------------------------------------- */
.swatch-svg { flex: none; }

/* ======================================================================== */
/* Home                                                                     */
/* ======================================================================== */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero::before {
  content: ''; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%;
  background-image: var(--motif); background-size: 56px; opacity: .22;
  mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 96px; } .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; margin-bottom: 20px; }
.hero__title em { color: var(--brass-ink); font-weight: 500; }
.hero__actions { margin-top: 28px; }
.hero__note { margin-top: 18px; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 4.4; max-width: 520px; margin: 0 auto;
  border-radius: 6px; background: radial-gradient(120% 90% at 50% 20%, #fff 0%, var(--ivory-2) 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 8% 10% 16%;
}
.hero__frame::after { content: ''; position: absolute; inset: 12px; border: 1.5px dashed rgba(184, 146, 90, .45); border-radius: 6px; pointer-events: none; }
.hero__shirt { position: relative; width: 100%; height: 100%; }
.hero__shirt .garment-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1s var(--ease); }
.hero__shirt .garment-svg.is-out { opacity: 0; }
.hero__swatches { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.hero__swatches button { padding: 3px; border: 1.5px solid transparent; border-radius: 50%; background: none; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.hero__swatches button:hover { transform: translateY(-2px); }
.hero__swatches button[aria-pressed='true'] { border-color: var(--ink); }
.hero__caption { position: absolute; left: 24px; top: 22px; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }

.how-steps { list-style: none; display: grid; gap: 20px; counter-reset: how; }
@media (min-width: 820px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.how-step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.how-step__num { display: block; font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--brass); margin-bottom: 16px; }
.how-step h3 { font-size: 1.6rem; }
.how-step p { color: var(--muted); }
@media (min-width: 820px) {
  .how-step:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -24px; width: 20px; border-top: 1.5px dashed var(--line-2); }
}

.fabric-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fabric-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s;
}
.fabric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.fabric-card__cloth { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.fabric-card__cloth svg { width: 100%; height: 100%; }
.fabric-card__cloth .garment-svg { position: absolute; width: 62%; height: auto; right: -6%; bottom: -26%; transform: rotate(-6deg); filter: drop-shadow(0 12px 18px rgba(19, 39, 41, .25)); transition: transform .4s var(--ease); }
.fabric-card:hover .fabric-card__cloth .garment-svg { transform: rotate(-2deg) translateY(-6px); }
.fabric-card__body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.fabric-card__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.fabric-card__origin { font-size: .8rem; color: var(--muted); }
.fabric-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .88rem; }
.fabric-card__price { color: var(--brass-ink); font-weight: 600; }
.fabric-card__go { font-weight: 600; color: var(--ink); }

.craft__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .craft__grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.craft__list { list-style: none; display: grid; gap: 24px; }
@media (min-width: 600px) { .craft__list { grid-template-columns: 1fr 1fr; } }
.craft__item { padding-top: 18px; border-top: 1.5px dashed rgba(184, 146, 90, .5); }
.craft__item h3 { font-size: 1.35rem; margin-bottom: 6px; }
.craft__item p { color: #c9c3b6; font-size: .95rem; }
.craft .lead { color: #c9c3b6; }
.craft .eyebrow { color: var(--brass); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.stat__value { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--brass); }
.stat__label { font-size: .85rem; color: #c9c3b6; margin-top: 6px; }
.section--ink.craft { background-image: linear-gradient(rgba(19, 39, 41, .95), rgba(19, 39, 41, .95)), var(--motif); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ivory-2); font-size: 1.2rem; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.cta-band { padding: 72px 0; }
.cta-band__inner {
  position: relative; overflow: hidden; padding: 48px 28px; border-radius: 6px; text-align: center;
  background: var(--brass-soft); border: 1px solid #e3d2b0;
}
.cta-band__inner::before { content: ''; position: absolute; inset: 0; background-image: var(--motif); opacity: .35; pointer-events: none; }
.cta-band__inner > * { position: relative; }
.cta-band p { max-width: 52ch; margin: 0 auto 24px; color: var(--ink-soft); }

/* ======================================================================== */
/* Cart                                                                     */
/* ======================================================================== */
.cart-layout { display: grid; gap: 28px; padding-bottom: 80px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-list { display: grid; gap: 16px; list-style: none; }
.cart-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px 20px; padding: 18px; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 140px 1fr auto; padding: 22px; } }
.cart-item__preview { border-radius: 4px; background: var(--ivory-2); padding: 8px; align-self: start; }
.cart-item__title { font-size: 1.35rem; margin-bottom: 4px; }
.cart-item__summary { margin: 0; font-size: .86rem; color: var(--muted); }
.cart-item__side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (min-width: 640px) { .cart-item__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: space-between; } }
.cart-item__price { text-align: right; }
.cart-item__price strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); }
.cart-item__actions { display: flex; gap: 6px; }
.cart-item details { margin-top: 10px; font-size: .86rem; }
.cart-item details summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.cart-item details .price-lines { margin-top: 10px; max-width: 360px; }
.cart-item.is-removing { opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s var(--ease); }
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card .price-lines { margin: 4px 0 16px; }

/* ======================================================================== */
/* Auth                                                                     */
/* ======================================================================== */
.auth-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
@media (min-width: 920px) { .auth-layout { grid-template-columns: 1fr 440px; gap: 64px; padding-top: 64px; } }
.auth-aside h1 { margin-bottom: 12px; }
.auth-aside .lead { margin-bottom: 24px; }
.auth-card { padding: 8px 24px 28px; }
.auth-card .tabs { margin: 0 -24px 24px; padding: 0 12px; }
.auth-card form .btn--block { margin-top: 22px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .88rem; }
.demo-box { margin-top: 24px; padding: 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-2); background: var(--ivory); font-size: .88rem; }
.demo-box strong { display: block; margin-bottom: 4px; color: var(--ink); }
.demo-box code { font-size: .85rem; }
.sent-art { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: var(--success-soft); color: var(--success); }
.sent-art svg { width: 30px; height: 30px; }

/* ======================================================================== */
/* Checkout                                                                 */
/* ======================================================================== */
.checkout-layout { display: grid; gap: 28px; padding-bottom: 80px; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.checkout-steps { margin-bottom: 24px; }
.checkout-panel[hidden] { display: none; }
.checkout-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.checkout-country { margin-bottom: 22px; max-width: 360px; }
.checkout-abroad { margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout-abroad[hidden] { display: none; }
.checkout-abroad__note { margin: 14px 0 0; }
.discount-field { margin-top: 22px; }
.discount-field__row { display: flex; gap: 10px; }
.discount-field__row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.discount-field__row input[readonly] { background: var(--success-soft); border-color: #bfd8c8; }
.checkout-agree { margin: 18px 0 0; color: var(--muted); }

/* Order totals (js/ui/order-totals.js): the discount in green, the estimate set apart. */
.price-lines__discount dd { color: var(--success); }
.price-lines .price-lines__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.price-lines .price-lines__total dt, .price-lines .price-lines__total dd { color: var(--ink); font-size: 1rem; }
.address-options { display: grid; gap: 10px; margin-bottom: 20px; }
.review-items { list-style: none; display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.review-item .garment-svg { background: var(--ivory-2); border-radius: 4px; padding: 4px; }
.review-item h3 { font-size: 1.15rem; margin: 0 0 2px; }
.payment-list { display: grid; gap: 10px; }
.soon { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--ivory-2); padding: 3px 8px; border-radius: 999px; }
.mini-items { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.mini-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.mini-items .garment-svg { background: var(--ivory-2); border-radius: 3px; padding: 2px; }

/* ======================================================================== */
/* Account                                                                  */
/* ======================================================================== */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-panel[hidden] { display: none; }
.account-panel { padding-bottom: 80px; }
.order-cards { list-style: none; display: grid; gap: 14px; }
.order-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center;
  padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.order-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; border-color: var(--line-2); }
@media (min-width: 720px) { .order-card { grid-template-columns: 80px 1fr auto; } }
.order-card .garment-svg { background: var(--ivory-2); border-radius: 4px; padding: 4px; }
.order-card__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order-card__number { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.order-card__meta { margin: 2px 0 8px; font-size: .85rem; color: var(--muted); }
.order-card__price { font-family: var(--font-serif); font-size: 1.4rem; color: var(--ink); text-align: right; }
.order-card__action { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--warning); }
.order-card.is-action { border-color: #e8cf9f; background: linear-gradient(90deg, #fff8ea, var(--paper) 60%); }
.order-card .progress-dots { max-width: 260px; }

.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { margin: 0; font-size: 1.35rem; }
.tile__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tile .garment-svg { width: 140px; margin: 0 auto; }
.tile__preview { background: var(--ivory-2); border-radius: 4px; padding: 12px; }
.measure-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; margin: 0; font-size: .85rem; }
.measure-values div { display: grid; }
.measure-values dt { color: var(--muted); font-size: .75rem; }
.measure-values dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.8rem; }
.profile-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.address-card { padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.address-card + .address-card { margin-top: 12px; }
.address-card p { margin: 0; font-size: .9rem; }

/* ======================================================================== */
/* Order detail                                                             */
/* ======================================================================== */
.order-layout { display: grid; gap: 24px; padding-bottom: 80px; }
@media (min-width: 980px) { .order-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.order-title { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.order-title h1 { margin: 0; }
.status-help { margin-top: 8px; color: var(--muted); }

.quote-card {
  position: relative; overflow: hidden; padding: 28px;
  border-radius: 6px; background: var(--ink); color: #ece7dc;
  box-shadow: var(--shadow-lg);
  background-image: linear-gradient(135deg, rgba(19, 39, 41, .96), rgba(36, 70, 73, .96)), var(--motif);
}
.quote-card h2 { color: #fff; margin-bottom: 6px; font-size: 2rem; }
.quote-card .eyebrow { color: var(--brass); }
.quote-card__grid { display: grid; gap: 20px; margin: 22px 0; }
@media (min-width: 640px) { .quote-card__grid { grid-template-columns: 1.2fr 1fr; } }
.quote-card__price { font-family: var(--font-serif); font-size: 3.2rem; line-height: 1; color: #fff; }
.quote-card__was { font-size: .9rem; color: #AFC0C2; margin-top: 8px; }
.quote-card__was s { color: #8DA2A5; }
.quote-card__diff { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(184, 146, 90, .2); color: #e3c38f; font-weight: 600; }
.quote-card__note { padding: 14px 16px; border-radius: 4px; background: rgba(255, 255, 255, .06); border-left: 2px solid var(--brass); font-size: .92rem; }
.quote-card__note strong { display: block; margin-bottom: 4px; color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.countdown { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.countdown__label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #AFC0C2; }
.countdown__value { font-family: var(--font-serif); font-size: 1.8rem; color: var(--brass); }
.countdown__until { font-size: .82rem; color: #AFC0C2; }
.quote-card .notice { margin-bottom: 16px; color: var(--text); }
.quote-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quote-card__actions .btn--ghost { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .35); }
.quote-card__actions .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-border: #fff; }
.quote-card.is-urgent .countdown__value { color: #f3b46b; }

.order-items { list-style: none; display: grid; gap: 14px; }
.order-item { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.order-item .garment-svg { background: var(--ivory-2); border-radius: 4px; padding: 6px; }
.order-item h3 { font-size: 1.25rem; margin-bottom: 4px; }
.order-item details { margin-top: 8px; font-size: .86rem; }
.order-item details summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.order-item details > * + * { margin-top: 8px; }

.placed-banner { margin-bottom: 20px; }

/* ---- fabric sheet (designer dialog, Our fabrics page) --------------------- */
.fabric-sheet { display: grid; gap: 20px; }
@media (min-width: 620px) { .fabric-sheet { grid-template-columns: 220px 1fr; } }
.fabric-sheet__swatch { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(19, 39, 41, .08); }
.fabric-sheet__swatch .swatch-svg { width: 100%; height: 100%; display: block; }
.fabric-sheet__desc { margin: 0 0 14px; font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.fabric-sheet__facts { display: grid; gap: 0; margin: 0; }
.fabric-sheet__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fabric-sheet__facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fabric-sheet__facts dd { margin: 0; font-size: .92rem; }

/* ---- home: shirts and pants -------------------------------------------- */
.section--tight { padding: 48px 0; }
@media (min-width: 900px) { .section--tight { padding: 64px 0; } }
.center-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.range-cards { display: grid; gap: 22px; }
@media (min-width: 760px) { .range-cards { grid-template-columns: 1fr 1fr; } }
.range-card {
  display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 18px; overflow: hidden;
  padding: 18px 24px 18px 18px; border-radius: 6px; border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 15% 30%, #fff 0%, var(--ivory-2) 85%);
  text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s;
}
.range-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.range-card__art { aspect-ratio: 4 / 5; }
.range-card__art .garment-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 18px rgba(19, 39, 41, .2)); }
.range-card h3 { font-size: 2rem; margin-bottom: 6px; }
.range-card p { color: var(--muted); }
.range-card__go { font-weight: 600; color: var(--ink); }

/* ---- Real photos (fabrics, ready designs, looks) ---------------------------------
   Same frames as the drawings they replace: object-fit cover inside the card's own ratio. */
.photo { display: block; max-width: 100%; }
.item-photo { width: 100%; height: 100%; object-fit: cover; }
.swatch-photo { flex: none; object-fit: cover; background: var(--ivory-2); }
.swatch-photo--cover { width: 100%; height: 100%; }
.swatch-photo--round { border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 28, 45, .18); }
.swatch-photo--square { border-radius: 6px; box-shadow: 0 0 0 1px rgba(20, 28, 45, .18); }
.range-card__art--photo { border-radius: 5px; overflow: hidden; }
.fabric-sheet__photos { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.fabric-sheet__photos li { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(19, 39, 41, .08); }
.fabric-sheet__photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Create account by phone: the steps, the code, what is inside, the email preview ---------- */
.auth-step-lead { margin: 18px 0 4px; }
.auth-step-eyebrow { margin: 18px 0 6px; }
.auth-step-title { margin: 0 0 8px; font-size: 1.8rem; }
.auth-step-notice { margin: 18px 0 16px; }
.code-input { font-size: 1.5rem !important; font-weight: 600; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.demo-note { margin: 14px 0 16px; padding: 10px 12px; }
.claim-inside { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--paper-line, var(--line)); border-radius: 3px; background: #fff; }
.claim-inside:empty { display: none; }
.claim-inside__title { margin: 0 0 8px; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.claim-inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.claim-inside li { display: flex; align-items: center; gap: 10px; }
.claim-inside svg { flex: none; width: 16px; height: 16px; color: var(--brass); }
[data-reg-step="sent"]:focus { outline: none; }
.mail-preview { margin-top: 22px; }
.mail-preview__label { margin: 0 0 8px; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--warning); }
.mail-preview__mail { border: 1px solid var(--paper-line, var(--line)); border-top: 2px solid var(--brass); background: #fff; font-size: .9rem; }
.mail-preview__subject { margin: 0; padding: 10px 14px; border-bottom: 1px solid #eef2f1; font-weight: 600; font-size: .84rem; }
.mail-preview__band { display: flex; justify-content: center; padding: 16px; background: #17302f; color: #fff; }
.mail-preview__logo { width: 96px; height: auto; display: block; }
.mail-preview__body { padding: 16px 18px; }
.mail-preview__body h3 { margin: 0 0 6px; font-size: 1.35rem; }
.mail-preview__body ul { margin: 0 0 12px; padding-left: 18px; }
.mail-preview__creds { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; padding: 12px 14px; background: #f7f9f8; border: 1px solid #eef2f1; }
.mail-preview__creds dt { color: var(--muted); }
.mail-preview__creds dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mail-preview__creds code { font-size: 1rem; letter-spacing: .04em; }
.mail-preview__inside { margin: 12px 0 4px; font-weight: 600; }

/* ---- My account: the client's appointments ---------------------------------------- */
.account-appointments { margin: 0 0 22px; padding: 18px 20px; background: #fff; border: 1px solid var(--paper-line); border-left: 2px solid var(--brass); border-radius: var(--radius); }
.account-appointments__title { margin: 0 0 8px; font-size: 1.35rem; }
.account-appointments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.account-appointments__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.account-appointments__when { font-weight: 600; }
.account-appointments p { margin: 0; }

/* ---- Home, kept short: how it works in three lines, where to start in three cards ------------ */
.home-how { background: #fff; border-top: 1px solid var(--paper-line, var(--line)); border-bottom: 1px solid var(--paper-line, var(--line)); }
.home-how .container { padding-top: 40px; padding-bottom: 40px; }
.home-how__head, .home-start__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.home-how__head h2, .home-start__head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.home-how__head a, .home-start__head a { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); text-underline-offset: 4px; }
.home-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 760px) { .home-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-how__steps li { display: grid; gap: 6px; align-content: start; }
.home-how__steps strong { font-size: 1.05rem; }
.home-how__steps span:last-child { font-size: .94rem; line-height: 1.55; color: var(--muted); }
.home-how__num { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--brass-ink); }
/* Three cards stacked picture over words. */
@media (min-width: 900px) { .range-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.range-cards--three .range-card { grid-template-columns: 1fr; padding: 0; gap: 0; background: #fff; }
.range-cards--three .range-card__art { aspect-ratio: 4 / 3.2; padding: 18px 18px 0; background: radial-gradient(90% 90% at 50% 25%, #fff, #eef3f3); }
.range-cards--three .range-card__art--photo { padding: 0; }
.range-cards--three .range-card__art--cloth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.range-card__swatch { display: block; overflow: hidden; }
.range-card__swatch > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.range-cards--three .range-card__body { padding: 18px 20px 20px; }
.range-cards--three .range-card h3 { font-size: 1.6rem; }
.range-cards--three .range-card__go { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }

/* ---- photo slider (Admin › Page text & photos; js/ui/page-content.js) ------------------- */
.slider { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--ivory-2); }
.slider__track {
  display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.slider__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider__caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px;
  padding: 56px 22px 46px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  background: linear-gradient(rgba(12, 26, 28, 0), rgba(12, 26, 28, .72));
}
.slider__caption strong { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.slider__caption span { font-size: .95rem; line-height: 1.45; max-width: 46ch; }
.slider__arrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.7rem; line-height: 1;
  box-shadow: var(--shadow-sm); transition: background-color .2s, transform .2s var(--ease);
}
.slider__arrow:hover { background: #fff; }
.slider__arrow:active { transform: scale(.94); }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 2px; }
.slider__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider__dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: width .25s var(--ease), background-color .25s;
}
.slider__dot[aria-current]::after { width: 20px; background: #fff; }
@media (hover: none) { .slider__arrow { display: none; } } /* phones and tablets: swipe */

/* Home: in the hero's picture panel. */
.slider--hero { aspect-ratio: 4 / 4.4; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero__visual > .slider--hero { position: absolute; inset: 0; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}
/* Inspiration and Our fabrics: in place of the three drawn pieces. */
.shop-hero__art--photos { height: auto; aspect-ratio: 4 / 3; }
.shop-hero__art--photos > .slider { height: 100%; box-shadow: var(--shadow); }
@media (min-width: 900px) { .shop-hero__art--photos { height: 440px; aspect-ratio: auto; } }
/* About: a wide band under the heading. */
.about-photos { padding: 8px 0 0; }
.slider--wide { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
@media (min-width: 700px) { .slider--wide { aspect-ratio: 21 / 9; max-height: 560px; } }
@media (prefers-reduced-motion: reduce) { .slider__track { scroll-behavior: auto; } .slider__dot::after { transition: none; } }

/* Gift cards off sale (giftcard.js). */
.gc-off .btn { margin-top: 4px; }

/* A line the owner hid (Page text & photos): js/ui/page-content.js. */
.pc-hidden, .hero__note[hidden] { display: none !important; }
