/* ==========================================================================
   components.css — buttons, cards, badges, forms, tables, timeline, tabs
   ========================================================================== */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.btn--primary {
  background: var(--grad-brand);
  color: var(--navy-900);
  box-shadow: var(--sh-gold), var(--sh-inset-line);
}

.btn--primary:hover {
  background: var(--grad-brand);
  color: var(--navy-900);
  box-shadow: 0 12px 30px -8px rgba(201, 164, 92, 0.6), var(--sh-inset-line);
}

.btn--navy {
  background: var(--grad-navy);
  color: var(--cream-100);
  box-shadow: var(--sh-card), var(--sh-inset-line);
}

.btn--navy:hover {
  background: var(--grad-navy);
  color: var(--white);
  box-shadow: var(--sh-card-hover), var(--sh-inset-line);
}

.btn--teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 8px 22px -8px rgba(47, 128, 121, 0.6), var(--sh-inset-line);
}

.btn--teal:hover {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  box-shadow: 0 14px 30px -8px rgba(47, 128, 121, 0.65), var(--sh-inset-line);
}

.btn--outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}

.btn--outline:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--cream-100);
  box-shadow: var(--sh-card);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-700);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--heading);
  border-color: var(--gold-400);
  box-shadow: var(--sh-card);
}

.btn--gold-outline {
  background: transparent;
  color: var(--gold-300);
  border-color: rgba(216, 186, 121, 0.5);
}

.btn--gold-outline:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}

.btn--link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--link:hover {
  color: var(--brand-dark);
  transform: none;
}

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(168, 50, 50, 0.25);
}

.btn--danger:hover {
  background: var(--danger);
  color: var(--white);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: var(--fs-xs);
}

.btn--xs {
  padding: 0.3rem 0.65rem;
  font-size: var(--fs-2xs);
}

.btn--lg {
  padding: 0.9rem 1.9rem;
  font-size: var(--fs-md);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--icon {
  padding: 0.55rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.btn-row--center {
  justify-content: center;
}

.btn-row--stretch > .btn {
  flex: 1 1 12rem;
}

.btn-row--between {
  justify-content: space-between;
}

/* link with trailing arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--navy-700);
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* -------------------------------- cards ------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--raised {
  box-shadow: var(--sh-card-hover);
}

.card--accent {
  border-left: 3px solid var(--brand);
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.card__body {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

.card--interactive {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card--interactive:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-card-hover);
  border-color: rgba(201, 164, 92, 0.55);
}

/* product card — minimal international style */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.product-card:hover {
  box-shadow: 0 6px 24px -12px rgba(11, 31, 51, 0.18);
  border-color: rgba(201, 164, 92, 0.55);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, var(--cream-100), var(--cream-200));
  overflow: hidden;
}

.product-card__media-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity var(--dur) var(--ease);
}

/* The second product photo sits on top of the first and cross-fades in on
   hover/focus, so the media area is not a static image. Both are
   decorative (empty alt), so this never duplicates anything for a screen
   reader. */
.product-card__img {
  display: block;
}

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

.product-card:hover .product-card__img--alt,
.product-card:focus-within .product-card__img--alt {
  opacity: 1;
}

.product-card:hover .product-card__media img {
  transform: scale(1.08);
}

.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-1);
  z-index: 2;
}

.product-card__wish {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 251, 247, 0.92);
  border: 0;
  border-radius: 50%;
  color: var(--ink-700);
  cursor: pointer;
  box-shadow: var(--sh-card);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease-spring);
}

.product-card__wish:hover {
  background: var(--white);
  color: var(--danger);
  transform: scale(1.12);
}

.product-card__wish.is-active {
  color: var(--danger);
}

.product-card__wish.is-active svg {
  fill: currentColor;
}

.product-card__wish svg {
  width: 18px;
  height: 18px;
}

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

.product-card__collection {
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.25;
  margin: 0;
}

.product-card__name a {
  color: var(--heading);
}

.product-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__name a:hover {
  color: var(--brand-dark);
}

.product-card__size {
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

.product-card__desc {
  display: none;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

/* The three headline benefits, shown on the card so the customer can judge
   the product without opening it. Capped at three lines so every card in
   the grid stays the same height. */
.product-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.product-card__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-soft);
}

