/* ==========================================================================
   Aurea — Reusable components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-h);
  padding: 0 var(--sp-6);
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
    transform var(--t-fast), box-shadow var(--t-fast);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover:not(:disabled) {
  background: var(--c-accent-hover);
  box-shadow: var(--sh-md);
}

.btn--dark {
  background: var(--c-ink-900);
  color: #fff;
}
.btn--dark:hover:not(:disabled) {
  background: var(--c-ink-700);
  box-shadow: var(--sh-md);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-ink-900);
  border-color: var(--c-border-strong);
}
.btn--secondary:hover:not(:disabled) {
  border-color: var(--c-ink-900);
  background: var(--c-surface-alt);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink-700);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--c-surface-sunk);
  color: var(--c-accent);
}

.btn--light {
  background: #fff;
  color: var(--c-ink-900);
}
.btn--light:hover:not(:disabled) { background: var(--c-ink-100); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn--danger {
  background: var(--c-error-soft);
  color: var(--c-error);
}
.btn--danger:hover:not(:disabled) { background: var(--c-error); color: #fff; }

.btn--sm { --btn-h: 38px; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { --btn-h: 56px; padding-inline: var(--sp-8); font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

/* Loading state — label hidden, spinner centred. */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: spin 700ms linear infinite;
}
.btn--secondary.is-loading::after,
.btn--ghost.is-loading::after { color: var(--c-ink-700); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation-duration: 2s; }
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 5px var(--sp-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--r-full);
  background: var(--c-ink-900);
  color: #fff;
}

.badge--sale    { background: var(--c-sale); }
.badge--new     { background: var(--c-accent); }
.badge--soft    { background: var(--c-surface-sunk); color: var(--c-ink-600); }
.badge--success { background: var(--c-success-soft); color: var(--c-success); }
.badge--warning { background: var(--c-warning-soft); color: var(--c-warning); }
.badge--error   { background: var(--c-error-soft); color: var(--c-error); }
.badge--info    { background: var(--c-info-soft); color: var(--c-info); }
.badge--out     { background: var(--c-ink-500); }

/* --------------------------------------------------------------------------
   Rating stars
   -------------------------------------------------------------------------- */

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.rating__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--c-star);
}

.rating__stars svg { width: 14px; height: 14px; }
.rating__stars .is-empty { color: var(--c-ink-200); }

.rating__count {
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
}

.rating--lg .rating__stars svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.product-card:focus-within {
  border-color: var(--c-accent);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--c-surface-sunk);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t-base);
}

.product-card__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card__img--main { transform: scale(1.06); }
.product-card:hover .product-card__img--alt { opacity: 1; transform: scale(1.06); }

.product-card__badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  z-index: 2;
}

.product-card__wish {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--c-ink-700);
  border-radius: var(--r-full);
  box-shadow: var(--sh-xs);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.product-card__wish svg { width: 18px; height: 18px; }
.product-card__wish:hover { background: #fff; color: var(--c-sale); transform: scale(1.08); }

.product-card__wish.is-active {
  color: var(--c-sale);
  background: #fff;
}
.product-card__wish.is-active svg { fill: currentColor; }

/* Quick view — desktop hover only; hidden from touch by the media query below. */
.product-card__quick {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base);
  pointer-events: none;
}

.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-2);
  padding: var(--sp-4);
}

.product-card__cat {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-ink-400);
}

.product-card__name {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--c-ink-900);
  /* Two-line clamp keeps every card the same height. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card__name a::after {
  /* Stretched link — whole card is clickable, buttons sit above it. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__name a:hover { color: var(--c-accent); }

.product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-1);
}

.price {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-ink-900);
  font-feature-settings: "tnum";
}

.price--old {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--c-ink-400);
  text-decoration: line-through;
}

.price--off {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-sale);
}

.product-card__cta {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-3);
}

.product-card__stock {
  font-size: var(--fs-xs);
  color: var(--c-warning);
}

/* Sold-out treatment */
.product-card.is-out .product-card__img { filter: grayscale(1); opacity: 0.65; }

/* List view (shop page toggle) */
.product-card--list {
  flex-direction: row;
}
.product-card--list .product-card__media {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.product-card--list .product-card__quick { display: none; }

/* --------------------------------------------------------------------------
   Category card
   -------------------------------------------------------------------------- */

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: var(--c-surface-sunk);
  transition: transform var(--t-slow);
}

.category-card:hover .category-card__img { transform: scale(1.07); }

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.88) 0%, rgba(15, 17, 21, 0.25) 55%, rgba(15, 17, 21, 0.05) 100%);
}

