/* ALSAS Store — shared storefront + admin styles */

:root {
  --ink: #191817;
  --gold: #a88136;
  --goldlight: #e4c98f;
  --cream: #f8f6f0;
  --paper: #fffefa;
  --muted: #6c6962;
  --line: #e7e1d6;
  --max: 1500px;
  --shell: 1080px;
  --danger: #9b2c2c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 64px), var(--max));
  margin: auto;
}
.store-shell {
  width: min(100%, var(--shell));
  margin-left: auto;
  margin-right: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1, h2, h3, h4 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.035em;
}
p { line-height: 1.7; }

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
}
.kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 6px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 254, 250, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand img {
  width: clamp(145px, 15vw, 205px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
}
.brand-caption {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 3px;
  font-size: 0.59rem;
  color: var(--gold);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  font-size: 0.87rem;
  font-weight: 700;
}
.nav-links a:hover,
.nav-links [aria-current] { color: var(--gold); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 1.3rem;
}
.cart-pill { display: inline-flex; align-items: center; gap: 6px; }
.cart-pill b {
  background: var(--gold);
  color: #181715;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  padding: 0 5px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff !important;
  padding: 13px 20px;
  border-radius: 7px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-gold { background: var(--gold); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 0.8rem; }
.linkish {
  background: none;
  border: 0;
  color: #876527;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  padding: 0;
  margin-top: 8px;
}
.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #876527;
  font-size: 0.88rem;
}

/* —— Hero —— */
.hero {
  background: radial-gradient(ellipse at 88% 18%, #5b4527 0%, transparent 34%), #1d1b19;
  color: #fff;
  padding: 80px 0 70px;
}
.hero-compact { padding: 56px 0 48px; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 14px 0 12px;
  max-width: 900px;
}
.hero h1 em { color: var(--goldlight); font-style: normal; }
.hero p {
  color: #cbc5ba;
  max-width: 640px;
  font-size: 1rem;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-actions a {
  border: 1px solid #95805b;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.86rem;
}
.hero-actions a:first-child {
  background: var(--goldlight);
  color: #181715;
  border-color: transparent;
}

main { padding-bottom: 80px; }

/* —— Search —— */
.store-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0 8px;
}
.store-search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.search-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* —— Empty state —— */
.empty {
  margin: 50px auto;
  max-width: 640px;
  text-align: center;
  padding: 48px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfaf6;
}
.empty h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.empty p { color: var(--muted); margin: 0 0 22px; }

/* —— Category pills —— */
.cat-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 0 8px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.sticky-pills {
  position: sticky;
  top: 84px;
  z-index: 40;
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(10px);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom: 1px solid transparent;
}
.cat-pills a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.cat-pills a:hover,
.cat-pills a.is-active {
  border-color: #d8c5a1;
  color: #876527;
  background: #fcfaf6;
}

/* —— Catalogue sections + cards —— */
.store-section { padding: 34px 0 6px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0;
}
.section-count { color: var(--muted); font-size: 0.78rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shop-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px #20170b0c;
  border-color: #d8c5a1;
}
.shop-card-media {
  display: block;
  background: #f3efe7;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.shop-card-media.img-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9e1d0, #fff);
}
.shop-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.shop-card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.shop-card-body h3 a:hover { color: var(--gold); }
.shop-card-body .price {
  font-weight: 800;
  color: #876527;
  font-size: 0.95rem;
  margin-top: auto;
}
.shop-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.shop-card-actions form { margin: 0; }

/* —— Product detail page —— */
.pdp { padding-top: 24px; padding-bottom: 40px; }
.back-link { margin: 0 0 16px; }
.back-link a { font-weight: 700; color: #876527; }
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.pdp-gallery {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3efe7;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pdp-gallery.img-unavailable {
  background: linear-gradient(135deg, #e9e1d0, #fff);
  min-height: 240px;
  aspect-ratio: auto;
}
.pdp-buy h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 10px 0 12px;
  line-height: 1.2;
}
.pdp-buy .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #876527;
  margin-bottom: 12px;
}
.pdp-buy .price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.pdp-blurb {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.pdp-specs {
  margin: 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pdp-specs summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  list-style: none;
}
.pdp-specs summary::-webkit-details-marker { display: none; }
.pdp-specs[open] summary { border-bottom: 1px solid var(--line); }
.pdp-specs .product-detail { padding: 8px 18px 18px; }

.product-detail { color: var(--muted); font-size: 0.9rem; }
.product-detail h3 {
  color: var(--ink);
  font-size: 1.02rem;
  margin: 18px 0 10px;
}
.product-detail p { margin: 0 0 10px; }
.product-detail > div {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.product-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
}
.product-detail th,
.product-detail td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.product-detail th {
  background: #25221d;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.product-detail tr:last-child td { border-bottom: 0; }

.buy-box {
  margin: 16px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfaf6;
}
.buy-box label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.buy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.buy-row input {
  width: 110px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}
.buy-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.buy-total strong {
  color: #876527;
  font-size: 1.2rem;
  font-family: Manrope, sans-serif;
  font-weight: 800;
}
.buy-fee {
  margin: 8px 0 0;
  font-size: 0.78rem;
}
.buy-box select {
  width: 100%;
  max-width: 320px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}

.variant-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 14px;
  width: 100%;
  max-width: 360px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3efe7;
}
.variant-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 !important;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.variant-option span {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.variant-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}
.variant-option.is-active {
  background: #fff;
  color: #5c4314;
  box-shadow: 0 1px 2px rgba(25, 24, 23, 0.08);
}

.custom-brief {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.custom-brief h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: Manrope, sans-serif;
}
.custom-brief > .muted {
  margin: 0 0 12px;
  font-size: 0.82rem;
}
.custom-brief label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.custom-brief textarea {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 92px;
  resize: vertical;
  background: #fff;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}
.custom-brief textarea:focus {
  outline: 2px solid rgba(168, 129, 54, 0.35);
  border-color: #876527;
}
.custom-brief .file-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.custom-brief input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #cbb892;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  box-sizing: border-box;
}
.custom-brief input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #25221d;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.pdp-pricing {
  margin: 28px 0 8px;
}
.pdp-pricing h2,
.pdp-specs h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.pdp-pricing > .muted {
  margin: 0 0 12px;
  font-size: 0.88rem;
}
.pdp-specs.is-open {
  margin: 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px 18px;
}
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.price-table,
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 420px;
  background: #fff;
}
.price-table th,
.price-table td,
table.price-table th,
table.price-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.price-table th,
table.price-table th {
  background: #25221d !important;
  color: #fff !important;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}
.price-table tbody tr.is-active {
  background: #f7f1e4;
}
.price-table tbody tr.is-active td {
  font-weight: 700;
  color: #5c4314;
}
.price-table tr:last-child td { border-bottom: 0; }

.cart-meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cart-meta a {
  color: #876527;
  font-weight: 700;
}
.cart-line-edit {
  align-items: start;
}
.cart-panel-toggle {
  margin-top: 8px;
}
.cart-edit-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfaf6;
  min-width: 0;
}
.cart-edit-form[hidden] {
  display: none !important;
}
.cart-edit-form .variant-toggle {
  margin-bottom: 12px;
  max-width: none;
}
.cart-edit-form .cart-qty-form {
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cart-live-total {
  font-size: 0.85rem;
}
.cart-live-total strong {
  color: #876527;
  font-weight: 800;
}
.cart-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cart-edit-form .custom-brief {
  margin-top: 8px;
  padding-top: 10px;
}
.cart-artwork-block {
  margin-top: 10px;
}
.cart-artwork-summary {
  margin: 0 0 8px;
}
.cart-summary-total {
  transition: color .15s ease;
}
.cart-asset-previews,
.cart-local-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}
.cart-asset-preview {
  margin: 0;
  width: 88px;
}
.cart-asset-preview a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
}
.cart-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-asset-file {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #25221d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cart-asset-preview figcaption {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}
.cart-local-preview .cart-asset-preview a,
.cart-local-preview .cart-asset-preview img {
  width: 88px;
  height: 88px;
}
.cart-qty-form select {
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: #fff;
}
.cart-files {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}
.cart-files li { margin: 2px 0; }
.order-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.order-assets a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c4314;
  background: #fcfaf6;
  text-decoration: none;
}
.admin-tier-grid {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-tier-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 520px;
}
.admin-tier-grid th,
.admin-tier-grid td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-tier-grid input[type="number"],
.admin-tier-grid input[type="text"] {
  width: 100%;
  min-width: 72px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

/* —— Flash —— */
.flash {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.flash-ok {
  background: #eef7ee;
  border: 1px solid #b7d7b7;
  color: #245424;
}
.flash-err {
  background: #fbf0f0;
  border: 1px solid #e0b4b4;
  color: #6e2424;
}

/* —— Cart / checkout —— */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.cart-thumb {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-info {
  min-width: 0;
}
.cart-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cart-info h3 a {
  display: inline;
}
.cart-qty-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.cart-qty-form input {
  width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}
.cart-side { text-align: right; }
.cart-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  position: sticky;
  top: 100px;
}
.cart-summary h2 {
  margin: 10px 0 4px;
  font-size: 1.8rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 40px;
}
.checkout-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

/* —— Admin —— */
.admin-wrap { padding: 36px 0 70px; }
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.88rem;
  vertical-align: middle;
}
.admin-table th {
  background: #f3efe6;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.admin-table tr:last-child td { border-bottom: 0; }
.form-card {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.form-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  margin-bottom: 16px;
  background: #fffefa;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.badge-on { background: #eef7ee; color: #245424; }
.badge-off { background: #f3f0ea; color: #6c6962; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  border-color: rgba(168, 129, 54, 0.45);
  box-shadow: 0 10px 24px rgba(25, 24, 23, 0.06);
}
.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  font-family: Manrope, sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.admin-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #f6f3ee;
  border: 1px solid var(--line);
}
.admin-image-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfaf6;
}
.admin-image-preview img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

/* —— Public customer account pages —— */
body.account-app {
  background: #f3efe6;
  min-height: 100vh;
}
.account-main {
  position: relative;
  padding: 36px 0 80px;
  overflow: hidden;
}
.account-atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(168, 129, 54, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 45% at 88% 10%, rgba(25, 24, 23, 0.08), transparent 55%),
    linear-gradient(180deg, #ebe4d6 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.account-hub > .container {
  position: relative;
  z-index: 1;
}
.account-shell {
  width: min(100%, 520px);
  margin: 0 auto;
}
.account-shell-wide {
  width: min(100%, 1080px);
}
.account-card,
.account-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.account-intro {
  margin-bottom: 22px;
  animation: accountRise 0.55s ease both;
}
.account-intro-simple {
  max-width: 40rem;
}
.account-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.account-lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 34rem;
}
.account-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.account-card input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  margin-bottom: 16px;
  background: #fffefa;
}
.account-foot {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
}
.account-foot .container {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}
.account-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  animation: accountRise 0.55s ease 0.1s both;
}
.account-subnav a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
}
.account-subnav a:hover {
  border-color: var(--line);
  background: #fff;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.account-primary {
  display: grid;
  gap: 18px;
}
.account-secondary {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.wallet-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px 26px 24px;
  color: #f7f2e8;
  background:
    linear-gradient(155deg, #221f1b 0%, #141210 55%, #2c2418 100%);
  box-shadow: 0 24px 50px rgba(20, 18, 14, 0.2);
  animation: accountRise 0.6s ease 0.12s both;
}
.wallet-stage-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 201, 143, 0.28), transparent 68%);
  pointer-events: none;
}
.wallet-stage-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.wallet-stage-label {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.62);
}
.wallet-balance {
  margin: 6px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  color: #fff;
}
.wallet-stage-orders {
  align-self: flex-end;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 0 0 4px 18px;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(247, 242, 232, 0.18);
  background: none;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.wallet-stage-orders strong {
  font-family: Manrope, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f7f2e8;
}
.wallet-stage-orders span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(247, 242, 232, 0.55);
}
.wallet-stage-orders:hover strong {
  color: var(--eco-gold-soft, #e4c98f);
}
.wallet-note {
  position: relative;
  margin: 0 0 18px;
  max-width: 28rem;
  font-size: 0.9rem;
  color: rgba(247, 242, 232, 0.72);
}
.wallet-deposit-form {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 254, 250, 0.96);
  color: var(--ink);
}
.wallet-deposit-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.wallet-deposit-head p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.wallet-amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.wallet-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.wallet-chip:hover:not(:disabled),
.wallet-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.wallet-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wallet-mode-option:hover {
  border-color: rgba(168, 129, 54, 0.55);
}
.wallet-deposit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.wallet-deposit-form label,
.wallet-mode-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.wallet-amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.wallet-amount-field span {
  font-weight: 800;
  color: var(--muted);
}
.wallet-deposit-form input[type="number"] {
  width: 100%;
  border: 0;
  padding: 12px 0;
  font: inherit;
  background: transparent;
  outline: none;
}
.wallet-mode-toggle {
  display: flex;
  gap: 8px;
}
.wallet-mode-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
}
.wallet-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wallet-mode-option.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.wallet-deposit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.wallet-fineprint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 18rem;
}
.wallet-amt-credit { color: #1f6b3a; font-weight: 700; }
.wallet-amt-debit { color: #8a3b2a; font-weight: 700; }
.wallet-amt-pending { color: var(--muted); font-weight: 700; }
.account-feed-item.is-pending { opacity: 0.82; }

.account-section,
.account-side-panel {
  background: rgba(255, 254, 250, 0.92);
  border: 1px solid rgba(231, 225, 214, 0.95);
  border-radius: 18px;
  padding: 22px;
  animation: accountRise 0.6s ease 0.16s both;
}
.account-section-head {
  margin-bottom: 14px;
}
.account-section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.account-section-head h2,
.account-side-panel h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.account-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.account-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f7f3ea;
  border: 1px dashed #ddd4c4;
}
.account-empty strong {
  display: block;
  margin-bottom: 4px;
}
.account-empty p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.account-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.account-feed-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.account-feed-item:first-child {
  border-top: 0;
  padding-top: 2px;
}
.account-feed-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.account-feed-main strong {
  font-size: 0.95rem;
}
.account-feed-main span,
.account-feed-ref {
  font-size: 0.8rem;
  color: var(--muted);
}
.account-feed-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
}
.account-feed-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eee8dc;
  color: var(--muted);
}
.account-status-completed,
.account-status-paid {
  background: #e4f0e7;
  color: #1f6b3a;
}
.account-status-pending {
  background: #f4ebcf;
  color: #8a6a1f;
}
.account-status-cancelled,
.account-status-failed {
  background: #f3e2de;
  color: #8a3b2a;
}
.account-details {
  display: grid;
  gap: 12px;
  margin: 0;
}
.account-details div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.account-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-details dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-details dd {
  margin: 0;
  font-weight: 600;
}
.account-side-links {
  display: grid;
  gap: 8px;
}
.account-side-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f7f3ea;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .15s ease, transform .15s ease;
}
.account-side-links a:hover {
  background: #efe7d8;
  transform: translateX(2px);
}
.checkout-pay {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 8px;
  margin: 18px 0 8px;
  background: #fff;
}
.checkout-pay legend {
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-pay-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.checkout-pay-option + .checkout-pay-option {
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}
.checkout-pay-option:first-of-type {
  border-radius: 10px 10px 0 0;
}
.checkout-pay-option:has(input:checked) {
  background: #f7f3ea;
}
.checkout-pay-option input[type="radio"] {
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.checkout-pay-option.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
.checkout-pay-copy {
  min-width: 0;
}
.checkout-pay-option strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.checkout-pay-option small {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.checkout-pay-option small a {
  color: var(--gold);
  font-weight: 700;
}
@keyframes accountRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-secondary {
    position: static;
  }
}
@media (max-width: 640px) {
  .wallet-deposit-grid {
    grid-template-columns: 1fr;
  }
  .wallet-stage-orders {
    align-self: flex-start;
    align-items: flex-start;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(247, 242, 232, 0.14);
    width: 100%;
  }
  .account-feed-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-feed-side {
    justify-items: start;
    text-align: left;
  }
}

/* —— Admin app shell (cream / ink / gold, matches Ecosystem) —— */
body.admin-app {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}
body.admin-app .btn:not(.btn-outline):not(.btn-danger) {
  background: var(--gold);
  color: #fff !important;
}
body.admin-app .btn-outline {
  background: var(--paper);
  border-color: var(--line);
}
body.admin-app .btn-outline:hover {
  border-color: rgba(168, 129, 54, 0.45);
  color: var(--ink) !important;
}
.admin-shell {
  display: grid;
  grid-template-columns: clamp(248px, 18vw, 280px) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.2s ease;
}
.admin-shell.is-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.admin-sidebar {
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  transition: opacity 0.2s ease, padding 0.2s ease;
}
.admin-shell.is-collapsed .admin-sidebar {
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}
.admin-sidebar-backdrop {
  display: none;
}
.admin-sidebar-brand a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 8px;
}
.admin-sidebar-brand img {
  width: 132px;
  height: auto;
}
.admin-sidebar-brand span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
}
.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3efe6;
}
.admin-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8f6f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a88136'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v1.2c0 .7.5 1.2 1.2 1.2h16.8c.7 0 1.2-.5 1.2-1.2v-1.2c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center 6px / 18px 18px no-repeat;
  flex: 0 0 auto;
}
.admin-sidebar-user strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.admin-sidebar-user span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.admin-side-nav {
  display: grid;
  gap: 4px;
}
.admin-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.admin-side-nav a i {
  width: 1.1rem;
  text-align: center;
  color: var(--gold);
  opacity: 0.85;
}
.admin-side-nav a:hover {
  background: #f3efe6;
  color: var(--ink);
}
.admin-side-nav a.is-active {
  background: var(--gold);
  color: #fff;
}
.admin-side-nav a.is-active i {
  color: #fff;
  opacity: 1;
}
.admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
.admin-sidebar-foot a:hover {
  color: var(--gold);
  background: #f3efe6;
}
.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(255, 254, 250, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  flex-wrap: wrap;
}
.admin-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.admin-menu-btn:hover {
  border-color: rgba(168, 129, 54, 0.45);
  background: #f3efe6;
  color: var(--gold);
}
.admin-top-search {
  flex: 1 1 180px;
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 420px;
}
.admin-top-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.admin-top-search input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem rgba(168, 129, 54, 0.18);
}
.admin-stock-chip {
  display: none;
  align-items: center;
  gap: 0.55rem 0.85rem;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3efe6;
  color: var(--muted);
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 500;
}
@media (min-width: 1100px) {
  .admin-stock-chip { display: inline-flex; }
}
.admin-stock-chip:hover {
  border-color: rgba(168, 129, 54, 0.45);
  background: #f7f1e6;
}
.admin-stock-chip-icon {
  color: var(--gold);
}
.admin-stock-chip-item {
  white-space: nowrap;
}
.admin-stock-chip-item strong {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.admin-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.admin-user {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.admin-content {
  padding: 18px 22px 40px;
}
.admin-page-head {
  margin-bottom: 18px;
}
.admin-page-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}
.admin-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.admin-back {
  margin: 0 0 14px;
}
.admin-back a {
  font-weight: 700;
  color: #876527;
}
.admin-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 8px;
}