.product-card__points svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--teal-600);
}

/* A product whose price is not confirmed yet: dimmed, not hidden, so the
   admin can see it in place while it is still a draft. */
.product-card--draft {
  opacity: 0.72;
}

.product-card--draft:hover {
  opacity: 1;
}

/* The category label on the card is a real link, so it must sit above the
   stretched product-name link that covers the whole card. */
.product-card__collection {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: var(--text-mute);
}

.product-card__collection:hover {
  color: var(--brand-dark);
}

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

.product-card__price-now {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--heading);
}

.product-card__price-was {
  font-size: var(--fs-sm);
  color: var(--ink-300);
  text-decoration: line-through;
}

.product-card__actions {
  display: none;
}

/* Quick-add overlay that slides up on hover (desktop). The button is sized
   to match the design language while staying clear of the image edge. */
.product-card__quick {
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.product-card__quick-btn {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 24px -12px rgba(11, 31, 51, 0.24);
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring),
    background var(--dur-fast) var(--ease);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
}

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

.product-card__quick-btn:hover {
  background: var(--white);
}

.product-card__quick-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  color: var(--ink-400);
}

/* compact horizontal card (cart, wishlist, order lists) */
.line-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.line-item:last-child {
  border-bottom: 0;
}

.line-item__media {
  aspect-ratio: 1 / 1;
  background: var(--cream-200);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.line-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-item__body {
  min-width: 0;
}

.line-item__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-1);
}

.line-item__name a {
  color: var(--heading);
}

.line-item__meta {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-bottom: var(--sp-3);
}

.line-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.line-item__price {
  font-weight: 700;
  color: var(--heading);
}

.line-item__remove {
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: var(--fs-xs);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.line-item__remove:hover {
  color: var(--danger);
}

/* ------------------------------ badges ------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.22rem 0.6rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--cream-200);
  color: var(--ink-700);
  line-height: 1.5;
  white-space: nowrap;
}

.badge--gold {
  background: var(--gold-300);
  color: var(--navy-900);
}

.badge--navy {
  background: var(--navy-800);
  color: var(--cream-100);
}

.badge--teal {
  background: #d9eeeb;
  color: var(--teal-600);
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.badge--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge--info {
  background: var(--info-bg);
  color: var(--info);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* filter chip (removable) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.7rem 0.3rem 0.8rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.16), rgba(47, 128, 121, 0.1));
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: var(--r-pill);
  color: var(--navy-700);
}

.chip button {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink-400);
  line-height: 0;
  border-radius: 50%;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring);
}

.chip button:hover {
  color: var(--danger);
  transform: scale(1.18);
}

.chip button svg {
  width: 14px;
  height: 14px;
}

/* --------------------------- star ratings ---------------------------- */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--gold-500);
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.stars--lg svg {
  width: 19px;
  height: 19px;
}

.star-empty {
  color: var(--cream-400);
}

/* ------------------------------ notices ------------------------------ */

.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.55;
  border: 1px solid transparent;
}

.notice__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.notice__body {
  flex: 1 1 auto;
}

.notice__title {
  font-weight: 700;
  display: block;
  margin-bottom: var(--sp-1);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice ul {
  margin: var(--sp-2) 0 0;
  padding-left: 1.1rem;
}

.notice--info {
  background: var(--info-bg);
  border-color: rgba(43, 95, 138, 0.18);
  color: #1e4a6d;
}

.notice--success {
  background: var(--success-bg);
  border-color: rgba(46, 125, 91, 0.2);
  color: #1e5b41;
}

.notice--warn {
  background: var(--warn-bg);
  border-color: rgba(160, 106, 28, 0.2);
  color: #7d5315;
}

.notice--danger {
  background: var(--danger-bg);
  border-color: rgba(168, 50, 50, 0.2);
  color: #8b2929;
}

.notice--trust {
  background: var(--navy-800);
  border-color: var(--navy-600);
  color: var(--cream-200);
}

.notice--trust .notice__title {
  color: var(--gold-300);
}

/* --------------------------- bank details ---------------------------- */

.bank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.bank-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--navy-800);
  color: var(--cream-100);
}

