/* ==========================================================================
   Hajvery Libas — application layer styles
   Flash messages, auth screens, account panel, checkout, order tracking,
   static content pages and the admin panel. The storefront design system
   lives in style.css and is untouched.
   ========================================================================== */

/* Convenience aliases onto the design tokens in style.css */
:root {
  --ink-soft: var(--slate);
  --line-strong: var(--line-2);
  --gold-deep: var(--gold-2);
}

/* ------------------------------------------------------------------ 01. flash */
.flash-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}
.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font: 400 14px/1.55 'Jost', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  box-shadow: 0 18px 40px -18px rgba(20, 20, 22, .35);
  animation: flash-in .34s cubic-bezier(.2, .8, .2, 1) both;
}
.flash svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.flash--success { border-left-color: #4f9d69; }
.flash--success svg { color: #4f9d69; }
.flash--error   { border-left-color: #b4472f; }
.flash--error svg { color: #b4472f; }
.flash--info    { border-left-color: var(--gold); }
.flash--info svg { color: var(--gold-deep); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 02. counters */
.icon-btn__count[data-count="cart"],
.icon-btn__count[data-count="wish"] { min-width: 18px; }
.icon-btn__label {
  font: 500 12px/1 'Jost', sans-serif;
  letter-spacing: .04em;
  margin-left: 4px;
}
@media (max-width: 640px) { .icon-btn__label { display: none; } }

/* --------------------------------------------- 02b. product card inner wiring */
/* style.css already positions .pc-heart and .pc-quick inside .product-card__media;
   the only thing it cannot do is make the whole image area one big link. */
.product-card__media > .product-card__link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card__media > .product-card__link:focus-visible { outline-offset: -3px; }
.product-card__wish,
.product-card__add { display: contents; }
.product-card__add .btn { flex: 1; }

/* ----------------------------------------------------------------- 03. toast */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-radius: 10px;
  background: #141416;
  color: #f6f2ea;
  box-shadow: 0 20px 46px -16px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-in { opacity: 1; transform: none; }
.toast__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .14);
  color: var(--gold);
}
.toast__icon svg { width: 18px; height: 18px; }
.toast strong { display: block; font: 500 14px/1.4 'Jost', sans-serif; letter-spacing: .01em; }
.toast span  { display: block; font: 400 12.5px/1.5 'Jost', sans-serif; color: rgba(246, 242, 234, .62); }

/* ---------------------------------------------------------------- 04. quick view */
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv__loading { grid-column: 1 / -1; display: grid; place-items: center; min-height: 320px; color: var(--muted); font: 400 14px 'Jost', sans-serif; }
.qv__media { padding: 22px; }
.qv__stage { position: relative; border-radius: 12px; overflow: hidden; background: var(--sand); aspect-ratio: 5 / 6; }
.qv__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
.qv__nav:hover { background: #fff; }
.qv__nav--prev { left: 10px; }
.qv__nav--next { right: 10px; }
.qv__counter {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(20, 20, 22, .7); color: #fff;
  font: 500 11px/1 'Jost', sans-serif; letter-spacing: .08em;
  padding: 5px 9px; border-radius: 20px;
}
.qv__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qv__thumb {
  width: 58px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--sand); cursor: pointer; transition: border-color .2s;
}
.qv__thumb img { width: 100%; height: 68px; object-fit: cover; display: block; }
.qv__thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.qv__info { padding: 26px 26px 26px 8px; overflow-y: auto; max-height: 78vh; }
.qv__eyebrow {
  display: inline-block; font: 500 10.5px/1 'Jost', sans-serif;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
.qv__title { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; line-height: 1.18; margin: 10px 0 8px; }
.qv__title .script { color: var(--gold-deep); font-style: italic; }
.qv__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qv__reviews { font: 400 12.5px 'Jost', sans-serif; color: var(--muted); }
.qv__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.qv__price .price-now { font: 500 26px/1 var(--font-body); color: var(--ink); }
.qv__text { font: 400 14px/1.7 var(--font-body); color: var(--ink-soft); margin: 0 0 18px; }
.qv__block { margin-bottom: 18px; }
.qv__block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.qv__block-label { font: 500 10.5px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.qv__block-value { font: 400 13.5px 'Jost', sans-serif; color: var(--ink); }
.qv__actions { display: flex; gap: 10px; align-items: stretch; margin: 22px 0 12px; flex-wrap: wrap; }
.qv__actions .btn { flex: 1 1 150px; }
.qv__wish {
  width: 46px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.qv__wish svg { width: 20px; height: 20px; }
.qv__wish.is-active { color: #b4472f; border-color: #b4472f; }
.qv__wish.is-active svg { fill: currentColor; }
.qv__trust { display: grid; gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qv__trust span { display: flex; align-items: center; gap: 9px; font: 400 12.5px 'Jost', sans-serif; color: var(--ink-soft); }
.qv__trust svg { width: 16px; height: 16px; color: var(--gold-deep); flex: 0 0 16px; }

@media (max-width: 860px) {
  .qv { grid-template-columns: 1fr; }
  .qv__info { padding: 0 20px 24px; max-height: none; }
  .qv__media { padding: 16px; }
}

/* ---------------------------------------------------------- 05. shop / filters */
.pagination a, .pagination span:not(.page-gap) {
  display: grid; place-items: center; gap: 0;
}
.pagination .page-btn {
  width: 38px; height: 38px; padding: 0; min-width: 38px;
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm);
  color: var(--slate); text-decoration: none; font-size: .84rem; line-height: 1;
}
.pagination .page-btn:hover:not(.is-disabled) { border-color: var(--ink); color: var(--ink); }
.pagination .page-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-btn.is-disabled { opacity: .32; pointer-events: none; }
.pagination .page-gap { color: var(--muted); padding: 0 4px; }

.pill-check { text-decoration: none; }
.pill-check:hover { color: var(--ink); }
.pill-check .pill-check__box { background: #fff; }
.pill-check input:checked ~ .pill-check__box { background: var(--ink); border-color: var(--ink); }
.pill-check input:checked ~ .pill-check__box::after { transform: rotate(-45deg) scale(1); }
.pill-check.is-active .pill-check__box { background: var(--ink); border-color: var(--ink); }
.pill-check.is-active .pill-check__box::after { transform: rotate(-45deg) scale(1); }
.pill-check__count { margin-left: auto; }

.chip--clear { background: #fdf9ee; border-color: var(--gold); color: var(--gold-2); font-weight: 500; }
.chip--clear:hover { border-color: var(--gold-2); color: var(--gold-2); }

.filters__head h2 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin: 0 0 4px;
}
.filters__form { display: flex; flex-direction: column; }

/* ---------------------------------------------------------- 05b. cart table */
/* style.css lays .cart-row out as 1fr / qty / unit / total / remove and relies on
   .cart-row__mobile becoming `display: contents` at >=780px. The unit price is
   therefore rendered twice and one copy is dropped per breakpoint. */
.cart-row__mobile > .cart-row__unit { display: none; }
.cart-row__remove-form { display: flex; justify-content: flex-end; align-items: center; }
.cart-row__mobile form { min-width: 0; }
@media (max-width: 779px) {
  .cart-row__unit--mobile { display: block; margin-top: 6px; }
}
@media (min-width: 780px) {
  .cart-row__unit--mobile { display: none; }
  .cart-row__mobile > .cart-row__unit { display: block; }
}
.cart-row__total { white-space: nowrap; }
/* style.css switches .cart-layout to two columns at 940px, but the table needs
   ~480px of fixed columns before the product column has any room. Stack the
   summary below until the viewport can genuinely fit both. */
@media (min-width: 940px) and (max-width: 1169px) {
  .cart-layout { grid-template-columns: 1fr; }
}
.shop-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 1000px) { .shop-layout { grid-template-columns: 1fr; } }

.filter-panel { position: sticky; top: 132px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 4px 0 18px; margin-bottom: 16px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 12px 0; cursor: pointer;
  font: 500 11px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.filter-group__head svg { width: 14px; height: 14px; color: var(--muted); transition: transform .24s; }
.filter-group.is-collapsed .filter-group__head svg { transform: rotate(-90deg); }
.filter-group.is-collapsed .filter-group__body { display: none; }
.filter-group__body { padding-bottom: 4px; }

.pill-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font: 400 13.5px/1.3 var(--font-body); color: var(--ink-soft); }
.pill-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill-check__box {
  width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid var(--line-strong);
  border-radius: 3px; display: grid; place-items: center; transition: background .18s, border-color .18s;
}
.pill-check__box::after { content: ''; width: 8px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .18s; margin-top: -2px; }
.pill-check input:checked + .pill-check__box { background: var(--ink); border-color: var(--ink); }
.pill-check input:checked + .pill-check__box::after { transform: rotate(-45deg) scale(1); }
.pill-check__count { margin-left: auto; font: 400 11.5px 'Jost', sans-serif; color: var(--muted); }

.filter-colors { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-color { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(20, 20, 22, .14); cursor: pointer; position: relative; padding: 0; transition: transform .18s; }
.filter-color:hover { transform: scale(1.1); }
.filter-color.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold); }
.filter-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-size {
  min-width: 58px; padding: 8px 12px; border: 1px solid var(--line);
  background: #fff; font: 400 12px 'Jost', sans-serif; cursor: pointer; border-radius: 3px;
  transition: border-color .18s, color .18s;
}
.filter-size.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line);
  background: #fff; font: 400 13px 'Jost', sans-serif; color: var(--ink);
}
.price-inputs span { color: var(--muted); font-size: 13px; }
.price-presets { display: grid; gap: 6px; margin-bottom: 12px; }
.price-preset {
  padding: 9px 12px; border: 1px solid var(--line); background: #fff; text-align: left;
  font: 400 12.5px 'Jost', sans-serif; cursor: pointer; border-radius: 3px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.price-preset.is-active { border-color: var(--gold); background: #fdfaf2; color: var(--ink); }
.price-preset small { color: var(--muted); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.shop-toolbar__count { font: 400 13.5px 'Jost', sans-serif; color: var(--muted); }
.shop-toolbar__count b { color: var(--ink); font-weight: 500; }
.shop-toolbar__tools { display: flex; align-items: center; gap: 12px; }
.shop-sort {
  appearance: none; -webkit-appearance: none;
  padding: 10px 34px 10px 14px; border: 1px solid var(--line); background: #fff;
  font: 400 13px 'Jost', sans-serif; color: var(--ink); cursor: pointer; border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b70' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.filters-toggle { display: none; }
@media (max-width: 1000px) {
  .filters-toggle { display: inline-flex; }
  .filter-panel { display: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line); background: #fff; border-radius: 30px;
  font: 400 12px 'Jost', sans-serif; color: var(--ink-soft); text-decoration: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip svg { width: 12px; height: 12px; opacity: .5; }
.chip--clear { border-color: var(--gold); color: var(--gold-deep); font-weight: 500; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; text-decoration: none;
  font: 400 13px 'Jost', sans-serif; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

.empty-state { text-align: center; padding: 72px 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; margin: 0 0 10px; }
.empty-state p { font: 400 14px/1.7 var(--font-body); color: var(--muted); margin: 0 0 24px; }
.empty-state svg { width: 56px; height: 56px; color: var(--line-strong); margin-bottom: 18px; }

.filter-drawer {
  position: fixed; inset: 0; z-index: 100; display: none;
}
.filter-drawer.is-open { display: block; }
.filter-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 15, 17, .5); backdrop-filter: blur(2px); }
.filter-drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
}
.filter-drawer.is-open .filter-drawer__panel { transform: none; }
.filter-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2;
}
.filter-drawer__head h3 { font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.filter-drawer__body { padding: 8px 20px 20px; flex: 1; }
.filter-drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; position: sticky; bottom: 0; background: #fff; }

/* ------------------------------------------------------------- 06. auth pages */
.auth-page { display: grid; place-items: center; padding: 64px 0 96px; }
.auth-card {
  width: 100%; max-width: 470px; background: #fff;
  border: 1px solid var(--line); padding: 40px 40px 36px;
}
.auth-card--wide { max-width: 720px; }
.auth-card h1 { font-family: var(--font-display); font-size: 34px; font-weight: 400; margin: 0 0 6px; text-align: center; }
.auth-card__sub { text-align: center; font: 400 13.5px/1.6 var(--font-body); color: var(--muted); margin: 0 0 28px; }
.auth-card__foot { text-align: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 13px 'Jost', sans-serif; color: var(--muted); }
.auth-card__foot a { color: var(--gold-deep); }
.auth-card__foot strong { color: var(--ink); font-weight: 500; }
.auth-demo {
  margin-top: 18px; padding: 14px 16px; background: #fbf8f1; border: 1px dashed var(--gold);
  font: 400 12.5px/1.7 'Jost', sans-serif; color: var(--ink-soft); border-radius: 6px;
}
.auth-demo b { color: var(--ink); }
.auth-demo code { background: #fff; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; }

.field { margin-bottom: 18px; }
.field__label { display: block; font: 500 10.5px/1 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field__label span { color: #b4472f; }
.field__input, .field__select, .field__textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  background: #fff; font: 400 14px 'Jost', sans-serif; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .12);
}
.field__input.is-error { border-color: #b4472f; }
.field__textarea { min-height: 110px; resize: vertical; }
.field__hint { font: 400 12px/1.5 'Jost', sans-serif; color: var(--muted); margin-top: 6px; }
.field__error { font: 400 12px 'Jost', sans-serif; color: #b4472f; margin-top: 6px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: flex; align-items: flex-start; gap: 10px; font: 400 13px/1.5 var(--font-body); color: var(--ink-soft); }
.field-check input { margin-top: 3px; accent-color: var(--ink); }
.field-error-summary {
  padding: 13px 16px; border: 1px solid #e4b9ad; background: #fdf3f1;
  font: 400 13px/1.6 var(--font-body); color: #8e3320; margin-bottom: 20px; border-radius: 6px;
}
.field-error-summary ul { margin: 8px 0 0; padding-left: 18px; }

/* ----------------------------------------------------------- 07. account area */
.account-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 38px; align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }

.account-side { border: 1px solid var(--line); background: #fff; }
.account-user { padding: 26px 22px; border-bottom: 1px solid var(--line); background: var(--cream); }
.account-user__avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font: 500 18px/1 'Jost', sans-serif; letter-spacing: .04em; margin-bottom: 12px;
}
.account-user h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0 0 2px; }
.account-user p { font: 400 12.5px 'Jost', sans-serif; color: var(--muted); margin: 0; }
.account-nav { list-style: none; margin: 0; padding: 8px 0; }
.account-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  font: 400 13.5px 'Jost', sans-serif; color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid transparent; transition: background .18s, color .18s;
}
.account-nav a svg { width: 17px; height: 17px; color: var(--muted); }
.account-nav a:hover { background: var(--cream); color: var(--ink); }
.account-nav a.is-active { border-left-color: var(--gold); background: var(--cream); color: var(--ink); font-weight: 500; }
.account-nav a.is-active svg { color: var(--gold-deep); }
.account-nav__signout {
  display: block; margin: 0 0 8px; padding: 0 14px;
}
.account-nav__signout button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 8px; border: 0; background: transparent; cursor: pointer;
  border-left: 2px solid transparent;
  font: 400 13.5px 'Jost', sans-serif; color: var(--ink-soft); text-align: left;
  transition: background .18s, color .18s;
}
.account-nav__signout button svg { width: 17px; height: 17px; color: var(--muted); }
.account-nav__signout button:hover { background: var(--cream); color: var(--ink); }
.account-nav__badge { margin-left: auto; font: 500 11px 'Jost', sans-serif; color: var(--gold-deep); }

.account-head { margin-bottom: 26px; }
.account-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; margin: 0 0 6px; }
.account-head p { font: 400 13.5px 'Jost', sans-serif; color: var(--muted); margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat {
  border: 1px solid var(--line); background: #fff; padding: 20px 22px;
}
.stat__label { font: 500 10px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 400; margin-top: 8px; line-height: 1; }
.stat__meta { font: 400 12px 'Jost', sans-serif; color: var(--muted); margin-top: 6px; }

.data-table { width: 100%; border-collapse: collapse; font: 400 13.5px 'Jost', sans-serif; }
.data-table th {
  text-align: left; padding: 12px 14px; background: var(--cream);
  font: 500 10.5px/1 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.data-table tbody tr:hover td { background: #fdfcf9; }
.data-table__thumb { width: 54px; height: 66px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.data-table--nowrap td { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }

.pill {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font: 500 10.5px/1.5 'Jost', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.pill--pending   { background: #fdf3e0; color: #8a6212; }
.pill--confirmed { background: #e8f1fb; color: #1e5a94; }
.pill--packed    { background: #eee9fb; color: #4b3a94; }
.pill--shipped   { background: #e6f4f0; color: #1c6b57; }
.pill--delivered { background: #e5f5e9; color: #2a7040; }
.pill--cancelled { background: #fbe9e6; color: #a33a24; }
.pill--returned  { background: #f1f1f2; color: #5c5c60; }
.pill--paid      { background: #e5f5e9; color: #2a7040; }
.pill--failed    { background: #fbe9e6; color: #a33a24; }
.pill--active    { background: #e5f5e9; color: #2a7040; }
.pill--inactive  { background: #f1f1f2; color: #5c5c60; }
.pill--auto      { background: #fdf3e0; color: #8a6212; }

.form-card { border: 1px solid var(--line); background: #fff; padding: 30px; margin-bottom: 22px; }
.form-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 4px; }
.form-card__sub { font: 400 13px/1.6 'Jost', sans-serif; color: var(--muted); margin: 0 0 22px; }

.addr-card { border: 1px solid var(--line); background: #fff; padding: 22px; position: relative; }
.addr-card.is-default { border-color: var(--gold); }
.addr-card__badge { position: absolute; top: 16px; right: 16px; }
.addr-card h4 { font: 500 14px 'Jost', sans-serif; margin: 0 0 4px; }
.addr-card p { font: 400 13px/1.7 'Jost', sans-serif; color: var(--muted); margin: 0 0 16px; }
.addr-card__actions { display: flex; gap: 8px; }

/* ------------------------------------------------------------ 08. checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 940px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font: 500 10.5px/1 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.checkout-step { display: flex; align-items: center; gap: 9px; }
.checkout-step__n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0;
}
.checkout-step.is-active { color: var(--ink); }
.checkout-step.is-active .checkout-step__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.checkout-step.is-done .checkout-step__n { background: var(--gold); border-color: var(--gold); color: #fff; }
.checkout-sep { width: 26px; height: 1px; background: var(--line-strong); }

/* style.css owns `.summary` (cream panel used on the cart page). The checkout
   summary is a white panel split into head/body/foot, so it opts out of that
   padding/background with a modifier instead of overriding the base class. */
.summary--checkout { background: #fff; padding: 0; top: calc(var(--header-h) + 20px); }
.summary__head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.summary__head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0; }
.summary__body { padding: 8px 24px; max-height: 300px; overflow-y: auto; }
.summary__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.summary__line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary__line:last-child { border-bottom: 0; }
.summary__thumb { width: 58px; height: 70px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; flex: 0 0 58px; }
.summary__info { flex: 1; min-width: 0; }
.summary__name { font: 500 13.5px/1.4 'Jost', sans-serif; color: var(--ink); display: block; text-decoration: none; }
.summary__meta { font: 400 12px 'Jost', sans-serif; color: var(--muted); }
.summary__price { font: 500 13.5px 'Jost', sans-serif; color: var(--ink); white-space: nowrap; }
.summary__rows { display: grid; gap: 9px; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; font: 400 13.5px 'Jost', sans-serif; color: var(--ink-soft); }
.summary__row.is-total {
  border-top: 1px solid var(--line); padding-top: 13px; margin-top: 5px;
  font: 500 17px 'Jost', sans-serif; color: var(--ink);
}
.summary__row--save { color: #2a7040; }

.coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon input {
  flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line);
  font: 400 13px 'Jost', sans-serif; text-transform: uppercase;
}
.coupon input:focus { outline: 0; border-color: var(--gold); }
.coupon__applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; background: #f3f8f4; border: 1px solid #cbe3d4;
  font: 400 12.5px 'Jost', sans-serif; color: #2a7040; margin-bottom: 16px;
}
.coupon__applied a { color: #8e3320; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .18s, background .18s;
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option input { margin-top: 3px; accent-color: var(--ink); }
.pay-option:has(input:checked) { border-color: var(--gold); background: #fdfaf2; }
.pay-option.is-selected { border-color: var(--gold); background: #fdfaf2; }
.pay-option__title { font: 500 14px 'Jost', sans-serif; color: var(--ink); display: block; }
.pay-option__title svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; }
.pay-option__note { font: 400 12.5px/1.55 'Jost', sans-serif; color: var(--muted); display: block; }
.pay-panel {
  margin: -4px 0 4px; padding: 16px 18px; background: var(--cream);
  border: 1px solid var(--line); font: 400 13px/1.7 var(--font-body); color: var(--ink-soft);
}
.pay-panel__account { display: grid; gap: 3px; font: 500 13.5px/1.6 'Jost', sans-serif; color: var(--ink); margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.pay-panel__account small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------- 09. order detail */
.order-hero { border: 1px solid var(--line); background: #fff; padding: 32px; margin-bottom: 28px; }
.order-hero__no { font: 400 12px 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.order-hero h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 8px 0 10px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line-strong);
}
.timeline li.is-done::before { background: var(--gold); border-color: var(--gold); }
.timeline__label { font: 500 13.5px 'Jost', sans-serif; color: var(--ink); }
.timeline__meta { font: 400 12px 'Jost', sans-serif; color: var(--muted); }

.success-panel { text-align: center; padding: 56px 30px; border: 1px solid var(--line); background: #fff; }
.success-panel__icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: #e5f5e9; color: #2a7040;
}
.success-panel__icon svg { width: 34px; height: 34px; }
.success-panel h1 { font-family: var(--font-display); font-size: 38px; font-weight: 400; margin: 0 0 10px; }
.success-panel p { font: 400 15px/1.7 var(--font-body); color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; }
.success-panel__order {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 30px;
  border: 1px solid var(--gold); background: #fdfaf2; margin-bottom: 26px;
}
.success-panel__order span { font: 500 10.5px 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.success-panel__order b { font: 500 20px 'Jost', sans-serif; letter-spacing: .06em; color: var(--ink); }
.success-panel__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.creds-box {
  max-width: 520px; margin: 0 auto 28px; padding: 22px 26px; text-align: left;
  border: 1px dashed var(--gold); background: #fdfaf2;
}
.creds-box h4 { font: 500 12px 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.creds-box__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font: 400 13.5px 'Jost', sans-serif; }
.creds-box__row:last-child { border-bottom: 0; }
.creds-box__row b { color: var(--ink); font-weight: 500; letter-spacing: .04em; }
.creds-box p { font: 400 12.5px/1.6 'Jost', sans-serif; color: var(--muted); margin: 14px 0 0; }

/* ------------------------------------------------------- 10. content pages */
.page-hero { padding: 60px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 400; margin: 0 0 10px; }
.page-hero p { font: 400 15px/1.7 var(--font-body); color: var(--muted); margin: 0; max-width: 620px; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 36px 0 12px; }
.prose h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 26px 0 8px; }
.prose p { font: 400 15px/1.85 var(--font-body); color: var(--ink-soft); margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { font: 400 15px/1.8 var(--font-body); color: var(--ink-soft); margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose em { font-style: italic; color: var(--ink-soft); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }
.prose a:hover { border-bottom-color: var(--gold-deep); }

/* Guide tables (shipping windows, metres per outfit) share the shop table look. */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font: 400 14px/1.5 var(--font-body); }
.prose th {
  text-align: left; font: 600 10px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 0 14px 12px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.prose td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Sibling links between content pages. */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pill--link {
  display: inline-flex; align-items: center; text-decoration: none;
  font: 500 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px;
  background: #fff; transition: border-color var(--t), color var(--t);
}
.pill--link:hover { border-color: var(--gold); color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 42px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); background: #fff; padding: 22px; }
.contact-card + .contact-card { margin-top: 14px; }
.contact-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0 0 8px; }
.contact-card p, .contact-card a { font: 400 13.5px/1.75 var(--font-body); color: var(--ink-soft); margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.contact-card svg { width: 17px; height: 17px; color: var(--gold-deep); flex: 0 0 17px; margin-top: 3px; }

.track-box { display: grid; gap: 14px; }
.track-result { border: 1px solid var(--gold); background: #fdfaf2; padding: 22px; margin-top: 20px; }

/* ================================================================= 11. ADMIN */
/* The control panel loads app.css only, so it needs its own small reset —
   style.css owns the storefront reset and is deliberately not pulled in. */
.admin-body, .admin-body body { margin: 0; padding: 0; }
.admin-body *, .admin-body *::before, .admin-body *::after { box-sizing: border-box; }
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4, .admin-body p,
.admin-body dl, .admin-body dd, .admin-body figure { margin: 0; }
.admin-body ul, .admin-body ol { margin: 0; padding: 0; list-style: none; }
.admin-body table { border-collapse: collapse; width: 100%; }
.admin-body img { display: block; max-width: 100%; height: auto; }
.admin-body button, .admin-body input, .admin-body select, .admin-body textarea { font: inherit; color: inherit; }
.admin-body a { color: inherit; text-decoration: none; }
.admin-body a:hover { color: inherit; }

.admin-body { background: #0f0f11; color: #e9e5dd; font-family: var(--font-body); }
.admin-body a { color: inherit; text-decoration: none; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  background: #141416; border-right: 1px solid #26262a; padding: 22px 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (max-width: 900px) { .admin-side { position: static; height: auto; } }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 22px 24px; border-bottom: 1px solid #26262a; margin-bottom: 18px; }
.admin-brand__mark { width: 38px; height: 38px; border-radius: 9px; background: #c9a227; color: #141416; display: grid; place-items: center; font: 600 14px/1 'Jost', sans-serif; letter-spacing: .03em; }
img.admin-brand__logo { display: block; height: 32px; width: auto; max-width: 100%; filter: brightness(0) invert(1); }
.admin-brand__text strong { display: block; font: 500 14px/1.3 'Jost', sans-serif; color: #f6f2ea; }
.admin-brand__text span { display: block; font: 400 10px/1.4 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #7d7d82; }

.admin-nav { list-style: none; margin: 0; padding: 0 12px; flex: 1; }
.admin-nav__label { font: 500 9.5px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #62626a; padding: 16px 10px 8px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 6px; font: 400 13.5px 'Jost', sans-serif; color: #b4b4ba; margin-bottom: 1px; transition: background .16s, color .16s; }
.admin-nav a svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .8; }
.admin-nav a:hover { background: #1c1c1f; color: #f6f2ea; }
.admin-nav a.is-active { background: rgba(201, 162, 39, .13); color: #e6c86a; font-weight: 500; }
.admin-nav a.is-active svg { opacity: 1; }
.admin-nav__badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #c9a227; color: #141416; display: grid; place-items: center; font: 600 10.5px/1 'Jost', sans-serif; }
.admin-side__foot { padding: 16px 22px 0; border-top: 1px solid #26262a; margin-top: 14px; }
.admin-side__foot a { display: flex; align-items: center; gap: 10px; font: 400 12.5px 'Jost', sans-serif; color: #8d8d93; padding: 7px 0; }
.admin-side__foot a:hover { color: #f6f2ea; }
.admin-side__foot svg { width: 16px; height: 16px; }
.admin-side__logout {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 0; background: none; border: 0; cursor: pointer;
  font: 400 12.5px 'Jost', sans-serif; color: #8d8d93;
}
.admin-side__logout:hover { color: #f6f2ea; }

.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-top h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 0 0 4px; color: #f6f2ea; }
.admin-top p { font: 400 13px 'Jost', sans-serif; color: #85858b; margin: 0; }

.admin-card { background: #17171a; border: 1px solid #26262a; padding: 22px; margin-bottom: 20px; }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #26262a; }
.admin-card__head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0; color: #f6f2ea; }
.admin-card__head p { font: 400 12.5px 'Jost', sans-serif; color: #85858b; margin: 4px 0 0; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-stat { background: #17171a; border: 1px solid #26262a; padding: 20px; position: relative; overflow: hidden; }
.admin-stat::after { content: ''; position: absolute; right: -18px; top: -18px; width: 74px; height: 74px; border-radius: 50%; background: rgba(201, 162, 39, .07); }
.admin-stat__label { font: 500 9.5px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #6e6e75; }
.admin-stat__value { font-family: var(--font-display); font-size: 34px; font-weight: 400; color: #f6f2ea; margin-top: 9px; line-height: 1; }
.admin-stat__meta { font: 400 12px 'Jost', sans-serif; color: #85858b; margin-top: 6px; }
.admin-stat__meta.is-up { color: #6fc287; }
.admin-stat__meta.is-down { color: #e08a72; }

.admin-table { width: 100%; border-collapse: collapse; font: 400 13px 'Jost', sans-serif; }
.admin-table th { text-align: left; padding: 11px 13px; background: #1d1d20; color: #8d8d93; font: 500 9.5px/1.4 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid #26262a; white-space: nowrap; }
.admin-table td { padding: 13px; border-bottom: 1px solid #212124; color: #c3c3c8; vertical-align: middle; }
.admin-table tbody tr:hover td { background: #1b1b1e; }
.admin-table__thumb { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid #2c2c31; }
.admin-table a { color: #e6c86a; }
.admin-table__actions { display: flex; gap: 6px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.admin-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px;
  background: #c9a227; color: #141416; border: 0; border-radius: 5px; cursor: pointer;
  font: 500 13px 'Jost', sans-serif; letter-spacing: .01em; transition: filter .16s;
}
.admin-btn:hover { filter: brightness(1.09); }
.admin-btn svg { width: 15px; height: 15px; }
.admin-btn--ghost { background: transparent; color: #d6d6da; border: 1px solid #35353b; }
.admin-btn--ghost:hover { background: #202024; color: #f6f2ea; }
.admin-btn--danger { background: #b4472f; color: #fff; }
.admin-btn--sm { padding: 7px 12px; font-size: 12px; }
.admin-btn[disabled] { opacity: .5; pointer-events: none; }

.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font: 500 9.5px/1 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6e6e75; margin-bottom: 7px; }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%; padding: 11px 13px; background: #1d1d20; border: 1px solid #2e2e33;
  color: #e9e5dd; font: 400 13.5px 'Jost', sans-serif; transition: border-color .16s;
}
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { outline: 0; border-color: #c9a227; }
.admin-field textarea { min-height: 110px; resize: vertical; }
.admin-field select option { background: #1d1d20; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.admin-hint { font: 400 11.5px/1.6 'Jost', sans-serif; color: #6e6e75; margin-top: 6px; }
.admin-error { font: 400 11.5px/1.6 'Jost', sans-serif; color: #e08a72; margin-top: 6px; }
.admin-field .req { color: #c9a227; }
.admin-check { display: flex; align-items: center; gap: 9px; font: 400 13px 'Jost', sans-serif; color: #c3c3c8; padding: 6px 0; }
.admin-check input { accent-color: #c9a227; width: 15px; height: 15px; }
/* Errors tint the control itself, so a long form is scannable without hunting. */
.admin-field.has-error input, .admin-field.has-error select, .admin-field.has-error textarea { border-color: rgba(224, 138, 114, .55); }
.admin-field.has-error label { color: #e08a72; }

.admin-alert { padding: 13px 17px; border-radius: 6px; font: 400 13px/1.6 'Jost', sans-serif; margin-bottom: 18px; display: flex; gap: 11px; align-items: flex-start; }
.admin-alert svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.admin-alert--ok { background: rgba(79, 157, 105, .13); border: 1px solid rgba(79, 157, 105, .34); color: #8fd0a2; }
.admin-alert--bad { background: rgba(180, 71, 47, .13); border: 1px solid rgba(180, 71, 47, .34); color: #e8a08c; }
.admin-alert--info { background: rgba(201, 162, 39, .12); border: 1px solid rgba(201, 162, 39, .3); color: #e6c86a; }
.admin-alert--warn { background: rgba(201, 162, 39, .1); border: 1px solid rgba(201, 162, 39, .34); color: #e6c86a; }
.admin-alert--warn code,
.admin-alert--info code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px;
  padding: 1px 5px; background: rgba(0, 0, 0, .3); color: #f0e3b4;
}

/* Pass/fail list for the read-only server checks on the settings screen. */
.admin-checks { display: grid; gap: 1px; background: #2c2c31; border: 1px solid #2c2c31; }
.admin-check-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #1d1d20;
}
.admin-check-row__mark { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; }
.admin-check-row__mark svg { width: 15px; height: 15px; }
.admin-check-row__mark.is-ok { color: #6fae84; }
.admin-check-row__mark.is-bad { color: #d2705a; }
.admin-check-row__label { font: 400 13px/1.3 'Jost', sans-serif; color: #d5d5da; }
.admin-check-row__detail {
  margin-left: auto; font: 400 12px/1.3 'SFMono-Regular', Consolas, monospace; color: #6e6e75;
  text-align: right;
}
@media (max-width: 560px) {
  .admin-check-row { flex-wrap: wrap; }
  .admin-check-row__detail { margin-left: 32px; }
}

/* Homepage editor (admin/home.php) — repeatable rows and icon pickers. */
.home-repeat__rows { display: flex; flex-direction: column; gap: 14px; }
.home-repeat__row { border: 1px solid #28282d; border-radius: 12px; padding: 16px; background: #131316; }
.home-repeat__row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.home-repeat__cap {
  font: 600 11px/1 'Jost', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #c9a227; background: #1b1b1f; border: 1px solid #2a2a2e; border-radius: 999px; padding: 6px 11px;
}
.icon-pick { display: flex; align-items: center; gap: 9px; }
.icon-pick__preview { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #26262a; border-radius: 8px; background: #17171a; }
.icon-pick__preview svg { width: 17px; height: 17px; color: #e6c86a; }
.home-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.home-subblock { padding: 14px 0; border-top: 1px dashed #28282d; }
.home-subblock:first-of-type { border-top: 0; padding-top: 0; }
.home-subblock__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.home-subblock__head strong { font: 500 12px 'Jost', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #c3c3c8; }
.home-subblock__head span { font: 400 12px 'Jost', sans-serif; color: #6e6e75; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login__card { width: 100%; max-width: 420px; background: #17171a; border: 1px solid #26262a; padding: 40px; }
.admin-login__card h1 { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: #f6f2ea; margin: 18px 0 6px; }
.admin-login__card p { font: 400 13px 'Jost', sans-serif; color: #85858b; margin: 0 0 28px; }

.swatches-editor { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #1d1d20; border: 1px solid #2e2e33; font: 400 12.5px 'Jost', sans-serif; color: #c3c3c8;
}
.swatch-row i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #3a3a40; flex: 0 0 20px; }
.swatch-row button { background: none; border: 0; color: #8d8d93; cursor: pointer; padding: 2px; display: grid; place-items: center; }
.swatch-row button:hover { color: #e08a72; }
.swatch-row button svg { width: 15px; height: 15px; }

/* Inline "add one more" strip under a child table — the reason each colour and
   length gets its own POST instead of one giant multi-section form. */
.admin-inline-add {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #26262a;
}
.admin-inline-add .admin-btn { flex: 0 0 auto; height: 41px; }
.admin-inline-add input[type="file"] {
  padding: 9px 10px; background: #1d1d20; border: 1px dashed #35353b; color: #85858b;
  font: 400 12px 'Jost', sans-serif; max-width: 210px; cursor: pointer;
}
.admin-inline-add input[type="file"]::file-selector-button {
  background: #26262a; border: 0; color: #c3c3c8; font: 400 11.5px 'Jost', sans-serif;
  padding: 6px 10px; margin-right: 10px; cursor: pointer;
}

.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 8px; }
.dash-chart__bar { flex: 1; background: linear-gradient(180deg, #c9a227, #8a6f16); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.dash-chart__bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font: 400 10.5px 'Jost', sans-serif; color: #6e6e75; }

/* Admin chrome that only the panel needs. */
.admin-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 10px; max-width: 380px; }
@media (max-width: 640px) { .admin-toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; } }

.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-filter input, .admin-filter select {
  padding: 9px 12px; background: #1d1d20; border: 1px solid #2e2e33; color: #e9e5dd;
  font: 400 13px 'Jost', sans-serif; min-width: 150px;
}
.admin-filter input:focus, .admin-filter select:focus { outline: 0; border-color: #c9a227; }
.admin-filter__search { flex: 1 1 220px; display: flex; }
.admin-filter__search input { width: 100%; }
.admin-filter select { cursor: pointer; }

.admin-pagination { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.admin-pagination__label { font: 400 12.5px 'Jost', sans-serif; color: #85858b; }
.admin-btn.is-disabled { opacity: .38; pointer-events: none; }

.admin-empty { text-align: center; padding: 54px 20px; color: #6e6e75; font: 400 13.5px/1.7 'Jost', sans-serif; }
.admin-empty svg { width: 30px; height: 30px; opacity: .45; margin-bottom: 12px; }

.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid #26262a; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs a {
  padding: 10px 15px; font: 500 11px 'Jost', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #8d8d93; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tabs a:hover { color: #e9e5dd; }
.admin-tabs a.is-active { color: #e6c86a; border-bottom-color: #c9a227; }

.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
/* Grid items default to min-width:auto, which lets a wide table push the whole
   panel sideways instead of scrolling inside its own .table-scroll. */
.admin-split > * { min-width: 0; }
@media (max-width: 1100px) { .admin-split { grid-template-columns: minmax(0, 1fr); } }

.admin-inline-form { display: inline-flex; gap: 6px; align-items: center; }
.admin-inline-form select { padding: 6px 9px; background: #1d1d20; border: 1px solid #2e2e33; color: #e9e5dd; font: 400 12px 'Jost', sans-serif; }

.admin-dropzone {
  border: 1px dashed #35353b; padding: 26px; text-align: center; color: #6e6e75;
  font: 400 12.5px/1.6 'Jost', sans-serif; cursor: pointer;
}
.admin-dropzone:hover, .admin-dropzone.is-over { border-color: #c9a227; color: #e6c86a; }
.admin-dropzone input { display: none; }

.admin-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.admin-img-grid figure { position: relative; border: 1px solid #2c2c31; background: #1d1d20; }
.admin-img-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.admin-img-grid button {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 4px; border: 0;
  background: rgba(15, 15, 17, .82); color: #e8a08c; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.admin-img-grid button:hover { background: #b4472f; color: #fff; }
.admin-img-grid button svg { width: 14px; height: 14px; }
.admin-img-grid .is-primary { box-shadow: 0 0 0 2px #c9a227 inset; }
/* Stands in for a slot that has no image yet, so the grid keeps its rhythm. */
.admin-tile-empty {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  font: 400 10.5px 'Jost', sans-serif; color: #55555c; background: #191a1d;
}

/* Usage-limit bar: how much of a coupon's allowance is gone. */
.admin-meter {
  height: 3px; border-radius: 2px; background: #2e2e33; margin-top: 6px;
  overflow: hidden; max-width: 90px;
}
.admin-meter i { display: block; height: 100%; background: #c9a227; }
.admin-meter.is-full i { background: #b4472f; }

/* Source breakdown: one tile per place an address was gathered. */
.admin-source-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.admin-source {
  display: block; padding: 15px 16px; border: 1px solid #2c2c31; background: #1d1d20;
  color: inherit; text-decoration: none; transition: border-color .16s, background .16s;
}
.admin-source:hover { border-color: #3d3d44; background: #202024; }
.admin-source.is-active { border-color: #c9a227; background: rgba(201, 162, 39, .06); }
.admin-source__n {
  display: block; font: 300 26px/1 'Cormorant Garamond', Georgia, serif; color: #e9e5dd;
}
.admin-source__label {
  display: block; margin-top: 5px; font: 500 12px/1.3 'Jost', sans-serif; color: #b9b9bf;
}
.admin-source__hint { display: block; margin-top: 3px; font: 400 11px/1.4 'Jost', sans-serif; color: #6e6e75; }

.admin-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; font: 400 13px/1.6 'Jost', sans-serif; }
.admin-kv dt { color: #6e6e75; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.admin-kv dd { margin: 0; color: #c3c3c8; overflow-wrap: anywhere; }

/* Money summary under an order's item table. The total row is the one thing an
   operator must be able to find without scanning. */
.admin-totals {
  margin: 20px 0 0; padding: 16px 18px 0; border-top: 1px solid #26262a;
  grid-template-columns: minmax(0, 1fr) auto; justify-content: end;
}
.admin-totals dt, .admin-totals dd { text-align: right; }
.admin-totals dt { padding-top: 5px; }
.admin-kv__total {
  margin-top: 10px; padding-top: 13px; border-top: 1px solid #2e2e33;
  font-family: var(--font-display); font-size: 19px; color: #f6f2ea; letter-spacing: .01em;
}
.admin-kv__total dt { padding-top: 15px; }
.admin-totals .admin-kv__total dt, .admin-totals .admin-kv__total dd { grid-column: auto; }

/* Pill rows in a dense table read left-aligned, not centred like a footer. */
.admin-body .pill-row { justify-content: flex-start; gap: 5px; }
.admin-body .pill-row .pill { font-size: 10.5px; padding: 3px 8px; }

/* A label plus its supporting value, side by side inside one table cell. */
.admin-cell { display: flex; align-items: center; gap: 11px; }
.admin-cell > span:last-child { min-width: 0; }

/* Two-letter monogram so a list of names reads as people, not rows. */
.admin-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #232327; border: 1px solid #2e2e33; color: #e6c86a;
  font: 500 12px/1 'Jost', sans-serif; letter-spacing: .04em;
}
.admin-avatar--lg { width: 52px; height: 52px; font-size: 17px; }
.admin-avatar--sm { width: 26px; height: 26px; font-size: 10.5px; }
/* Circular thumbnail for a portrait in a dense table. */
.admin-table__thumb--round { width: 34px; height: 34px; border-radius: 50%; }

/* Two columns on wide screens, stacked below — used where a form's fields
   should sit side by side without becoming a two-pane page. */
.admin-split-flat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 20px; margin-bottom: 18px;
}
@media (max-width: 720px) { .admin-split-flat { grid-template-columns: minmax(0, 1fr); } }

/* File input beside a thumbnail, so the current image stays visible. */
.admin-upload-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.admin-upload-row input[type="file"] { flex: 1 1 200px; min-width: 0; }
.admin-upload-preview {
  width: 52px; height: 52px; object-fit: cover; border-radius: 50%;
  border: 1px solid #2e2e33; background: #1d1d20; flex: 0 0 auto;
}

/* Name, monogram and join date as one block at the top of a customer record. */
.admin-profile { display: flex; align-items: center; gap: 14px; }

/* Address book: fixed columns so two short addresses do not leave a gap. */
.admin-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.admin-address-grid .admin-note-line { margin-bottom: 0; }

/* Order history: a plain vertical list, newest first, one pill per event. */
.admin-timeline { list-style: none; margin: 0; padding: 0; }
.admin-timeline li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px;
  align-items: center; padding: 11px 0; border-bottom: 1px solid #1f1f23;
}
.admin-timeline li:last-child { border-bottom: 0; }
.admin-timeline__note { font: 400 13px/1.5 'Jost', sans-serif; color: #c3c3c8; }
.admin-timeline__meta {
  grid-column: 2; font: 400 11.5px/1.5 'Jost', sans-serif; color: #6e6e75;
}
.admin-timeline li > .pill { justify-self: start; }

/* A saved address or a customer note, set apart from the form fields. */
.admin-note-line {
  font: 400 12.5px/1.6 'Jost', sans-serif; color: #8d8d93;
  padding: 10px 13px; background: #1a1a1e; border-left: 2px solid #2e2e33; margin-bottom: 8px;
}
.admin-note-line.is-default { border-left-color: #c9a227; }
.admin-note-line strong { color: #c3c3c8; font-weight: 500; }
.admin-quote {
  margin: 0; padding: 12px 14px; background: #1a1a1e; border-left: 2px solid #c9a227;
  font: 400 13px/1.7 'Jost', sans-serif; color: #c3c3c8;
}

.admin-mono { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; color: #e6c86a; }

.admin-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: -4px; padding: 14px 18px; border: 1px solid #26262a; background: #17171a;
  font: 400 12px 'Jost', sans-serif; color: #6e6e75;
}
.admin-bulk > span { margin-right: 4px; letter-spacing: .12em; text-transform: uppercase; font-size: 9.5px; }
.admin-bulk__label { display: flex; align-items: center; gap: 8px; color: #8d8d93; }
.admin-bulk__sep { width: 1px; height: 20px; background: #2e2e33; margin: 0 6px; }
.admin-bulk__hint { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; color: #6e6e75; }

/* Counter badges inside the status tabs. */
.admin-tabs__count {
  margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #232327;
  font: 500 11px/1.6 'Jost', sans-serif; color: #85858b; letter-spacing: 0;
}
.admin-tabs a.is-active .admin-tabs__count { background: rgba(201, 162, 39, .2); color: #e6c86a; }

.admin-table input[type="checkbox"] { accent-color: #c9a227; width: 15px; height: 15px; cursor: pointer; }

/* Status pills are light-on-cream for the storefront; in the dark panel the
   same meaning needs a tinted-on-charcoal treatment to stay readable. */
.admin-body .pill {
  background: #222226; color: #a5a5ab; border-color: #2e2e33;
}
/* A pill can carry a small icon (payment events in the order timeline). */
.admin-body .pill svg { width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; }
.pill--neutral { background: #222226; color: #a5a5ab; border-color: #2e2e33; }
.admin-body .pill--pending   { background: rgba(201,162,39,.16);  color: #e6c86a; border-color: rgba(201,162,39,.4); }
.admin-body .pill--confirmed { background: rgba(66,133,200,.16);  color: #8cc0f0; border-color: rgba(66,133,200,.4); }
.admin-body .pill--packed    { background: rgba(122,96,204,.18); color: #b6a6f0; border-color: rgba(122,96,204,.4); }
.admin-body .pill--shipped   { background: rgba(47,142,120,.18); color: #6fcebb; border-color: rgba(47,142,120,.42); }
.admin-body .pill--delivered { background: rgba(79,157,105,.18); color: #8fd0a2; border-color: rgba(79,157,105,.42); }
.admin-body .pill--paid      { background: rgba(79,157,105,.18); color: #8fd0a2; border-color: rgba(79,157,105,.42); }
.admin-body .pill--cancelled { background: rgba(180,71,47,.18);  color: #e8a08c; border-color: rgba(180,71,47,.42); }
.admin-body .pill--failed    { background: rgba(180,71,47,.18);  color: #e8a08c; border-color: rgba(180,71,47,.42); }
.admin-body .pill--returned,
.admin-body .pill--inactive  { background: #222226; color: #8d8d93; border-color: #2e2e33; }
.admin-body .pill--active,
.admin-body .pill--auto      { background: rgba(201,162,39,.16); color: #e6c86a; border-color: rgba(201,162,39,.4); }

/* ---------------------------------------------------------- 12. accessibility */
.mobile-nav__link--btn {
  width: 100%; text-align: left; background: none; cursor: pointer;
  font: inherit; color: inherit; border: 0; appearance: none;
}
.mobile-nav__link--btn:hover { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .flash { animation: none; }
  .filter-drawer__panel { transition: none; }
}