@font-face {
  font-family: "Bristol";
  src: url("../fonts/Bristol.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #101317;
  --ink-soft: #1a1f25;
  --paper: #f4f4f5;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e5e7eb;
  --line-dark: rgba(255, 255, 255, .09);
  --accent: #4b5563;
  --accent-dark: #111827;
  --green: #2d7d5d;
  --green-soft: #e5f2ec;
  --amber: #475569;
  --amber-soft: #e2e8f0;
  --red: #a43f35;
  --red-soft: #f8e9e6;
  --muted: #6d706e;
  --sidebar-width: 268px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(22, 25, 29, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-nav-open { overflow: hidden; }
html:not([data-admin="true"]) .eyebrow { display: none; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.brand-wordmark {
  font-family: "Bristol", "Segoe Print", cursive !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  line-height: 1 !important;
  text-transform: lowercase !important;
}
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.shell { width: min(1180px, calc(100% - 32px)); margin: auto; }
.stack { display: grid; gap: 16px; }

/* Store and authentication pages */
.site-announcement {
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 245, .96);
  backdrop-filter: blur(18px);
}
.site-header .shell {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.brand {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
  text-transform: none;
}
.brand .brand-wordmark { font-size: 1.28em; }
.site-desktop-nav, .site-account-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-desktop-nav a, .site-account-nav a {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.site-desktop-nav a:hover, .site-account-nav a:hover { color: var(--accent); }
.site-account-nav { justify-self: end; }
.header-signout-form { display: contents; }
.header-signout-form button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-signout-form button:hover { background: transparent; color: var(--accent); transform: none; }
.site-account-nav .account-link {
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.site-account-nav .account-link:hover { border-color: var(--accent); }
.cart-link {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--ink);
}
.cart-link > i, .cart-link > svg { width: 20px; height: 20px; }
.cart-link span {
  position: absolute;
  top: 1px;
  right: -2px;
  display: grid;
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .56rem;
  line-height: 1;
}
.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.site-menu-toggle span { display: block; width: 17px; height: 1px; background: var(--ink); }
.site-menu-toggle span + span { margin-top: 5px; }
.site-mobile-nav { display: none; }
.page { padding: 56px 0 96px; }
.page h1 { letter-spacing: -.05em; }
.hero { padding: 80px 0; }
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .9;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.hero p { max-width: 620px; color: var(--muted); font-size: 1.1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #eaeaea;
  object-fit: cover;
}
.form { max-width: 680px; }
.form label { display: grid; gap: 7px; color: #414541; font-size: .84rem; font-weight: 700; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d4d3ce;
  border-radius: var(--radius-sm);
  outline: 0;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 85, 99, .12);
}
.form textarea { min-height: 130px; resize: vertical; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 760;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button:hover, button:hover { background: var(--accent); transform: translateY(-1px); }
.site-header .site-menu-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.site-header .site-menu-toggle:hover {
  background: #eceef0;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button.secondary:hover { border-color: #cbc8bf; background: var(--surface-soft); }
.notice { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row div { display: grid; gap: 4px; }
.cart-controls { display: flex !important; grid-auto-flow: column; align-items: center; }
.cart-controls button { min-height: auto; padding: 7px 12px; font-size: .75rem; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.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;
}
.shop-hero { padding: 38px 0 30px; border-bottom: 1px solid var(--line); }
.shop-hero h1 {
  max-width: 900px;
  margin: 0 0 13px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .86;
  text-transform: uppercase;
}
.shop-hero > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.category-chips {
  display: flex;
  gap: 9px;
  margin: 26px 0;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chips a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.category-chips a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}
.shop-toolbar label { display: grid; gap: 6px; }
.shop-toolbar label > span:not(.sr-only) {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.shop-toolbar input, .shop-toolbar select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d5d3cc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}
.shop-toolbar input:focus, .shop-toolbar select:focus { border-color: var(--accent); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 18px;
}
.catalog-empty {
  padding: 70px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.catalog-empty h2, .catalog-empty p { margin-top: 0; }
.catalog-empty p { color: var(--muted); }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 0; border: 0; background: transparent; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: #e7e7e2;
}
.product-image-link { display: block; width: 100%; height: 100%; }
.product-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  filter: grayscale(1);
}
.product-card:hover .product-media img { transform: scale(1.035); }
.product-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.product-quick {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s, transform .22s, background .2s;
}
.product-card:hover .product-quick, .product-card:focus-within .product-quick { opacity: 1; transform: translateY(0); }
.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 2px 0;
}
.product-copy { min-width: 0; }
.product-details h3, .product-details p { margin: 0; }
.product-details h3 { font-size: .92rem; line-height: 1.25; text-transform: uppercase; }
.product-details h3 a { text-decoration: none; }
.product-details h3 a::after { position: absolute; inset: 0; content: ""; }
.product-details p {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-price { font-size: .82rem; font-weight: 850; white-space: nowrap; }
.product-price--sale { color: var(--accent); }
.product-price s { margin-left: 5px; color: #999b98; font-size: .7rem; font-weight: 600; }
.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.breadcrumbs a { text-decoration: none; }
.product-page { display: grid; grid-template-columns: minmax(0, .72fr) minmax(340px, 1fr); gap: clamp(32px, 5vw, 68px); }
.product-gallery { position: relative; width: 100%; max-width: 420px; min-width: 0; align-self: start; justify-self: center; }
.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: clamp(18px, 3vw, 38px);
  border-radius: 0;
  background: #e8e8e3;
  object-fit: contain;
  filter: grayscale(1);
}
.product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-thumbnails button { min-height: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 0; background: #e8e8e3; }
.product-thumbnails button.is-active { border-color: var(--ink); }
.product-thumbnails img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.product-copy-panel { padding-top: clamp(10px, 4vw, 56px); }
.product-copy-panel h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .9; text-transform: uppercase; }
.product-category {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
.product-description { max-width: 560px; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.product-page-price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 20px; font-size: 1.45rem; font-weight: 880; }
.product-page-price s { color: #999b98; font-size: .9rem; font-weight: 600; }
.product-stock { margin: 0 0 20px; color: var(--green); font-size: .75rem; font-weight: 800; }
.product-stock.is-out { color: var(--red); }
.product-purchase { display: grid; max-width: 560px; gap: 13px; }
.product-purchase label { display: grid; gap: 7px; font-size: .76rem; font-weight: 800; }
.product-purchase input, .product-purchase select, .product-purchase textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.product-purchase input[name="quantity"] { width: 110px; }
.product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 3px; }
.product-add,
.product-wishlist { width: 100%; min-height: 54px; margin: 0; }
.product-wishlist { border: 1px solid var(--ink); background: #fff; color: var(--ink); }
.product-wishlist:hover { background: #eef0f2; }
.product-benefits {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.product-benefits li { display: flex; gap: 10px; color: #4e524f; font-size: .8rem; }
.product-benefits li::before { color: var(--accent); font-weight: 900; content: "✓"; }
.product-information { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-information h2 { margin: 0 0 14px; font-size: 1.2rem; }
.product-information dl { display: grid; grid-template-columns: minmax(100px, .45fr) minmax(0, 1fr); margin: 0; }
.product-information dt, .product-information dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.product-information dt { color: var(--muted); font-weight: 700; }
.product-information dd { font-weight: 750; }
.product-information-note { color: var(--muted); font-size: .78rem; }
.product-reviews-section,
.product-related-section { grid-column: 1 / -1; margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line); }
.product-reviews-section > h2,
.product-related-section > h2 { margin: 0 0 22px; font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.product-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.product-review { padding: 22px; border: 1px solid var(--line); background: #fff; }
.product-review h3 { margin: 12px 0 6px; }
.product-review p { color: var(--muted); line-height: 1.65; }
.review-stars { display: block; margin-top: 8px; letter-spacing: .08em; }
.review-reply { padding: 12px; border-left: 2px solid var(--ink); background: var(--surface-soft); }
.product-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-related-grid .product-media img {
  padding: 8%;
  object-fit: contain;
}
.product-page-skeleton { min-height: 600px; border-radius: var(--radius-lg); background: linear-gradient(90deg, #e5e7eb, #f4f4f5, #e5e7eb); background-size: 200% 100%; animation: skeleton 1.4s infinite; }
.product-page-skeleton--copy { min-height: 400px; margin-top: 55px; }
@keyframes skeleton { to { background-position: -200% 0; } }
.account-landing { max-width: 820px; margin: 24px auto 0; text-align: center; }
.account-landing h1 { margin: 0 0 26px; font-size: clamp(3.5rem, 9vw, 7rem); line-height: .88; text-transform: uppercase; }
.account-overview { padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.account-overview h2 { margin-top: 0; }
.account-overview p { color: var(--muted); }
.account-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(40px, 9vw, 130px);
  min-height: 600px;
}
.auth-intro h1 { max-width: 660px; margin: 0 0 24px; font-size: clamp(3.5rem, 7.5vw, 6.5rem); line-height: .86; text-transform: uppercase; }
.auth-intro > p:last-of-type { max-width: 560px; color: var(--muted); font-size: 1.03rem; }
.auth-intro ul { display: grid; gap: 10px; padding: 10px 0 0; list-style: none; }
.auth-intro li::before { margin-right: 10px; color: var(--accent); content: "✓"; }
.auth-card { padding: clamp(25px, 5vw, 45px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.auth-card .form { max-width: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { margin: -4px 0 3px; color: var(--muted); font-size: .72rem; }
.form-inline-help { margin-top: -8px; text-align: right; }
.form-inline-help a, .auth-switch a { color: var(--accent); font-weight: 750; }
.auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

/* Admin shell */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  padding: 25px 18px 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(75, 85, 99, .14), transparent 30%),
    var(--ink);
  color: #fff;
}
.admin-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 24px; }
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}
.admin-brand > span:last-child { display: grid; line-height: 1.1; }
.admin-brand small {
  margin-top: 5px;
  color: #838a91;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.admin-nav-close { display: none; min-height: 36px; padding: 5px 10px; background: transparent; font-size: 1.5rem; }
.admin-navigation { display: grid; gap: 20px; }
.admin-nav-group { display: grid; gap: 4px; }
.admin-nav-group > p {
  margin: 0 12px 7px;
  color: #687077;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.admin-nav-group a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #aeb4ba;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.admin-nav-group a:hover { background: rgba(255, 255, 255, .055); color: #fff; transform: translateX(2px); }
.admin-nav-group a.active {
  background: rgba(75, 85, 99, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(75, 85, 99, .22);
}
.admin-nav-group a.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: "";
}
.admin-nav-icon {
  width: 22px;
  height: 22px;
  padding: 2px;
  color: #737b83;
  stroke-width: 1.8;
}
.admin-nav-group a.active .admin-nav-icon { color: #f8fafc; }
.admin-sidebar-footer { display: grid; gap: 13px; margin-top: auto; padding: 28px 8px 0; }
.admin-sidebar-settings {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #aeb4ba;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-sidebar-settings:hover { border-color: rgba(255, 255, 255, .2); color: #fff; }
.admin-sidebar-settings svg { width: 17px; height: 17px; }

/* Complete commerce workspaces */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 28px;
}
.page-heading h1, .page-heading h2 { margin: 0; }
.page-heading p:last-child { max-width: 680px; margin: 7px 0 0; color: var(--muted); }
.page-heading > .button,
.page-heading > button { min-width: max-content; flex: 0 0 auto; white-space: nowrap; }
.compact-heading { margin-top: 48px; margin-bottom: 18px; }
.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.resource-toolbar input, .resource-toolbar select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.resource-toolbar input[type="search"] { width: min(100%, 360px); }
.toggle-label { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.resource-panel {
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.resource-inline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.resource-inline-heading h2 { margin: 0; font-size: 1.15rem; }
.resource-inline-heading p { margin: 4px 0 0; color: var(--muted); font-size: .74rem; }
.loading-state, .resource-empty, .resource-error { display: grid; min-height: 180px; place-content: center; padding: 30px; text-align: center; }
.resource-empty span { display: block; margin-top: 5px; color: var(--muted); }
.resource-error { color: var(--red); }
.resource-table-shell { overflow-x: auto; }
.resource-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.resource-table th, .resource-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.resource-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.resource-table tbody tr:last-child td { border-bottom: 0; }
.resource-table tbody tr:hover { background: #fafafa; }
.table-actions { display: flex; flex-wrap: nowrap; gap: 7px; }
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: none;
}
.table-action:hover { border-color: var(--ink); }
.table-action.danger { color: var(--red); }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: .68rem;
  font-weight: 800;
  text-transform: capitalize;
}
.status-badge--active, .status-badge--approved, .status-badge--completed,
.status-badge--delivered, .status-badge--paid, .status-badge--yes {
  background: var(--green-soft);
  color: var(--green);
}
.status-badge--blocked, .status-badge--rejected, .status-badge--cancelled,
.status-badge--refunded, .status-badge--no {
  background: var(--red-soft);
  color: var(--red);
}
.content-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.content-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.content-tabs button.active { background: var(--ink); color: #fff; }
body.modal-open { overflow: hidden; }
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 19, 23, .62);
  backdrop-filter: blur(5px);
}
.admin-modal {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.admin-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.admin-modal h2 { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.modal-close {
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
}
.admin-modal-body { max-height: calc(100vh - 120px); padding: 24px; overflow-y: auto; }
.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.modal-form label { display: grid; gap: 7px; color: #414541; font-size: .82rem; font-weight: 750; }
.modal-form label:has(textarea), .modal-form .form-feedback, .modal-actions { grid-column: 1 / -1; }
.modal-form input, .modal-form textarea, .modal-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d4d7db;
  border-radius: 9px;
  background: #fff;
}
.modal-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.modal-form .checkbox-field input { width: auto; }
.modal-form input[type="file"] { padding: 7px; }
.modal-form input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.modal-form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-feedback:not(:empty) {
  padding: 11px 13px;
  border: 1px solid #edc5bf;
  border-radius: 8px;
  background: var(--red-soft);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.form-feedback { min-height: 20px; margin: 0; color: var(--red); }
.admin-toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 130; display: grid; gap: 10px; }
.admin-toast {
  width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.admin-toast--error { background: var(--red); }
.customer-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.admin-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: none; }
.editor-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.editor-card h2 { margin: 0 0 20px; font-size: 1.12rem; }
.editor-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.editor-card-heading > div { display: flex; align-items: center; gap: 10px; }
.editor-card-heading span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
}
.editor-card-heading h2 { margin: 0; }
.editor-card-heading p { max-width: 390px; margin: 4px 0 0; color: var(--muted); font-size: .72rem; text-align: right; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-grid > label { min-width: 0; }
.editor-grid input, .editor-grid select, .editor-grid textarea { min-width: 0; max-width: 100%; }
.editor-span-2 { grid-column: 1 / -1; }
.checkbox-stack { display: grid; gap: 13px; }
.checkbox-stack label,
.form label.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
}
.checkbox-stack input[type="checkbox"],
.form label.checkbox-field input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 18px 0; }
.editor-actions p { margin-right: auto; }
.editor-actions > div { display: flex; gap: 10px; }
.editor-secondary-grid, .settings-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.media-list { display: grid; gap: 10px; margin-top: 18px; }
.media-item, .variant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.media-item img { width: 56px; height: 64px; border-radius: 7px; object-fit: cover; }
.media-item div, .variant-item div { display: grid; flex: 1; }
.media-item small, .variant-item small { color: var(--muted); }
.product-upload-zone {
  display: grid !important;
  min-height: 190px;
  margin-bottom: 16px;
  padding: 26px;
  place-items: center;
  align-content: center;
  border: 1px dashed #aeb5bc;
  border-radius: 10px;
  background: #f8fafb;
  color: var(--ink) !important;
  text-align: center;
  cursor: pointer;
}
.product-upload-zone:hover { border-color: var(--ink); background: #f4f6f8; }
.product-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-upload-zone svg { width: 28px; height: 28px; margin-bottom: 8px; }
.product-upload-zone strong { font-size: .9rem; }
.product-upload-zone small { color: var(--muted); font-size: .7rem; }
.product-image-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.product-image-preview[hidden] { display: none; }
.product-image-preview img { width: 70px; height: 84px; object-fit: cover; }
.product-image-preview div { display: grid; gap: 4px; }
.product-image-preview small { color: var(--muted); }
.order-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.order-summary { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; }
.order-summary h2 { margin: 0; font-size: 2rem; }
.order-total { display: grid; align-content: center; justify-items: end; }
.order-total span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.order-total strong { font-size: 1.5rem; }
.order-action-grid { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.order-action-grid select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; }
.order-line, .timeline-item { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline-item { display: grid; }
.timeline-item p, .timeline-item small { margin: 0; color: var(--muted); }
.inline-note-form { display: grid; gap: 10px; margin-top: 18px; }
.inline-note-form textarea, .inline-note-form select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.province-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

@media (max-width: 760px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .resource-toolbar > * { width: 100% !important; }
  .modal-form, .admin-editor, .editor-grid, .editor-secondary-grid,
  .settings-workspace, .order-workspace { grid-template-columns: 1fr; }
  .editor-span-2, .order-summary { grid-column: auto; }
  .order-summary { flex-direction: column; }
  .order-total { justify-items: start; }
  .province-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Customer account */
.account-guest { max-width: 760px; padding: 60px 0; }
.account-guest h1 { margin: 0 0 24px; font-size: clamp(3.2rem, 9vw, 7rem); line-height: .9; text-transform: uppercase; }
.account-guest h2 { margin-top: 38px; }
.customer-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.customer-nav { display: flex; flex-direction: column; padding: 24px 18px; background: var(--ink); color: #fff; }
.customer-identity { display: flex; align-items: center; gap: 12px; padding: 4px 7px 24px; border-bottom: 1px solid var(--line-dark); }
.customer-identity > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: .76rem; font-weight: 850; }
.customer-identity div { display: grid; min-width: 0; }
.customer-identity small { overflow: hidden; color: #aeb4bc; font-size: .7rem; text-overflow: ellipsis; }
.customer-nav nav { display: grid; gap: 4px; padding: 22px 0; }
.customer-nav nav button, .account-signout {
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b9bec5;
  text-align: left;
}
.customer-nav nav button:hover, .customer-nav nav button.active { background: rgba(255, 255, 255, .1); color: #fff; }
.account-signout { margin-top: auto; color: #fff; }
.customer-content { min-width: 0; padding: clamp(24px, 4vw, 54px); }
.customer-content h1 { margin: 0 0 28px; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .92; text-transform: uppercase; }
.customer-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.account-metrics article { display: grid; gap: 3px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.account-metrics strong { font-size: 1.8rem; }
.account-metrics span { color: var(--muted); font-size: .74rem; text-transform: uppercase; }
.customer-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.customer-card + .customer-card, .account-order-card + .account-order-card { margin-top: 12px; }
.customer-card h2 { margin-top: 0; }
.account-order-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-order-header, .account-order-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-order-header > div { display: grid; }
.account-order-header small, .account-order-total span { color: var(--muted); font-size: .75rem; }
.account-order-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.account-status { padding: 5px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.account-status--completed, .account-status--delivered, .account-status--approved { background: var(--green-soft); color: var(--green); }
.account-status--cancelled, .account-status--rejected { background: var(--red-soft); color: var(--red); }
.account-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-card-actions .button { min-height: 36px; padding: 0 11px; font-size: .7rem; }
.danger-link { color: var(--red) !important; }
.account-empty { display: grid; justify-items: start; gap: 7px; padding: 34px; border: 1px dashed #cbd0d6; border-radius: 13px; background: var(--surface-soft); }
.account-empty p { margin: 0 0 10px; color: var(--muted); }
.account-product-grid, .address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.account-product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.account-product-card > div { padding: 16px; }
.account-product-card h3 { margin: 0 0 5px; }
.account-product-card p { color: var(--muted); }
.address-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; }
.address-card p { color: var(--muted); white-space: pre-line; }
.address-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.address-badges span { padding: 4px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .65rem; font-weight: 800; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; }
.check-row input { width: auto !important; }
.customer-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(16, 19, 23, .62); backdrop-filter: blur(5px); }
.customer-modal { width: min(700px, 100%); max-height: calc(100vh - 36px); overflow: hidden; border-radius: 18px; background: #fff; }
.customer-modal > header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.customer-modal h2 { margin: 0; }
.customer-modal-close { width: 38px; height: 38px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.4rem; }
.customer-modal-body { max-height: calc(100vh - 110px); padding: 24px; overflow-y: auto; }
.customer-form { display: grid; gap: 15px; }
.customer-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 750; }
.customer-form input, .customer-form select, .customer-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.customer-form button, .customer-form .return-item-list { grid-column: 1 / -1; }
.order-detail-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 18px; border-radius: 11px; background: var(--surface-soft); }
.order-detail-summary strong { font-size: 1.5rem; }
.order-detail-lines > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.return-item-list { display: grid; gap: 8px; }
.return-item { display: grid !important; grid-template-columns: auto 1fr 80px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }

/* Full-width customer order portal */
.page:has(.account-portal) { padding: 0; }
.page > .shell:has(.account-portal) { width: 100%; max-width: none; }
.account-minimal-page { padding: 0; }
.account-minimal-page > .shell { width: 100%; max-width: none; }
.account-portal { min-height: calc(100vh - 99px); background: #f4f5f6; }
.account-portal .account-guest { margin: 0 auto; padding: 100px 24px; }
.customer-dashboard-full {
  display: block;
  min-height: calc(100vh - 99px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.customer-portal-header {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid #dfe2e5;
  background: #fff;
}
.customer-portal-header h1 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.customer-portal-header .customer-identity { justify-self: start; padding: 0; border: 0; color: var(--ink); }
.customer-portal-header .customer-identity > span { border: 1px solid #d9dde1; background: #f3f4f5; }
.customer-portal-header .customer-identity small { color: var(--muted); }
.customer-portal-actions { display: flex; justify-self: end; gap: 7px; }
.portal-icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #d8dce0;
  border-radius: 8px;
  background: #fff;
  color: #555d65;
}
.portal-icon-button:hover, .portal-icon-button.active { border-color: var(--ink); background: var(--ink); color: #fff; transform: none; }
.portal-icon-button span { display: block; font-size: 1.05rem; line-height: 1; }
.customer-content-full { width: min(1440px, 100%); margin: 0 auto; padding: clamp(40px, 6vw, 86px) clamp(24px, 5vw, 80px) 100px; }
.portal-overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portal-overview-toolbar h2 { margin: 0; font-size: clamp(2rem, 5vw, 4.5rem); }
.portal-overview-toolbar > div { display: flex; flex-wrap: wrap; gap: 9px; }
.portal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.portal-hero h1 { max-width: 900px; margin-bottom: 12px; font-size: clamp(3rem, 7vw, 7rem); }
.portal-hero p:last-child { max-width: 640px; margin: 0; color: var(--muted); }
.customer-content-full .account-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.customer-content-full .account-metrics article { min-height: 132px; align-content: end; padding: 25px; border-radius: 10px; background: #fff; }
.customer-content-full .account-metrics strong { font-size: 2.4rem; }
.portal-tracking-card {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.3fr);
  gap: 48px;
  margin: 0 0 52px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.portal-tracking-card h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); }
.portal-tracking-card p { margin-bottom: 0; color: #aeb5bc; }
.tracking-lookup { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: end; gap: 10px; }
.tracking-lookup label { display: grid; min-width: 0; gap: 7px; color: inherit; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tracking-lookup input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfd4d8; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.tracking-lookup button { min-height: 48px; border-radius: 6px; background: #fff; color: var(--ink); white-space: nowrap; }
.portal-orders-heading { margin-bottom: 18px; }
.portal-orders-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); }
.portal-latest-order { margin-bottom: 52px; }
.portal-latest-order .account-order-card { padding: clamp(24px, 4vw, 42px); border: 1px solid #cfd4d8; background: #fff; box-shadow: var(--shadow); }
.portal-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-order-list .account-order-card { margin: 0; padding: 24px; border-radius: 10px; }
.tracking-result { display: grid; gap: 18px; margin-top: 16px; padding: 22px; border: 1px solid #d8dde1; border-radius: 10px; background: #fff; color: var(--ink); }
.portal-tracking-card .tracking-result { grid-column: 1 / -1; }
.tracking-result-heading, .tracking-shipment { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tracking-result-heading span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.tracking-order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--muted); font-size: .75rem; }
.tracking-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tracking-timeline span { padding-top: 13px; border-top: 3px solid #d9dde1; color: #92989e; font-size: .68rem; font-weight: 750; }
.tracking-timeline span.is-complete { border-color: var(--ink); color: var(--ink); }
.account-order-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 24px 0 20px; }
.account-order-timeline span { padding-top: 12px; border-top: 3px solid #d8dde1; color: #92989e; font-size: .68rem; font-weight: 750; }
.account-order-timeline span.is-complete { border-color: var(--ink); color: var(--ink); }
.tracking-shipment { padding-top: 15px; border-top: 1px solid #e4e6e8; }
.tracking-shipment div { display: grid; }
.tracking-shipment small, .tracking-note { color: var(--muted); }
.order-shipment-panel { margin-top: 24px; padding: 20px; border-radius: 10px; background: var(--surface-soft); }
.order-shipment-panel h3 { margin-top: 0; }
.settings-heading { align-items: center; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card { padding: clamp(24px, 3vw, 36px); border-radius: 10px; }
.settings-card .form { max-width: none; }
.settings-addresses { grid-column: 1 / -1; }
.settings-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.settings-card-heading > svg { width: 22px; height: 22px; }
.settings-card-heading > div { flex: 1; }
.settings-card-heading h2, .settings-card-heading p { margin: 0; }
.settings-card-heading p { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.account-settings-signout { margin-top: 8px; }

.tracking-page { width: min(1100px, 100%); margin: 0 auto; padding: clamp(34px, 7vw, 92px) 0 100px; }
.tracking-page-heading { max-width: 820px; margin-bottom: 38px; }
.tracking-page-heading h1 { margin: 0 0 18px; font-size: clamp(3.5rem, 9vw, 8rem); line-height: .86; text-transform: uppercase; }
.tracking-page-heading p { max-width: 620px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.tracking-page-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: #fff; }
.tracking-page-form { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto; }
.tracking-page-help { margin: 18px 0 0; color: #aeb5bc; font-size: .75rem; }
.tracking-page-help a { color: #fff; }
.tracking-page-card > .tracking-result { margin-top: 28px; }

.saved-address-picker {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding: 18px;
  border: 1px solid #cfd4d8;
  border-radius: 9px;
  background: #f4f6f7;
}
.saved-address-picker label { display: grid; gap: 7px; font-size: .75rem; font-weight: 800; }
.saved-address-picker select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.saved-address-picker p { margin: 9px 0 0; color: var(--muted); font-size: .72rem; }
.address-validation-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.checkout-form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

@media (max-width: 1250px) {
  .portal-tracking-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .customer-portal-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .customer-portal-header .customer-identity { justify-self: start; }
  .tracking-lookup { grid-template-columns: 1fr 1fr; }
  .tracking-lookup button { grid-column: 1 / -1; }
  .portal-order-list, .settings-grid { grid-template-columns: 1fr; }
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-page-form { grid-template-columns: 1fr 1fr; }
  .tracking-page-form button { grid-column: 1 / -1; }
  .settings-addresses { grid-column: auto; }
}
@media (max-width: 620px) {
  .account-portal { min-height: calc(100vh - 91px); }
  .customer-dashboard-full { min-height: calc(100vh - 91px); }
  .customer-portal-header { min-height: 68px; }
  .customer-identity small { max-width: 130px; }
  .portal-icon-button { width: 38px; min-height: 38px; }
  .customer-content-full { padding: 34px 16px 70px; }
  .portal-hero { align-items: flex-start; flex-direction: column; }
  .portal-overview-toolbar { align-items: flex-start; flex-direction: column; }
  .portal-overview-toolbar > div, .portal-overview-toolbar .button { width: 100%; }
  .portal-hero .button { width: 100%; }
  .customer-content-full .account-metrics { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .customer-content-full .account-metrics article { min-height: 100px; padding: 14px; }
  .customer-content-full .account-metrics strong { font-size: 1.55rem; }
  .customer-content-full .account-metrics span { font-size: .57rem; }
  .portal-tracking-card { padding: 24px 18px; }
  .tracking-lookup { grid-template-columns: 1fr; }
  .tracking-lookup button { grid-column: auto; }
  .tracking-timeline span { font-size: .55rem; }
  .tracking-result-heading, .tracking-shipment { align-items: flex-start; flex-direction: column; }
  .account-order-timeline span { font-size: .52rem; }
  .tracking-page-form { grid-template-columns: 1fr; }
  .tracking-page-form button { grid-column: auto; }
  .product-review-list { grid-template-columns: 1fr; }
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .product-actions { grid-template-columns: 1fr; }
  .tracking-shipment .button { width: 100%; }
}
.return-item input[type="checkbox"] { width: auto; }
.review-stars { margin: 10px 0; letter-spacing: .08em; }
.customer-toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 130; display: grid; gap: 10px; }
.customer-toast { width: min(360px, calc(100vw - 44px)); padding: 14px 16px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.customer-toast--error { background: var(--red); }
.content-page { max-width: 860px; margin: 0 auto; padding: 30px 0 70px; }
.content-page h1 { margin: 12px 0 26px; font-size: clamp(3rem, 8vw, 7rem); line-height: .9; text-transform: uppercase; }
.content-page-lead { max-width: 720px; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.content-page-body { margin-top: 38px; color: #33383e; font-size: 1rem; line-height: 1.85; }
.content-page-updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.maintenance-active { overflow: hidden; }
.maintenance-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; padding: 30px; background: #101317; color: #fff; text-align: center; }
.maintenance-screen .brand-wordmark { font-size: 3rem; }
.maintenance-screen h1 { max-width: 900px; margin: 34px 0 16px; font-size: clamp(3rem, 10vw, 8rem); line-height: .85; text-transform: uppercase; }
.maintenance-screen p { max-width: 560px; color: #b9bec5; font-size: 1.05rem; }

.field-error { display: block; margin-top: 3px; color: #a62f2f; font-size: .72rem; font-weight: 650; }
.form [aria-invalid="true"] { border-color: #b83a3a; box-shadow: 0 0 0 3px rgba(184, 58, 58, .1); }
.form-error { border-color: #efcaca; background: #fff5f5; color: #8c2929; }
.password-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.password-requirements span { color: var(--muted); font-size: .7rem; }
.password-requirements span::before { margin-right: 7px; content: "○"; }
.password-requirements span.is-valid { color: #236747; }
.password-requirements span.is-valid::before { content: "✓"; }
.consent-field { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; font-weight: 600 !important; line-height: 1.5; }
.consent-field input { width: auto; margin-top: 3px; }

.site-broadcast-link { margin-left: 8px; color: inherit; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.campaign-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(9, 12, 15, .72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.campaign-popup-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.campaign-popup {
  position: relative;
  display: grid;
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #d9dde1;
  border-radius: 12px;
  background: #fff;
  color: #101317;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
  transform: translateY(16px);
  transition: transform .22s ease;
}
.campaign-popup-backdrop.is-visible .campaign-popup { transform: translateY(0); }
.campaign-popup.has-image { grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); }
.campaign-popup > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.campaign-popup-content { display: grid; align-content: center; justify-items: start; padding: clamp(34px, 6vw, 70px); }
.campaign-popup-eyebrow { margin: 0 0 18px; color: #616973; font-size: .67rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.campaign-popup h2 { margin: 0; font-size: clamp(2.3rem, 6vw, 5rem); line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
.campaign-popup-body { max-width: 480px; margin: 22px 0 0; color: #626973; line-height: 1.65; }
.campaign-popup-action { display: inline-flex; min-height: 46px; margin-top: 28px; padding: 0 20px; align-items: center; justify-content: center; border-radius: 5px; background: #101317; color: #fff; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.campaign-popup-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; min-height: 40px; padding: 0; border: 1px solid #d6dade; border-radius: 50%; background: #fff; color: #101317; font-size: 1.5rem; }
@media (max-width: 700px) {
  .campaign-popup.has-image { grid-template-columns: 1fr; }
  .campaign-popup > img { height: 210px; min-height: 0; }
  .campaign-popup-content { padding: 34px 24px; }
  .password-requirements { grid-template-columns: 1fr; }
}
.cart-page-heading, .checkout-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cart-page-heading h1, .checkout-heading h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); line-height: .9; text-transform: uppercase; }
.checkout-heading { display: block; max-width: 760px; }
.checkout-heading > p:last-child { color: var(--muted); }
.cart-page-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.cart-page-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cart-page-list .cart-row { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cart-summary, .checkout-summary { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.cart-summary h2, .checkout-summary h2 { margin-top: 0; }
.cart-summary > div, .checkout-total-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-summary > .button { width: 100%; margin-top: 18px; }
.coupon-form { display: grid; gap: 7px; margin: 20px 0; }
.coupon-form label { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.coupon-form > div { display: grid; grid-template-columns: 1fr auto; }
.coupon-form input { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.coupon-form button { min-height: 0; border-radius: 0 8px 8px 0; }
.coupon-form p { margin: 0; color: var(--green); font-size: .75rem; }
#saved-cart-section { margin-top: 34px; }
#saved-cart-list { display: grid; gap: 10px; }
.saved-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.saved-cart-item div { display: grid; }
.saved-cart-item small { color: var(--muted); }
.checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; padding: 26px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.checkout-form h2 { grid-column: 1 / -1; margin: 16px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.checkout-form h2:first-child { margin-top: 0; }
.checkout-form label:has(textarea), .checkout-form button { grid-column: 1 / -1; }
.checkout-summary .notice { display: grid; gap: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.checkout-summary .notice > label { display: grid; gap: 7px; margin-bottom: 15px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.checkout-summary select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.checkout-grand-total { margin-top: 5px; border-bottom: 0 !important; font-size: 1.1rem; }
.payment-pending-note { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--surface-soft); }
.payment-pending-note p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 850px) {
  .customer-dashboard { grid-template-columns: 1fr; }
  .customer-nav { display: block; padding: 14px; }
  .customer-identity { padding-bottom: 14px; }
  .customer-nav nav { grid-template-columns: repeat(4, minmax(max-content, 1fr)); padding: 12px 0 0; overflow-x: auto; }
  .customer-nav nav button { text-align: center; white-space: nowrap; }
  .account-signout { width: 100%; text-align: center; }
}
@media (max-width: 620px) {
  .customer-content { padding: 24px 16px; }
  .customer-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .account-metrics, .account-product-grid, .address-grid, .customer-form-grid { grid-template-columns: 1fr; }
  .account-order-header, .account-order-total, .order-detail-summary { align-items: flex-start; flex-direction: column; }
  .account-card-actions .button { flex: 1 1 120px; }
  .return-item { grid-template-columns: auto 1fr; }
  .return-item input[type="number"] { grid-column: 2; }
}
@media (max-width: 780px) {
  .cart-page-heading { align-items: flex-start; flex-direction: column; }
  .cart-page-layout, .checkout-layout, .checkout-form { grid-template-columns: 1fr; }
  .checkout-form h2, .checkout-form label:has(textarea), .checkout-form button { grid-column: auto; }
  .cart-summary, .checkout-summary { position: static; }
  .saved-cart-item { align-items: flex-start; flex-direction: column; }
}
.admin-signout {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  color: #90979e;
  font-size: .76rem;
}
.admin-signout:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: none; }
.admin-main { min-width: 0; grid-column: 2; }
.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(24px, 4vw, 54px);
  border-bottom: 1px solid rgba(222, 220, 213, .85);
  background: rgba(244, 243, 239, .9);
  backdrop-filter: blur(18px);
}
.admin-nav-toggle { display: none; min-height: 38px; padding: 6px 11px; border-radius: 9px; }
.admin-topbar-title { display: grid; line-height: 1.18; }
.admin-topbar-title strong { font-size: .8rem; }
.admin-topbar-title span { color: var(--muted); font-size: .67rem; }
.admin-topbar-actions { display: flex; align-items: center; gap: 20px; }
.admin-topbar-actions > a { color: #454a4d; font-size: .76rem; font-weight: 750; text-decoration: none; }
.admin-storefront-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d2d6da;
  border-radius: 7px;
  background: #fff;
}
.admin-storefront-link:hover { border-color: var(--ink); color: var(--ink); }
.admin-storefront-link svg { width: 14px; height: 14px; }
html[data-admin="true"] .button,
html[data-admin="true"] button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  box-shadow: none;
  line-height: 1;
}
html[data-admin="true"] .table-action {
  min-height: 34px;
  padding: 7px 11px;
}
html[data-admin="true"] button:hover,
html[data-admin="true"] .button:hover { transform: none; }
.admin-content { width: min(1540px, 100%); margin: 0 auto; padding: 38px clamp(24px, 4vw, 54px) 70px; }
.admin-backdrop { display: none; }

/* Dashboard */
.dashboard { display: grid; gap: 28px; }
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.dashboard .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.dashboard-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.dashboard-subtitle { margin: 9px 0 0; color: var(--muted); font-size: .94rem; }
.dashboard-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  gap: 15px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 22px rgba(22, 25, 29, .035);
}
.metric-card::after {
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(75, 85, 99, .05);
  content: "";
}
.metric-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eef0f3;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}
.metric-icon--orders { background: #e9eff7; color: #48698d; }
.metric-icon--average { background: #eef0f3; color: #4b5563; }
.metric-icon--customers { background: var(--green-soft); color: var(--green); }
.metric-copy { display: grid; min-width: 0; }
.metric-copy p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.metric-value {
  margin-top: 4px;
  overflow: hidden;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-copy span { margin-top: 7px; color: #989b98; font-size: .64rem; }
.skeleton-text { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .42; } }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 18px;
}
.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
}
.panel-header h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.panel-header .eyebrow { margin-bottom: 4px; font-size: .59rem; }
.panel-period {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
}
.text-link { color: var(--accent); font-size: .72rem; font-weight: 800; text-decoration: none; }
.text-link span { margin-left: 4px; transition: margin .2s; }
.text-link:hover span { margin-left: 8px; }
.sales-chart {
  position: relative;
  display: flex;
  min-height: 285px;
  align-items: stretch;
  padding: 14px 24px 24px;
}
.chart-grid {
  position: absolute;
  inset: 14px 24px 48px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}
.chart-grid span { border-top: 1px dashed #eceae4; }
.chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: flex-end;
  gap: clamp(5px, 1.2vw, 13px);
  padding-top: 12px;
}
.chart-column {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-rows: 1fr 22px;
  align-items: end;
  gap: 7px;
  text-align: center;
}
.chart-bar {
  width: min(26px, 74%);
  min-height: 4px;
  margin: 0 auto;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #9ca3af, var(--accent));
  box-shadow: 0 8px 16px rgba(75, 85, 99, .16);
}
.chart-column small {
  overflow: hidden;
  color: #999b97;
  font-size: .57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-loading { display: grid; width: 100%; min-height: 130px; place-items: center; color: var(--muted); font-size: .8rem; }
.chart-empty { display: grid; width: 100%; place-items: center; text-align: center; }
.chart-empty span { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: #9b9d99; font-size: 1.3rem; }
.chart-empty strong { display: block; font-size: .9rem; }
.chart-empty p { max-width: 290px; margin: 4px auto 0; color: var(--muted); font-size: .73rem; }
.pulse-panel { box-shadow: none; }
.pulse-list { display: grid; padding: 3px 15px 17px; }
.pulse-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  border-top: 1px solid #efede8;
  color: inherit;
  text-decoration: none;
}
.pulse-item:first-child { border-top: 0; }
.pulse-item > span:nth-child(2) { display: grid; min-width: 0; }
.pulse-item strong { font-size: .78rem; }
.pulse-item small { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.pulse-item b { color: #a3a5a2; font-size: .85rem; transition: transform .2s; }
.pulse-item b svg { width: 15px; height: 15px; }
.pulse-item:hover b { transform: translateX(4px); }
.pulse-indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.pulse-indicator--neutral { background: #718196; box-shadow: 0 0 0 4px #e8edf2; }
.pulse-indicator--warning { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.pulse-indicator.is-warning { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.orders-panel { grid-column: 1; }
.inventory-panel { grid-column: 2; }
.table-shell { overflow-x: auto; border-top: 1px solid #efede8; }
.dashboard-table, .data-table { width: 100%; border-collapse: collapse; }
.dashboard-table th, .dashboard-table td, .data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #efede8;
  text-align: left;
}
.dashboard-table th, .data-table th {
  color: #8c8f8c;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-table td, .data-table td { font-size: .74rem; }
.dashboard-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table tbody tr:hover, .data-table tbody tr:hover { background: #fbfaf8; }
.order-number { font-weight: 820; text-decoration: none; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef0f1;
  color: #5f666c;
  font-size: .59rem;
  font-weight: 800;
  text-transform: capitalize;
}
.status-badge--paid, .status-badge--completed { background: var(--green-soft); color: var(--green); }
.status-badge--pending, .status-badge--payment-pending { background: var(--amber-soft); color: var(--amber); }
.status-badge--failed, .status-badge--cancelled { background: var(--red-soft); color: var(--red); }

.product-status-ribbon {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.product-status-ribbon button {
  min-width: 150px;
  padding: 16px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.product-status-ribbon button:last-child { border-right: 0; }
.product-status-ribbon button.active { background: var(--ink); color: #fff; }
.product-status-ribbon button span {
  float: right;
  min-width: 25px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(128, 128, 128, .14);
  text-align: center;
  font-size: 12px;
}

.product-status-ribbon button.active span { background: rgba(255, 255, 255, .16); }

.broadcast-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.broadcast-summary article {
  display: flex;
  gap: 16px;
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.broadcast-summary article:last-child { border-right: 0; }
.broadcast-summary article > strong {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.broadcast-summary span { color: var(--muted); line-height: 1.45; }
.broadcast-summary b { display: block; margin-bottom: 4px; color: var(--ink); }

.newsletter-preference-card {
  max-width: 720px;
  margin: 64px auto;
  padding: clamp(28px, 6vw, 64px);
}

.newsletter-preference-card h1 { margin-top: 0; }

@media (max-width: 820px) {
  .broadcast-summary { grid-template-columns: 1fr; }
  .broadcast-summary article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .broadcast-summary article:last-child { border-bottom: 0; }
}
.empty-state { padding: 38px 24px 44px; text-align: center; }
.empty-state-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: #a5a6a2; font-size: 1.25rem; }
.empty-state h3 { margin: 0; font-size: .9rem; }
.empty-state p { max-width: 360px; margin: 5px auto 12px; color: var(--muted); font-size: .72rem; }
.empty-state a { color: var(--accent); font-size: .7rem; font-weight: 800; }
.inventory-list { display: grid; padding: 2px 18px 18px; }
.inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 6px;
  border-top: 1px solid #efede8;
}
.inventory-item:first-child { border-top: 0; }
.inventory-item div { display: grid; min-width: 0; }
.inventory-item strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.inventory-item small { color: var(--muted); font-size: .64rem; }
.stock-count { align-self: center; color: var(--red); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.inventory-clear {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.inventory-clear span { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.2rem; font-weight: 900; }
.inventory-clear strong { display: block; font-size: .86rem; }
.inventory-clear p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 26px;
  border: 1px solid #282e34;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(75, 85, 99, .18), transparent 32%),
    var(--ink);
  color: #fff;
}
.quick-actions h2 { margin: 0; font-size: 1.05rem; }
.quick-actions nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.quick-actions nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  color: #d9dcde;
  font-size: .67rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.quick-actions nav a:hover { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; }
.quick-actions nav svg { width: 15px; height: 15px; color: #cbd5e1; stroke-width: 2; }
.dashboard-error { padding: 14px 16px; border: 1px solid #edc5bf; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: .78rem; }

@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); }
  .quick-actions { align-items: flex-start; flex-direction: column; }
  .quick-actions nav { justify-content: flex-start; }
}

/*
 * The administration workspace needs more horizontal room than the storefront.
 * Move its persistent navigation into a drawer before tables and forms become
 * compressed, while leaving the public desktop navigation unchanged.
 */
@media (max-width: 1240px) {
  body.admin-nav-open { overflow: hidden; }
  .admin-layout { display: block; }
  .admin-sidebar {
    width: min(300px, 88vw);
    transform: translateX(-105%);
    box-shadow: 30px 0 70px rgba(0, 0, 0, .26);
    transition: transform .26s ease;
  }
  body.admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-nav-close { display: inline-flex; }
  .admin-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgba(16, 19, 23, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s;
  }
  body.admin-nav-open .admin-backdrop { opacity: 1; pointer-events: auto; }
  .admin-main { grid-column: auto; }
  .admin-nav-toggle { display: inline-flex; }
  .admin-topbar-title { margin-right: auto; margin-left: 12px; }
}

@media (max-width: 1040px) {
  .settings-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.site-nav-open { overflow: hidden; }
  .site-header .shell { grid-template-columns: auto 1fr auto; gap: 18px; min-height: 68px; }
  .site-header .site-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: start;
  }
  .site-header .site-menu-toggle span { margin: 0; }
  .site-desktop-nav { display: none; }
  .site-account-nav > a:not(.cart-link) { display: none; }
  .site-mobile-nav {
    position: fixed;
    z-index: 29;
    top: 100%;
    right: auto;
    left: 0;
    display: block;
    width: min(460px, 54vw);
    height: calc(100vh - 99px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    box-shadow: 24px 20px 60px rgba(0, 0, 0, .28);
    transition: opacity .22s, transform .22s;
  }
  body.site-nav-open .site-mobile-nav { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .site-mobile-nav-inner { display: grid; width: auto; margin: 0; padding: 28px 24px 40px; }
  .site-mobile-nav-inner > p { margin: 0 0 20px; color: #737b82; font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .site-mobile-nav-inner > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: clamp(1.15rem, 3vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -.04em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .site-mobile-account { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .site-mobile-account a, .site-mobile-account button { width: 100%; min-height: 47px; padding: 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: transparent; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-align: center; text-decoration: none; text-transform: uppercase; }
  .site-mobile-account > :last-child, .site-mobile-account > :last-child button { border-color: var(--accent); background: var(--accent); }
  .site-mobile-account form { margin: 0; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-page { grid-template-columns: minmax(260px, .72fr) minmax(300px, 1fr); gap: 30px; }
  .product-gallery { position: static; max-width: 360px; }
  .product-copy-panel { padding-top: 6px; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-intro { max-width: 680px; }
  .admin-layout { display: block; }
  .admin-sidebar {
    width: min(300px, 88vw);
    transform: translateX(-105%);
    box-shadow: 30px 0 70px rgba(0, 0, 0, .26);
    transition: transform .26s ease;
  }
  body.admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-nav-close { display: inline-flex; }
  .admin-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(16, 19, 23, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s;
  }
  body.admin-nav-open .admin-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .admin-main { grid-column: auto; }
  .admin-nav-toggle { display: inline-flex; }
  .admin-topbar-title { margin-right: auto; margin-left: 12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .orders-panel, .inventory-panel { grid-column: 1; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-announcement { padding: 7px 10px; font-size: .56rem; }
  .site-header .shell { min-height: 62px; }
  .site-header .site-menu-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .brand { font-size: 1.1rem; }
  .site-account-nav { gap: 0; }
  .cart-link { width: 38px; height: 38px; flex-basis: 38px; }
  .cart-link::before { content: none; }
  .site-mobile-nav { width: min(86vw, 390px); height: calc(100vh - 91px); }
  .page { padding: 32px 0 70px; }
  .shop-hero { padding-top: 20px; }
  .shop-hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .shop-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-toolbar > label:first-child { grid-column: 1 / -1; }
  .shop-toolbar button { width: auto; }
  .catalog-grid { gap: 28px 10px; }
  .product-page { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { width: min(100%, 300px); max-width: 300px; }
  .product-media { border-radius: 0; }
  .product-quick { right: 7px; bottom: 7px; left: 7px; width: calc(100% - 14px); min-height: 38px; padding: 8px; border-radius: 2px; opacity: 1; transform: none; font-size: .66rem; }
  .product-details { grid-template-columns: 1fr; gap: 6px; padding-top: 11px; }
  .product-details h3 { font-size: .78rem; }
  .product-details p { font-size: .68rem; }
  .product-page-skeleton { min-height: 430px; }
  .product-copy-panel h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .account-actions { flex-direction: column; }
  .auth-intro h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .auth-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .nav a:not(:last-child) { display: none; }
  .page { padding-top: 36px; }
  .admin-topbar { min-height: 62px; padding: 0 16px; }
  .admin-topbar-actions { gap: 10px; }
  .admin-content { padding: 25px 16px 48px; }
  .dashboard { gap: 20px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading-actions { width: 100%; }
  .dashboard-heading-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { display: grid; gap: 10px; padding: 16px; }
  .metric-icon { width: 34px; height: 34px; }
  .metric-value { font-size: 1.4rem; }
  .metric-copy span { display: none; }
  .dashboard-panel { border-radius: var(--radius); }
  .panel-header { padding: 19px 18px 15px; }
  .sales-chart { min-height: 240px; padding-right: 16px; padding-left: 16px; }
  .chart-grid { right: 16px; left: 16px; }
  .orders-panel .table-shell { margin: 0; }
  .dashboard-table th:nth-child(2), .dashboard-table td:nth-child(2),
  .dashboard-table th:nth-child(5), .dashboard-table td:nth-child(5) { display: none; }
  .dashboard-table th, .dashboard-table td { padding: 12px; }
  .quick-actions { padding: 21px 18px; }
  .quick-actions nav { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .quick-actions nav a { justify-content: center; }
}

@media (max-width: 540px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 38px; }
  .catalog-grid.product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .product-details { grid-template-columns: minmax(0, 1fr) auto; }
  .product-details h3 { font-size: .88rem; }
  .product-details p { font-size: .74rem; }
}

.readiness-score {
  display: grid;
  min-width: 145px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.readiness-score strong { font-size: 1.55rem; line-height: 1; }
.readiness-score span { margin-top: 7px; color: var(--muted); font-size: .75rem; }
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.readiness-check {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.readiness-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eef0f2;
  color: #252a30;
}
.readiness-check.needs-action .readiness-icon { background: #15191d; color: #fff; }
.readiness-check h2 { margin: 1px 0 6px; font-size: 1rem; }
.readiness-check p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.readiness-check a { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 750; }
.readiness-operations { margin-bottom: 24px; }
.readiness-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.readiness-facts div { padding: 17px; border: 1px solid var(--line); border-radius: 10px; }
.readiness-facts dt { color: var(--muted); font-size: .75rem; }
.readiness-facts dd { margin: 7px 0 0; font-size: 1.55rem; font-weight: 800; }
.readiness-jobs { display: grid; gap: 0; padding: 0; list-style: none; }
.readiness-jobs li { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readiness-jobs strong { text-transform: capitalize; }
.readiness-jobs time { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.readiness-launch { margin-bottom: 40px; }
.readiness-launch ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 760px) {
  .readiness-grid { grid-template-columns: 1fr; }
  .readiness-score { min-width: 0; width: 100%; }
}