@media (max-width: 980px) {
  .admin-shell,
  .admin-shell.is-collapsed { grid-template-columns: 1fr; }
  .admin-shell.is-collapsed .admin-sidebar {
    opacity: 1;
    padding: 20px 14px;
    pointer-events: auto;
  }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 8px 0 28px rgba(25, 24, 23, 0.12);
  }
  .admin-sidebar.is-open { transform: none; }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(25, 24, 23, 0.4);
    z-index: 70;
  }
  .admin-sidebar-backdrop.is-open { display: block; }
  .admin-content { margin-left: 0; padding-left: 16px; padding-right: 16px; }
  .admin-topbar { padding-left: 16px; padding-right: 16px; }
  .admin-user { display: none; }
  .admin-stock-chip { display: none !important; }
}

/* —— Admin upgrade —— */
.admin-title {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.admin-lead {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 540px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stock-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 22px 0 8px;
  padding: 12px 16px;
  background: #f3efe6;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stock-strip-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stock-box-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--gold);
  flex-shrink: 0;
}
.stock-strip-label strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.stock-updated {
  color: var(--muted);
  font-size: 0.72rem;
}
.stock-strip-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.stock-strip-values b {
  color: var(--gold);
  font-weight: 800;
}
.stock-sep { color: #c9c2b6; }
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.admin-tabs a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.admin-tabs a.is-active,
.admin-tabs a:hover {
  background: #f3efe7;
  color: var(--ink);
}
.admin-panel {
  margin-bottom: 22px;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-panel-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search {
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: #fff;
}
.admin-hint,
.admin-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}
.admin-row-actions {
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-row-actions form { margin: 0; }
.admin-tools-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.stock-kind {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #f3f0ea;
  color: #6c6962;
}
.stock-kind-tyvek { background: #fdecea; color: #9b2c2c; }
.stock-kind-fabric { background: #eef4fb; color: #1f4e79; }
.stock-kind-soap { background: #eef7ee; color: #245424; }

@media (max-width: 780px) {
  .stock-strip {
    border-radius: 14px;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* —— Footer (match homepage index.php) —— */
.footer {
  background: #191817;
  color: #fff;
  padding: 74px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 1fr 1fr;
  gap: 42px;
}
.footer .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  margin-bottom: 16px;
}
.footer .brand img,
.footer .brand-logo {
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.footer .brand-caption {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--goldlight);
  text-transform: uppercase;
}
.footer .brand-name { color: #fff; }
.footer p {
  color: #b8b4ac;
  font-size: 0.88rem;
  max-width: 310px;
  line-height: 1.7;
}
.footer h4 {
  font-size: 0.95rem;
  letter-spacing: 0;
  margin: 4px 0 20px;
}
.footer-links { display: grid; gap: 13px; }
.footer-links a,
.footer-address {
  color: #b8b4ac;
  font-size: 0.87rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--goldlight); }
.footer-note {
  font-size: 0.82rem;
  color: #b8b4ac;
}
.footer-bottom {
  margin-top: 65px;
  padding-top: 23px;
  border-top: 1px solid #393632;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a9a49b;
  font-size: 0.76rem;
}
.footer-bottom a { color: var(--goldlight); }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout,
  .checkout-grid,
  .pdp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-bottom { flex-direction: column; }
}

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

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header {
    isolation: isolate;
  }
  .nav {
    position: relative;
    min-height: 68px;
    gap: 12px;
  }
  .brand img { width: 132px; max-height: 48px; }
  .brand-caption {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    margin-top: 2px;
  }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 18px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    z-index: 95;
    box-shadow: 0 12px 24px rgba(25, 24, 23, 0.08);
  }
  .nav-links.open { display: flex; }
  .sticky-pills { top: 68px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .admin-table { display: block; overflow-x: auto; }

  .pdp { padding-top: 8px; }
  .pdp-buy h1 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    margin: 8px 0 10px;
  }
  .pdp-buy .price {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  .buy-box {
    padding: 14px;
  }
  .variant-toggle {
    max-width: none;
  }
  .variant-option {
    padding: 7px 10px;
    font-size: 0.72rem;
  }
  .buy-row { width: 100%; }
  .buy-row .btn { flex: 1; }
  .buy-row input { width: 96px; }

  .admin-bar {
    align-items: flex-start;
    gap: 12px;
  }
  .admin-bar h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .cart-thumb {
    width: 64px;
    height: 64px;
  }
  .cart-info h3 { font-size: 0.92rem; }
  .cart-side {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .cart-edit-form {
    padding: 10px;
  }
  .cart-qty-form {
    align-items: flex-start;
  }
  .cart-summary {
    position: static;
  }
  .cart-asset-preview,
  .cart-asset-file {
    width: 72px;
  }
  .cart-asset-file { height: 72px; }
  .cart-local-preview .cart-asset-preview a,
  .cart-local-preview .cart-asset-preview img {
    width: 72px;
    height: 72px;
  }

  .admin-stats { grid-template-columns: 1fr 1fr; }
  .hero-compact { padding: 42px 0 34px; }
  .store-search { flex-wrap: nowrap; }
  .store-search input[type="search"] { min-width: 0; }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .shop-card-body { padding: 10px; }
  .shop-card-body h3 {
    font-size: 0.84rem;
    min-height: 2.3em;
  }
  .shop-card-actions .btn {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
  .variant-option {
    padding: 7px 8px;
    font-size: 0.68rem;
  }
  .cart-edit-actions .btn {
    flex: 1 1 auto;
  }
}

/* —— Online quotes —— */
.quote-request-shell {
  padding-top: 40px;
  padding-bottom: 48px;
  max-width: 720px;
}
.quote-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.quote-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.quote-hero .muted {
  margin: 8px 0 0;
  max-width: 36rem;
}
.quote-wizard {
  display: grid;
  gap: 16px;
}
.quote-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.quote-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.quote-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.quote-step.is-active {
  border-color: #1a1814;
  background: #1a1814;
  color: #fff;
}
.quote-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0,0,0,.08);
}
.quote-step.is-active .quote-step-num {
  background: rgba(255,255,255,.18);
}
.quote-step-label {
  font-size: 0.84rem;
  font-weight: 600;
}
.quote-step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 24px;
}
.quote-request-form {
  display: block;
}
.quote-panel {
  display: none;
}
.quote-panel.is-active,
.quote-panel:not([hidden]) {
  display: block;
}
.quote-panel[hidden] {
  display: none !important;
}
.quote-panel h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.quote-panel-lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
}
.quote-panel label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.84rem;
  font-weight: 600;
}
.quote-panel input[type="text"],
.quote-panel input[type="email"],
.quote-panel input[type="tel"],
.quote-panel input[type="number"],
.quote-panel select,
.quote-panel textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.quote-panel .variant-toggle {
  margin-top: 14px;
}
.quote-panel .buy-total {
  margin-top: 14px;
}
.quote-product-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f7;
}
.quote-product-chip img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}
.quote-product-chip strong {
  display: block;
}
.quote-product-chip .muted {
  font-size: 0.78rem;
}
.quote-empty-hint {
  margin-top: 14px;
}
.quote-panel-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.quote-panel-actions-split {
  justify-content: space-between;
}
.quote-fineprint {
  margin: 12px 0 0;
  font-size: 0.78rem;
}
.pdp-quote-link {
  margin: 12px 0 0;
}
.pdp-quote-link .btn {
  width: 100%;
}
.quote-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.quote-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quote-doc {
  padding: 28px 24px;
}
.quote-doc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.quote-brand {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.quote-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.92rem;
}
.quote-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.quote-parties h2 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.quote-notes {
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.quote-table th,
.quote-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.quote-table th:nth-child(n+2),
.quote-table td:nth-child(n+2),
.quote-table tfoot td {
  text-align: right;
}
.quote-table tfoot td {
  border-bottom: none;
  padding-top: 14px;
  font-size: 1rem;
}
.quote-item-notes {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.quote-disclaimer {
  margin-top: 18px;
  font-size: 0.78rem;
}
@media (max-width: 640px) {
  .quote-parties {
    grid-template-columns: 1fr;
  }
  .quote-table th:nth-child(4),
  .quote-table td:nth-child(4) {
    display: none;
  }
}
@media print {
  .site-header,
  .footer,
  .quote-toolbar,
  .no-print,
  .flash {
    display: none !important;
  }
  .quote-view-page .store-shell {
    padding: 0 !important;
    max-width: none;
  }
  .quote-doc {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body {
    background: #fff !important;
  }
}
