:root {
  --ink: #17122e;
  --ink-2: #251d48;
  --violet: #423278;
  --violet-soft: #7162a2;
  --gold: #c9a768;
  --gold-dark: #a98444;
  --ivory: #f7f3ea;
  --paper: #fffdfa;
  --muted: #706b7c;
  --line: #e7e0d5;
  --success: #326653;
  --danger: #9c3d4c;
  --shadow: 0 18px 55px rgb(23 18 46 / 10%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* v7.8: courier auto-sync, landing-page builder and conversion product detail */
.product-purchase-panel {
  margin: 24px 0 30px;
  padding: 20px;
  border: 1px solid rgba(39, 26, 75, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #faf7ff);
  box-shadow: 0 16px 38px rgba(38, 23, 74, .08);
}
.product-purchase-panel .stock-note { margin: 0 0 14px; }
.product-purchase-panel .detail-buy { margin: 0; }
.purchase-assurance { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 14px; color: #615875; font-size: 12px; font-weight: 700; }
.purchase-assurance span::before { content: "✓"; margin-right: 6px; color: #8f6c24; }
.product-description-block { padding-top: 2px; }
.product-description-block > h2 { margin: 0 0 12px; color: var(--ink); font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); }
.product-related { padding: 74px 0 88px; border-top: 1px solid rgba(39, 26, 75, .1); }
.related-product-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.campaign-landing { overflow: hidden; background: #fffdfa; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr); gap: clamp(36px, 7vw, 104px); align-items: center; min-height: 710px; padding-top: 68px; padding-bottom: 78px; }
.landing-hero-copy { position: relative; z-index: 1; }
.landing-offer-badge { display: inline-flex; margin-bottom: 26px; padding: 8px 13px; border: 1px solid rgba(160, 117, 35, .25); border-radius: 999px; background: #fff4d7; color: #865e17; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.landing-hero h1 { max-width: 720px; margin: 12px 0 20px; color: #17112f; font-family: var(--serif); font-size: clamp(48px, 6.5vw, 88px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.landing-hero-text { max-width: 620px; color: #5d566a; font-size: clamp(17px, 2vw, 20px); line-height: 1.75; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing-trust-line { margin: 22px 0 0; color: #71697d; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.landing-hero-media { position: relative; min-height: 580px; margin: 0; }
.landing-hero-media::before { content: ""; position: absolute; inset: 7% -10% -5% 12%; border-radius: 54% 46% 36% 64% / 46% 40% 60% 54%; background: linear-gradient(145deg, #e8d5a5, #291a54 72%); opacity: .22; transform: rotate(7deg); }
.landing-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 220px 220px 28px 28px; object-fit: cover; box-shadow: 0 34px 80px rgba(30, 17, 65, .2); }
.landing-hero-media figcaption { position: absolute; right: -22px; bottom: 38px; display: grid; gap: 3px; min-width: 190px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 18px 50px rgba(28, 17, 59, .18); backdrop-filter: blur(12px); }
.landing-hero-media figcaption span { color: #9a722b; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.landing-hero-media figcaption strong { color: #21143f; font-family: var(--serif); font-size: 22px; }
.landing-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding-bottom: 82px; }
.landing-benefits article { position: relative; padding: 32px; background: #241642; color: white; }
.landing-benefits article:first-child { border-radius: 22px 0 0 22px; }
.landing-benefits article:last-child { border-radius: 0 22px 22px 0; }
.landing-benefits span { color: #d5b067; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.landing-benefits h2 { margin: 16px 0 10px; color: white; font-family: var(--serif); font-size: 28px; }
.landing-benefits p { margin: 0; color: #dcd6e8; line-height: 1.65; }
.landing-products-section { padding-top: 76px; padding-bottom: 96px; }
.landing-products-section .section-heading > p { max-width: 520px; color: #6b6375; line-height: 1.7; }
.landing-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.landing-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid rgba(38, 24, 72, .1); border-radius: 20px; background: white; box-shadow: 0 14px 40px rgba(36, 21, 67, .07); }
.landing-product-image { position: relative; display: block; aspect-ratio: .86; overflow: hidden; background: #f4eff5; }
.landing-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.landing-product-card:hover .landing-product-image img { transform: scale(1.035); }
.landing-product-image > span { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: #fff; color: #6f5120; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.landing-product-copy { flex: 1; padding: 18px 18px 14px; }
.landing-product-copy p { margin: 0 0 8px; color: #9a7a43; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-product-copy h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 23px; line-height: 1.12; }
.landing-product-copy h3 a { color: #21143f; }
.landing-product-copy div { display: flex; align-items: center; gap: 9px; }
.landing-product-copy del { color: #9c96a4; font-size: 12px; }
.landing-product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 16px; }
.landing-product-actions .button { min-height: 42px; padding: 10px 8px; font-size: 11px; }
.landing-sold-out { margin: 0 14px 16px; padding: 12px; border-radius: 10px; background: #f2eff4; color: #716b78; text-align: center; font-size: 12px; font-weight: 700; }
.landing-final-cta { padding: 92px 0; background: radial-gradient(circle at 15% 20%, rgba(206,170,91,.22), transparent 30%), #20133c; color: white; text-align: center; }
.landing-final-cta h2 { max-width: 850px; margin: 12px auto; color: white; font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); font-weight: 500; }
.landing-final-cta p { max-width: 700px; margin: 0 auto 26px; color: #dcd6e8; }

.landing-admin-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 24px; padding: 32px; border-radius: 22px; background: linear-gradient(125deg, #fff9ea, #f5efff); }
.landing-admin-hero h2, .landing-builder-head h2 { margin: 7px 0 8px; color: #1f143c; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); }
.landing-admin-hero p, .landing-builder-head p { max-width: 760px; margin-bottom: 0; color: #696173; }
.landing-admin-count { display: grid; min-width: 126px; place-items: center; padding: 22px; border-radius: 18px; background: #251745; color: white; }
.landing-admin-count strong { font-size: 34px; }
.landing-admin-count span { font-size: 11px; text-transform: uppercase; }
.landing-page-table td:first-child strong, .landing-page-table td:first-child small { display: block; }
.landing-page-table td:first-child small { margin-top: 5px; color: #8b8492; }
.landing-builder-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.landing-builder { display: grid; gap: 22px; }
.landing-hero-editor { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: 24px; }
.landing-image-preview { min-height: 420px; border-radius: 20px; background: #eee center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(33,20,63,.1); }
.landing-image-preview span { display: inline-block; margin: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: #291b4a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.landing-benefit-editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.landing-benefit-editors > div { display: grid; gap: 12px; padding: 18px; border: 1px solid #e2ddea; border-radius: 16px; background: #fbf9fd; }
.landing-benefit-editors > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #2b1a4d; color: #fff; font-size: 11px; font-weight: 800; }
.landing-benefit-editors label { display: grid; gap: 6px; color: #3a2e4f; font-size: 12px; font-weight: 750; }
.landing-product-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.landing-product-picker label { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; min-width: 0; padding: 10px; border: 1px solid #e0dbe7; border-radius: 14px; cursor: pointer; }
.landing-product-picker label:has(input:checked) { border-color: #947234; background: #fff9e9; box-shadow: inset 0 0 0 1px #947234; }
.landing-product-picker input { position: absolute; top: 8px; right: 8px; }
.landing-product-picker img { width: 52px; height: 58px; border-radius: 9px; object-fit: cover; }
.landing-product-picker span, .landing-product-picker strong, .landing-product-picker small { display: block; min-width: 0; }
.landing-product-picker strong { overflow: hidden; color: #2d2240; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.landing-product-picker small { margin-top: 4px; color: #8b6b2d; }
.landing-builder-save { position: sticky; bottom: 14px; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 14px; border: 1px solid rgba(40,25,74,.12); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 16px 50px rgba(29,17,57,.16); backdrop-filter: blur(14px); }
.courier-automation-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(350px, 1.2fr); gap: 26px; align-items: center; }
.courier-cron-box { display: grid; gap: 8px; }
.courier-cron-box label { color: #342747; font-size: 12px; font-weight: 800; }
.courier-cron-box > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.courier-cron-box input { min-width: 0; }
.courier-cron-box small { color: #777080; }
.courier-automation-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid #ece8f0; }
.courier-automation-actions span { color: #6f6877; font-size: 12px; font-weight: 750; }

@media (max-width: 1080px) {
  .landing-product-grid, .landing-product-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero { grid-template-columns: 1fr 1fr; gap: 38px; }
}
@media (max-width: 760px) {
  .product-purchase-panel { margin: 18px 0 24px; padding: 16px; border-radius: 16px; }
  .purchase-assurance { display: grid; gap: 8px; }
  .product-related { padding: 50px 0 62px; }
  .related-product-row { display: flex; gap: 14px; margin-right: calc(var(--page-pad) * -1); padding-right: var(--page-pad); overflow-x: auto; scroll-snap-type: x mandatory; }
  .related-product-row .product-card { flex: 0 0 min(76vw, 290px); scroll-snap-align: start; }
  .landing-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 42px; padding-bottom: 56px; }
  .landing-hero h1 { font-size: clamp(44px, 14vw, 68px); }
  .landing-hero-media { min-height: 480px; }
  .landing-hero-media figcaption { right: 12px; bottom: 18px; }
  .landing-benefits { grid-template-columns: 1fr; padding-bottom: 45px; }
  .landing-benefits article:first-child { border-radius: 18px 18px 0 0; }
  .landing-benefits article:last-child { border-radius: 0 0 18px 18px; }
  .landing-products-section { padding-top: 52px; padding-bottom: 66px; }
  .landing-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .landing-product-copy { padding: 13px; }
  .landing-product-copy h3 { font-size: 18px; }
  .landing-product-actions { grid-template-columns: 1fr; padding: 0 10px 12px; }
  .landing-admin-hero, .courier-automation-card { grid-template-columns: 1fr; }
  .landing-admin-count { min-width: 0; }
  .landing-builder-head { align-items: start; flex-direction: column; }
  .landing-hero-editor { grid-template-columns: 1fr; }
  .landing-image-preview { min-height: 330px; }
  .landing-benefit-editors { grid-template-columns: 1fr; }
  .landing-product-picker { grid-template-columns: 1fr; }
  .courier-cron-box > div { grid-template-columns: 1fr; }
  .courier-automation-actions { align-items: stretch; flex-direction: column; }
  .courier-automation-actions .button { width: 100%; }
}
@media (max-width: 420px) {
  .landing-product-grid { grid-template-columns: 1fr; }
  .landing-hero-media { min-height: 410px; }
  .landing-hero-actions .button { width: 100%; }
  .landing-builder-save { flex-direction: column; }
  .landing-builder-save .button { width: 100%; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--sans);
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

::selection {
  background: #d8c6ff;
  color: var(--ink);
}

.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;
}

.section-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.announcement {
  min-height: 34px;
  padding: 7px 28px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  font-size: 11px;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: #e9d3a3;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(255 253 250 / 93%);
  border-bottom: 1px solid rgb(23 18 46 / 8%);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  width: min(1380px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 164px;
  height: 66px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 36px);
  font-size: 13px;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  padding: 29px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 22px;
  height: 1px;
  background: var(--gold-dark);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  width: 178px;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cfc7bb;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.header-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--ivory);
}

.cart-link {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cart-link b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 10px;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgb(23 18 46 / 54%);
  backdrop-filter: blur(6px);
}

.mobile-menu {
  width: min(410px, 88vw);
  height: 100%;
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: menu-in 220ms ease-out;
}

@keyframes menu-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.mobile-menu-head img {
  object-fit: contain;
}

.mobile-search {
  margin: 24px 0 16px;
  padding: 0 12px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.mobile-menu nav {
  margin-bottom: 26px;
}

.mobile-menu nav a {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 90px clamp(48px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -120px;
  top: 40px;
  border: 1px solid rgb(201 167 104 / 25%);
  border-radius: 48% 52% 55% 45%;
  transform: rotate(28deg);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e4ca98;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--gold-dark);
}

.hero h1,
.story-copy h2,
.newsletter h2,
.page-hero h1,
.section-heading h2,
.product-detail-copy h1,
.empty-state h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(54px, 5.3vw, 86px);
  line-height: 0.98;
}

.hero-subtitle {
  max-width: 540px;
  margin: 30px 0 34px;
  color: rgb(255 255 255 / 73%);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 49px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.035em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: #dfbf81;
}

.button-ghost-light {
  border-color: rgb(255 255 255 / 36%);
  color: #fff;
}

.button-ghost-light:hover {
  background: rgb(255 255 255 / 8%);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--violet);
}

.button-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-danger {
  border-color: #e6c6cb;
  background: #fff7f8;
  color: var(--danger);
}

.hero-proof {
  margin-top: 52px;
  display: flex;
  gap: 36px;
}

.hero-proof div {
  padding-left: 13px;
  border-left: 1px solid var(--gold);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.hero-proof span {
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
}

.hero-image {
  position: relative;
  min-height: 650px;
  background: #eee8de;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, transparent 24%),
    linear-gradient(0deg, rgb(23 18 46 / 32%), transparent 55%);
}

.hero-image img {
  object-fit: cover;
  object-position: center top;
}

.hero-image-label {
  position: absolute;
  z-index: 2;
  right: 35px;
  bottom: 34px;
  width: 210px;
  padding: 16px 18px;
  background: rgb(255 253 250 / 93%);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-image-label span,
.hero-image-label strong {
  display: block;
}

.hero-image-label span {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-image-label strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.trust-strip {
  min-height: 90px;
  padding: 18px clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-strip > div {
  min-height: 42px;
  padding-inline: clamp(8px, 2.2vw, 34px);
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip svg {
  color: var(--gold-dark);
  flex: 0 0 auto;
}

.trust-strip span,
.trust-strip strong {
  display: block;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 12px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 10px;
}

.category-section,
.featured-section,
.reviews-section {
  padding-block: 105px;
}

.featured-section {
  padding-top: 40px;
}

.section-heading {
  margin-bottom: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.02;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.text-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--ivory);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(14 10 31 / 76%), transparent 68%);
}

.category-card img {
  object-fit: cover;
  transition: transform 420ms ease;
}

.category-card:hover img {
  transform: scale(1.055);
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 16px;
  bottom: 18px;
  color: #fff;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.category-card small {
  color: rgb(255 255 255 / 64%);
  font-size: 10px;
}

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

.product-card {
  min-width: 0;
}

.product-media {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  background: var(--ivory);
}

.product-media > a {
  position: absolute;
  inset: 0;
}

.product-media img {
  object-fit: cover;
  transition: transform 450ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-badges {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.product-badges span {
  padding: 5px 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-badges .sale-badge {
  background: var(--ink);
  color: #fff;
}

.heart-button {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 253 250 / 92%);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.quick-add {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 43px;
  border: 0;
  background: rgb(23 18 46 / 94%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transform: translateY(calc(100% + 14px));
  transition: transform 180ms ease;
}

.product-card:hover .quick-add,
.quick-add:focus-visible {
  transform: translateY(0);
}

.product-copy {
  padding-top: 14px;
}

.product-copy > p {
  margin: 0 0 5px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-copy h3 {
  min-height: 44px;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.product-copy h3 a:hover {
  color: var(--violet);
}

.price-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-row strong {
  font-size: 13px;
}

.price-row del {
  color: #9b96a3;
  font-size: 11px;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ivory);
}

.story-image {
  position: relative;
  min-height: 630px;
}

.story-image img {
  object-fit: cover;
  image-rendering: auto;
}

.story-stamp {
  position: absolute;
  right: -48px;
  top: 48px;
  width: 96px;
  height: 96px;
  padding: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.15;
  transform: rotate(7deg);
}

.story-copy {
  padding: clamp(70px, 9vw, 138px);
  align-self: center;
}

.story-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(43px, 4.2vw, 64px);
  line-height: 1.02;
}

.story-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.story-copy blockquote {
  margin: 0 0 32px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  color: var(--violet);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.reviews-section {
  background: var(--paper);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  min-height: 275px;
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold-dark);
}

.review-card p {
  min-height: 97px;
  margin: 25px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card strong {
  font-size: 12px;
}

.review-card span {
  color: var(--muted);
  font-size: 10px;
}

.newsletter {
  padding: 75px max(24px, calc((100vw - 1280px) / 2));
  background: var(--violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.06;
}

.newsletter form {
  width: min(500px, 100%);
  height: 56px;
  display: flex;
  border-bottom: 1px solid rgb(255 255 255 / 55%);
}

.newsletter-signup {
  width: min(500px, 100%);
}

.newsletter-signup form {
  width: 100%;
}

.newsletter-signup > small {
  margin-top: 10px;
  color: rgb(255 255 255 / 58%);
  display: block;
  font-size: 8px;
  line-height: 1.55;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.newsletter input::placeholder {
  color: rgb(255 255 255 / 57%);
}

.newsletter button {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.site-footer {
  background: #110d23;
  color: #fff;
}

.footer-main {
  padding-block: 78px 68px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(125px, 0.7fr));
  gap: 42px;
}

.footer-brand img {
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer-brand p {
  max-width: 350px;
  margin: 0;
  color: rgb(255 255 255 / 60%);
  font-size: 13px;
}

.footer-main h3 {
  margin: 8px 0 22px;
  color: #e4ca98;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-main > div:not(.footer-brand) > a:not(.text-link) {
  width: max-content;
  margin-bottom: 10px;
  display: block;
  color: rgb(255 255 255 / 67%);
  font-size: 12px;
}

.footer-main a:hover {
  color: #fff !important;
}

.social-row {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 19%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgb(255 255 255 / 67%);
  font-size: 12px;
}

.footer-contact svg {
  color: var(--gold);
  flex: 0 0 auto;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 42%);
  font-size: 10px;
}

.footer-bottom .section-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
}

/* Catalog and content pages */
.page-hero {
  padding: 78px 24px 70px;
  background: var(--ivory);
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
}

.page-hero p:last-child {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
}

.shop-layout {
  padding-block: 58px 110px;
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 42px;
}

.shop-sidebar {
  align-self: start;
  position: sticky;
  top: 118px;
}

.filter-group {
  padding: 0 0 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.filter-group h3 {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.filter-option {
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.filter-option.active,
.filter-option:hover {
  color: var(--ink);
  font-weight: 700;
}

.shop-toolbar {
  min-height: 48px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.shop-toolbar p {
  color: var(--muted);
  font-size: 11px;
}

.shop-toolbar select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 80px;
  border: 1px dashed var(--line);
  text-align: center;
}

.product-detail {
  padding-block: 70px 110px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(45px, 7vw, 100px);
}

.product-detail-media {
  position: relative;
  min-height: 680px;
  background: var(--ivory);
  overflow: hidden;
}

.product-detail-media img {
  object-fit: cover;
}

.product-detail-copy {
  align-self: center;
  max-width: 540px;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 10px;
}

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

.product-detail-copy .eyebrow {
  margin-bottom: 12px;
}

.product-detail-copy h1 {
  margin: 0;
  font-size: clamp(45px, 5vw, 68px);
  line-height: 1;
}

.detail-price {
  margin: 22px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-price strong {
  font-size: 20px;
}

.detail-price del {
  color: var(--muted);
}

.detail-description {
  color: var(--muted);
  line-height: 1.82;
}

.stock-note {
  margin: 25px 0 14px;
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
}

.detail-buy {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
}

.quantity-picker {
  min-height: 52px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}

.quantity-picker button {
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-buy .button {
  min-height: 52px;
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.detail-purchase-actions .button {
  width: 100%;
}

.detail-perks {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.detail-perks p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.detail-perks svg {
  color: var(--gold-dark);
}

.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 24px 120px;
}

.content-page h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.content-page h2 {
  margin-top: 38px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

/* Cart and checkout */
.cart-page,
.checkout-page {
  padding-block: 76px 120px;
}

.page-title-row {
  margin-bottom: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.page-title-row h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 365px;
  gap: 55px;
}

.cart-item {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  position: relative;
  aspect-ratio: 0.9;
  overflow: hidden;
  background: var(--ivory);
}

.cart-thumb img {
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.cart-item p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.mini-quantity {
  width: 100px;
  height: 36px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  font-size: 11px;
}

.mini-quantity button {
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cart-item-total {
  text-align: right;
}

.cart-item-total strong {
  display: block;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}

.order-summary {
  align-self: start;
  position: sticky;
  top: 128px;
  padding: 30px;
  background: var(--ivory);
}

.order-summary h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.summary-line {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.summary-line.total {
  margin: 13px 0 22px;
  padding-top: 18px;
  border-top: 1px solid #d9d0c2;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.order-summary .button {
  width: 100%;
}

.order-summary small {
  margin-top: 12px;
  display: block;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  min-height: 530px;
  padding: 90px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state > div {
  max-width: 600px;
}

.empty-state svg {
  color: var(--gold-dark);
}

.empty-state h1 {
  margin: 22px 0 15px;
  font-size: 55px;
}

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

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 60px;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.field textarea,
.admin-form textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--violet-soft);
  box-shadow: 0 0 0 3px rgb(66 50 120 / 9%);
}

.radio-card {
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-size: 12px;
}

.form-error {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: #fff2f3;
  color: var(--danger);
  font-size: 12px;
}

/* Admin */
.admin-shell {
  min-height: 730px;
  background: #f3f1f7;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.admin-sidebar {
  padding: 30px 22px;
  background: var(--ink);
  color: #fff;
}

.admin-brand {
  padding: 4px 8px 30px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.admin-brand span,
.admin-brand strong {
  display: block;
}

.admin-brand span {
  color: #e4ca98;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-brand strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.admin-nav {
  margin-top: 23px;
  display: grid;
  gap: 5px;
}

.admin-nav button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgb(255 255 255 / 64%);
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.admin-user {
  margin-top: 35px;
  padding: 16px 12px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 55%);
  font-size: 10px;
  word-break: break-word;
}

.admin-content {
  min-width: 0;
  padding: 38px clamp(24px, 4vw, 60px) 80px;
}

.admin-topbar {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 400;
}

.admin-topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-card {
  padding: 25px;
  border: 1px solid #e5e0ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 35px rgb(34 25 64 / 5%);
}

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

.stat-card {
  padding: 23px;
  border: 1px solid #e5e0ec;
  border-radius: 7px;
  background: #fff;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ede9f2;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-thumb {
  position: relative;
  width: 46px;
  height: 52px;
  overflow: hidden;
  background: var(--ivory);
}

.admin-thumb img {
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 99px;
  background: #ede8f6;
  color: var(--violet);
  font-size: 9px;
  font-weight: 750;
}

.stock-low {
  color: var(--danger);
  font-weight: 750;
}

.table-actions {
  display: flex;
  gap: 5px;
}

.table-actions button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-form label {
  margin-bottom: 5px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form-divider {
  margin-top: 10px;
  padding: 22px 24px;
  border: 1px solid #e5d9c4;
  border-radius: 12px;
  background: linear-gradient(120deg, #fffaf0, #f6f1fb);
}

.admin-form-divider span {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
}

.admin-form-divider p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.admin-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.admin-empty {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
}

.upload-box {
  min-height: 180px;
  padding: 30px;
  border: 1px dashed #cfc6db;
  border-radius: 6px;
  display: grid;
  place-items: center;
  text-align: center;
}

.upload-box input {
  max-width: 250px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  padding: 13px 17px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 11px;
}

@media (max-width: 1150px) {
  .header-inner {
    grid-template-columns: 170px 1fr auto;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hero {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .hero-copy {
    padding: 75px 45px;
  }

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

  .category-card {
    min-height: 300px;
  }

  .footer-main {
    grid-template-columns: 1.4fr 0.7fr 0.8fr;
    gap: 45px;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .announcement {
    justify-content: center;
  }

  .announcement a {
    display: none;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 70px;
    grid-template-columns: 46px 1fr auto;
    gap: 8px;
  }

  .mobile-menu-button {
    display: grid;
  }

  .brand {
    width: 142px;
    height: 57px;
    justify-self: center;
  }

  .main-nav,
  .header-only,
  .cart-link span {
    display: none;
  }

  .cart-link {
    width: 43px;
    padding: 0;
    justify-content: center;
    position: relative;
  }

  .cart-link b {
    position: absolute;
    right: -5px;
    top: -5px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 570px;
    padding: 76px max(28px, 8vw);
  }

  .hero-image {
    min-height: 540px;
  }

  .hero-image::after {
    background: linear-gradient(0deg, rgb(23 18 46 / 35%), transparent 60%);
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip > div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip > div {
    padding-block: 13px;
  }

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

  .quick-add {
    transform: translateY(0);
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 570px;
  }

  .story-stamp {
    right: 28px;
    top: auto;
    bottom: -42px;
  }

  .story-copy {
    padding: 90px max(28px, 8vw);
  }

  .newsletter {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter-group {
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    margin: 0;
    padding: 0;
  }

  .filter-group h3 {
    display: none;
  }

  .filter-option {
    width: auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
  }

  .filter-option span:last-child {
    display: none;
  }

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

  .product-detail-copy {
    max-width: none;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

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

  .admin-sidebar {
    padding: 24px 12px;
  }

  .admin-brand span,
  .admin-brand strong,
  .admin-nav button span,
  .admin-user {
    display: none;
  }

  .admin-nav button {
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .section-shell {
    width: calc(100% - 30px);
  }

  .announcement {
    min-height: 31px;
    padding-inline: 14px;
    font-size: 8px;
  }

  .hero-copy {
    min-height: 545px;
    padding: 64px 24px;
  }

  .hero h1 {
    font-size: 51px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-proof {
    gap: 17px;
  }

  .hero-proof strong {
    font-size: 17px;
  }

  .hero-image {
    min-height: 390px;
  }

  .hero-image-label {
    right: 15px;
    bottom: 15px;
  }

  .trust-strip {
    padding: 10px 15px;
  }

  .trust-strip > div {
    padding-inline: 8px;
  }

  .trust-strip strong {
    font-size: 10px;
  }

  .trust-strip span {
    font-size: 8px;
  }

  .category-section,
  .featured-section,
  .reviews-section {
    padding-block: 72px;
  }

  .featured-section {
    padding-top: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-card {
    min-height: 220px;
  }

  .category-card span {
    left: 13px;
    bottom: 13px;
  }

  .category-card strong {
    font-size: 18px;
  }

  .product-grid {
    gap: 24px 9px;
  }

  .product-copy h3 {
    min-height: 39px;
    font-size: 15px;
  }

  .product-copy > p {
    font-size: 8px;
  }

  .quick-add {
    left: 7px;
    right: 7px;
    bottom: 7px;
    min-height: 38px;
  }

  .heart-button {
    width: 33px;
    height: 33px;
  }

  .story-image {
    min-height: 430px;
  }

  .story-copy {
    padding: 80px 24px 72px;
  }

  .story-copy h2 {
    font-size: 41px;
  }

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

  .newsletter {
    padding: 55px 20px;
  }

  .newsletter form {
    height: auto;
    flex-direction: column;
    border: 0;
    gap: 10px;
  }

  .newsletter input {
    min-height: 50px;
    padding: 0 12px;
    border: 1px solid rgb(255 255 255 / 45%);
  }

  .newsletter button {
    min-height: 50px;
    justify-content: center;
    background: var(--gold);
    color: var(--ink);
  }

  .footer-main {
    padding-block: 60px;
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom .section-shell {
    flex-direction: column;
    gap: 5px;
  }

  .page-hero {
    padding: 55px 18px;
  }

  .shop-layout {
    padding-block: 36px 75px;
  }

  .product-detail {
    padding-top: 24px;
  }

  .product-detail-media {
    min-height: 500px;
  }

  .product-detail-copy h1 {
    font-size: 45px;
  }

  .cart-page,
  .checkout-page {
    padding-block: 50px 80px;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-item-total {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
  }

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

  .field.full {
    grid-column: auto;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 30;
    top: 101px;
    padding: 8px 12px;
    overflow-x: auto;
  }

  .admin-brand {
    display: none;
  }

  .admin-nav {
    margin: 0;
    display: flex;
    gap: 4px;
  }

  .admin-nav button {
    min-width: 42px;
  }

  .admin-content {
    padding: 26px 15px 70px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid,
  .admin-grid-2,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form .full,
  .admin-form-actions {
    grid-column: auto;
  }
}

/* v7.1: operations-focused Store Studio */
.admin-body {
  background: #f4f7f4;
}

.admin-shell {
  min-height: 100vh;
  grid-template-columns: 264px minmax(0, 1fr);
  background:
    radial-gradient(circle at 90% 0, rgb(201 167 104 / 8%), transparent 27%),
    #f4f7f4;
}

.admin-sidebar {
  width: 264px;
  padding: 28px 18px 22px;
  background:
    radial-gradient(circle at 20% 0, rgb(201 167 104 / 13%), transparent 24%),
    #17122e;
  box-shadow: 9px 0 35px rgb(23 18 46 / 10%);
}

.admin-brand {
  padding: 8px 13px 25px;
}

.admin-brand small {
  margin-top: 5px;
  color: rgb(255 255 255 / 42%);
  display: block;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-nav {
  gap: 4px;
}

.admin-nav a {
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.admin-nav a.active {
  border-color: rgb(228 202 152 / 14%);
  background: linear-gradient(90deg, rgb(201 167 104 / 20%), rgb(255 255 255 / 7%));
}

.admin-nav-icon {
  flex: 0 0 auto;
  border-color: rgb(228 202 152 / 32%);
  color: #e4ca98;
}

.admin-user {
  margin-top: 27px;
  padding: 18px 13px 4px;
}

.admin-user small {
  margin-top: -8px;
  color: rgb(255 255 255 / 42%);
  display: block;
}

.admin-content {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 38px clamp(24px, 3.5vw, 58px) 90px;
}

.admin-topbar {
  margin-bottom: 25px;
}

.admin-breadcrumb {
  margin-bottom: 5px !important;
  color: #a17c3c !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  font-family: var(--sans);
  font-size: clamp(31px, 3.3vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.admin-card {
  border-color: #dfe7e2;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgb(30 55 45 / 5%);
}

.orders-command {
  margin-bottom: 16px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #d9e4dd;
  border-radius: 14px;
  background:
    radial-gradient(circle at 94% 15%, rgb(201 167 104 / 23%), transparent 24%),
    linear-gradient(120deg, #fff 0%, #fbfdfb 68%, #f3f8f4 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 16px 45px rgb(30 55 45 / 6%);
}

.orders-command h2,
.team-hero h2,
.integration-hero h2 {
  max-width: 750px;
  margin: 7px 0 9px;
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.orders-command p:not(.eyebrow),
.team-hero p:not(.eyebrow),
.integration-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.orders-command-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.orders-command-actions .button span {
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: rgb(23 18 46 / 9%);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
}

.orders-command-actions .is-active {
  border-color: #c9a768;
  background: #fff9ec;
}

.orders-command-actions .report-download.excel {
  border-color: #afd9c1;
  background: #f2fbf5;
  color: #17623a;
}

.orders-command-actions .report-download.pdf {
  border-color: #efc3c0;
  background: #fff6f5;
  color: #a3332d;
}

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

.order-stat-grid > div {
  min-height: 118px;
  padding: 20px 22px;
  border: 1px solid #dfe7e2;
  border-radius: 11px;
  background: #fff;
  display: grid;
  align-content: center;
}

.order-stat-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.order-stat-grid strong {
  margin: 5px 0 2px;
  font-family: var(--sans);
  font-size: clamp(25px, 2.8vw, 37px);
  letter-spacing: -.035em;
}

.order-stat-grid small {
  color: #918b99;
}

.order-filter-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(31 64 49 / 4%);
}

.order-filter-panel label {
  display: grid;
  gap: 6px;
}

.order-filter-panel label > span,
.bulk-order-toolbar label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-filter-panel input,
.order-filter-panel select,
.bulk-order-toolbar select {
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #d7e1db;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.order-search-field {
  margin-bottom: 14px;
}

.order-search-field input {
  padding-left: 43px;
  background:
    radial-gradient(circle at 22px 50%, transparent 6px, #698077 7px, #698077 8px, transparent 9px),
    linear-gradient(55deg, transparent 49%, #698077 50%, #698077 58%, transparent 59%) 29px 28px / 8px 8px no-repeat,
    #fff;
  font-size: 13px;
}

.order-filter-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr auto auto;
  align-items: end;
  gap: 10px;
}

.order-list-card {
  padding: 0;
  overflow: hidden;
}

.bulk-order-toolbar {
  min-height: 78px;
  padding: 15px 18px;
  border-bottom: 1px solid #dde7e1;
  background: linear-gradient(90deg, #f8fbf9, #fff);
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px) auto;
  align-items: end;
  gap: 14px;
}

.bulk-order-toolbar > div strong,
.bulk-order-toolbar > div small {
  display: block;
}

.bulk-order-toolbar > div strong {
  font-size: 13px;
}

.bulk-order-toolbar > div small {
  margin-top: 3px;
  color: var(--muted);
}

.bulk-order-toolbar label {
  display: grid;
  gap: 5px;
}

.bulk-order-toolbar button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.order-management-table {
  min-width: 1180px;
  font-size: 11px;
}

.order-management-table th,
.order-management-table td {
  padding: 15px 13px;
  border-color: #e5ece7;
}

.order-management-table th {
  background: #fbfdfb;
  color: #41554d;
}

.order-management-table tbody tr {
  transition: background .16s ease;
}

.order-management-table tbody tr:hover {
  background: #fbfdfb;
}

.order-management-table td > strong,
.order-management-table td > small {
  display: block;
}

.order-management-table td > small {
  margin-top: 3px;
  color: var(--muted);
}

.select-cell {
  width: 44px;
  text-align: center !important;
}

.select-cell input {
  width: 18px;
  height: 18px;
  accent-color: #75609f;
}

.order-number-link {
  color: #5b418b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.order-number-link:hover {
  text-decoration: underline;
}

.zone-label {
  color: #445b52;
  white-space: nowrap;
}

.order-status-dot,
.payment-due,
.role-pill {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-new {
  background: #ede8f8;
  color: #5a408d;
}

.status-confirmed {
  background: #e1efff;
  color: #2064b6;
}

.status-packed {
  background: #fff0cf;
  color: #8b5d08;
}

.status-shipped {
  background: #e0f1f2;
  color: #26737a;
}

.status-delivered {
  background: #dff7e9;
  color: #14824a;
}

.status-cancelled {
  background: #ffe3e7;
  color: #b2253b;
}

.payment-due {
  background: #fff0cf;
  color: #995f00;
}

.inline-status-form {
  margin-top: 6px;
}

.inline-status-form select {
  width: 118px;
  min-height: 30px;
  padding: 4px 25px 4px 7px;
  border: 1px solid #dce4df;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
}

.order-total-cell {
  text-align: right !important;
  white-space: nowrap;
}

.order-total-cell strong {
  font-size: 13px;
}

.order-total-cell small {
  color: #cb6900 !important;
}

.order-row-actions {
  min-width: 108px;
  display: grid;
  gap: 6px;
}

.order-row-actions form,
.order-row-actions .table-button {
  width: 100%;
}

.order-row-actions .table-button {
  min-height: 31px;
}

.invoice-button {
  border-color: #d1c2e9;
  background: #f8f4ff;
  color: #5a408d;
}

.team-hero,
.integration-hero {
  margin-bottom: 18px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 25%, rgb(117 96 159 / 15%), transparent 25%),
    #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.team-count {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border: 1px solid #d9c9ee;
  border-radius: 50%;
  background: #f8f4ff;
  display: grid;
  place-content: center;
  text-align: center;
}

.team-count strong {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.team-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-manager-grid {
  align-items: stretch;
}

.role-guide {
  display: grid;
  align-content: start;
  gap: 10px;
}

.role-guide > div {
  padding: 12px 0;
  border-bottom: 1px solid #e9eeeb;
  display: flex;
  gap: 12px;
}

.role-guide > div > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1ecf9;
  color: #684c96;
  display: grid;
  place-items: center;
  font-family: var(--serif);
}

.role-guide p,
.role-guide small {
  margin: 0;
  display: block;
}

.role-guide small {
  margin-top: 2px;
  color: var(--muted);
}

.team-table td > strong,
.team-table td > small {
  display: block;
}

.team-table td > small {
  margin-top: 3px;
  color: var(--muted);
}

.role-pill {
  background: #edf0f8;
  color: #4a587d;
}

.role-pill.owner {
  background: #f3e9d6;
  color: #805d24;
}

.role-change-form select {
  min-height: 36px;
  padding: 6px 30px 6px 9px;
  border: 1px solid #dde5e0;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

.protected-account {
  color: #8a8391;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.integration-hero {
  background:
    radial-gradient(circle at 82% 20%, rgb(201 167 104 / 22%), transparent 24%),
    linear-gradient(125deg, #17122e, #2b2253);
  color: #fff;
}

.integration-hero p:not(.eyebrow) {
  color: rgb(255 255 255 / 66%);
}

.integration-signal {
  min-width: 180px;
  padding: 17px 19px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
  background: rgb(255 255 255 / 7%);
}

.integration-signal > span {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #52d78b;
  display: inline-block;
  box-shadow: 0 0 0 5px rgb(82 215 139 / 12%);
}

.integration-signal strong,
.integration-signal small {
  display: block;
}

.integration-signal strong {
  margin-top: 10px;
}

.integration-signal small {
  margin-top: 3px;
  color: rgb(255 255 255 / 53%);
}

.integration-field {
  padding: 16px 0;
  border-bottom: 1px solid #e9eeeb;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
}

.integration-field:last-child {
  border-bottom: 0;
}

.integration-logo {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.integration-logo.meta {
  background: #1877f2;
}

.integration-logo.google {
  background: linear-gradient(135deg, #4285f4 0 35%, #34a853 35% 58%, #fbbc05 58% 78%, #ea4335 78%);
}

.integration-logo.tag {
  background: #246f8e;
}

.integration-field label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.integration-field label small {
  margin-top: 2px;
  color: var(--muted);
  display: block;
  font-weight: 400;
}

.integration-field input {
  grid-column: 2;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #dbe4df;
  border-radius: 7px;
}

.code-safety-card {
  background:
    radial-gradient(circle at 90% 90%, rgb(201 167 104 / 15%), transparent 32%),
    #fff;
}

.code-safety-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #17122e;
  color: #e4ca98;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-weight: 800;
}

.code-safety-card p,
.code-safety-card li {
  color: var(--muted);
  line-height: 1.7;
}

.code-safety-card ul {
  padding-left: 18px;
}

.custom-code-workspace label {
  margin: 18px 0 7px;
  display: block;
}

.custom-code-workspace label span,
.custom-code-workspace label small {
  display: block;
}

.custom-code-workspace label span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.custom-code-workspace label small {
  margin-top: 3px;
  color: var(--muted);
}

.custom-code-workspace textarea {
  width: 100%;
  min-height: 180px;
  padding: 15px;
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  background: #111421;
  color: #dfe7ff;
  font: 12px/1.6 Consolas, "Courier New", monospace;
  resize: vertical;
  tab-size: 2;
}

.custom-code-workspace textarea:focus {
  border-color: #c9a768;
  outline: 2px solid rgb(201 167 104 / 15%);
}

.code-placement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 1180px) {
  .order-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-filter-row .button {
    width: 100%;
  }

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

@media (max-width: 900px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 40;
    top: 0;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    overflow-x: auto;
  }

  .admin-nav {
    display: flex;
  }

  .admin-nav a {
    flex: 0 0 auto;
  }

  .admin-nav a > span:last-child {
    display: inline;
  }

  .admin-content {
    padding: 26px 16px 70px;
  }

  .orders-command,
  .team-hero,
  .integration-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .bulk-order-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .bulk-order-toolbar .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-nav a > span:last-child {
    display: none;
  }

  .orders-command-actions,
  .orders-command-actions .button {
    width: 100%;
  }

  .orders-command-actions {
    flex-direction: column;
  }

  .order-stat-grid,
  .order-filter-row,
  .code-placement-grid {
    grid-template-columns: 1fr;
  }

  .team-count {
    width: 115px;
    height: 115px;
  }

  .integration-signal {
    width: 100%;
  }
}

/* v5: verified accounts, courier controls and premium tracking */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.home-tracking {
  position: relative;
  min-height: 315px;
  padding: clamp(42px, 7vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 50%, rgb(201 167 104 / 20%), transparent 23%),
    linear-gradient(120deg, #17122e 0%, #29204c 62%, #1b1535 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.home-tracking::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
}

.home-tracking h2 {
  margin: 5px 0 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: .98;
}

.home-tracking p:last-child {
  max-width: 660px;
  margin: 0;
  color: rgb(255 255 255 / 66%);
  line-height: 1.7;
}

.home-tracking .button {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.home-tracking-orbit {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgb(201 167 104 / 50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.home-tracking-orbit::before,
.home-tracking-orbit::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px dashed rgb(255 255 255 / 18%);
  border-radius: 50%;
}

.home-tracking-orbit::after {
  inset: 38px;
  background: var(--gold);
  border: 0;
  box-shadow: 0 0 55px rgb(201 167 104 / 36%);
}

.home-tracking-orbit span {
  z-index: 1;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.verification-resend {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.verification-resend button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}

.account-help a {
  color: var(--violet);
  font-weight: 800;
  text-decoration: underline;
}

.account-recovery {
  min-height: 72vh;
  padding: clamp(65px, 10vw, 125px) 20px;
  background:
    radial-gradient(circle at 15% 5%, rgb(201 167 104 / 16%), transparent 30%),
    var(--ivory);
  display: grid;
  place-items: center;
}

.recovery-card {
  width: min(600px, 100%);
  padding: clamp(30px, 6vw, 60px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgb(23 18 46 / 9%);
}

.recovery-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.recovery-card h1 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.recovery-card > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.recovery-card .text-link {
  margin-top: 24px;
  display: inline-block;
}

.tracking-page {
  background: #f8f5ef;
}

.tracking-hero {
  position: relative;
  min-height: 470px;
  padding: clamp(65px, 9vw, 115px) clamp(25px, 9vw, 130px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 48%, rgb(201 167 104 / 20%), transparent 25%),
    linear-gradient(128deg, #15102a 0%, #28204b 58%, #17122e 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
}

.tracking-hero::before {
  content: "DAZZLEDROPS";
  position: absolute;
  left: 4vw;
  bottom: -30px;
  color: rgb(255 255 255 / 2.8%);
  font-family: var(--serif);
  font-size: clamp(80px, 15vw, 230px);
  line-height: .8;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.tracking-hero-copy {
  position: relative;
  z-index: 2;
}

.tracking-hero h1 {
  margin: 8px 0 20px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.6vw, 106px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .85;
}

.tracking-hero h1 em {
  color: var(--gold);
  font-weight: 400;
}

.tracking-hero-copy > p:last-child {
  max-width: 500px;
  color: rgb(255 255 255 / 65%);
  font-size: 14px;
  line-height: 1.7;
}

.tracking-visual {
  position: relative;
  width: min(370px, 85%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.tracking-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(201 167 104 / 32%);
  border-radius: 50%;
  animation: orbit-spin 18s linear infinite;
}

.tracking-orbit::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 58px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
}

.orbit-two {
  inset: 44px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 13s;
}

.tracking-parcel {
  position: relative;
  z-index: 2;
  width: 145px;
  height: 125px;
  background: linear-gradient(145deg, #d6b979, #a98547);
  box-shadow: 0 24px 60px rgb(0 0 0 / 28%);
  transform: rotate(-7deg);
  display: grid;
  place-items: center;
}

.tracking-parcel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 18px;
  background: rgb(255 255 255 / 20%);
}

.tracking-parcel span,
.tracking-parcel small {
  position: relative;
  z-index: 1;
  display: block;
}

.tracking-parcel span {
  font-family: var(--serif);
  font-size: 37px;
}

.tracking-parcel small {
  margin-top: -40px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .18em;
}

.tracking-star {
  position: absolute;
  color: var(--gold);
  font-style: normal;
  animation: star-pulse 2.8s ease-in-out infinite;
}

.star-one { top: 13%; right: 4%; font-size: 27px; }
.star-two { bottom: 16%; left: 7%; font-size: 18px; animation-delay: 1.1s; }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes star-pulse { 50% { opacity: .3; transform: scale(.7); } }

.tracking-shell {
  position: relative;
  margin-top: -55px;
  padding-top: 0;
}

.tracking-form-premium {
  position: relative;
  z-index: 5;
  width: min(1120px, 100%);
  padding: 24px;
  border: 0;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 26px 80px rgb(23 18 46 / 17%);
  grid-template-columns: 1.1fr 1fr 1fr auto;
}

.tracking-form-intro {
  min-height: 48px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
}

.tracking-form-intro > span {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 30px;
}

.tracking-form-intro strong,
.tracking-form-intro small {
  display: block;
}

.tracking-form-intro strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.tracking-form-intro small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.tracking-form-premium .field input {
  background: #fbfaf7;
}

.tracking-result {
  position: relative;
  width: min(1040px, 100%);
  margin-top: 55px;
  padding: clamp(28px, 5vw, 58px);
  border: 0;
  border-top: 4px solid var(--gold);
  box-shadow: 0 24px 70px rgb(23 18 46 / 10%);
}

.tracking-result::before {
  content: "LIVE JOURNEY";
  position: absolute;
  top: 14px;
  right: 23px;
  color: rgb(23 18 46 / 4%);
  font-size: clamp(35px, 7vw, 85px);
  font-weight: 900;
}

.tracking-result-head {
  position: relative;
  z-index: 1;
}

.tracking-result-head small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.tracking-progress {
  height: 4px;
  margin: 42px 9.7% -47px;
  overflow: hidden;
  background: var(--line);
}

.tracking-progress span {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  display: block;
  transition: width 600ms ease;
}

.tracking-steps::before {
  display: none;
}

.tracking-steps > div small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.tracking-steps i {
  box-shadow: 0 0 0 6px #fff;
}

.tracking-steps > div.complete i {
  border-color: var(--gold-dark);
  background: var(--ink);
}

.tracking-steps > div.complete {
  color: var(--ink);
}

.courier-tracking-card {
  margin: 10px 0 32px;
  padding: 20px 23px;
  border: 1px solid #ded4c6;
  background: linear-gradient(120deg, #fbf7ee, #fff);
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  align-items: center;
  gap: 22px;
}

.courier-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.courier-tracking-card small,
.courier-tracking-card strong {
  display: block;
}

.courier-tracking-card small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.courier-tracking-card strong {
  margin-top: 4px;
  font-size: 11px;
}

.tracking-items {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.tracking-items > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tracking-items small {
  margin-bottom: 5px;
  display: block;
  text-align: right;
}

.courier-order-cell strong,
.courier-order-cell small {
  display: block;
}

.courier-order-cell small {
  margin-top: 3px;
  color: var(--muted);
}

.table-button {
  min-height: 28px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.table-button.accent {
  border-color: var(--gold);
  background: #fbf3e4;
  color: #6f5421;
}

.courier-guide ol {
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.courier-guide li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}

.courier-guide li > span {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--serif);
}

.courier-guide strong,
.courier-guide p {
  display: block;
}

.courier-guide p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1020px) {
  .home-tracking {
    grid-template-columns: 120px 1fr;
  }

  .home-tracking-orbit {
    width: 115px;
  }

  .home-tracking .button {
    grid-column: 2;
    justify-self: start;
  }

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

  .tracking-form-intro {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
  }

  .tracking-form-premium .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .home-tracking {
    padding: 45px 25px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-tracking-orbit {
    margin: 0 auto;
  }

  .home-tracking .button {
    grid-column: auto;
    justify-self: center;
  }

  .tracking-hero {
    min-height: 610px;
    padding: 60px 25px 105px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tracking-hero-copy > p:last-child {
    margin-inline: auto;
  }

  .tracking-visual {
    width: 240px;
  }

  .tracking-parcel {
    width: 112px;
    height: 95px;
  }

  .tracking-form-premium {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .tracking-form-intro,
  .tracking-form-premium .button {
    grid-column: auto;
  }

  .tracking-result-head {
    align-items: flex-start;
  }

  .tracking-progress {
    display: none;
  }

  .tracking-steps > div {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }

  .tracking-steps > div small {
    grid-column: 2;
    text-align: left;
  }

  .courier-tracking-card {
    grid-template-columns: auto 1fr;
  }

  .courier-tracking-card > div {
    grid-column: 2;
  }

  .tracking-items {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-items small {
    text-align: left;
  }

  .admin-sidebar {
    height: auto;
    overflow-y: hidden;
  }
}

/* v7.12: shoppable homepage, location-aware delivery and configurable payments. */
.category-section {
  padding-top: 72px;
  padding-bottom: 74px;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 0;
  aspect-ratio: 1.34;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgb(26 18 47 / 8%);
}

.category-card::after { background: linear-gradient(0deg, rgb(12 9 28 / 78%), rgb(12 9 28 / 4%) 74%); }
.category-card span { left: 16px; right: 16px; bottom: 15px; text-align: center; }
.category-card strong { font-family: var(--sans); font-size: 16px; font-weight: 800; }
.category-card small { margin-top: 4px; color: rgb(255 255 255 / 82%); font-size: 10px; }

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

.featured-section .product-card,
.shop-layout .product-card,
.related-product-row .product-card {
  overflow: hidden;
  border: 1px solid #e6dfd7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(32 22 50 / 7%);
  display: flex;
  flex-direction: column;
}

.product-card .product-media { aspect-ratio: 1 / 1.03; }
.product-card .product-copy { padding: 15px 15px 16px; display: flex; flex: 1; flex-direction: column; }
.product-card .product-copy h3 { min-height: 48px; font-family: var(--sans); font-size: 16px; font-weight: 730; line-height: 1.45; }
.product-card .price-row { margin: 10px 0 0; }
.product-card .price-row strong { font-size: 20px; }
.product-card .product-badges { top: 10px; left: 10px; flex-direction: row; }
.product-card .product-badges span { border-radius: 999px; }
.product-card .product-badges .sale-badge { background: #ed174c; }

.product-card-actions {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.product-card-actions .button {
  width: 100%;
  min-height: 43px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}

.product-card-sold-out {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.checkout-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checkout-delivery-zones > label:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout-delivery-zones > label:first-child small { color: var(--muted); font-size: 9px; font-weight: 500; }
.delivery-zone-option { min-height: 70px; padding: 13px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.delivery-zone-option span { min-width: 0; display: grid; gap: 4px; }
.delivery-zone-option span strong { font-size: 12px; }
.delivery-zone-option span small { color: var(--muted); font-size: 9px; font-weight: 500; }
.delivery-zone-option > b { font-size: 13px; }
.delivery-zone-option:has(input:checked) { border-color: var(--violet); background: #fbf8ff; box-shadow: 0 0 0 2px rgb(81 55 121 / 8%); }

.payment-option-list { display: grid; gap: 10px; }
.payment-option {
  min-height: 64px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px rgb(81 55 121 / 9%); }
.payment-option > input { margin: 0; }
.payment-option > span:last-child { display: grid; gap: 3px; }
.payment-option strong { font-size: 12px; }
.payment-option small { color: var(--muted); font-size: 9px; font-weight: 500; }
.payment-option-icon { width: 36px; height: 36px; border-radius: 10px; background: #e7f8ed; color: #129549; display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.payment-option-bkash .payment-option-icon { background: #ffe7f1; color: #e2136e; }
.payment-option-nagad .payment-option-icon { background: #fff0e5; color: #ef5b24; }

.mobile-payment-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #ead4de;
  border-radius: 14px;
  background: #fff8fb;
}
.mobile-payment-panel[hidden] { display: none; }
.mobile-payment-summary { padding: 0 0 15px; border-bottom: 1px solid #eddde4; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.mobile-payment-summary > span { display: grid; gap: 7px; }
.mobile-payment-summary > span > strong { font-size: 12px; }
.mobile-payment-summary small { color: var(--muted); font-size: 10px; }
.mobile-payment-summary button { margin-left: 6px; padding: 2px 6px; border: 0; background: transparent; color: var(--violet); cursor: pointer; font-size: 9px; font-weight: 800; }
.mobile-payment-summary > strong { font-size: 17px; white-space: nowrap; }
.mobile-payment-panel > p { margin: 14px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.mobile-payment-breakdown { border: 1px solid #eee6ea; border-radius: 8px; background: #fff; }
.mobile-payment-breakdown span { padding: 10px 12px; border-bottom: 1px solid #eee6ea; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.mobile-payment-breakdown span:last-child { border-bottom: 0; }
.mobile-payment-fields { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-security-note { margin-top: 12px; color: #8d4162; display: block; font-size: 9px; line-height: 1.55; }
.success-payment { color: var(--muted); font-size: 12px; }
.account-payment-submission { margin: -16px 0 28px; padding: 12px 14px; border: 1px solid #ead4de; border-radius: 7px; background: #fff8fb; display: grid; gap: 5px; font-size: 10px; }

.payment-admin-hero {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid #dce8e2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fff9, #f6fbf8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.payment-admin-hero h2 { margin: 5px 0 8px; font-size: 30px; }
.payment-admin-hero p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.6; }
.payment-admin-status { min-width: 150px; padding: 12px 15px; border: 1px solid #cbe5d4; border-radius: 12px; background: #fff; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.payment-admin-status i { grid-row: 1 / 3; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #0ec066; box-shadow: 0 0 0 4px rgb(14 192 102 / 12%); }
.payment-admin-status small { color: var(--muted); font-size: 9px; }
.payment-method-admin-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.payment-method-admin-card { min-height: 205px; padding: 22px; border: 1px solid #dfe7e2; border-radius: 15px; background: #fff; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 16px; box-shadow: 0 8px 24px rgb(26 62 43 / 5%); }
.payment-admin-icon { width: 46px; height: 46px; border-radius: 13px; background: #e5f8ed; color: #0b9d4a; display: grid; place-items: center; font-size: 21px; font-weight: 900; }
.payment-admin-bkash .payment-admin-icon { background: #ffe8f1; color: #e2136e; }
.payment-admin-nagad .payment-admin-icon { background: #fff0e5; color: #ef5b24; }
.payment-method-admin-card > div strong { font-size: 14px; }
.payment-method-admin-card > div p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.payment-connection { align-self: end; display: inline-flex; align-items: center; gap: 7px; color: #a46d09; font-size: 10px; }
.payment-connection i { width: 8px; height: 8px; border-radius: 50%; background: #c78817; }
.payment-connection.connected { color: #079749; }
.payment-connection.connected i { background: #0ec066; }
.payment-method-admin-card > a { align-self: end; justify-self: end; color: var(--ink); font-size: 10px; font-weight: 800; }
.payment-settings-form { display: grid; gap: 20px; }
.payment-config-card { scroll-margin-top: 20px; }
.payment-config-fields { margin-top: 18px; }
.payment-amount-options { padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-amount-options legend { margin-bottom: 9px; font-size: 11px; font-weight: 800; }
.payment-amount-options .radio-card { margin: 0; }
.payment-instruction-field { margin-top: 16px; }
.payment-settings-save { position: sticky; z-index: 4; bottom: 14px; padding: 12px; border: 1px solid #dfe7e2; border-radius: 13px; background: rgb(255 255 255 / 94%); box-shadow: 0 10px 30px rgb(23 18 46 / 10%); display: flex; justify-content: flex-end; backdrop-filter: blur(8px); }
.payment-reference-details { margin: 7px 0; }
.payment-reference-details summary { color: #e2136e; cursor: pointer; font-size: 9px; font-weight: 800; }
.payment-reference-details > div { width: 220px; margin-top: 7px; padding: 10px; border: 1px solid #ead4de; border-radius: 7px; background: #fff8fb; display: grid; gap: 4px; }
.payment-reference-details span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.payment-reference-details strong { overflow-wrap: anywhere; font-size: 10px; }
.payment-reference-details small { margin-top: 5px; line-height: 1.45; }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-method-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .category-section { padding-top: 48px; padding-bottom: 52px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { border-radius: 13px; }
  .category-card strong { font-size: 13px; }
  .featured-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card .product-copy { padding: 12px; }
  .product-card .product-copy h3 { min-height: 42px; font-size: 13px; }
  .product-card .price-row strong { font-size: 17px; }
  .product-card-actions { grid-template-columns: 1fr; gap: 7px; padding-top: 12px; }
  .product-card-actions .button { min-height: 40px; font-size: 10px; }
  .mobile-payment-fields { grid-template-columns: 1fr; }
  .payment-admin-hero { align-items: flex-start; flex-direction: column; }
  .payment-method-admin-grid { grid-template-columns: 1fr; }
  .payment-amount-options { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .product-card-actions .button { padding-inline: 5px; }
  .delivery-zone-option { grid-template-columns: auto 1fr; }
  .delivery-zone-option > b { grid-column: 2; }
}

/* v3: smoother storefront, customer account and tracking */
.site-header {
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgb(255 253 250 / 98%);
  box-shadow: 0 10px 32px rgb(23 18 46 / 8%);
}

.account-link {
  min-height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.button,
.quick-add,
.cart-link,
.icon-button,
.account-link {
  transition:
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:active,
.quick-add:active,
.cart-link:active {
  transform: translateY(0) scale(.98);
}

.product-card {
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-media {
  box-shadow: 0 0 0 rgb(23 18 46 / 0%);
  transition: box-shadow 260ms ease;
}

.product-card:hover .product-media {
  box-shadow: 0 18px 40px rgb(23 18 46 / 11%);
}

.hero-image > img {
  animation: hero-settle 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .7, .2, 1);
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

.is-submitting {
  opacity: .72;
  pointer-events: none;
}

.is-submitting::after {
  content: " …";
}

.ajax-toast {
  animation: toast-in 220ms ease-out both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.product-specs {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.product-specs > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.product-specs > div:last-child {
  border-right: 0;
}

.product-specs span,
.product-specs strong {
  display: block;
}

.product-specs span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-specs strong {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

.product-accordions {
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
}

.product-accordions details {
  border-bottom: 1px solid var(--line);
}

.product-accordions summary {
  padding: 14px 2px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  content: "+";
  float: right;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 400;
}

.product-accordions details[open] summary::after {
  content: "−";
}

.product-accordions p {
  margin: 0;
  padding: 0 2px 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.checkout-account-note {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  color: var(--muted);
  font-size: 11px;
}

.checkout-account-note a {
  color: var(--violet);
  font-weight: 800;
  text-decoration: underline;
}

.page-hero.compact {
  padding-block: 60px;
}

.account-auth {
  padding-block: 75px 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.account-card {
  padding: clamp(28px, 5vw, 55px);
  border: 1px solid var(--line);
  background: #fff;
}

.account-card-accent {
  background: var(--ink);
  color: #fff;
}

.account-card .eyebrow {
  margin-bottom: 8px;
}

.account-card h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.account-form {
  display: grid;
  gap: 15px;
}

.account-form .button {
  margin-top: 5px;
}

.account-card-accent .field label,
.account-card-accent .field small {
  color: rgb(255 255 255 / 67%);
}

.account-card-accent .field input {
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 9%);
  color: #fff;
}

.account-card-accent .field input:focus {
  border-color: var(--gold);
}

.account-help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.account-dashboard {
  padding-block: 75px 120px;
}

.account-welcome {
  margin-bottom: 35px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.account-welcome h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.account-welcome p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.account-stats {
  margin-bottom: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.account-stats > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.account-stats > div:last-child {
  border-right: 0;
}

.account-stats span,
.account-stats strong {
  display: block;
}

.account-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-stats strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
}

.order-history-list {
  display: grid;
  gap: 12px;
}

.order-history-card {
  padding: 22px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr .8fr .7fr 1.7fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.order-history-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.order-history-card span,
.order-history-card strong,
.order-history-card small,
.history-items small {
  display: block;
}

.order-history-card span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-history-card small {
  color: var(--muted);
  font-size: 9px;
}

.history-items {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.account-empty {
  padding: 70px 20px;
  border: 1px dashed var(--line);
  text-align: center;
}

.tracking-shell {
  padding-block: 70px 120px;
}

.tracking-form {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}

.tracking-form .button {
  min-height: 48px;
}

.tracking-result {
  width: min(950px, 100%);
  margin: 35px auto 0;
  padding: clamp(25px, 5vw, 50px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.tracking-result-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tracking-result-head div span,
.tracking-result-head div strong {
  display: block;
}

.tracking-result-head div span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.tracking-result-head div strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.status-pill.cancelled,
.status-pill.failed {
  background: #fff0f2;
  color: var(--danger);
}

.tracking-steps {
  position: relative;
  margin: 45px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.tracking-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
}

.tracking-steps > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracking-steps i {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
}

.tracking-steps > div.complete {
  color: var(--success);
}

.tracking-steps > div.complete i {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.tracking-meta {
  padding-top: 23px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tracking-meta span,
.tracking-meta strong {
  display: block;
}

.tracking-meta span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.tracking-meta strong {
  margin-top: 3px;
  font-size: 11px;
}

.tracking-cancelled {
  margin: 30px 0;
  padding: 18px;
  background: #fff0f2;
  color: var(--danger);
  text-align: center;
}

.admin-help,
.sms-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.sms-note {
  margin-top: 22px;
  padding: 14px;
  background: var(--ivory);
}

@media (max-width: 900px) {
  .account-auth {
    grid-template-columns: 1fr;
  }

  .order-history-card {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .history-items {
    grid-column: 1 / -1;
    padding: 15px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .tracking-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .product-specs {
    grid-template-columns: 1fr;
  }

  .product-specs > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-specs > div:last-child {
    border-bottom: 0;
  }

  .account-auth {
    padding-block: 35px 75px;
  }

  .account-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .account-stats > div {
    padding: 15px 10px;
  }

  .account-stats strong {
    font-size: 25px;
  }

  .account-stats span {
    font-size: 7px;
  }

  .order-history-card {
    grid-template-columns: 1fr 1fr;
  }

  .tracking-form {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .tracking-form .button {
    grid-column: auto;
  }

  .tracking-result {
    padding: 24px 16px;
  }

  .tracking-steps {
    margin-block: 30px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .tracking-steps::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .tracking-steps > div {
    grid-template-columns: 36px 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .tracking-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* PHP/cPanel storefront additions */
.hero-image > img,
.category-card > img,
.product-media > a > img,
.story-image > img,
.product-detail-media > img,
.cart-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image > img,
.category-card > img,
.story-image > img,
.product-detail-media > img,
.cart-thumb > img {
  position: absolute;
  inset: 0;
}

.hero-image > img {
  object-position: center top;
}

.product-media > a > img {
  position: absolute;
  inset: 0;
}

.brand img,
.mobile-menu-head img {
  object-fit: contain;
}

.trust-strip i {
  width: 24px;
  color: var(--gold-dark);
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 23px;
  font-style: normal;
  text-align: center;
}

.quick-add.sold-out {
  cursor: default;
  background: rgb(112 107 124 / 92%);
}

.detail-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quantity-picker input,
.mini-quantity input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
}

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

.cart-update {
  margin-top: 20px;
}

.coupon-form {
  margin: 5px 0 17px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.coupon-form input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #d9d0c2;
  background: #fff;
}

.coupon-form button {
  padding: 0 14px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.summary-line.discount {
  color: var(--success);
}

.checkout-submit {
  grid-column: 1 / -1;
  min-height: 56px;
}

.success-mark,
.empty-icon {
  display: inline-grid;
  min-width: 72px;
  min-height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 30px;
}

.success-mark {
  background: var(--success);
  color: #fff;
}

.success-total {
  margin: 0 auto 26px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-lead {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 21px;
}

.flash {
  position: fixed;
  z-index: 300;
  top: 18px;
  left: 50%;
  width: min(560px, calc(100% - 30px));
  min-height: 50px;
  padding: 12px 12px 12px 17px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
  font-size: 12px;
  transform: translateX(-50%);
}

.flash-success {
  background: var(--success);
}

.flash-error {
  background: var(--danger);
}

.flash button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

[hidden] {
  display: none !important;
}

/* Self-hosted admin */
.admin-body {
  background: #f3f1f7;
}

.admin-login-page {
  min-height: 100vh;
  padding: 45px 18px;
  background:
    radial-gradient(circle at 15% 10%, rgb(201 167 104 / 18%), transparent 35%),
    var(--ink);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(470px, 100%);
  padding: 45px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(0 0 0 / 25%);
}

.admin-login-card > img {
  margin: 0 auto 24px;
  object-fit: contain;
}

.admin-login-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
}

.admin-login-card > p:not(.eyebrow) {
  margin: 12px 0 25px;
  color: var(--muted);
}

.admin-login-form {
  margin-bottom: 22px;
  display: grid;
  gap: 8px;
}

.admin-login-form label,
.security-card label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-login-form input {
  min-height: 49px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-login-form .button {
  margin-top: 10px;
}

.admin-brand {
  display: block;
  color: #fff;
}

.admin-nav a {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  color: rgb(255 255 255 / 64%);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.admin-nav-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 11px;
}

.admin-user span,
.admin-user strong,
.admin-user a {
  display: block;
}

.admin-user strong {
  margin: 2px 0 12px;
  color: rgb(255 255 255 / 82%);
}

.admin-user a,
.admin-user button {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #e4ca98;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}

.admin-alert {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #eab4bd;
  border-radius: 5px;
  background: #fff4f5;
  color: var(--danger);
  font-size: 11px;
}

.admin-alert.warning {
  border-color: #e4cea4;
  background: #fff9ed;
  color: #6e5120;
}

.admin-alert a {
  text-decoration: underline;
}

.admin-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-form-heading .admin-section-title {
  margin: 0;
}

.admin-form input[type="file"] {
  padding: 9px;
}

.admin-thumb {
  width: 46px;
  height: 52px;
  object-fit: cover;
  background: var(--ivory);
}

.table-actions,
.table-actions form {
  align-items: center;
}

.table-actions a,
.table-actions button {
  width: auto;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 9px;
}

.order-item-line {
  max-width: 210px;
  display: block;
  white-space: normal;
}

.admin-card-spaced {
  margin-top: 22px;
}

.upload-icon {
  font-size: 35px;
}

.latest-upload {
  width: 100%;
  height: 300px;
  margin-bottom: 15px;
  object-fit: contain;
  background: var(--ivory);
}

.admin-card > label,
.admin-card > input {
  display: block;
}

.admin-card > input {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid var(--line);
}

.security-card {
  max-width: 850px;
}

.security-card > p {
  color: var(--muted);
}

.customer-hub {
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 15%, rgb(201 167 104 / 28%), transparent 34%),
    linear-gradient(135deg, #17122e 0%, #282052 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 22px 50px rgb(23 18 46 / 14%);
}

.customer-hub h2 {
  max-width: 670px;
  margin: 7px 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: .98;
}

.customer-hub p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgb(255 255 255 / 70%);
  line-height: 1.7;
}

.customer-hub form {
  flex: 0 0 auto;
}

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

.customer-stat-grid > div {
  min-height: 110px;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 7px;
}

.customer-stat-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-stat-grid strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 37px);
  font-weight: 400;
}

.customer-manager-grid {
  align-items: stretch;
}

.customer-privacy-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(201 167 104 / 12%), transparent 55%),
    #fff;
}

.customer-privacy-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -80px;
  bottom: -100px;
  border: 1px solid rgb(201 167 104 / 36%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(201 167 104 / 7%);
}

.customer-privacy-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid #d9bd86;
  border-radius: 50%;
  color: #9d7130;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.customer-privacy-card ul {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.7;
}

.customer-count-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.table-button.danger {
  border-color: #e9c7cd;
  background: #fff7f8;
  color: var(--danger);
}

.table-button.danger:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

@media (max-width: 900px) {
  .admin-nav a {
    justify-content: center;
  }

  .admin-nav a > span:last-child,
  .admin-user {
    display: none;
  }

  .customer-hub {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .admin-login-card {
    padding: 32px 23px;
  }

  .admin-nav a {
    min-width: 42px;
    padding: 0 8px;
  }

  .checkout-submit {
    grid-column: auto;
  }

  .customer-hub form,
  .customer-hub .button {
    width: 100%;
  }
}

/* Keep the v7.2 admin treatment last in the cascade. */
.admin-nav a {
  border: 1px solid transparent;
  border-radius: 7px;
}

.admin-nav a.active {
  border-color: rgb(228 202 152 / 14%);
  background: linear-gradient(90deg, rgb(201 167 104 / 20%), rgb(255 255 255 / 7%));
}

.admin-brand small,
.admin-user small {
  display: block;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: sticky;
    z-index: 40;
    top: 0;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    overflow-x: auto;
  }

  .admin-nav {
    margin: 0;
    display: flex;
  }

  .admin-nav a {
    flex: 0 0 auto;
  }
}

/* Meta Ads control centre */
.integration-signal:not(.is-live) > span {
  background: #e9a53d;
  box-shadow: 0 0 0 5px rgb(233 165 61 / 14%);
}

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

.meta-health-card {
  min-height: 112px;
  padding: 19px 20px;
  border: 1px solid #dce5e0;
  border-radius: 10px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 5px;
  box-shadow: 0 10px 28px rgb(22 33 29 / 5%);
}

.meta-health-card span {
  color: #8a8391;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meta-health-card strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.meta-health-card small {
  color: var(--muted);
  font-size: 10px;
}

.meta-health-card.ok {
  border-top: 3px solid #23aa69;
}

.meta-health-card.off {
  border-top: 3px solid #c8c3cc;
}

.meta-health-card.test {
  border-top: 3px solid #e7a034;
  background: #fffbf1;
}

.meta-setup-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: stretch;
}

.meta-config-card,
.meta-guide-card {
  border-radius: 12px;
}

.meta-config-card .admin-form-heading {
  margin-bottom: 8px;
}

.meta-config-card .integration-logo {
  grid-row: auto;
  flex: 0 0 auto;
}

.meta-config-card > .full {
  width: 100%;
}

.meta-field {
  margin-top: 17px;
}

.meta-field label,
.meta-field label small {
  display: block;
}

.meta-field label {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
}

.meta-field label small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.meta-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cfdcd6;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
}

.meta-field input:focus {
  border-color: #1877f2;
  outline: 3px solid rgb(24 119 242 / 10%);
}

.integration-switch {
  min-height: 72px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid #d9e3de;
  border-radius: 9px;
  background: #f9fcfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.integration-switch span,
.integration-switch strong,
.integration-switch small {
  display: block;
}

.integration-switch strong {
  font-size: 11px;
}

.integration-switch small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.integration-switch input {
  position: relative;
  flex: 0 0 auto;
  width: 43px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #c9cfcc;
  appearance: none;
  cursor: pointer;
  transition: background .2s ease;
}

.integration-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  transition: transform .2s ease;
}

.integration-switch input:checked {
  background: #087f7b;
}

.integration-switch input:checked::after {
  transform: translateX(19px);
}

.meta-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meta-remove-token {
  margin-top: 10px;
  color: #9d3346;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
}

.meta-event-funnel {
  margin-top: 19px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-event-funnel span {
  padding: 7px 9px;
  border: 1px solid #dce6e1;
  border-radius: 999px;
  background: #fff;
  color: #4f5863;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.meta-event-funnel span:last-child {
  border-color: #c6a76a;
  background: #fff9ed;
  color: #76551e;
}

.meta-guide-card {
  background:
    radial-gradient(circle at 100% 0, rgb(24 119 242 / 10%), transparent 33%),
    #fff;
}

.meta-guide-card ol {
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.meta-guide-card li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
}

.meta-guide-card li > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #17122e;
  color: #e7c98f;
  display: grid;
  place-items: center;
  font: 700 11px var(--serif);
}

.meta-guide-card li strong {
  font-size: 11px;
}

.meta-guide-card li p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.meta-privacy-note,
.meta-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e5c988;
  border-radius: 8px;
  background: #fffaf0;
  color: #735521;
  font-size: 10px;
  line-height: 1.6;
}

.meta-warning.subtle {
  margin: 13px 0;
  border-color: #e5ded1;
  background: #fbf8f2;
  color: #675e50;
}

.integration-google-grid {
  margin-top: 8px;
  grid-template-columns: 1fr 1fr;
}

.meta-diagnostics-grid {
  margin-top: 22px;
}

.meta-diagnostics-grid .admin-card {
  min-height: 250px;
}

.meta-diagnostics-grid form {
  margin-top: 20px;
}

.meta-diagnostics-grid .button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.meta-quality-list {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.meta-quality-list li {
  color: var(--muted);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  font-size: 10px;
  line-height: 1.55;
}

.meta-quality-list span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7f7ef;
  color: #168653;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.meta-event-log code {
  max-width: 250px;
  color: #5f5870;
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: 8px;
}

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

  .meta-setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .meta-health-grid,
  .meta-channel-grid,
  .integration-google-grid {
    grid-template-columns: 1fr;
  }

  .meta-health-card {
    min-height: 92px;
  }

  .integration-switch {
    align-items: flex-start;
  }
}

/* v7.3: cart actions and product category management */
.product-category-field small,
.product-custom-category small,
.category-create-form small,
.category-management-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.product-custom-category[hidden] {
  display: none;
}

.category-create-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.category-create-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 750;
}

.category-create-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
}

.category-create-form input:focus {
  border-color: var(--violet-soft);
  box-shadow: 0 0 0 3px rgb(66 50 120 / 9%);
}

.category-management-list {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.category-management-item {
  min-height: 62px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

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

.category-management-item strong {
  font-size: 12px;
}

@media (max-width: 640px) {
  .detail-buy,
  .category-create-form {
    grid-template-columns: 1fr;
  }

  .detail-purchase-actions {
    grid-template-columns: 1fr 1fr;
  }

  .category-create-form .button {
    width: 100%;
  }
}

/* v7.4: analytics and promotional campaigns */

.analytics-toolbar {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.analytics-toolbar h2,
.marketing-hero h2 {
  max-width: 720px;
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.05;
}

.analytics-toolbar p,
.marketing-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.analytics-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.analytics-live {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #9ce5cb;
  border-radius: 999px;
  background: #e8fff7;
  color: #087a62;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10c58b;
  box-shadow: 0 0 0 5px rgb(16 197 139 / 13%);
}

.analytics-range {
  padding: 4px;
  border-radius: 8px;
  display: flex;
  background: #eaf0eb;
}

.analytics-range a {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #405149;
  font-size: 10px;
  font-weight: 800;
}

.analytics-range a.active {
  background: #fff;
  color: #101b17;
  box-shadow: 0 2px 8px rgb(20 52 39 / 10%);
}

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

.analytics-stat {
  min-height: 132px;
  padding: 21px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(23 49 38 / 6%);
}

.analytics-stat > div {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3b5148;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.analytics-stat > div i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e7f2ef;
  color: #087f7c;
  display: grid;
  place-items: center;
  font-style: normal;
}

.analytics-stat > strong {
  margin-right: 8px;
  color: #0a1d17;
  font-size: 25px;
}

.analytics-stat > small {
  margin-top: 8px;
  color: #77867f;
  display: block;
  font-size: 8px;
}

.analytics-delta {
  padding: 4px 7px;
  border-radius: 999px;
  display: inline-flex;
  font-size: 8px;
  font-weight: 850;
  vertical-align: middle;
}

.analytics-delta.positive { background: #def8ea; color: #138251; }
.analytics-delta.negative { background: #ffe3e7; color: #d1374d; }
.analytics-delta.neutral { background: #eef1ef; color: #68756f; }

.analytics-chart-grid,
.analytics-detail-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
}

.analytics-detail-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.analytics-chart-card {
  min-width: 0;
  padding: 22px;
}

.analytics-card-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analytics-card-head > strong {
  color: #087f7c;
  font-family: var(--serif);
  font-size: 23px;
  white-space: nowrap;
}

.analytics-head-totals {
  display: flex;
  gap: 18px;
}

.analytics-head-totals span {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
  text-transform: uppercase;
}

.analytics-head-totals strong {
  margin-top: 3px;
  color: #0a1d17;
  display: block;
  font-family: var(--serif);
  font-size: 18px;
}

.analytics-legend {
  margin: 4px 0 7px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #63716b;
  font-size: 8px;
}

.analytics-legend span::before {
  content: "";
  width: 9px;
  height: 3px;
  margin-right: 5px;
  border-radius: 9px;
  display: inline-block;
  vertical-align: middle;
  background: #087f7c;
}

.analytics-legend .home::before { background: #9bd51b; }
.analytics-legend .product::before { background: #e6a51d; }
.analytics-legend .category::before { background: #0297d5; }
.analytics-legend .landing::before { background: #d54b92; }
.analytics-legend .orders::before { background: #9bd51b; }

.analytics-canvas {
  width: 100%;
  height: 330px;
  display: block;
}

.traffic-source-list,
.analytics-list,
.campaign-list {
  display: grid;
}

.traffic-source-row {
  padding: 12px 0;
  border-bottom: 1px solid #e2e9e5;
}

.traffic-source-row > div:first-child {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.traffic-source-row span { color: #087f7c; font-weight: 800; }
.traffic-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #eaf0ed; }
.traffic-bar i { height: 100%; border-radius: inherit; display: block; background: linear-gradient(90deg, #087f7c, #53b3a5); }

.analytics-list-row {
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e9e5;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.analytics-rank {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #eef6f2;
  color: #087f7c;
  display: grid;
  place-items: center;
  font-weight: 850;
}

.analytics-list-row strong,
.analytics-list-row small { display: block; }
.analytics-list-row strong { font-size: 11px; }
.analytics-list-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.analytics-list-row b { color: #087f7c; font-size: 13px; }

.analytics-product {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.analytics-product img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ivory);
}

.marketing-hero {
  margin-bottom: 22px;
  padding: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #f4fbf7);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 7px 26px rgb(29 58 45 / 7%);
}

.marketing-audience-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
}

.marketing-audience-summary div {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #dce9e2;
  border-radius: 8px;
  background: #fff;
}

.marketing-audience-summary strong,
.marketing-audience-summary span { display: block; }
.marketing-audience-summary strong { color: #087f7c; font-family: var(--serif); font-size: 25px; }
.marketing-audience-summary span { color: var(--muted); font-size: 8px; }

.marketing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 22px;
}

.marketing-audience-picker {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.marketing-audience-picker legend {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
}

.marketing-audience-picker label {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.marketing-audience-picker label:has(input:checked) {
  border-color: #4aa68f;
  background: #edfbf6;
  box-shadow: inset 0 0 0 1px #4aa68f;
}

.marketing-audience-picker input { width: auto; min-height: 0; margin-top: 4px; accent-color: #087f7c; }
.marketing-audience-picker strong,
.marketing-audience-picker small { display: block; }
.marketing-audience-picker strong { font-size: 10px; }
.marketing-audience-picker small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; }

.marketing-confirm { align-items: center; }
.marketing-delivery-note { align-self: start; position: sticky; top: 30px; }
.marketing-note-icon { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: #e4f6ef; color: #087f7c; display: grid; place-items: center; font-size: 23px; }
.marketing-delivery-note ul { margin: 20px 0 24px; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.75; }

.campaign-row {
  min-height: 92px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.campaign-status {
  color: #7b6c4c;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.campaign-status i { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e4a529; display: inline-block; }
.campaign-status.complete { color: #17825b; }
.campaign-status.complete i { background: #20b777; }
.campaign-status.cancelled { color: #aa4352; }
.campaign-status.cancelled i { background: #d55e70; }
.campaign-copy strong,
.campaign-copy small { display: block; }
.campaign-copy strong { font-size: 11px; }
.campaign-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.campaign-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.campaign-progress i { height: 100%; border-radius: inherit; display: block; background: linear-gradient(90deg, #087f7c, #6bc7b5); }
.campaign-counts { display: flex; gap: 15px; }
.campaign-counts span { color: var(--muted); font-size: 8px; text-align: center; }
.campaign-counts strong { color: var(--ink); display: block; font-size: 12px; }
.campaign-actions { display: flex; gap: 6px; }

.unsubscribe-page { max-width: 760px; }
.unsubscribe-card { padding: 50px; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow); }
.unsubscribe-icon { width: 62px; height: 62px; margin: 0 auto 19px; border-radius: 50%; background: var(--ivory); color: var(--gold-dark); display: grid; place-items: center; font-size: 25px; }
.unsubscribe-card h1 { margin: 8px 0 20px; }
.unsubscribe-card p { max-width: 570px; margin: 0 auto 28px; }

@media (max-width: 1180px) {
  .analytics-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-chart-grid,
  .analytics-detail-grid,
  .marketing-layout { grid-template-columns: 1fr; }
  .marketing-delivery-note { position: static; }
  .campaign-row { grid-template-columns: 90px minmax(220px, 1fr) auto; }
  .campaign-actions { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .analytics-toolbar,
  .marketing-hero { align-items: flex-start; flex-direction: column; }
  .campaign-row { grid-template-columns: 80px 1fr; }
  .campaign-counts,
  .campaign-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .analytics-toolbar-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .analytics-range { width: 100%; }
  .analytics-range a { flex: 1; }
  .analytics-stat-grid { grid-template-columns: 1fr; }
  .analytics-canvas { height: 280px; }
  .analytics-card-head { flex-direction: column; }
  .analytics-head-totals { width: 100%; justify-content: space-between; }
  .marketing-hero { padding: 22px; }
  .marketing-audience-summary,
  .marketing-audience-picker { width: 100%; grid-template-columns: 1fr; }
  .campaign-row { grid-template-columns: 1fr; }
  .campaign-counts,
  .campaign-actions { grid-column: auto; flex-wrap: wrap; }
  .unsubscribe-card { padding: 34px 22px; }
}

/* v7.5: product gallery, video and homepage merchandising */
.product-gallery {
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.product-gallery-stage {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: var(--ivory);
}

.product-gallery-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--ivory);
}

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

.product-gallery-panel > img,
.product-gallery-panel > video,
.product-gallery-panel > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.product-gallery-panel > img,
.product-gallery-panel > video {
  object-fit: cover;
}

.product-video-panel {
  background: #0b0910;
}

.product-video-link {
  height: 100%;
  padding: 40px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
}

.product-video-link > span {
  width: 74px;
  height: 74px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.product-gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 88px));
  gap: 10px;
}

.product-gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.product-gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid transparent;
  pointer-events: none;
}

.product-gallery-thumb.is-active {
  border-color: var(--gold-dark);
}

.product-gallery-thumb.is-active::after {
  border-color: var(--gold-dark);
}

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

.product-gallery-video-thumb {
  display: grid;
  place-content: center;
  gap: 4px;
}

.product-gallery-video-thumb span {
  font-size: 22px;
}

.product-gallery-video-thumb small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-image-slot,
.showcase-media-field {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfafc;
}

.product-image-slot.primary {
  border-color: #c9a768;
  box-shadow: inset 0 0 0 1px rgb(201 167 104 / 18%);
}

.product-image-slot-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-image-slot-heading strong {
  font-size: 11px;
}

.product-image-slot-heading span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-image-preview,
.showcase-media-preview {
  height: 170px;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 8px;
  background: #ece8f0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.product-image-preview img,
.showcase-media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-image-slot input[type="file"],
.showcase-media-field input[type="file"],
.showcase-media-field select {
  margin-top: 9px;
}

.product-image-slot .table-button {
  margin-top: 10px;
}

.showcase-media-preview {
  height: 230px;
}

.featured-sort-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.featured-sort-item {
  min-height: 74px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 22px 30px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.featured-sort-item.is-dragging {
  opacity: .45;
}

.featured-sort-item.is-drag-over {
  border-color: #8d6dba;
  box-shadow: 0 0 0 3px rgb(117 96 159 / 10%);
}

.featured-sort-handle {
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  letter-spacing: -5px;
}

.featured-sort-position {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
  color: var(--violet);
  font-size: 9px;
  font-weight: 850;
}

.featured-sort-item > img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.featured-sort-copy strong,
.featured-sort-copy small {
  display: block;
}

.featured-sort-copy strong {
  font-size: 11px;
}

.featured-sort-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.featured-sort-actions {
  display: flex;
  gap: 5px;
}

.featured-sort-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-gallery-stage {
    height: min(720px, 92vw);
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .product-gallery-stage {
    height: 112vw;
    min-height: 430px;
    max-height: 580px;
  }

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

  .featured-sort-item {
    grid-template-columns: 24px 46px minmax(0, 1fr) auto;
  }

  .featured-sort-position {
    display: none;
  }

  .featured-sort-item > img {
    width: 46px;
    height: 46px;
  }
}

/* v7.6: light-only, mobile-responsive storefront and Store Studio */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  .site-header {
    top: 0;
  }

  .mobile-menu-backdrop {
    overflow: hidden;
  }

  .mobile-menu {
    width: min(390px, 92vw);
    max-width: 100%;
    height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu nav a,
  .mobile-menu .button,
  .mobile-search,
  .cart-link,
  .mobile-menu-button {
    min-height: 44px;
  }

  .hero-copy {
    min-height: 500px;
  }

  .hero-image {
    min-height: min(520px, 112vw);
  }

  .product-detail {
    gap: 38px;
  }

  .product-gallery-stage {
    height: min(720px, 112vw);
  }

  .cart-layout,
  .checkout-layout {
    gap: 34px;
  }

  .order-summary {
    width: 100%;
  }

  .admin-content {
    padding: 22px 14px 70px;
  }

  .admin-topbar,
  .admin-form-heading,
  .page-title-row,
  .customer-hub,
  .account-welcome,
  .tracking-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar > a,
  .admin-topbar > .button,
  .admin-form-heading > .button {
    width: 100%;
    justify-content: center;
  }

  .admin-card {
    padding: 20px 16px;
  }

  .admin-grid-2,
  .admin-form,
  .customer-manager-grid,
  .code-placement-grid,
  .marketing-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-form > *,
  .admin-form .full,
  .admin-form-actions {
    grid-column: auto;
  }

  .admin-form-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-form-actions .button,
  .admin-form-actions button {
    flex: 1 1 180px;
    justify-content: center;
  }

  .admin-table-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 720px;
  }

  .order-management-table {
    min-width: 1120px;
  }

  .analytics-canvas {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: calc(100% - 24px);
  }

  .announcement {
    min-height: 30px;
    padding: 6px 12px;
  }

  .announcement p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-inner {
    width: calc(100% - 20px);
    min-height: 64px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .brand {
    width: min(132px, 40vw);
    height: 52px;
  }

  .cart-link {
    width: 42px;
    min-height: 42px;
  }

  .hero-copy {
    min-height: 470px;
    padding: 54px 20px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 14vw, 54px);
    overflow-wrap: anywhere;
  }

  .hero-actions .button,
  .home-tracking .button,
  .newsletter button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-image {
    min-height: min(440px, 116vw);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div,
  .trust-strip > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .category-section,
  .featured-section,
  .reviews-section {
    padding-block: 58px;
  }

  .section-heading h2,
  .page-hero h1,
  .story-copy h2 {
    font-size: clamp(34px, 11vw, 43px);
  }

  .category-card {
    min-height: 52vw;
  }

  .product-grid {
    gap: 22px 8px;
  }

  .product-copy h3 {
    min-height: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .quick-add {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 9px;
  }

  .story-copy,
  .newsletter,
  .tracking-form-premium,
  .tracking-result,
  .account-card,
  .order-history-card,
  .unsubscribe-card {
    padding-inline: 18px;
  }

  .newsletter-signup,
  .newsletter-signup form {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .shop-toolbar,
  .page-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .shop-toolbar select {
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .product-detail {
    padding-bottom: 72px;
    gap: 28px;
  }

  .product-gallery-stage {
    height: calc(100vw - 24px);
    min-height: 0;
    max-height: none;
  }

  .product-gallery-thumbs {
    gap: 7px;
  }

  .product-detail-copy h1 {
    font-size: clamp(38px, 12vw, 48px);
    overflow-wrap: anywhere;
  }

  .detail-buy,
  .detail-purchase-actions {
    grid-template-columns: 1fr;
  }

  .quantity-picker,
  .detail-buy .button {
    min-height: 48px;
  }

  .cart-page,
  .checkout-page {
    padding-block: 38px 68px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-item h3 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .cart-item-total {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .mini-quantity {
    width: 112px;
    min-height: 40px;
  }

  .order-summary {
    padding: 24px 18px;
  }

  .field input,
  .field textarea,
  .field select,
  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .mobile-search input {
    font-size: 16px;
  }

  .tracking-hero {
    min-height: auto;
    padding: 50px 18px 70px;
  }

  .tracking-hero h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .tracking-visual {
    width: min(220px, 72vw);
  }

  .tracking-form-premium,
  .tracking-result {
    border-radius: 12px;
  }

  .account-auth,
  .account-stats,
  .tracking-meta {
    grid-template-columns: 1fr;
  }

  .order-history-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-sidebar {
    padding: 7px 8px;
  }

  .admin-nav {
    gap: 6px;
  }

  .admin-nav a {
    min-width: max-content;
    min-height: 42px;
    padding: 0 11px;
  }

  .admin-nav a > span:last-child {
    display: inline;
    font-size: 9px;
  }

  .admin-content {
    padding: 18px 10px 64px;
  }

  .admin-topbar {
    margin-bottom: 18px;
  }

  .admin-topbar h1 {
    font-size: 33px;
  }

  .admin-card {
    padding: 17px 13px;
    border-radius: 10px;
  }

  .stat-grid,
  .order-stat-grid,
  .analytics-stat-grid,
  .marketing-audience-summary,
  .marketing-audience-picker,
  .meta-health-grid,
  .meta-channel-grid,
  .integration-google-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-wrap {
    margin-inline: -13px;
    padding-inline: 13px;
  }

  .admin-form-actions {
    flex-direction: column-reverse;
  }

  .admin-form-actions .button,
  .admin-form-actions button {
    width: 100%;
    flex-basis: auto;
  }

  .orders-command-actions,
  .orders-command-actions .button,
  .bulk-order-toolbar .button,
  .customer-hub form,
  .customer-hub .button {
    width: 100%;
  }

  .analytics-canvas {
    height: 245px;
  }

  .product-image-preview,
  .showcase-media-preview {
    height: 190px;
  }

  .featured-sort-item {
    grid-template-columns: 22px 44px minmax(0, 1fr);
  }

  .featured-sort-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 380px) {
  .section-shell {
    width: calc(100% - 18px);
  }

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

  .category-card {
    min-height: 320px;
  }

  .product-media {
    aspect-ratio: .88;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }
}

/* v7.9: policy, accessibility, account-order and secure operations refinements */
.purchase-policy-summary,
.checkout-policy-summary,
.policy-contact {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #e3d8c5;
  border-radius: 8px;
  background: #fffbf3;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.purchase-policy-summary strong,
.checkout-policy-summary strong,
.policy-contact strong { color: var(--ink); }
.purchase-policy-summary p,
.checkout-policy-summary p,
.policy-contact p { margin: 5px 0; }
.purchase-policy-summary a,
.checkout-policy-summary a,
.policy-page a,
.product-whatsapp-help { color: #74551d; font-weight: 800; }
.product-whatsapp-help { display: inline-flex; margin-top: 14px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-check input { width: 18px; min-height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--ink); }
.consent-check a { color: var(--ink); text-decoration: underline; }
.policy-page { max-width: 860px; }
.policy-page h2 { margin-top: 34px; }
.order-success-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.order-history-link-card { position: relative; }
.order-card-link { align-self: center; color: var(--gold-dark); font-weight: 800; }
.order-card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.order-history-link-card:focus-within { outline: 3px solid rgb(201 167 104 / 42%); outline-offset: 3px; }
.account-order-page { padding-block: 54px 90px; }
.account-order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 24px; }
.account-order-main h2,
.order-timeline-card h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 25px; }
.account-order-main h2:not(:first-child) { margin-top: 34px; }
.account-order-item,
.account-order-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-order-item small { display: block; margin-top: 4px; color: var(--muted); }
.account-order-total { font-family: var(--serif); font-size: 21px; }
.account-order-main address { color: var(--muted); font-style: normal; line-height: 1.8; }
.account-order-timeline { margin: 0 0 24px; padding: 0; list-style: none; }
.account-order-timeline li { position: relative; min-height: 70px; padding: 0 0 18px 31px; }
.account-order-timeline li::before { content: ""; position: absolute; top: 14px; bottom: -2px; left: 7px; width: 1px; background: #d8ceb9; }
.account-order-timeline li:last-child::before { display: none; }
.account-order-timeline i { position: absolute; top: 4px; left: 0; width: 15px; height: 15px; border: 4px solid #efe5d2; border-radius: 50%; background: var(--gold); }
.account-order-timeline strong,
.account-order-timeline span,
.account-order-timeline small { display: block; }
.account-order-timeline span,
.account-order-timeline small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.account-cancel-form,
.account-review-form { margin-top: 20px; display: grid; gap: 9px; }
.account-cancel-form textarea,
.account-review-form textarea { min-height: 92px; }
.cancellation-requested,
.cancellation-alert { padding: 9px 11px; border-radius: 6px; background: #fff3d8; color: #7b5517; font-size: 10px; }
.cancellation-alert { display: inline-flex; margin-top: 7px; font-weight: 900; text-transform: uppercase; }
.verified-review-form { margin-top: 24px; }
.verified-review-form > h2 { font-family: var(--serif); }
.product-review-section { margin: 70px 0 20px; }

.admin-menu-button,
.admin-menu-close,
.admin-sidebar-backdrop { display: none; }
.policy-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.policy-editor textarea { line-height: 1.6; }
.media-library-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.media-library-card { overflow: hidden; border: 1px solid #e0dde4; border-radius: 10px; background: #fff; }
.media-library-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f2f0f4; }
.media-library-details { padding: 16px; display: grid; gap: 9px; }
.media-library-details > span,
.media-library-details > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.media-library-details form { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid #ece9ef; }
.media-warning { padding: 7px 9px; border-radius: 5px; background: #fff4dc; color: #805c1d !important; }
.media-url-row { display: flex; gap: 7px; }
.media-url-row input { min-width: 0; flex: 1; }
.admin-search-form { display: flex; gap: 10px; }
.admin-search-form input { min-width: 0; flex: 1; }
.order-ops-details { position: relative; }
.order-ops-details summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.order-ops-panel { width: min(390px, 75vw); padding: 16px; border: 1px solid #ddd8e2; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgb(23 18 46 / 12%); display: grid; gap: 9px; }
.order-ops-panel ol { margin: 0; padding-left: 20px; }
.order-ops-panel li,
.order-ops-panel p { margin: 0; padding: 7px 0; border-bottom: 1px solid #eeeaf1; }
.order-ops-panel small { display: block; color: var(--muted); }
.order-ops-panel textarea { min-height: 78px; }
.security-metric { display: flex; align-items: baseline; gap: 10px; }
.security-metric strong { color: var(--gold-dark); font-family: var(--serif); font-size: 42px; }

@media (max-width: 1150px) {
  .header-inner { width: calc(100% - 28px); min-height: 70px; grid-template-columns: 46px 1fr auto; gap: 8px; }
  .mobile-menu-button { display: grid; }
  .brand { width: 142px; height: 57px; justify-self: center; }
  .main-nav,
  .header-only,
  .header-search { display: none; }
}

@media (max-width: 1050px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: auto; }
  .media-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-menu-button { position: sticky; z-index: 72; top: 0; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-bottom: 1px solid #ddd9e2; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 900; box-shadow: 0 8px 24px rgb(23 18 46 / 7%); }
  .admin-menu-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; display: grid; place-items: center; font-size: 24px; }
  .admin-sidebar-backdrop { position: fixed; z-index: 78; inset: 0; display: block; background: rgb(10 8 20 / 58%); backdrop-filter: blur(4px); }
  .admin-sidebar { position: fixed !important; z-index: 80; inset: 0 auto 0 0; top: 0 !important; width: min(340px, 88vw) !important; height: 100dvh !important; padding: 24px 18px !important; overflow-x: hidden !important; overflow-y: auto !important; transform: translateX(-105%); transition: transform 220ms ease; box-shadow: 24px 0 70px rgb(0 0 0 / 30%); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-brand { padding-right: 46px; }
  .admin-nav { margin: 22px 0 !important; display: grid !important; }
  .admin-nav a { min-width: 0 !important; justify-content: flex-start !important; }
  .admin-nav a > span:last-child,
  .admin-user { display: block !important; }
  .admin-user { margin-top: 18px; }
  .admin-content { margin-left: 0 !important; }
  .account-order-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-main,
  .media-library-grid { grid-template-columns: 1fr; }
  .order-success-actions,
  .order-success-actions .button { width: 100%; }
  .account-order-page { padding-block: 30px 65px; }
  .product-review-section { margin-top: 50px; }
}

/* v7.7: managed homepage categories and product SEO */
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.product-seo-editor {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfefc, #f7f3fb);
}

.seo-editor-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seo-editor-head h3 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.seo-score {
  min-width: 82px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0d8;
  color: #925e0d;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.seo-score.is-good {
  background: #daf5e7;
  color: #167249;
}

.seo-snippet-preview {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid #e2e6e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(22 55 40 / 5%);
}

.seo-preview-url,
.seo-snippet-preview strong,
.seo-snippet-preview p {
  display: block;
}

.seo-preview-url {
  max-width: 100%;
  overflow: hidden;
  color: #236746;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-snippet-preview strong {
  margin-top: 5px;
  color: #3427a1;
  font-size: 18px;
  font-weight: 500;
}

.seo-snippet-preview p {
  max-width: 700px;
  margin: 5px 0 0;
  color: #555b57;
  font-size: 11px;
  line-height: 1.55;
}

.seo-field-grid,
.home-category-heading-fields,
.home-category-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-field-grid .full,
.home-category-editor-fields .full {
  grid-column: 1 / -1;
}

.seo-field-grid small,
.home-category-editor-fields small {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.seo-checklist {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seo-checklist span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ece9ef;
  color: #6f6878;
  font-size: 8px;
  font-weight: 800;
}

.seo-checklist span::before {
  content: "○";
  margin-right: 5px;
}

.seo-checklist span.is-complete {
  background: #daf5e7;
  color: #167249;
}

.seo-checklist span.is-complete::before {
  content: "✓";
}

.seo-noindex {
  margin-top: 4px;
  border-color: #f0d7b7;
  background: #fff9f0;
}

.home-category-heading-fields {
  margin: 20px 0;
  grid-template-columns: .8fr 1.5fr .7fr;
}

.home-category-heading-fields label,
.home-category-editor-fields label {
  margin-bottom: 5px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-category-heading-fields input,
.home-category-editor-fields input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.home-category-editor-list {
  display: grid;
  gap: 12px;
}

.home-category-editor {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbfd;
  display: grid;
  grid-template-columns: 24px 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.home-category-editor.is-dragging {
  opacity: .45;
}

.home-category-drag {
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  letter-spacing: -5px;
}

.home-category-editor-preview {
  width: 140px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: #ece9ef;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.home-category-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-category-editor-actions {
  display: grid;
  gap: 6px;
}

.home-category-editor-actions button,
.home-category-editor-actions label {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.home-category-add {
  margin-top: 14px;
}

#homepage-categories .admin-form-actions {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .home-category-heading-fields {
    grid-template-columns: 1fr;
  }

  .home-category-editor {
    grid-template-columns: 22px 110px minmax(0, 1fr);
  }

  .home-category-editor-preview {
    width: 110px;
    height: 126px;
  }

  .home-category-editor-actions {
    grid-column: 2 / -1;
    display: flex;
    justify-content: flex-end;
  }
}

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

  .seo-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-field-grid,
  .home-category-editor-fields {
    grid-template-columns: 1fr;
  }

  .seo-field-grid .full,
  .home-category-editor-fields .full {
    grid-column: auto;
  }

  .seo-snippet-preview {
    padding: 16px;
  }

  .seo-snippet-preview strong {
    font-size: 16px;
  }

  .home-category-editor {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
  }

  .home-category-editor-preview {
    grid-column: 2;
    width: 100%;
    height: 210px;
  }

  .home-category-editor-fields,
  .home-category-editor-actions {
    grid-column: 2;
    width: 100%;
  }

  .home-category-editor-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* v7.9 final cascade: the mobile admin is a drawer, never a horizontal strip. */
@media (max-width: 1150px) {
  .header-inner { width: calc(100% - 28px); min-height: 70px; grid-template-columns: 46px 1fr auto; gap: 8px; }
  .mobile-menu-button { display: grid; }
  .brand { width: 142px; height: 57px; justify-self: center; }
  .main-nav, .header-only, .header-search { display: none; }
}

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-menu-button { position: sticky; z-index: 72; top: 0; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-bottom: 1px solid #ddd9e2; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 900; box-shadow: 0 8px 24px rgb(23 18 46 / 7%); }
  .admin-menu-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; display: grid; place-items: center; font-size: 24px; }
  .admin-sidebar-backdrop { position: fixed; z-index: 78; inset: 0; display: block; background: rgb(10 8 20 / 58%); backdrop-filter: blur(4px); }
  .admin-sidebar { position: fixed !important; z-index: 80; inset: 0 auto 0 0; top: 0 !important; width: min(340px, 88vw) !important; height: 100dvh !important; padding: 24px 18px !important; overflow-x: hidden !important; overflow-y: auto !important; transform: translateX(-105%); transition: transform 220ms ease; box-shadow: 24px 0 70px rgb(0 0 0 / 30%); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-nav { margin: 22px 0 !important; display: grid !important; }
  .admin-nav a { min-width: 0 !important; justify-content: flex-start !important; }
  .admin-nav a > span:last-child, .admin-user { display: block !important; }
  .admin-content { margin-left: 0 !important; }
}

/* v7.11: static tracking, branded WhatsApp support and accurate payment state. */
.floating-whatsapp {
  position: fixed;
  z-index: 68;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgb(13 74 37 / 30%);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp img {
  width: 34px;
  height: 34px;
  display: block;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 38px rgb(13 74 37 / 38%);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #17122e;
  outline-offset: 3px;
}

.tracking-meta { grid-template-columns: repeat(4, 1fr); }

.payment-status {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-due { background: #fff0cf; color: #995f00; }
.payment-paid { background: #dff7e9; color: #14824a; }
.inline-payment-form { margin-top: 6px; }
.inline-payment-form select {
  width: 118px;
  min-height: 30px;
  padding: 4px 25px 4px 7px;
  border: 1px solid #dce4df;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
}

.account-payment-status {
  margin: 14px 0 28px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #f7f3ea;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.account-payment-status span { color: var(--muted); }

@media (max-width: 720px) {
  .floating-whatsapp {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
  .account-payment-status { align-items: flex-start; flex-direction: column; }
  .tracking-meta { grid-template-columns: repeat(2, 1fr); }
}

/* v7.12 final cascade: keep the new storefront merchandising above legacy overrides. */
.category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.category-card { min-height: 0; aspect-ratio: 1.34; border-radius: 18px; box-shadow: 0 10px 28px rgb(26 18 47 / 8%); }
.category-card::after { background: linear-gradient(0deg, rgb(12 9 28 / 78%), rgb(12 9 28 / 4%) 74%); }
.category-card span { left: 16px; right: 16px; bottom: 15px; text-align: center; }
.category-card strong { font-family: var(--sans); font-size: 16px; font-weight: 800; }
.category-card small { margin-top: 4px; color: rgb(255 255 255 / 82%); font-size: 10px; }
.category-card small em,
.category-card small b { display: block; font-style: normal; font-weight: 500; }
.category-card small b { margin-top: 2px; color: rgb(255 255 255 / 92%); }
.featured-section .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.featured-section .product-card,
.shop-layout .product-card,
.related-product-row .product-card { overflow: hidden; border: 1px solid #e6dfd7; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgb(32 22 50 / 7%); display: flex; flex-direction: column; }
.product-card .product-media { aspect-ratio: 1 / 1.03; }
.product-card .product-copy { padding: 15px 15px 16px; display: flex; flex: 1; flex-direction: column; }
.product-card .product-copy h3 { min-height: 48px; font-family: var(--sans); font-size: 16px; font-weight: 730; line-height: 1.45; }
.product-card .price-row { margin: 10px 0 0; }
.product-card .price-row strong { font-size: 20px; }
.product-card .product-badges { top: 10px; left: 10px; flex-direction: row; }
.product-card .product-badges span { border-radius: 999px; }
.product-card .product-badges .sale-badge { background: #ed174c; }
.product-card-actions { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.product-card-actions .button { width: 100%; min-height: 43px; padding: 8px 9px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.product-card-sold-out { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 11px; font-weight: 800; }
.payment-reference-actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.payment-reference-actions form { margin: 0; }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { border-radius: 13px; }
  .category-card strong { font-size: 13px; }
  .featured-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card .product-copy { padding: 12px; }
  .product-card .product-copy h3 { min-height: 42px; font-size: 13px; }
  .product-card .price-row strong { font-size: 17px; }
  .product-card-actions { grid-template-columns: 1fr; gap: 7px; padding-top: 12px; }
  .product-card-actions .button { min-height: 40px; font-size: 10px; }
}

/* v7.13: responsive district/upazila checkout and Kushtia delivery areas. */
.checkout-layout,
.checkout-form,
.checkout-layout > *,
.checkout-form > * { min-width: 0; }

.checkout-location-field select { min-width: 0; text-overflow: ellipsis; }
.checkout-location-field > small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.checkout-delivery-zones { display: grid; gap: 10px; }
.checkout-delivery-zones > label:first-child { margin-bottom: 2px; }
.delivery-zone-option {
  width: 100%;
  min-height: 72px;
  margin: 0;
  border-radius: 10px;
  cursor: pointer;
}
.delivery-zone-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.delivery-zone-option > b { white-space: nowrap; }

@media (max-width: 1100px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px; }
}

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .checkout-layout .order-summary { position: static; width: 100%; }
}

@media (max-width: 760px) {
  .checkout-page { width: min(100% - 24px, 720px); padding-top: 36px; }
  .checkout-form { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .checkout-form .field.full,
  .checkout-form .full { grid-column: auto; }
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select { min-height: 52px; font-size: 16px; }
  .checkout-delivery-zones > label:first-child { align-items: flex-start; flex-direction: column; gap: 4px; }
  .delivery-zone-option { min-height: 76px; padding: 14px; }
  .delivery-zone-option span strong { font-size: 13px; }
  .delivery-zone-option span small { line-height: 1.45; }
  .checkout-submit { width: 100%; min-height: 52px; }
}

@media (max-width: 420px) {
  .checkout-page { width: min(100% - 18px, 410px); }
  .delivery-zone-option { grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
  .delivery-zone-option > b { grid-column: 2; justify-self: start; }
  .payment-option { grid-template-columns: auto auto minmax(0, 1fr); padding-inline: 11px; }
}

/* v7.14: Kushtia-first checkout with only local and nationwide delivery. */

/* v7.15: the homepage automatically presents the complete active catalog. */
.all-products-section { padding-top: 54px; }
.all-products-section .section-heading { align-items: end; }
.section-heading-note {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.all-products-section .product-card { content-visibility: auto; contain-intrinsic-size: 520px; }

@media (max-width: 760px) {
  .all-products-section { padding-top: 38px; }
  .all-products-section .section-heading { align-items: flex-start; }
  .section-heading-note { margin-top: 8px; font-size: 11px; }
}
.checkout-delivery-zones .delivery-zone-option span small { max-width: 620px; }

/* v7.16: single formatted product-details block, managed recommendations and reliable badges. */

/* v7.17: authenticated SMTP settings use the existing responsive Store Studio form system. */
.product-card .product-badges {
  right: 10px;
  max-width: calc(100% - 20px);
  flex-wrap: wrap;
  pointer-events: none;
}
.product-card .product-badges span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-badges {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.detail-badges .detail-badge { position: static; max-width: 100%; white-space: nowrap; }
.detail-badges .sale-badge { background: #ed174c; color: #fff; }
.product-details-block { padding-top: 10px; }
.product-details-block .product-specs { margin-top: 0; }
.product-accordions .rich-product-details { padding: 0 2px 16px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.product-accordions .rich-product-details p { margin: 0 0 11px; padding: 0; color: inherit; font: inherit; line-height: inherit; }
.product-accordions .rich-product-details p:last-child { margin-bottom: 0; }
.rich-product-details strong { color: var(--ink); font-weight: 800; }
.rich-product-details em { color: var(--violet); }
.rich-product-details mark { padding: 1px 3px; border-radius: 3px; background: #f5df91; color: var(--ink); }
.rich-text-editor > label { margin-bottom: 8px; }
.rich-text-toolbar {
  padding: 7px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8f6fb;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rich-text-toolbar button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #d9d2e2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.rich-text-toolbar button:hover,
.rich-text-toolbar button:focus-visible { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgb(74 54 118 / 10%); }
.rich-text-toolbar button[data-rich-tag="mark"] span { padding: 1px 3px; background: #f5df91; }
.rich-text-editor textarea { border-radius: 0 0 8px 8px; }
.related-product-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 720px) {
  .detail-badges { top: 12px; left: 12px; right: 12px; }
  .related-product-picker { grid-template-columns: minmax(0, 1fr); }
}