.category-card__count {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.category-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-top: var(--sp-1);
}

.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: #fff;
}

.category-card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast);
}

.category-card:hover .category-card__cta svg { transform: translateX(4px); }

.category-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: var(--sp-2);
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-800);
}

.field__label .req {
  color: var(--c-error);
  margin-left: 2px;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--c-ink-900);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

/* 16px minimum on mobile stops iOS zooming the viewport on focus. */
.input::placeholder,
.textarea::placeholder { color: var(--c-ink-300); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--c-ink-400); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: var(--sh-ring);
}

.textarea { min-height: 120px; resize: vertical; }

.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  cursor: pointer;
}

/* Validation states */
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--c-error);
  background: var(--c-error-soft);
}

.field.is-invalid .input:focus,
.field.is-invalid .select:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.22);
}

.field.is-valid .input,
.field.is-valid .select { border-color: var(--c-success); }

.field__error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-error);
}

.field__error svg { width: 14px; height: 14px; flex-shrink: 0; }

.field.is-invalid .field__error { display: flex; }

.field__success {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-success);
}

.field.is-valid .field__success { display: flex; }

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
}

/* Checkbox / radio ------------------------------------------------------- */

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--c-ink-700);
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}

/* Selectable card (payment / shipping method) */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.option-card:hover { border-color: var(--c-ink-400); }

.option-card:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  box-shadow: var(--sh-ring);
}

.option-card:has(input:focus-visible) {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.option-card input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--c-accent);
  flex-shrink: 0;
}

.option-card__body { flex: 1; min-width: 0; }

.option-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-900);
}

.option-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
  margin-top: 2px;
}

/* Variant swatches -------------------------------------------------------- */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.swatch {
  min-width: 46px;
  height: 42px;
  padding-inline: var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-700);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.swatch:hover { border-color: var(--c-ink-900); }

.swatch[aria-pressed="true"] {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
}

.swatch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.swatch--color {
  min-width: 0;
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--c-surface);
}

/* :not(.sr-only) matters — without it this rule stretches the visually
   hidden colour name to 100% of the nearest positioned ancestor and blows
   out the page width. */
.swatch--color > span:not(.sr-only) {
  width: 100%;
  height: 100%;
  border-radius: var(--r-full);
  border: 1px solid rgba(15, 17, 21, 0.12);
  display: block;
}

.swatch--color[aria-pressed="true"] {
  background: var(--c-surface);
  border-color: var(--c-accent);
  border-width: 2px;
  padding: 2px;
}

/* Quantity stepper -------------------------------------------------------- */

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--c-surface);
}

.qty__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--c-ink-700);
  transition: background var(--t-fast), color var(--t-fast);
}

.qty__btn:hover:not(:disabled) { background: var(--c-surface-sunk); color: var(--c-accent); }
.qty__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty__btn svg { width: 16px; height: 16px; }

.qty__input {
  width: 46px;
  height: 44px;
  padding: 0;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: 0;
  background: transparent;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty:focus-within { border-color: var(--c-accent); box-shadow: var(--sh-ring); }

.qty--sm .qty__btn { width: 34px; height: 34px; }
.qty--sm .qty__input { width: 36px; height: 34px; }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}

.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert__title { font-weight: var(--fw-semibold); }
.alert__body { flex: 1; min-width: 0; }

.alert--success { background: var(--c-success-soft); color: var(--c-success); border-color: rgba(30, 122, 75, 0.2); }
.alert--error   { background: var(--c-error-soft); color: var(--c-error); border-color: rgba(179, 38, 30, 0.2); }
.alert--warning { background: var(--c-warning-soft); color: var(--c-warning); border-color: rgba(178, 106, 0, 0.2); }
.alert--info    { background: var(--c-info-soft); color: var(--c-info); border-color: rgba(31, 95, 139, 0.2); }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  left: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  padding: var(--sp-4);
  background: var(--c-ink-900);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  animation: toast-in var(--t-slow) both;
}

.toast.is-leaving { animation: toast-out var(--t-base) both; }

.toast__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
}

.toast__icon svg { width: 18px; height: 18px; }
.toast--success .toast__icon { background: var(--c-success); }
.toast--error .toast__icon { background: var(--c-error); }
.toast--info .toast__icon { background: var(--c-info); }

.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: var(--fw-semibold); }
.toast__msg { color: var(--c-ink-300); font-size: var(--fs-xs); margin-top: 1px; }

.toast__action {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #fff;
  text-decoration: underline;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-xs);
}

.toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--c-ink-300);
  border-radius: var(--r-full);
}
.toast__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.toast__close svg { width: 15px; height: 15px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.5);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--t-slow);
  overflow: hidden;
}

.modal.is-open .modal__panel { transform: none; }

.modal__panel--lg { max-width: 880px; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.modal__title {
  font-family: var(--ff-sans);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-900);
}

.modal__body {
  padding: var(--sp-6);
  overflow-y: auto;
  flex: 1;
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-alt);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb svg { width: 13px; height: 13px; color: var(--c-ink-300); }
.breadcrumb [aria-current="page"] { color: var(--c-ink-900); font-weight: var(--fw-medium); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
}

.pagination__btn {
  min-width: 42px;
  height: 42px;
  padding-inline: var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-700);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.pagination__btn:hover:not(:disabled) {
  border-color: var(--c-ink-900);
  color: var(--c-ink-900);
}

.pagination__btn[aria-current="page"] {
  background: var(--c-ink-900);
  border-color: var(--c-ink-900);
  color: #fff;
}

.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination__btn svg { width: 16px; height: 16px; }
.pagination__gap { color: var(--c-ink-400); padding-inline: var(--sp-1); }

/* --------------------------------------------------------------------------
   Skeleton loaders
   -------------------------------------------------------------------------- */

.skeleton {
  position: relative;
  background: var(--c-surface-sunk);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

.skeleton--text { height: 12px; margin-bottom: var(--sp-2); }
.skeleton--title { height: 18px; width: 70%; }
.skeleton--line { height: 12px; width: 45%; }

.skeleton-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
}

.skeleton-card__media { aspect-ratio: 4 / 5; }
.skeleton-card__body { padding: var(--sp-4); display: grid; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   Empty / error states
   -------------------------------------------------------------------------- */

.state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--sp-4);
  max-width: 44ch;
  margin-inline: auto;
}

.state__icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--c-surface-sunk);
  color: var(--c-ink-400);
}

.state__icon svg { width: 36px; height: 36px; }
.state--error .state__icon { background: var(--c-error-soft); color: var(--c-error); }
.state--success .state__icon { background: var(--c-success-soft); color: var(--c-success); }

.state__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--c-ink-900);
}

.state__text { color: var(--c-ink-500); font-size: var(--fs-sm); }
.state__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--c-border); }

.accordion__item { border-bottom: 1px solid var(--c-border); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-900);
}

.accordion__trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-ink-400);
  transition: transform var(--t-fast);
}

.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.accordion__panel {
  padding-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  line-height: var(--lh-loose);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-500);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.tab:hover { color: var(--c-ink-900); }

.tab[aria-selected="true"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.tab-panel { padding-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   Dropdown (generic)
   -------------------------------------------------------------------------- */

.dropdown { position: relative; }

.dropdown__menu {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  min-width: 200px;
  padding: var(--sp-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}

.dropdown__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-700);
  border-radius: var(--r-sm);
  text-align: left;
}

.dropdown__item:hover { background: var(--c-surface-sunk); color: var(--c-accent); }
.dropdown__item svg { width: 17px; height: 17px; color: var(--c-ink-400); }

/* --------------------------------------------------------------------------
   Card surfaces
   -------------------------------------------------------------------------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.card--flush { padding: 0; overflow: hidden; }
.card--alt { background: var(--c-surface-alt); }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.card__title {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-900);
}

/* --------------------------------------------------------------------------
   Order summary (cart + checkout)
   -------------------------------------------------------------------------- */

.summary__rows { display: grid; gap: var(--sp-3); }

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-ink-600);
}

.summary__row span:last-child {
  font-weight: var(--fw-medium);
  color: var(--c-ink-900);
  font-feature-settings: "tnum";
}

.summary__row--discount span:last-child { color: var(--c-success); }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-900);
}

.summary__total strong { font-size: var(--fs-xl); font-family: var(--ff-display); }

.coupon-form {
  display: flex;
  gap: var(--sp-2);
  margin-block: var(--sp-5);
}

.coupon-form .input { min-height: 46px; }

.coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: var(--c-success-soft);
  color: var(--c-success);
  border-radius: var(--r-sm);
}

.coupon-tag button {
  display: grid;
  place-items: center;
  color: inherit;
  opacity: 0.7;
}
.coupon-tag button:hover { opacity: 1; }
.coupon-tag svg { width: 14px; height: 14px; }

.trust-row {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
}

.trust-row svg { width: 17px; height: 17px; color: var(--c-accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */

.divider {
  height: 1px;
  background: var(--c-border);
  border: 0;
  margin-block: var(--sp-6);
}
