/* Bazaar Store, citrus theme. Storefront and back office share the shell from
   arvion.css; this file adds the commerce components and the two layouts. */

:root {
  --shop-max: 1220px;
  --card-radius: 16px;
  --soft-shadow: 0 20px 48px -38px rgba(60, 35, 10, 0.55), 0 2px 5px -3px rgba(60, 35, 10, 0.12);
  --display: var(--font-display);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
}

body.cart-open {
  overflow: hidden;
}

.aurora {
  opacity: 0.65;
}

/* ------------------------------------------------------------ storefront -- */

.storefront {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shop-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.shop-brand:hover {
  text-decoration: none;
}

.theme-citrus .shop-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, #ef8130, #cb5417);
  border-color: #b84f13;
  box-shadow: 0 8px 18px -12px rgba(160, 68, 12, 0.75);
  color: #fff9f0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.shop-brand .brand-word {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.shop-brand .brand-sub {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.shop-nav a {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.shop-nav a:hover {
  background: rgba(0, 0, 0, 0.045);
  text-decoration: none;
}

.shop-nav a.active {
  background: var(--gold-soft);
  color: var(--gold);
}

.bar-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.shop-search {
  position: relative;
  flex: 0 1 380px;
  max-width: 380px;
  margin-left: 16px;
}

.shop-search .input {
  background: rgba(255, 255, 255, 0.8);
  padding-left: 36px;
}

.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--muted);
  opacity: 0.9;
  pointer-events: none;
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: 8px;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-main {
  width: 100%;
  max-width: var(--shop-max);
  margin: 0 auto;
  padding: 24px 32px 64px;
  flex: 1;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 40px;
  align-items: center;
  padding: 24px 0 30px;
}