.bank-card__head h3 {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--white);
}

.bank-card__head svg {
  width: 22px;
  height: 22px;
  color: var(--gold-300);
  flex: 0 0 auto;
}

.bank-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-5);
  padding: var(--sp-5);
}

.bank-card__item dt {
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.bank-card__item dd {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--heading);
  word-break: break-word;
}

.bank-card__item--full {
  grid-column: 1 / -1;
}

.bank-card__foot {
  padding: var(--sp-4) var(--sp-5);
  background: var(--cream-100);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-700);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--cream-200);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.copy-btn:hover {
  background: var(--cream-300);
  color: var(--heading);
}

.copy-btn svg {
  width: 12px;
  height: 12px;
}

.copy-btn.is-copied {
  background: var(--success-bg);
  color: var(--success);
}

/* ------------------------------- tabs -------------------------------- */

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

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

.tab {
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.tab:hover {
  color: var(--heading);
  background: rgba(201, 164, 92, 0.08);
}

.tab.is-active {
  color: var(--navy-800);
  border-bottom-color: var(--brand);
  background: linear-gradient(180deg, transparent, rgba(201, 164, 92, 0.14));
}

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

.tab-panel[hidden] {
  display: none;
}

/* --------------------------- accordions ------------------------------ */

.accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-card);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--line-soft);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.accordion__trigger:hover {
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.1), transparent 70%);
}

.accordion__trigger[aria-expanded='true'] {
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.14), transparent 75%);
}

.accordion__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.16);
  color: var(--brand-dark);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.accordion__icon svg {
  width: 16px;
  height: 16px;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(180deg);
  background: var(--grad-brand);
  color: var(--navy-900);
}

.accordion__panel {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

.accordion__panel[hidden] {
  display: none;
}

/* --------------------------- quantity stepper ------------------------ */

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

.qty button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.qty button:hover:not(:disabled) {
  background: var(--cream-200);
  color: var(--heading);
}

.qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty button svg {
  width: 14px;
  height: 14px;
}

.qty input {
  width: 38px;
  height: 32px;
  border: 0;
  border-inline: 1px solid var(--line-soft);
  border-radius: 0;
  text-align: center;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 164, 92, 0.3);
}

/* ------------------------- order timeline ---------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  position: relative;
  padding: 0 0 var(--sp-6) var(--sp-7);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 20px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
  color: var(--ink-400);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline__dot svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.timeline__item.is-done .timeline__dot {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--success);
}

.timeline__item.is-current .timeline__dot {
  background: var(--brand);
  color: var(--navy-900);
  box-shadow: 0 0 0 1px var(--brand);
  animation: pulse-dot 2.2s var(--ease) infinite;
}

.timeline__title {
  font-weight: 600;
  color: var(--heading);
  font-size: var(--fs-sm);
}

.timeline__item:not(.is-done):not(.is-current) .timeline__title {
  color: var(--ink-400);
  font-weight: 500;
}

.timeline__meta {
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 1px var(--brand), 0 0 0 0 rgba(201, 164, 92, 0.5);
  }
  50% {
    box-shadow: 0 0 0 1px var(--brand), 0 0 0 8px rgba(201, 164, 92, 0);
  }
}

/* ----------------------------- stat tiles ---------------------------- */

.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}

.stat__label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.stat__label svg {
  width: 15px;
  height: 15px;
  color: var(--brand-dark);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.1;
}

.stat__meta {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-top: var(--sp-1);
}

.stat--gold {
  background: linear-gradient(140deg, var(--cream-100), var(--white));
  border-color: var(--gold-300);
}

.stat--teal {
  background: #f2f9f8;
  border-color: #cfe7e4;
}

.stat--navy {
  background: var(--navy-800);
  border-color: var(--navy-700);
}

.stat--navy .stat__label,
.stat--navy .stat__meta {
  color: var(--cream-400);
}

.stat--navy .stat__value {
  color: var(--white);
}

.stat--navy .stat__label svg {
  color: var(--gold-300);
}

/* ---------------------------- mini bar chart ------------------------- */

.bars {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  height: 140px;
  padding-top: var(--sp-3);
}