.eyebrow-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-orange::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.shop-hero h1 {
  max-width: 15ch;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(38px, 4.1vw, 53px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}

.shop-hero .hero-lede {
  max-width: 48ch;
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.hero-note .dot {
  background: var(--green);
}

.hero-collage {
  position: relative;
  height: 290px;
}

.hero-tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.hero-tile .art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-tile.tile-a {
  left: 4%;
  top: 22px;
  width: 58%;
  height: 200px;
  transform: rotate(-6deg);
  z-index: 2;
}

.hero-tile.tile-b {
  right: 0;
  top: 0;
  width: 46%;
  height: 152px;
  transform: rotate(5deg);
  z-index: 1;
}

.hero-tile.tile-c {
  right: 8%;
  bottom: 0;
  width: 52%;
  height: 174px;
  transform: rotate(-2deg);
  z-index: 3;
}

.hero-stamp {
  position: absolute;
  left: 0;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px -18px rgba(60, 35, 10, 0.5);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}

.hero-stamp .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.chip:hover {
  background: #fff;
  border-color: var(--gold-line);
}

.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fffaf2;
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.result-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sort-select {
  width: auto;
  padding: 8px 32px 8px 11px;
  font-size: 12.5px;
  background-color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------- products -- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 22px 44px -34px rgba(60, 35, 10, 0.6);
  outline: none;
}

.product-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-art .art-svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-art .art-svg {
  transform: scale(1.035);
}

.stock-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.stock-flag.low {
  color: var(--gold);
  border-color: var(--gold-line);
  background: #fff8ef;
}

.stock-flag.out {
  color: var(--muted);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px 15px;
  flex: 1;
}

.product-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  margin: 0;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.product-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.product-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.price {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.price .was {
  display: block;
  margin-bottom: 1px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.add-mini {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.add-mini:hover {
  background: var(--gold);
  color: #fff8ef;
}

.add-mini[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.shop-footer .sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

/* --------------------------------------------------------- product detail -- */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.crumb-sep {
  opacity: 0.55;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: start;
}

.detail-art {
  position: sticky;
  top: 94px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-art .art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-copy {
  padding-top: 4px;
}

.detail-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.detail-price .now {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  color: var(--text);
}

.detail-price .was {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-price .off {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
}

.detail-blurb {
  margin: 0 0 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.option-label span {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  font-size: 11px;
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text-2);
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
}

.variant-chip small {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--muted);
}

.variant-chip:hover {
  border-color: var(--gold-line);
}

.variant-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}

.variant-chip[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-2);
}

.stock-line .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
}

.stock-line.low .dot {
  background: var(--gold);
}

.stock-line.out .dot {
  background: var(--red);
}

.buy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  flex: none;
}

.qty-stepper button {
  width: 34px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: rgba(0, 0, 0, 0.045);
}

.qty-stepper span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.buy-row .btn {
  flex: 1;
}

.delivery-note {
  display: grid;
  gap: 7px;
  margin: 20px 0 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.delivery-note strong {
  color: var(--text);
}

.spec-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
}

.spec-row dt {
  color: var(--muted);
  font-weight: 600;
}

.spec-row dd {
  margin: 0;
  color: var(--text-2);
}

.related-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 48px 0 16px;
}

.related-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------ cart drawer -- */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(32, 20, 8, 0.34);
  backdrop-filter: blur(2px);
  animation: fade-in 0.18s var(--ease);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(438px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fffaf2;
  border-left: 1px solid var(--line-strong);
  box-shadow: -40px 0 80px -50px rgba(32, 20, 8, 0.6);
  animation: slide-in 0.22s var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(28px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.cart-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.cart-head .cart-head-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.cart-head .btn {
  margin-left: auto;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 4px 20px 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.cart-thumb .art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-line-name {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.cart-line-variant {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.cart-line-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.qty-stepper.sm button {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.qty-stepper.sm span {
  min-width: 24px;
  font-size: 12px;
}

.cart-line-total {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.cart-remove {
  margin-top: 9px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-remove:hover {
  color: var(--red);
}

.cart-promo {
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--line);
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row .input {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12.5px;
  background: #fff;
}

.promo-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.promo-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px dashed var(--gold-line);
  border-radius: 9px;
  background: var(--gold-soft);
  font-size: 12px;
  color: var(--text-2);
}

.promo-applied strong {
  color: var(--gold);
}

.promo-applied .btn {
  margin-left: auto;
}

.ship-meter {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}

.ship-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: var(--text-2);
}

.ship-label strong {
  color: var(--green);
}

.progress.orange > i {
  background: linear-gradient(90deg, #ef8b3e, var(--gold));
}

.ship-note {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--muted);
}

.cart-summary {
  padding: 14px 0 4px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.summary-row .label {
  color: var(--muted);
}

.summary-row.discount {
  color: var(--green);
}

.summary-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.cart-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fffaf2;
}

.cart-foot .btn.lg {
  width: 100%;
}

.cart-foot-note {
  margin-top: 8px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
}

.cart-empty {
  padding: 52px 16px;
  text-align: center;
}

.cart-empty h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 19px;
}

.cart-empty p {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* -------------------------------------------------------------- checkout -- */

.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 26px;
  align-items: start;
  padding-top: 6px;
}

.panel-card {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-heading .step {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.field-error {
  color: var(--red);
  font-size: 10.5px;
  font-weight: 500;
}

label.field.invalid .input,
label.field.invalid .select {
  border-color: var(--red);
}

.pay-list {
  display: grid;
  gap: 8px;
}

.pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.pay-card:hover {
  border-color: var(--gold-line);
}

.pay-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.pay-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-2);
  flex: none;
}

.pay-card.active .pay-mark {
  border-color: var(--gold-line);
  color: var(--gold);
}

.pay-copy strong {
  display: block;
  font-size: 12.5px;
  color: var(--text);
}

.pay-copy small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.pay-check {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
}

.pay-card.active .pay-check {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #fffaf2;
}

.checkout-summary {
  position: sticky;
  top: 90px;
}

.cart-mini-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.cart-mini-thumb {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}

.cart-mini-thumb .art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-mini-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.cart-mini-meta {
  font-size: 10.5px;
  color: var(--muted);
}

.cart-mini-price {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkout-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(217, 99, 30, 0.07);
  border: 1px solid var(--gold-line);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.place-order {
  width: 100%;
  margin-top: 14px;
}

.empty-page {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 28px;
}

.empty-page h1 {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 8px;
}

.empty-page p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------- confirmation -- */

.confirm-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 8px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(47, 125, 79, 0.25);
}

.confirm-wrap h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.confirm-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.order-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

.confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
}

.confirm-card {
  padding: 20px;
}

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

.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 16px 0;
  font-size: 12px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .tl-dot {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.timeline li.pending .tl-dot {
  background: var(--line-strong);
}

.timeline li.pending {
  color: var(--muted);
}

.timeline .tl-label {
  font-weight: 600;
  color: var(--text);
}

.timeline .tl-time {
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.confirm-items {
  margin-top: 14px;
}

.confirm-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

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

.confirm-item .qty {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.confirm-item .name {
  font-weight: 600;
}

.confirm-item .price {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- back office -- */

.app.shell.admin-shell {
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  height: auto;
}

.admin-shell .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px 16px;
  gap: 6px;
}

.admin-brand {
  padding: 2px 8px 18px;
}

.theme-citrus .admin-brand .brand-mark {
  background: linear-gradient(160deg, #ef8130, #cb5417);
  border-color: #b84f13;
  color: #fff9f0;
  font-family: var(--display);
}

.admin-brand .brand-word {
  font-family: var(--display);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.admin-sidebar .nav-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.admin-nav .nav-item {
  gap: 9px;
  font-size: 13px;
  padding: 9px 10px;
}

.admin-nav .nav-item.active {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.sidebar-summary {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
}

.sidebar-summary .label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-summary .value {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sidebar-summary .sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.sidebar-links a,
.sidebar-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 600 11.5px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.sidebar-links a:hover,
.sidebar-links button:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gold);
  text-decoration: none;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.admin-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.admin-crumbs strong {
  color: var(--text-2);
}

.admin-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-mobile-nav {
  display: none;
  gap: 4px;
}

.admin-main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 26px 56px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.admin-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.admin-head-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 15px 17px;
}

.stat-card .stat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card .stat-value {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card .stat-sub {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
}

.stat-card.warning {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, #fff8ee, #fff);
}

.stat-card.warning .stat-value {
  color: var(--gold);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.chart-card {
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
}

.card-head-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.card-head-row h2,
.card-head-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-head-row .sub {
  font-size: 10.5px;
  color: var(--muted);
}

.card-head-row .spacer {
  flex: 1;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
}

.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.revenue-chart .chart {
  width: 100%;
  height: auto;
}

.low-stock-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.low-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  flex: 1;
}

.low-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.low-row:last-child {
  border-bottom: 0;
}

.low-name {
  min-width: 0;
}

.low-name strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.low-name small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.low-count {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.low-count.critical {
  color: var(--red);
  border-color: rgba(179, 49, 31, 0.3);
  background: var(--red-soft);
}

.card-link {
  margin-top: 10px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  font: 600 11.5px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.orders-card,
.inventory-card {
  padding: 16px 18px 12px;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.orders-toolbar .select {
  width: auto;
  padding: 7px 30px 7px 10px;
  font-size: 12px;
}

.orders-toolbar .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.table-wrap.compact {
  max-height: 430px;
  overflow: auto;
}

.table .order-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

.table .customer-cell strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.table .customer-cell small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.02);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill[data-status="placed"] {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

.status-pill[data-status="packed"] {
  color: var(--blue);
  border-color: rgba(31, 111, 107, 0.3);
  background: var(--blue-soft);
}

.status-pill[data-status="shipped"] {
  color: var(--purple);
  border-color: rgba(122, 75, 138, 0.3);
  background: rgba(122, 75, 138, 0.08);
}

.status-pill[data-status="delivered"] {
  color: var(--green);
  border-color: rgba(47, 125, 79, 0.3);
  background: var(--green-soft);
}

.status-pill[data-status="cancelled"] {
  color: var(--muted);
}

.status-pill[data-status="refunded"] {
  color: var(--red);
  border-color: rgba(179, 49, 31, 0.3);
  background: var(--red-soft);
}

.order-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn.tiny {
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.2;
}

.closed-note {
  font-size: 10.5px;
  color: var(--muted);
}

.inventory-table td {
  vertical-align: middle;
}

.inv-product {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.inv-variant {
  font-size: 10.5px;
  color: var(--muted);
}

.stock-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.stock-num.low {
  color: var(--gold);
}

.stock-num.out {
  color: var(--red);
}

.adjust-group {
  display: inline-flex;
  gap: 4px;
}

.adjust-group .btn {
  min-width: 26px;
  padding: 4px 6px;
}

.inventory-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.inventory-note {
  padding: 10px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 9px;
  background: var(--gold-soft);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1240px) {
  .shop-main,
  .shop-bar {
    padding-left: 26px;
    padding-right: 26px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1140px) {
  .bar-note {
    display: none;
  }

  .shop-search {
    margin-left: auto;
  }
}

@media (max-width: 1080px) {
  .shop-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 24px;
  }

  .hero-collage {
    height: 250px;
  }

  .hero-tile.tile-a {
    width: 60%;
    height: 175px;
  }

  .hero-tile.tile-b {
    height: 130px;
  }

  .hero-tile.tile-c {
    height: 150px;
  }

  .app.shell.admin-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-nav,
  .shop-search,
  .bar-note {
    display: none;
  }

  .shop-bar {
    gap: 12px;
    height: 62px;
  }

  .product-grid,
  .product-grid.related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-hero h1 {
    max-width: 20ch;
  }

  .hero-collage {
    height: 240px;
    max-width: 460px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-art {
    position: static;
    max-width: 560px;
  }

  .checkout-page,
  .confirm-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .app.shell.admin-shell {
    display: block;
  }

  .admin-shell .sidebar {
    display: none;
  }

  .admin-mobile-nav {
    display: flex;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 16px 14px 48px;
  }

  .admin-topbar {
    padding: 0 14px;
    gap: 8px;
  }

  .admin-crumbs {
    display: none;
  }

  .admin-head h1 {
    font-size: 23px;
  }

  .shop-footer {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .shop-main {
    padding: 16px 16px 44px;
  }

  .shop-bar {
    padding: 0 16px;
  }

  .product-grid,
  .product-grid.related {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .cart-drawer {
    width: 100vw;
  }
}

/* The screenshot and recording runs hide transient chrome. */
.shot .cart-drawer,
.shot .cart-backdrop {
  animation: none;
}

/* Toasts should not sit on top of the cart's checkout button. */
body.cart-open .toasts {
  right: calc(min(438px, 100vw) + 18px);
  bottom: 20px;
}

@media (max-width: 640px) {
  body.cart-open .toasts {
    right: 16px;
    bottom: 106px;
  }
}