.bars__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  height: 100%;
  justify-content: flex-end;
}

.bars__bar {
  width: 100%;
  max-width: 34px;
  min-height: 4px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: height 0.6s var(--ease-out);
}

.bars__label {
  font-size: var(--fs-2xs);
  color: var(--text-mute);
}

/* ----------------------------- accordion faq ------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
}

.faq-item__q svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brand-dark);
  transition: transform var(--dur) var(--ease);
}

.faq-item__q[aria-expanded='true'] svg {
  transform: rotate(45deg);
}

.faq-item__a {
  padding-bottom: var(--sp-4);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  max-width: 76ch;
}

.faq-item__a[hidden] {
  display: none;
}

/* ---------------------------- empty state ---------------------------- */

.empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  max-width: 46ch;
  margin-inline: auto;
}

.empty__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  color: var(--navy-700);
  box-shadow: var(--sh-inset-line), 0 8px 20px rgba(201, 164, 92, 0.25);
}

.empty__icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.empty h2, .empty h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.empty p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}

/* ------------------------------ spinner ------------------------------ */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner--dark {
  border-color: rgba(20, 32, 44, 0.2);
  border-top-color: currentColor;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-300) 37%, var(--cream-200) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ----------------------- full-page skeleton ------------------------- *
   Shown by boot.js between "page opened" and "first paint", so a slow
   connection reads as a loading state instead of an empty document.      */

.page-skeleton {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.page-skeleton .skeleton {
  display: block;
}

.skeleton--eyebrow {
  width: 140px;
  height: 14px;
  margin-bottom: var(--sp-4);
}

.skeleton--title {
  width: min(640px, 90%);
  height: clamp(32px, 5vw, 56px);
  margin-bottom: var(--sp-4);
}

.skeleton--line {
  width: min(560px, 85%);
  height: 16px;
  margin-bottom: var(--sp-3);
}

.skeleton--short {
  width: min(360px, 60%);
}

.page-skeleton__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.skeleton--card {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
}

@media (max-width: 1024px) {
  .page-skeleton__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-skeleton__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .skeleton--card:nth-child(n + 3) {
    display: none;
  }
}

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

/* -------------------------- progress bar ----------------------------- */

.progress {
  height: 6px;
  background: var(--cream-200);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-400), var(--brand));
  border-radius: var(--r-pill);
  transition: width 0.5s var(--ease-out);
}

/* free-shipping meter */
.ship-meter {
  background: var(--cream-100);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.ship-meter .progress {
  margin-top: var(--sp-2);
}

/* ----------------------------- dividers ------------------------------ */

.divider {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: var(--sp-5) 0;
}

.divider--label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-mute);
  font-size: var(--fs-xs);
  background: none;
  height: auto;
}

.divider--label::before,
.divider--label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-soft);
}

.divider--label span {
  flex: 0 0 auto;
}

/* --------------------------- copyable code -------------------------- */

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--cream-100);
  border: 1px dashed var(--cream-400);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-sm);
  color: var(--navy-800);
  word-break: break-all;
}

/* --------------------------- icon list ------------------------------- */

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.icon-list--check li::before {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.icon-list--cross li::before {
  content: '✕';
  color: var(--ink-300);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

/* -------------------------- image helpers ---------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--cream-200);
  border-radius: var(--r-md);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}
.media--1x1 {
  aspect-ratio: 1 / 1;
}
.media--3x2 {
  aspect-ratio: 3 / 2;
}
.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

.ratio-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--sh-lg);
}

.ratio-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* image fallback inserted by JS when a photo fails to load */
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: linear-gradient(140deg, var(--cream-200), var(--cream-300));
  color: var(--ink-400);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--sp-4);
}

.img-fallback svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
}

/* ------------------------------ marquee ------------------------------ *
   Decorative claims band. The track is duplicated so a -50% shift loops
   seamlessly; it pauses on hover and is disabled for reduced motion.     */

.marquee {
  overflow: hidden;
  background: var(--navy-900);
  color: var(--cream-300);
  border-block: 1px solid rgba(250, 246, 239, 0.12);
  padding-block: 0.85rem;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy-900), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy-900), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__track span::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

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