@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

@font-face {
  font-family: "YaroLocal";
  src: url("../fonts/YaroRg.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YaroLocal";
  src: url("../fonts/YaroRg-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --walnut: #72421b;
  --cream: #f5f1ed;
  --charcoal: #333333;
  --oak: #8b6341;
  --cedar: #a0805d;
  --gold: #d4af7c;
  --silver: #e8e8e8;
  --white: #faf8f5;
  --red: #ef2d32;
  --green: #5a9a68;
  --shadow: 0 14px 35px rgba(51, 51, 51, .11);
  --font-primary: Satoshi, Arial, sans-serif;
  --font-secondary: Satoshi, Arial, sans-serif;
  --font-tertiary: Satoshi, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
h1, h2, .display, .section-head h2, .page-banner h1, .admin-login-hero h1 {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0;
}
h3, h4, nav, button, .button, label, input, textarea, select, .topbar, .eyebrow, .price, .pill, .rating, th, .account-menu summary {
  font-family: var(--font-tertiary);
  letter-spacing: 0;
}
p, a, li, td, th, label, input, textarea, select, button, .button {
  letter-spacing: 0;
}

.topbar {
  background: var(--oak);
  color: var(--white);
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
}
.topbar strong { color: #a5d66f; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(10px, 2vw, 28px);
  background: rgba(245, 241, 237, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(114, 66, 27, .12);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logo-brand img {
  width: 138px;
  height: auto;
  display: block;
  border-radius: 4px;
}
nav, .header-actions { display: flex; align-items: center; gap: 18px; }
nav a, .header-actions a { font-size: 15px; font-weight: 700; }
.account-menu {
  position: relative;
}
.account-menu summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(114,66,27,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  color: var(--walnut);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(114,66,27,.14);
  box-shadow: var(--shadow);
}
.account-menu:not([open]) div { display: none; }
.account-menu div a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--charcoal);
  white-space: nowrap;
}
.account-menu div a:hover { background: var(--cream); }
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(114,66,27,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  color: var(--walnut);
  font-weight: 800;
}
.icon-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(114,66,27,.12);
  position: relative;
}
.cart-link span {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--walnut);
  color: #fff;
  font-size: 11px;
}
main { min-height: 62vh; }
.section { padding: clamp(26px, 5vw, 58px) clamp(10px, 2vw, 28px); }
.home-top-banner,
.home-feed {
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(10px, 2vw, 28px) 0;
}
.home-top-banner a,
.category-banner,
.bulk-order-image {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ee;
  box-shadow: var(--shadow);
}
.home-top-banner img {
  width: 100%;
  height: clamp(330px, 42vw, 560px);
  object-fit: cover;
  object-position: center;
}
.home-feed {
  display: grid;
  gap: clamp(38px, 5vw, 68px);
  padding-bottom: 42px;
}
.home-category-block {
  display: grid;
  gap: 22px;
}
.category-banner img {
  width: 100%;
  height: clamp(270px, 30vw, 430px);
  object-fit: contain;
  object-position: center;
  background: #fff7ee;
}
.category-banner picture {
  display: block;
}
.home-category-block:first-child .category-banner img {
  object-fit: cover;
}
.home-category-furniture .category-banner img {
  height: clamp(360px, 44vw, 620px);
  object-fit: cover;
}
.category-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.empty-category {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(114,66,27,.14);
}
.bulk-order-block {
  margin-top: 4px;
}
.bulk-order-image img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #fff7ee;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--oak);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero h1, .display {
  margin: 0 0 18px;
  color: var(--walnut);
  font-family: var(--font-primary);
  font-size: clamp(46px, 8vw, 96px);
  line-height: .9;
  letter-spacing: 0;
}
.hero p, .lead { font-size: 19px; line-height: 1.65; max-width: 680px; }
.hero-art {
  min-height: 420px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(114,66,27,.85), rgba(212,175,124,.36)), url('../img/mattress-hero.svg') center/cover;
  box-shadow: var(--shadow);
}
.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--gold);
  color: #fff;
  font: 800 15px/1 var(--font-secondary);
  cursor: pointer;
}
.button.dark { background: var(--walnut); }
.button.light { background: var(--cream); color: var(--walnut); border: 1px solid rgba(114,66,27,.25); }
.home-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: linear-gradient(135deg, var(--charcoal), var(--walnut));
}
.home-hero__image {
  width: 100%;
  aspect-ratio: 1106 / 847;
  object-fit: contain;
  border-radius: 8px;
  background: #2a1d14;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
}
.home-hero__content {
  max-width: 710px;
  color: #fff;
}
.home-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-primary);
  font-size: clamp(54px, 9vw, 118px);
  line-height: .88;
  color: #fff;
}
.home-hero p { max-width: 600px; font-size: 20px; line-height: 1.55; }
.home-hero .eyebrow { color: #f1d3a8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(114,66,27,.12);
  border-top: 1px solid rgba(114,66,27,.12);
  border-bottom: 1px solid rgba(114,66,27,.12);
}
.trust-strip div, .service-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 36px);
  background: var(--cream);
  font-weight: 800;
  color: var(--oak);
}
.home-campaigns {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: repeat(2, clamp(190px, 18vw, 270px));
  gap: 18px;
  padding-top: clamp(22px, 4vw, 44px);
  padding-bottom: clamp(22px, 4vw, 44px);
  align-items: stretch;
}
.campaign-card {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ee;
  box-shadow: var(--shadow);
}
.campaign-large { grid-row: 1 / span 2; }
.campaign-portrait { aspect-ratio: auto; }
.campaign-wide { aspect-ratio: auto; }
.campaign-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.campaign-large img { object-position: center; }
.campaign-wide img {
  object-fit: contain;
  background: #fff7ee;
}
.campaign-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(114,66,27,.72);
  color: #fff;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}
.campaign-card span strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 30px;
  line-height: 1;
}
.split-showcase {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 36px;
  align-items: center;
}
.split-showcase h2, .ad-band h2, .section-head h2, .shop-hero h1 {
  margin: 0 0 12px;
  color: var(--walnut);
  font-family: var(--font-primary);
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
}
.split-showcase p { max-width: 520px; line-height: 1.7; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.showcase-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff7ee;
}
.showcase-grid img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: contain; background: #fff7ee; }
.showcase-grid span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(114,66,27,.78);
  color: #fff;
  font-weight: 900;
}
.ad-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  background: #fff2dc;
}
.image-ad-section {
  padding-top: 16px;
  padding-bottom: 16px;
}
.image-ad-section a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.image-ad-section img {
  width: 100%;
  aspect-ratio: 2.78 / 1;
  object-fit: cover;
}
.bulk-ad-section img {
  aspect-ratio: 1.13 / 1;
  object-fit: contain;
  background: #fff7ee;
}
.coupon-card {
  width: min(280px, 100%);
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 2px dashed var(--walnut);
  border-radius: 8px;
  color: var(--walnut);
  font-size: 52px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-2deg);
  background: rgba(255,255,255,.62);
}
.coupon-card span { display: block; font-size: 15px; text-transform: uppercase; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-head > a { color: var(--walnut); font-weight: 900; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(114,66,27,.11);
}
.product-image-wrap { position: relative; display: block; }
.product-card img, .banner img, .detail-media img {
  width: 100%;
  aspect-ratio: 1 / .9;
  object-fit: cover;
  border-radius: 8px;
  background: #eadccc;
}
.discount-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(114,66,27,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.product-card h3 { margin: 12px 0 6px; font-size: 21px; }
.price { display: flex; gap: 10px; align-items: baseline; font-weight: 900; font-size: 21px; }
.price del { color: #8d8178; font-size: 15px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: #eef6df; color: var(--green); font-size: 11px; font-weight: 900; }
.rating { display: inline-flex; gap: 5px; align-items: center; margin: 8px 0 12px; padding: 4px 8px; border-radius: 999px; background: var(--cedar); color: #fff; font-size: 12px; }
.rating .icon { width: 13px; height: 13px; fill: currentColor; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  background: #fff2dc;
}
.promo-banner { border-top: 1px solid rgba(114,66,27,.12); border-bottom: 1px solid rgba(114,66,27,.12); }
.promo-banner img {
  width: 100%;
  aspect-ratio: 1.13 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff7ee;
  box-shadow: var(--shadow);
}
.shop-hero {
  background: linear-gradient(90deg, rgba(245,241,237,.94), rgba(245,241,237,.7)), url('../img/mattress-hero.svg') right center/contain no-repeat;
  min-height: 320px;
  display: grid;
  align-content: center;
}
.shop-hero p { max-width: 620px; font-size: 18px; line-height: 1.65; }
.shop-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filter-panel h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  color: var(--walnut);
}
.compact { gap: 10px; }
.filter-ad {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fff2dc;
  color: var(--walnut);
}
.filter-ad strong, .filter-ad span { display: block; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.category-chips a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114,66,27,.18);
  color: var(--walnut);
  font-weight: 800;
}
.category-chips a.active { background: var(--walnut); color: #fff; }
.panel, form.panel, .table-wrap {
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(114,66,27,.12);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.admin-body .table-wrap {
  overflow-x: auto;
}
.admin-body .table-wrap table {
  min-width: 760px;
}
label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(114,66,27,.25);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(255,255,255,.82);
  color: var(--charcoal);
  font: inherit;
}
select[multiple] {
  min-height: 118px;
}
.checkbox-dropdown {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}
.field-label {
  font-weight: 800;
}
.checkbox-dropdown details {
  position: relative;
}
.checkbox-dropdown summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(114,66,27,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  cursor: pointer;
  list-style: none;
  white-space: normal;
}
.checkbox-dropdown summary::-webkit-details-marker {
  display: none;
}
.checkbox-dropdown summary::after {
  content: "v";
  color: var(--walnut);
  font-weight: 800;
}
.checkbox-dropdown details[open] summary::after {
  content: "^";
}
.checkbox-dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(114,66,27,.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.checkbox-option {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  font-weight: 500;
}
.checkbox-option:hover {
  background: var(--cream);
}
.checkbox-option input {
  width: auto;
}
button:disabled,
.button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
textarea { min-height: 120px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 34px; }
.product-detail-page {
  width: 100%;
  padding-top: 18px;
  padding-left: clamp(8px, 1.4vw, 20px);
  padding-right: clamp(8px, 1.4vw, 20px);
}
.breadcrumb { margin-bottom: 16px; font-size: 13px; color: #766a62; }
.breadcrumb a {
  color: #766a62;
}
.breadcrumb strong {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}
.gallery-panel, .buy-panel {
  position: relative;
  border-radius: 8px;
  background: rgba(255,255,255,.56);
}
.gallery-panel { padding: 0; background: transparent; }
.main-product-image {
  width: 100%;
  aspect-ratio: 1.13 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eadcca;
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs img {
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(51,51,51,.08);
}
.buy-panel {
  padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow);
}
.buy-panel h1 { margin: 6px 48px 4px 0; color: var(--walnut); font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.buy-panel h1 span { display: block; color: var(--cedar); font-size: .5em; font-family: var(--font-secondary); font-weight: 500; }
.floating-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  color: var(--walnut);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(114,66,27,.12);
  z-index: 2;
}
.heart-float { right: 16px; }
.heart-float.is-wishlisted {
  color: #ef2d32;
}
.heart-float.is-wishlisted .icon {
  fill: currentColor;
}
.product-price { margin: 8px 0 2px; font-size: 28px; }
.product-title-yaro {
  font-family: var(--font-tertiary);
  font-weight: 500;
}
.thickness-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.thickness-pills span,
.thickness-pills button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--oak);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.thickness-pills button {
  border: 1px solid transparent;
  cursor: pointer;
}
.thickness-pills button.selected {
  border-color: var(--walnut);
  box-shadow: 0 0 0 2px rgba(114, 66, 27, .18);
}
.color-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.color-type-pills button {
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid rgba(114, 66, 27, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--walnut);
  font-size: 12px;
  font-weight: 800;
}

.color-type-pills button.selected {
  background: var(--walnut);
  color: #fff;
  border-color: var(--walnut);
}
.discount-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--oak);
  color: #fff;
  font-size: 13px;
}
.tax-note { margin-top: 4px; color: #7c716a; font-size: 13px; }
.option-block { margin-top: 18px; }
.option-title { display: flex; justify-content: space-between; gap: 12px; }
.option-title a { color: var(--cedar); text-decoration: underline; font-size: 13px; font-weight: 800; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatches button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #eadcca;
  border: 1px solid rgba(114,66,27,.22);
  box-shadow: inset 0 0 0 3px #fff;
  cursor: pointer;
  padding: 0;
}
.swatches button.selected {
  border-color: var(--walnut);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--walnut);
}
.size-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.size-options button {
  min-height: 44px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: var(--walnut);
  background: #fff;
  border: 1px solid rgba(114,66,27,.24);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.size-options button.selected {
  background: var(--cedar);
  color: #fff;
  border-color: var(--cedar);
}
.size-options small { display: block; font-size: 9px; opacity: .75; }
.custom-size-calculator {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(114,66,27,.14);
  border-radius: 8px;
  background: #fff7ee;
}
.custom-size-calculator[hidden] {
  display: none;
}
.custom-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.custom-size-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.custom-size-result span {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--walnut);
}
.warranty-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: #3f8c48;
  font-weight: 900;
}
.firmness-meter div {
  height: 8px;
  border-radius: 999px;
  margin: 12px 0 6px;
  background: linear-gradient(90deg, #d9e6ce, #d4af7c, #8b6341);
}
.firmness-meter span {
  display: block;
  width: 58%;
  height: 100%;
  border-right: 4px solid var(--walnut);
}
.firmness-meter small { display: block; color: #7c716a; font-size: 11px; }
.buy-form {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}
.buy-form label { margin: 0; }
.quantity-control {
  display: grid;
  grid-template-columns: 36px 48px 36px;
  align-items: center;
  width: max-content;
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid rgba(114,66,27,.28);
  border-radius: 999px;
  background: #fff;
}
.quantity-control button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--oak);
  font-size: 16px;
}
.quantity-control input {
  height: 36px;
  padding: 0;
  border: 0;
  text-align: center;
}
.delivery-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #fff2dc;
}
.delivery-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0;
}
.delivery-card p { margin: 0; color: var(--oak); font-size: 13px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.service-grid div {
  background: transparent;
  padding: 16px;
  border: 1px solid rgba(114,66,27,.12);
  border-radius: 8px;
}
.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: min(100%, 1120px);
  max-width: none;
  margin: 0 auto;
  padding-left: clamp(8px, 1.4vw, 20px);
  padding-right: clamp(8px, 1.4vw, 20px);
}
.product-story details {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(114,66,27,.18);
  line-height: 1.65;
}
.product-story summary {
  display: flex;
  justify-content: space-between;
  color: var(--walnut);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.product-story img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-list { padding-left: 20px; }
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.faq-list details {
  padding: 14px 16px;
  border: 1px solid rgba(114,66,27,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.faq-list details summary {
  font-size: 15px;
}
.faq-list p { margin-bottom: 0; }
.review-summary { display: flex; gap: 12px; align-items: baseline; margin-bottom: 16px; }
.review-summary strong { font-size: 30px; color: var(--walnut); }
.similar-products { background: #fff2dc; }
.similar-products .grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.specs, .reviews { line-height: 1.6; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(114,66,27,.12); }
.cart-row img { width: 96px; height: 82px; object-fit: cover; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid rgba(114,66,27,.12); vertical-align: top; }
th { color: var(--walnut); font-size: 13px; text-transform: uppercase; }
.flash { margin: 16px clamp(10px, 2vw, 28px) 0; padding: 13px 16px; border-radius: 8px; font-weight: 800; }
.flash.success { background: #e8f5e9; color: #256b36; }
.flash.error { background: #fdecea; color: #9b1c1c; }
.site-footer {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1fr 1fr;
  gap: clamp(22px, 3vw, 38px);
  padding: 40px clamp(10px, 2vw, 28px);
  background: var(--oak);
  color: #fff;
}
.site-footer a, .site-footer p { display: block; margin: 10px 0; color: rgba(255,255,255,.92); }
.footer-credit {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  font-size: 12px;
}
.footer-brand { width: max-content; }
.footer-brand img { width: 172px; }
.muted { color: #7c716a; }
.policy-page {
  max-width: 980px;
  margin: 0 auto;
  color: var(--charcoal);
}
.policy-page h1 {
  margin: 0 0 8px;
}
.policy-page h2 {
  margin: 26px 0 8px;
}
.policy-page p,
.policy-page li {
  line-height: 1.75;
}
.policy-page ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.policy-page a {
  color: var(--walnut);
  font-weight: 800;
  text-decoration: underline;
}
.policy-updated {
  margin: 0 0 22px;
  color: var(--oak);
  font-weight: 800;
}
.address-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.address-grid article {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(114,66,27,.12);
}
.address-grid h2 {
  margin: 0 0 8px;
}
.address-grid p {
  margin: 0;
}
.map-section {
  padding-top: 0;
}
.map-section iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.admin-body {
  background: #f4f1ec;
  font-size: 12px;
}
.admin-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(120deg, rgba(51,51,51,.72), rgba(114,66,27,.35)),
    url('../img/home/hero-bed.png') center / cover no-repeat;
  color: var(--charcoal);
  font-family: var(--font-secondary);
}
.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 5vw, 64px);
}
.admin-login-hero {
  max-width: 620px;
  display: grid;
  gap: 24px;
  color: #fff;
}
.admin-login-logo {
  width: min(240px, 70vw);
  display: inline-flex;
}
.admin-login-logo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.admin-login-hero h1 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
}
.admin-login-hero p {
  max-width: 520px;
  color: rgba(255,255,255,.86);
}
.admin-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-login-points span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 800;
}
.admin-login-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: rgba(250,248,245,.94);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}
.admin-login-card h2,
.admin-login-card p {
  margin: 0;
}
.admin-login-card h2 {
  color: var(--walnut);
}
.admin-login-card button,
.admin-login-card .button {
  width: 100%;
}
.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body th,
.admin-body label {
  font-size: 14px;
  font-weight: 800;
}
.admin-body p,
.admin-body a,
.admin-body td,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button {
  font-size: 12px;
}
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-content { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.admin-sidebar {
  background: #292724;
  color: #fff;
  padding: 18px 14px;
}
.admin-logo {
  display: block;
  margin-bottom: 18px;
}
.admin-logo img {
  width: 156px;
  display: block;
}
.admin-nav {
  display: grid;
  gap: 6px;
}
.admin-nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}
.admin-nav-link.active,
.admin-nav-link:hover {
  background: rgba(212,175,124,.18);
  color: #fff;
}
.admin-nav-icon {
  width: 17px;
  height: 17px;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(250,248,245,.94);
  border-bottom: 1px solid rgba(114,66,27,.12);
  backdrop-filter: blur(10px);
}
.admin-topbar h1,
.admin-topbar p { margin: 0; }
.admin-profile { position: relative; }
.admin-profile-btn {
  gap: 8px;
  min-height: 36px;
  background: #fff;
  color: var(--walnut);
  border: 1px solid rgba(114,66,27,.18);
}
.admin-profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-profile:hover .admin-profile-menu,
.admin-profile:focus-within .admin-profile-menu {
  display: grid;
}
.admin-profile-menu a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--charcoal);
}
.admin-profile-menu a:hover { background: var(--cream); }
.admin-main { padding: 18px; min-width: 0; }
.admin-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(114,66,27,.12);
  color: #766a62;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.stat strong { display: block; color: var(--walnut); font-size: 14px; font-weight: 800; }
.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
}
.admin-table-toolbar h2,
.admin-table-toolbar p { margin: 0; }
.admin-table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-table-search {
  width: min(260px, 48vw);
  min-height: 38px;
}
.admin-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.admin-pagination button {
  min-height: 32px;
  padding: 0 12px;
}
.admin-small-form {
  max-width: 520px;
}
.admin-preview-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 14px;
  border: 1px solid rgba(114,66,27,.14);
}
.admin-faq-editor {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.faq-admin-row {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(260px, 1.2fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(114,66,27,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
}
.remove-faq-row {
  align-self: end;
  min-width: 42px;
  padding: 0;
}
.master-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.master-tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114,66,27,.18);
  background: #fff;
  color: var(--walnut);
  font-weight: 800;
}
.master-tabs a.active {
  background: var(--walnut);
  color: #fff;
}

@media (max-width: 900px) {
  .admin-login-page {
    grid-template-columns: 1fr;
  }
  .admin-login-hero {
    max-width: none;
  }
  .site-header {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px 12px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .primary-nav {
    display: none;
  }
  .site-header .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .site-header.nav-open .primary-nav {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(114,66,27,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .primary-nav a {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(114,66,27,.1);
  }
  .site-header.nav-open .primary-nav a:last-child {
    border-bottom: 0;
  }
  .site-header .header-actions .icon-link { flex: 1 1 0; }
  .site-header .account-menu { flex: 1 1 auto; }
  .site-header .account-menu summary { width: 100%; justify-content: center; }
  .hero, .home-hero, .banner, .two-col, .detail, .admin-layout, .split-showcase, .ad-band, .shop-layout, .product-detail-shell { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .home-campaigns { grid-template-columns: 1fr; }
  .campaign-large { grid-row: span 1; }
  .filter-panel { position: static; }
  .category-chips { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-top-banner,
  .home-feed {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-top-banner img { height: clamp(280px, 54vw, 430px); }
  .category-banner img { height: clamp(230px, 38vw, 340px); }
  .home-category-furniture .category-banner img { height: clamp(320px, 64vw, 500px); }
  .category-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-detail-page { padding-left: 10px; padding-right: 10px; }
  .main-product-image { aspect-ratio: 1.28 / 1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-story { width: 100%; padding-left: 10px; padding-right: 10px; }
  .faq-admin-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-report-grid { grid-template-columns: 1fr; }
  .admin-topbar { align-items: flex-start; }
  .admin-table-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-table-actions { width: 100%; justify-content: space-between; }
  .admin-table-search { width: 100%; }
}

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

@media (max-width: 520px) {
  .admin-login-page {
    padding: 16px;
  }
  .admin-login-logo {
    width: 180px;
  }
  .admin-login-hero {
    gap: 16px;
  }
  .site-header { gap: 12px; padding: 14px 16px; }
  .logo-brand img { width: 112px; }
  .footer-brand img { width: 150px; }
  .site-footer { grid-template-columns: 1fr; }
  nav a { font-size: 13px; }
  .icon-link { width: 34px; height: 34px; }
  .home-hero { min-height: auto; padding: 22px 16px; }
  .home-hero__image { order: -1; }
  .home-hero h1 { font-size: 54px; }
  .home-hero p { font-size: 17px; }
  .trust-strip, .service-grid { grid-template-columns: 1fr; }
  .home-campaigns { grid-template-rows: none; }
  .campaign-card { min-height: 0; }
  .campaign-portrait { aspect-ratio: 1.78 / 1; }
  .campaign-wide { aspect-ratio: 1.78 / 1; }
  .campaign-card span { left: 12px; right: 12px; bottom: 12px; }
  .campaign-card span strong { font-size: 24px; }
  .section-head { align-items: start; flex-direction: column; }
  .showcase-grid { grid-template-columns: 1fr; }
  .coupon-card { width: 100%; transform: none; }
  .image-ad-section img { aspect-ratio: 1.8 / 1; object-fit: contain; background: #fff7ee; }
  .bulk-ad-section img { aspect-ratio: 1104 / 978; }
  .grid, .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .admin-main { padding: 10px; }
  .admin-sidebar { padding: 12px 10px; }
  .admin-logo img { width: 128px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-topbar { padding: 12px 10px; }
  .admin-table-actions { flex-direction: column; align-items: stretch; }
  .home-top-banner,
  .home-feed {
    padding-left: 8px;
    padding-right: 8px;
  }
  .home-feed { gap: 24px; }
  .category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .home-top-banner { padding-top: 12px; }
  .home-top-banner img {
    height: auto;
    aspect-ratio: 1.34 / 1;
    object-fit: cover;
  }
  .category-banner img {
    height: auto;
    aspect-ratio: 1.78 / 1;
    object-fit: contain;
  }
  .home-category-bed .category-banner img {
    object-fit: cover;
  }
  .home-category-furniture .category-banner img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .bulk-order-image img {
    height: auto;
    aspect-ratio: 1104 / 978;
  }
  .product-card h3 { font-size: 17px; }
  .price { font-size: 17px; }
  .card-actions { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .shop-hero { background-size: cover; }
  .filter-panel { padding: 16px; }
  .product-detail-page { padding-left: 6px; padding-right: 6px; }
  .buy-panel { padding: 16px; }
  .buy-panel h1 { font-size: 34px; }
  .main-product-image { aspect-ratio: 1 / .82; }
  .thumbs { gap: 8px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-grid div { padding: 12px; font-size: 12px; }
  .product-story { padding-left: 6px; padding-right: 6px; gap: 20px; }
  .product-story img { max-height: none; aspect-ratio: 1 / .82; }
  .faq-list details { padding: 12px; }
  .size-options { grid-template-columns: repeat(3, 1fr); }
  .custom-size-grid,
  .custom-size-result { grid-template-columns: 1fr; }
  .buy-form, .delivery-card form, .spec-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row img { width: 72px; height: 64px; }
  .cart-row > :last-child { grid-column: 1 / -1; }
}

body:not(.admin-body):not(.admin-login-body),
body:not(.admin-body):not(.admin-login-body) input,
body:not(.admin-body):not(.admin-login-body) textarea,
body:not(.admin-body):not(.admin-login-body) select,
body:not(.admin-body):not(.admin-login-body) button,
body:not(.admin-body):not(.admin-login-body) .button {
  font-size: 12px;
}

body:not(.admin-body):not(.admin-login-body) h1,
body:not(.admin-body):not(.admin-login-body) .display,
body:not(.admin-body):not(.admin-login-body) .home-hero h1,
body:not(.admin-body):not(.admin-login-body) .buy-panel h1,
body:not(.admin-body):not(.admin-login-body) .shop-hero h1 {
  font-size: 18px;
  line-height: 1.2;
}

body:not(.admin-body):not(.admin-login-body) h2,
body:not(.admin-body):not(.admin-login-body) h3,
body:not(.admin-body):not(.admin-login-body) .section-head h2,
body:not(.admin-body):not(.admin-login-body) .split-showcase h2,
body:not(.admin-body):not(.admin-login-body) .ad-band h2,
body:not(.admin-body):not(.admin-login-body) .product-card h3,
body:not(.admin-body):not(.admin-login-body) .site-footer h3 {
  font-size: 14px;
  line-height: 1.25;
}

body:not(.admin-body):not(.admin-login-body) p,
body:not(.admin-body):not(.admin-login-body) a,
body:not(.admin-body):not(.admin-login-body) li,
body:not(.admin-body):not(.admin-login-body) label,
body:not(.admin-body):not(.admin-login-body) td,
body:not(.admin-body):not(.admin-login-body) th,
body:not(.admin-body):not(.admin-login-body) .lead,
body:not(.admin-body):not(.admin-login-body) .hero p,
body:not(.admin-body):not(.admin-login-body) .home-hero p,
body:not(.admin-body):not(.admin-login-body) .product-story,
body:not(.admin-body):not(.admin-login-body) .site-footer a,
body:not(.admin-body):not(.admin-login-body) .site-footer p {
  font-size: 12px;
}

/* Brand typography system */
body:not(.admin-body):not(.admin-login-body) {
  font-family: var(--font-secondary);
}

body:not(.admin-body):not(.admin-login-body) h1,
body:not(.admin-body):not(.admin-login-body) h2,
body:not(.admin-body):not(.admin-login-body) .display,
body:not(.admin-body):not(.admin-login-body) .section-head h2,
body:not(.admin-body):not(.admin-login-body) .page-banner h1,
body:not(.admin-body):not(.admin-login-body) .home-category-banner h2,
body:not(.admin-body):not(.admin-login-body) .split-showcase h2,
body:not(.admin-body):not(.admin-login-body) .ad-band h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--walnut);
}

body:not(.admin-body):not(.admin-login-body) h3,
body:not(.admin-body):not(.admin-login-body) h4,
body:not(.admin-body):not(.admin-login-body) .product-card h3,
body:not(.admin-body):not(.admin-login-body) .commerce-item h2,
body:not(.admin-body):not(.admin-login-body) .site-footer h3,
body:not(.admin-body):not(.admin-login-body) .buy-panel h1 span {
  font-family: var(--font-secondary);
  font-weight: 700;
}

body:not(.admin-body):not(.admin-login-body) nav a,
body:not(.admin-body):not(.admin-login-body) .header-actions a,
body:not(.admin-body):not(.admin-login-body) .account-menu summary,
body:not(.admin-body):not(.admin-login-body) .button,
body:not(.admin-body):not(.admin-login-body) button,
body:not(.admin-body):not(.admin-login-body) input,
body:not(.admin-body):not(.admin-login-body) textarea,
body:not(.admin-body):not(.admin-login-body) select,
body:not(.admin-body):not(.admin-login-body) label,
body:not(.admin-body):not(.admin-login-body) .topbar,
body:not(.admin-body):not(.admin-login-body) .eyebrow,
body:not(.admin-body):not(.admin-login-body) .pill,
body:not(.admin-body):not(.admin-login-body) .rating,
body:not(.admin-body):not(.admin-login-body) .discount-pill,
body:not(.admin-body):not(.admin-login-body) .price,
body:not(.admin-body):not(.admin-login-body) .product-price,
body:not(.admin-body):not(.admin-login-body) .review-summary strong,
body:not(.admin-body):not(.admin-login-body) th {
  font-family: var(--font-tertiary);
}

body:not(.admin-body):not(.admin-login-body) .button,
body:not(.admin-body):not(.admin-login-body) button,
body:not(.admin-body):not(.admin-login-body) .price,
body:not(.admin-body):not(.admin-login-body) .product-price,
body:not(.admin-body):not(.admin-login-body) .pill,
body:not(.admin-body):not(.admin-login-body) .rating {
  font-weight: 800;
}

.admin-body {
  font-family: var(--font-secondary);
  line-height: 1.5;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body .admin-topbar h1,
.admin-body .admin-table-toolbar h2,
.admin-login-card h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--walnut);
}

.admin-login-hero h1 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: #fff;
}

.admin-body h4,
.admin-body h5,
.admin-body h6,
.admin-body th,
.admin-body label,
.admin-body .admin-nav-link,
.admin-body .admin-profile-btn,
.admin-body .admin-pagination,
.admin-body button,
.admin-body .button,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-login-card button,
.admin-login-points span {
  font-family: var(--font-tertiary);
}

.admin-body p,
.admin-body a,
.admin-body td,
.admin-body .muted {
  font-family: var(--font-secondary);
  font-weight: 500;
}

.admin-body th,
.admin-body label,
.admin-body .admin-nav-link,
.admin-body .admin-profile-btn,
.admin-body button,
.admin-body .button {
  font-weight: 700;
}

.page-banner {
  position: relative;
  width: min(100% - 20px, 1440px);
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ee;
  box-shadow: var(--shadow);
}

.page-banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
  object-position: center;
}

.page-banner > div {
  position: absolute;
  left: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 36px);
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(114, 66, 27, .72);
  color: #fff;
  backdrop-filter: blur(8px);
}

.page-banner h1,
.page-banner p {
  margin: 0;
}

.page-banner p {
  margin-top: 6px;
}

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

.about-sections article {
  padding: 18px;
  border: 1px solid rgba(114, 66, 27, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  box-shadow: var(--shadow);
}

.about-sections h2 {
  margin-top: 0;
  color: var(--walnut);
}

.about-portfolio {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  padding-top: 0;
}

.about-portfolio img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

  .about-portfolio {
    grid-template-columns: 1fr;
  }

  .about-portfolio img {
    height: auto;
    aspect-ratio: 1.78 / 1;
  }
}

@media (max-width: 520px) {
  .page-banner {
    width: calc(100% - 16px);
    margin-top: 10px;
  }

  .page-banner img {
    height: auto;
    aspect-ratio: 1.78 / 1;
  }

  .page-banner > div {
    position: static;
    max-width: none;
    border-radius: 0;
    background: var(--walnut);
  }

  .about-sections {
    grid-template-columns: 1fr;
  }
}

.thumbs img {
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.selected {
  border-color: var(--walnut);
}

.commerce-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.commerce-list,
.order-list,
.address-list {
  display: grid;
  gap: 14px;
}

.commerce-head,
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(114,66,27,.12);
}

.commerce-head h1,
.account-head h1 {
  margin: 0;
}

.commerce-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(114,66,27,.12);
  box-shadow: var(--shadow);
}

.commerce-item img {
  width: 150px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff7ee;
}

.commerce-item h2 {
  margin: 0 0 4px;
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.commerce-actions form {
  margin: 0;
}

.commerce-summary {
  position: sticky;
  top: 92px;
}

.account-dashboard {
  display: grid;
  gap: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.address-card,
.order-card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(114,66,27,.12);
}

.address-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(114,66,27,.12);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.variant-price-editor {
  margin: 18px 0;
}

.variant-price-editor .table-wrap {
  max-height: 420px;
}

.variant-price-editor input {
  min-width: 96px;
}

.variant-price-row.is-hidden {
  display: none;
}

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

  .commerce-summary {
    position: static;
  }
}

@media (max-width: 520px) {
  .commerce-head,
  .account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .commerce-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .commerce-item img {
    width: 96px;
    height: 92px;
  }

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

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

/* Complete Mahendra typography pass: Satoshi throughout. */
html,
body {
  font-family: var(--font-secondary);
}

body,
body p,
body li,
body td,
body input,
body textarea,
body select {
  font-family: var(--font-secondary);
  font-weight: 500;
}

body h1,
body h2,
body .display,
body .section-head h2,
body .page-banner h1,
body .home-category-banner h2,
body .split-showcase h2,
body .ad-band h2,
body .buy-panel h1,
body .commerce-head h1,
body .account-head h1,
body .admin-topbar h1,
body .admin-table-toolbar h2,
body .admin-login-hero h1,
body .admin-login-card h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0;
}

body h3,
body h4,
body h5,
body h6,
body .product-card h3,
body .commerce-item h2,
body .site-footer h3,
body .admin-login-card h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 0;
}

body nav,
body nav a,
body .header-actions a,
body .account-menu summary,
body .topbar,
body .eyebrow,
body .price,
body .product-price,
body .pill,
body .rating,
body .discount-badge,
body .discount-pill,
body .button,
body button,
body input[type="submit"],
body label,
body th,
body .field-label,
body .option-title,
body .size-options span,
body .color-options span,
body .review-summary strong,
body .stat span,
body .stat strong,
body .admin-nav-link,
body .admin-profile-btn,
body .admin-table-actions,
body .admin-pagination,
body .admin-login-points span {
  font-family: var(--font-tertiary);
  letter-spacing: 0;
}

body .button,
body button,
body input[type="submit"],
body .price,
body .product-price,
body .pill,
body .rating,
body .discount-badge,
body .discount-pill,
body th,
body label,
body .admin-nav-link,
body .admin-profile-btn {
  font-weight: 700;
}

body .admin-body h1,
body .admin-body h2,
body .admin-body h3,
.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body th,
.admin-body label {
  font-size: 14px;
}

.admin-body,
.admin-body p,
.admin-body a,
.admin-body td,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button {
  font-size: 12px;
}

/* Reference header, menu drawer, cards, and product gallery refinements. */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(320px, 620px) auto;
  gap: 12px clamp(18px, 2.2vw, 34px);
  align-items: center;
  justify-content: stretch;
  padding: 14px clamp(18px, 4vw, 64px) 0;
}
.site-header > .mobile-menu-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
}
.site-header > .logo-brand {
  grid-column: 1;
  justify-self: start;
}
.site-header > .header-search {
  grid-column: 2;
  justify-self: center;
}
.site-header > .header-actions {
  grid-column: 3;
  justify-self: end;
}
.mobile-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
}
.mobile-menu-toggle span {
  display: none;
}
.header-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  padding: 0 14px;
  border-radius: 8px;
  background: #e8e8e8;
  color: #777;
}
.header-search input {
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}
.primary-nav {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 12px 0;
  border-top: 1px solid rgba(114,66,27,.1);
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}
.drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(114,66,27,.14);
}
.drawer-head img {
  width: 142px;
}
.drawer-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}
.primary-nav a {
  padding: 0;
  border-bottom: 0;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(0,0,0,.28);
}
.site-header.nav-open .menu-backdrop {
  display: block;
}
.search-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(92vw, 430px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  background: var(--cream);
  box-shadow: 24px 0 60px rgba(0,0,0,.2);
  transform: translateX(-110%);
  transition: transform .24s ease;
}
.search-open .search-drawer {
  transform: translateX(0);
}
.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  background: rgba(0,0,0,.28);
}
.search-open .search-backdrop {
  display: block;
}
.search-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(114,66,27,.14);
}
.search-drawer-head strong {
  color: var(--walnut);
  font-size: 18px;
}
.search-drawer-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}
.search-drawer form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #e8e8e8;
}
.search-drawer form input {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}
.search-drawer form button {
  min-height: 36px;
  padding: 0 14px;
}
.search-suggestions {
  display: grid;
  gap: 8px;
}
.search-suggestions p {
  margin: 0;
  color: #766a62;
}
.search-suggestions a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(114,66,27,.1);
}
.search-suggestions img {
  width: 58px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}
.search-suggestions strong,
.search-suggestions small {
  display: block;
}
.search-suggestions small {
  margin-top: 2px;
  color: #766a62;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.icon-link {
  border: 0;
  background: transparent;
}
.cart-link span {
  right: 0;
  top: 0;
}

.product-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.product-card img {
  aspect-ratio: 1 / .92;
  border-radius: 8px;
}
.product-card h3 {
  margin: 9px 0 3px;
  color: #24211e;
}
.product-card .price {
  gap: 8px;
  margin-bottom: 7px;
  color: #111;
}
.product-card .price del {
  color: #8f847c;
}
.product-card .pill {
  width: 100%;
  min-height: 18px;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5aa46a 0%, #eef6df 100%);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.product-card .rating {
  margin: 7px 0 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--cedar);
}
.card-actions {
  display: block;
}
.card-actions button {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 16px;
}

.product-detail-page {
  max-width: 1280px;
  margin: 0 auto;
}
.product-detail-shell {
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1fr);
}
.gallery-panel {
  position: relative;
}
.main-product-image {
  aspect-ratio: 1.17 / 1;
  border-radius: 8px;
}
.thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.thumbs img {
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}
.thumbs img.selected,
.thumbs img:hover {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.gallery-panel .floating-icon {
  top: 12px;
  background: rgba(255,255,255,.74);
}
.gallery-panel .heart-float {
  top: 52px;
}
.buy-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.buy-panel h1 {
  margin-right: 0;
}

.bulk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 5vw, 64px) clamp(10px, 2vw, 28px);
}
.bulk-hero img,
.bulk-card-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.bulk-hero img {
  aspect-ratio: 1.2 / 1;
  background: #fff7ee;
}
.bulk-hero h1 {
  max-width: 620px;
}
.bulk-hero p {
  max-width: 560px;
  line-height: 1.7;
}
.bulk-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bulk-card-grid a {
  display: grid;
  gap: 9px;
}
.bulk-card-grid img {
  aspect-ratio: 1.55 / 1;
}
.bulk-card-grid strong {
  color: var(--walnut);
  font-size: 16px;
}
.bulk-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bulk-process div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(114,66,27,.12);
}
.bulk-process strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--walnut);
  color: #fff;
}
.bulk-form {
  max-width: 920px;
  margin: 0 auto;
}
.bulk-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0;
  padding: 0;
  border: 0;
}
.bulk-radio-group legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 700;
}
.bulk-radio-group legend span {
  color: var(--mahendra-red);
}
.bulk-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(114,66,27,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
}
.bulk-radio-group input {
  width: auto;
  min-height: auto;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 14px clamp(10px, 2vw, 28px);
  }
  .site-header > .mobile-menu-toggle {
    display: inline-grid;
  }
  .site-header > .logo-brand {
    grid-column: 2;
  }
  .site-header > .header-search {
    grid-column: 3;
    justify-self: stretch;
  }
  .site-header > .header-actions {
    grid-column: 4;
  }
  .site-header .header-actions {
    grid-column: auto;
    width: auto;
  }
  .primary-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(86vw, 340px);
    display: grid;
    align-content: start;
    gap: 0;
    padding: 16px;
    border-top: 0;
    background: var(--cream);
    box-shadow: 22px 0 55px rgba(0,0,0,.18);
    transform: translateX(-110%);
    transition: transform .22s ease;
  }
  .site-header.nav-open .primary-nav {
    transform: translateX(0);
  }
  .drawer-head {
    display: flex;
  }
  .primary-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(114,66,27,.1);
  }
  .site-header .header-actions .icon-link,
  .site-header .account-menu {
    flex: 0 0 auto;
  }
  .site-header .account-menu summary {
    width: auto;
  }
  .header-search {
    width: 100%;
    max-width: none;
  }
  .bulk-hero,
  .bulk-card-grid,
  .bulk-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 32px 82px minmax(82px, 1fr) auto;
    gap: 8px;
    padding: 12px 8px;
  }
  .logo-brand img {
    width: 82px;
  }
  .header-search {
    min-height: 36px;
    padding: 0 10px;
  }
  .header-search .icon {
    width: 16px;
    height: 16px;
  }
  .header-actions {
    gap: 1px;
  }
  .icon-link {
    width: 28px;
    height: 34px;
  }
  .icon-link .icon {
    width: 19px;
    height: 19px;
  }
  .account-menu summary {
    min-height: 34px;
    max-width: 82px;
    padding: 7px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-detail-page {
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-product-image {
    aspect-ratio: 1.16 / 1;
  }
  .thumbs {
    gap: 9px;
  }
  .product-card .pill {
    font-size: 8px;
  }
  .card-actions button {
    min-height: 40px;
    font-size: 14px;
  }
}

body:not(.admin-body):not(.admin-login-body) h1,
body:not(.admin-body):not(.admin-login-body) .display,
body:not(.admin-body):not(.admin-login-body) .page-banner h1,
body:not(.admin-body):not(.admin-login-body) .buy-panel h1,
body:not(.admin-body):not(.admin-login-body) .commerce-head h1,
body:not(.admin-body):not(.admin-login-body) .account-head h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

body:not(.admin-body):not(.admin-login-body) h2,
body:not(.admin-body):not(.admin-login-body) .section-head h2,
body:not(.admin-body):not(.admin-login-body) .split-showcase h2,
body:not(.admin-body):not(.admin-login-body) .ad-band h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.18;
}

body:not(.admin-body):not(.admin-login-body) h3,
body:not(.admin-body):not(.admin-login-body) .product-card h3,
body:not(.admin-body):not(.admin-login-body) .commerce-item h2,
body:not(.admin-body):not(.admin-login-body) .site-footer h3 {
  font-size: 16px;
  line-height: 1.2;
}

body:not(.admin-body):not(.admin-login-body) .product-price,
body:not(.admin-body):not(.admin-login-body) .price {
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 520px) {
  body:not(.admin-body):not(.admin-login-body) h1,
  body:not(.admin-body):not(.admin-login-body) .display,
  body:not(.admin-body):not(.admin-login-body) .page-banner h1,
  body:not(.admin-body):not(.admin-login-body) .buy-panel h1,
  body:not(.admin-body):not(.admin-login-body) .commerce-head h1,
  body:not(.admin-body):not(.admin-login-body) .account-head h1 {
    font-size: 24px;
  }

  body:not(.admin-body):not(.admin-login-body) h2,
  body:not(.admin-body):not(.admin-login-body) .section-head h2,
  body:not(.admin-body):not(.admin-login-body) .split-showcase h2,
  body:not(.admin-body):not(.admin-login-body) .ad-band h2 {
    font-size: 18px;
  }

  body:not(.admin-body):not(.admin-login-body) h3,
  body:not(.admin-body):not(.admin-login-body) .product-card h3,
  body:not(.admin-body):not(.admin-login-body) .commerce-item h2,
  body:not(.admin-body):not(.admin-login-body) .site-footer h3 {
    font-size: 15px;
  }
}

/* Desktop storefront polish based on the supplied ecommerce reference. */
@media (min-width: 901px) {
  .topbar {
    padding: 7px 16px;
    font-size: 11px;
  }

  .site-header {
    grid-template-columns: 176px minmax(0, 1fr) auto;
    gap: 26px;
    padding: 18px clamp(42px, 7vw, 126px);
    background: rgba(250,248,245,.98);
  }

  .site-header > .logo-brand {
    grid-column: 1;
  }

  .site-header > .header-search {
    display: none;
  }

  .site-header > .primary-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: clamp(20px, 2.6vw, 44px);
    padding: 0;
    border-top: 0;
  }

  .site-header > .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .primary-nav a {
    font-size: 15px;
    font-weight: 800;
    color: #332f2b;
  }

  .logo-brand img {
    width: 142px;
  }

  .desktop-search-icon {
    display: inline-grid;
  }

  .mobile-location-icon {
    display: none;
  }

  .home-category-strip {
    display: none;
  }

  .home-category-strip a {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: #3a332e;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }

  .home-category-strip img {
    width: 100%;
    height: 112px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f2eb;
  }

  .home-feed {
    width: min(100% - 84px, 1580px);
    padding: 0 0 54px;
    gap: 52px;
  }

  .category-banner,
  .bulk-order-image {
    box-shadow: none;
  }

  .category-banner img {
    height: clamp(360px, 26vw, 520px);
  }

  .home-category-furniture .category-banner img {
    height: clamp(420px, 36vw, 640px);
  }

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

  .product-card h3 {
    font-size: 15px;
  }

  .product-card .price {
    font-size: 15px;
  }

  .product-card .price del {
    font-size: 12px;
  }

  .product-card .rating {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .desktop-search-icon {
    display: none;
  }

  .mobile-location-icon {
    display: inline-grid;
  }

  .home-category-strip {
    display: none;
  }

  .home-category-strip a {
    flex: 0 0 86px;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #3a332e;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
  }

  .home-category-strip img {
    width: 74px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f2eb;
  }
}

/* Final header/search corrections. */
.home-category-strip,
.header-search {
  display: none !important;
}

.header-search-icon {
  display: inline-grid !important;
}

.site-header .header-actions .icon-link,
.site-header .header-actions button.icon-link,
.site-header .header-search-icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid !important;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  box-shadow: none;
  line-height: 1;
}

.site-header .header-actions .icon-link .icon,
.site-header .header-actions button.icon-link .icon,
.site-header .header-search-icon .icon {
  width: 20px;
  height: 20px;
  color: inherit;
  stroke: currentColor;
}

.site-header .header-actions .icon-link:hover,
.site-header .header-actions button.icon-link:hover,
.site-header .header-search-icon:hover {
  background: rgba(114, 66, 27, .08);
  color: var(--walnut);
}

.site-header .header-actions .header-location-icon {
  width: auto;
  min-width: 38px;
  gap: 4px;
  padding: 0 8px;
}

.header-location-pin {
  display: inline-block;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.header-location-pin:empty {
  display: none;
}

.header-location-icon[data-location-loading="true"] {
  opacity: .72;
  cursor: progress;
}

.page-banner > div {
  background: rgba(43, 33, 25, .68);
  color: #fff;
}

body:not(.admin-body):not(.admin-login-body) .page-banner h1,
.page-banner h1,
.page-banner p,
.page-banner .eyebrow {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.search-drawer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 84px !important;
  bottom: auto !important;
  z-index: 90;
  width: min(100% - 24px, 720px) !important;
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  transform: translate(-50%, -18px) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.search-open .search-drawer {
  transform: translate(-50%, 0) !important;
  opacity: 1;
  pointer-events: auto;
}

.search-backdrop {
  z-index: 85;
}

@media (min-width: 901px) {
  .site-header {
    display: grid !important;
    grid-template-columns: 156px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 3vw, 54px);
    padding: 18px clamp(42px, 7vw, 126px);
  }

  .site-header > .mobile-menu-toggle {
    display: none !important;
  }

  .site-header > .logo-brand {
    grid-column: 1;
    justify-self: start;
  }

  .site-header > .primary-nav {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: 100%;
    display: flex !important;
    justify-content: center;
    gap: clamp(22px, 3vw, 52px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .site-header > .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .primary-nav a {
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 800;
  }

  .drawer-head {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid !important;
    grid-template-columns: 34px minmax(82px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .site-header > .mobile-menu-toggle {
    display: inline-grid !important;
    grid-column: 1;
  }

  .site-header > .logo-brand {
    grid-column: 2;
  }

  .site-header > .header-actions {
    grid-column: 4;
  }

  .primary-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(86vw, 340px);
    display: grid !important;
    align-content: start;
    padding: 16px;
    background: var(--cream);
    box-shadow: 22px 0 55px rgba(0,0,0,.18);
    transform: translateX(-110%);
    transition: transform .22s ease;
  }

  .site-header.nav-open .primary-nav {
    transform: translateX(0);
  }

  .drawer-head {
    display: flex !important;
  }

  .primary-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(114,66,27,.1);
    font-size: 15px;
  }

  .mobile-location-icon {
    display: inline-grid !important;
  }

  .search-drawer {
    top: 104px !important;
    width: min(100% - 16px, 520px) !important;
  }
}

/* Final mobile alignment and product option corrections. */
.size-options button {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  box-shadow: none;
}

.size-options button.selected {
  border: 0;
  background: transparent;
  color: var(--charcoal);
}

.size-options button > span {
  width: 100%;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(114, 66, 27, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.size-options button.selected > span {
  border-color: var(--oak);
  background: var(--oak);
  color: #fff;
}

.size-options small {
  min-height: 13px;
  color: #7c716a;
  font-size: 10px;
  line-height: 1.1;
}

.firmness-options {
  display: grid;
  gap: 10px;
}

.firmness-options > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
  align-items: start;
}

.firmness-options figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.firmness-options img {
  width: 100%;
  height: 26px;
  object-fit: contain;
  border-radius: 999px;
}

.firmness-color-strip {
  width: 100%;
  height: 9px;
  display: block;
  border-radius: 999px;
}

.firmness-options figcaption {
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.firmness-options figure.selected .firmness-color-strip {
  outline: 2px solid #29e978;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    padding: 7px 8px;
    font-size: 10px;
    line-height: 1.3;
  }

  .site-header {
    width: 100%;
    grid-template-columns: 32px 86px minmax(0, 1fr);
    gap: 7px;
    padding: 10px 8px;
  }

  .site-header > .header-actions {
    grid-column: 3;
    min-width: 0;
    justify-self: end;
    gap: 2px;
  }

  .site-header .header-actions .icon-link,
  .site-header .header-actions button.icon-link,
  .site-header .header-search-icon {
    width: 30px;
    min-width: 30px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  .site-header .header-actions .header-location-icon {
    width: auto;
    max-width: 74px;
    padding: 0 5px;
  }

  .header-location-pin {
    max-width: 42px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .account-menu summary {
    max-width: 78px;
    min-height: 34px;
    padding: 6px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .primary-nav {
    width: min(88vw, 320px);
    max-width: 320px;
    padding: 14px;
    overflow-y: auto;
  }

  .drawer-head {
    display: flex !important;
    align-items: center;
  }

  .drawer-head img {
    width: 112px;
  }

  .primary-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 11px 2px;
    font-size: 14px;
  }

  .search-drawer {
    left: 8px !important;
    right: 8px !important;
    top: 82px !important;
    width: auto !important;
    max-height: calc(100vh - 96px);
    padding: 12px;
    transform: translateY(-14px) !important;
  }

  .search-open .search-drawer {
    transform: translateY(0) !important;
  }

  .search-drawer form {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .search-drawer form input {
    min-width: 0;
    font-size: 12px;
  }

  .search-drawer form button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .product-detail-page,
  .section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .product-detail-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .gallery-panel,
  .buy-panel {
    width: 100%;
    min-width: 0;
  }

  .main-product-image {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    max-height: none;
    object-fit: cover;
  }

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

  .thumbs img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
  }

  .buy-panel {
    padding: 0 2px;
  }

  .buy-panel h1 {
    margin-right: 0;
    font-size: 24px;
  }

  .size-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .size-options button > span {
    min-height: 22px;
    padding: 3px 5px;
    font-size: 10px;
  }

  .size-options small {
    font-size: 7px;
  }

  .firmness-options > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .firmness-color-strip {
    height: 7px;
  }

  .firmness-options figcaption {
    font-size: 7px;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: 30px 78px minmax(0, 1fr);
    gap: 5px;
  }

  .logo-brand img {
    width: 78px;
  }

  .site-header .header-actions .icon-link,
  .site-header .header-actions button.icon-link,
  .site-header .header-search-icon {
    width: 27px;
    min-width: 27px;
  }

  .site-header .header-actions .icon-link .icon,
  .site-header .header-actions button.icon-link .icon,
  .site-header .header-search-icon .icon {
    width: 18px;
    height: 18px;
  }

  .site-header .header-actions .header-location-icon {
    max-width: 60px;
  }

  .size-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.account-hub {
  max-width: 980px;
  margin: 0 auto;
}

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

.account-menu-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(114, 66, 27, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}

.account-menu-card .icon {
  width: 28px;
  height: 28px;
  color: var(--oak);
}

.account-menu-card span {
  color: var(--walnut);
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.account-menu-card small {
  color: #766a62;
  font-size: 12px;
  line-height: 1.45;
}

.logout-card .icon,
.logout-card span {
  color: #8a2c21;
}

.account-form-card h2,
.address-form h2,
.account-grid .panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.address-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .account-dashboard {
    padding-top: 18px;
  }

  .account-head {
    align-items: flex-start;
    gap: 12px;
  }

  .account-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .account-menu-card {
    min-height: 132px;
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
  }

  .account-menu-card .icon {
    width: 24px;
    height: 24px;
  }

  .account-menu-card span {
    font-size: 16px;
  }

  .account-menu-card small {
    font-size: 11px;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .address-card {
    padding: 12px;
  }

  .address-card form .button,
  .address-card form button {
    flex: 1 1 110px;
    min-height: 36px;
  }
}

@media (max-width: 900px) {
  .site-header .header-actions .desktop-location-icon,
  .site-header .header-actions .header-location-icon {
    display: none !important;
  }
}

/* Mobile header final layout: menu, logo, search field, actions. */
.mobile-header-search,
.drawer-location-button {
  display: none;
}

@media (min-width: 901px) {
  .desktop-location-icon {
    display: inline-grid !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 30px 82px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: center;
    padding: 10px 8px !important;
  }

  .site-header > .mobile-menu-toggle {
    grid-column: 1 !important;
    width: 30px;
    min-height: 34px;
  }

  .site-header > .logo-brand {
    grid-column: 2 !important;
    min-width: 0;
  }

  .site-header > .logo-brand img {
    width: 82px;
  }

  .mobile-header-search {
    grid-column: 3;
    min-width: 0;
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 0 9px;
    border-radius: 8px;
    background: #e8e8e8;
    color: #706861;
  }

  .mobile-header-search .icon {
    width: 16px;
    height: 16px;
  }

  .mobile-header-search input {
    min-width: 0;
    width: 100%;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    outline: 0;
    color: var(--charcoal);
    font-size: 12px;
  }

  .site-header > .header-actions {
    grid-column: 4 !important;
    min-width: max-content;
    display: flex;
    justify-content: flex-end;
    gap: 1px;
  }

  .site-header .header-search-icon,
  .site-header > .header-actions > [data-search-toggle],
  .site-header .desktop-location-icon {
    display: none !important;
  }

  .site-header .header-actions .icon-link,
  .site-header .header-actions button.icon-link {
    width: 28px !important;
    min-width: 28px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .site-header .header-actions .icon-link .icon,
  .site-header .header-actions button.icon-link .icon {
    width: 18px;
    height: 18px;
  }

  .primary-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 120 !important;
    width: min(88vw, 326px) !important;
    height: 100vh;
    max-width: 326px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px !important;
    overflow-y: auto;
    border: 0 !important;
    background: var(--cream) !important;
    box-shadow: 18px 0 48px rgba(0, 0, 0, .2) !important;
    transform: translateX(-110%) !important;
    transition: transform .22s ease;
  }

  .site-header.nav-open .primary-nav {
    transform: translateX(0) !important;
  }

  .drawer-head {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(114, 66, 27, .14);
  }

  .drawer-head img {
    width: 118px !important;
  }

  .drawer-location-button {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin: 4px 0 8px;
    padding: 9px 10px;
    border: 1px solid rgba(114, 66, 27, .16);
    border-radius: 8px;
    background: #fff7ee;
    color: var(--charcoal);
    text-align: left;
  }

  .drawer-location-button .icon {
    width: 18px;
    height: 18px;
  }

  .drawer-location-button span,
  .drawer-location-button strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer-location-button strong:empty {
    display: none;
  }

  .primary-nav a {
    width: 100%;
    min-height: 43px;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    padding: 11px 3px !important;
    border-bottom: 1px solid rgba(114, 66, 27, .12) !important;
    color: var(--charcoal) !important;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.2;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .menu-backdrop {
    z-index: 110 !important;
  }

  .search-drawer {
    top: 76px !important;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: 28px 74px minmax(0, 1fr) auto !important;
    gap: 55px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .site-header > .logo-brand img {
    width: 74px;
  }

  .mobile-header-search {
    padding: 0 7px;
  }

  .mobile-header-search input {
    font-size: 11px;
  }

  .site-header > .header-actions {
    gap: 0;
  }

  .site-header .header-actions .icon-link,
  .site-header .header-actions button.icon-link {
    width: 25px !important;
    min-width: 25px !important;
  }
}

@media (max-width: 900px) {
  .site-header > .header-actions > [data-location-detect],
  .site-header > .header-actions > .header-location-icon,
  .site-header > .header-actions > .desktop-location-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

.shop-mobile-controls,
.filter-drawer-head,
.filter-backdrop,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  body:not(.admin-body):not(.admin-login-body) {
    padding-bottom: 66px;
  }

  .site-header {
    grid-template-columns: 28px 76px minmax(0, 1fr) 32px !important;
  }

  .site-header > .logo-brand img {
    width: 76px;
  }

  .site-header .header-search-icon,
  .site-header > .header-actions > [data-search-toggle],
  .site-header .wishlist-header-link,
  .site-header .account-header-link,
  .site-header .header-account-menu {
    display: none !important;
  }

  .site-header > .header-actions {
    min-width: 32px;
  }

  .site-header .cart-link {
    display: inline-grid !important;
  }

  .mobile-header-search {
    position: relative;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 7px;
  }

  .mobile-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 140;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(114, 66, 27, .12);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  }

  .mobile-header-search:focus-within .mobile-search-suggestions {
    display: grid;
    gap: 7px;
  }

  .mobile-search-suggestions p {
    margin: 0;
    color: #766a62;
    font-size: 11px;
  }

  .mobile-search-suggestions a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    color: var(--charcoal);
  }

  .mobile-search-suggestions img {
    width: 42px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
  }

  .mobile-search-suggestions strong,
  .mobile-search-suggestions small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-search-suggestions strong {
    font-size: 12px;
  }

  .mobile-search-suggestions small {
    color: #766a62;
    font-size: 10px;
  }

  .shop-mobile-controls {
    width: min(100% - 16px, 720px);
    display: flex;
    justify-content: flex-end;
    margin: 12px auto 0;
  }

  .shop-mobile-controls button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--oak);
    color: #fff;
    font-size: 13px;
  }

  .filter-panel {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 130;
    width: min(88vw, 330px);
    height: 100vh;
    overflow-y: auto;
    padding: 14px !important;
    border-radius: 0;
    background: var(--cream);
    box-shadow: 18px 0 48px rgba(0, 0, 0, .2);
    transform: translateX(-110%);
    transition: transform .22s ease;
  }

  .filter-open .filter-panel {
    transform: translateX(0);
  }

  .filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(114, 66, 27, .14);
  }

  .filter-drawer-head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
  }

  .filter-drawer-head button {
    width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 999px;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(0, 0, 0, .28);
  }

  .filter-open .filter-backdrop {
    display: block;
  }

  .shop-layout {
    padding-top: 14px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    min-height: 60px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 6px 5px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(114, 66, 27, .14);
    background: rgba(250, 248, 245, .98);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, .12);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: var(--charcoal);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-bottom-nav .icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: 27px 70px minmax(0, 1fr) 28px !important;
  }

  .site-header > .logo-brand img {
    width: 70px;
  }

  .mobile-header-search {
    min-height: 34px;
    padding: 0 8px;
  }
}

@keyframes mahendraOfferBlink {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: .42; filter: brightness(1); }
}

.blink-offer {
  color: #b8e168;
  font-weight: 900;
  animation: mahendraOfferBlink 1s ease-in-out infinite;
}

.product-card .pill {
  background: linear-gradient(90deg, #77bd74 0%, #cfe9c0 56%, #fff0d9 100%) !important;
  color: #6f624f !important;
}

.product-card .pill strong {
  margin-left: 4px;
  color: #248c3a !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3eadf;
  color: var(--oak);
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-unread { background: #fff0d9; color: #8b4a18; }
.status-read { background: #e9f1e3; color: #3f7350; }
.status-followed_up { background: #eadfce; color: #72421b; }

.admin-inline-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-detail-row td {
  background: #fffaf2;
  color: #5d5148;
}

.rich-order-list,
.admin-order-list {
  display: grid;
  gap: 16px;
}

.rich-order-card,
.admin-order-card {
  padding: 16px;
  border: 1px solid rgba(114, 66, 27, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 12px 32px rgba(51, 51, 51, .07);
}

.rich-order-card header,
.admin-order-card header,
.order-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.rich-order-card h2,
.admin-order-card h2 {
  margin: 4px 0 0;
  color: var(--walnut);
  font-size: 18px;
}

.order-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.order-items-preview {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.order-item-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fffaf2;
}

.order-item-line img {
  width: 74px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item-line p {
  margin: 3px 0;
}

.return-inline-form {
  margin-top: 12px;
}

.admin-order-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.admin-order-grid section {
  padding: 12px;
  border-radius: 8px;
  background: #fffaf2;
}

.admin-order-grid h3 {
  margin-top: 0;
  font-size: 14px;
}

.admin-order-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.admin-order-actions label {
  margin: 0;
}

@media (max-width: 900px) {
  body:not(.admin-body):not(.admin-login-body) {
    padding-bottom: 0 !important;
  }

  body:not(.admin-body):not(.admin-login-body) .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 240 !important;
    min-height: 28px;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header {
    position: sticky !important;
    top: 28px !important;
    z-index: 230 !important;
    grid-template-columns: 30px 76px minmax(96px, 1fr) auto !important;
    gap: 6px !important;
    padding: 8px 8px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-menu-toggle {
    width: 30px !important;
    min-width: 30px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .logo-brand img {
    width: 76px !important;
    max-width: 76px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-header-search {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-header-search input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 12px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    width: auto !important;
    min-width: 56px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 26px) !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 2px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-search-icon,
  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions > [data-search-toggle],
  body:not(.admin-body):not(.admin-login-body) .site-header .header-location-icon,
  body:not(.admin-body):not(.admin-login-body) .site-header .desktop-location-icon,
  body:not(.admin-body):not(.admin-login-body) .site-header .account-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu {
    display: none !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .wishlist-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .cart-link {
    display: inline-grid !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 34px !important;
    padding: 0 !important;
    place-items: center !important;
    color: var(--charcoal) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .cart-link span {
    top: 1px !important;
    right: -1px !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    line-height: 13px !important;
    text-align: center !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 260 !important;
    width: min(86vw, 340px) !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 14px 16px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--cream) !important;
    box-shadow: 18px 0 48px rgba(0, 0, 0, .22) !important;
    transform: translateX(-105%) !important;
    transition: transform .24s ease !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header.nav-open .primary-nav {
    transform: translateX(0) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 10px !important;
    padding: 0 0 12px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-head img {
    width: 122px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-head button,
  body:not(.admin-body):not(.admin-login-body) .filter-drawer-head button,
  body:not(.admin-body):not(.admin-login-body) .search-drawer-head button {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #fff7ee !important;
    color: var(--charcoal) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-head button .icon {
    width: 22px !important;
    height: 22px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav a {
    min-height: 45px !important;
    padding: 12px 2px !important;
    font-size: 15px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .menu-backdrop {
    z-index: 250 !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 28px 70px minmax(86px, 1fr) auto !important;
    gap: 4px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .logo-brand img {
    width: 70px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    min-width: 52px !important;
    grid-template-columns: repeat(2, 25px) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .wishlist-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .cart-link {
    width: 25px !important;
    min-width: 25px !important;
  }
}

/* Product detail final refinements. */
.product-detail-page .breadcrumb a {
  color: #766a62 !important;
  text-decoration: none;
}

.product-detail-page .breadcrumb strong {
  color: var(--charcoal) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.heart-float .icon {
  fill: transparent;
}

.heart-float.is-wishlisted {
  color: #ef2d32 !important;
}

.heart-float.is-wishlisted .icon {
  fill: currentColor !important;
}

.product-title-yaro {
  font-family: var(--font-tertiary) !important;
  font-weight: 500 !important;
}

.thickness-pills {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.thickness-pills span,
.thickness-pills button {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--oak);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.firmness-options > div {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.firmness-color-strip {
  width: 100%;
  height: 8px;
  display: block;
  border-radius: 999px;
}

.firmness-options figure.selected .firmness-color-strip {
  outline: 2px solid #29e978;
  outline-offset: 2px;
}

.firmness-options figure small {
  justify-self: start;
  color: var(--oak);
  font-size: 9px;
  line-height: 1;
}

.quantity-control {
  display: grid !important;
  grid-template-columns: 36px 48px 36px;
  align-items: center;
  width: max-content;
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid rgba(114,66,27,.28);
  border-radius: 999px;
  background: #fff;
}

.quantity-control button {
  min-height: 36px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--oak) !important;
  font-size: 16px;
}

.quantity-control input {
  width: 48px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center;
}

.custom-size-result {
  grid-template-columns: 1fr !important;
}

.custom-size-result span:nth-child(1),
.custom-size-result span:nth-child(2) {
  display: none !important;
}

.custom-size-result span:last-child {
  display: block;
}

.similar-products .grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .buy-form {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .buy-form .quantity-control-label {
    grid-column: 1 / -1;
  }

  .size-options {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .size-options button > span {
    min-height: 22px !important;
    padding: 3px 5px !important;
    font-size: 10px !important;
  }

  .size-options small {
    min-height: 10px !important;
    font-size: 7px !important;
  }

  .firmness-options > div {
    gap: 5px !important;
  }

  .firmness-options figcaption {
    font-size: 7px !important;
  }

  .similar-products .grid {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .similar-products .product-card {
    flex: 0 0 58vw;
    max-width: 220px;
    scroll-snap-align: start;
  }

  .rich-order-card header,
  .admin-order-card header,
  .order-card-footer,
  .admin-order-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-status-stack {
    justify-content: flex-start;
  }

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

/* Keep mixed-font product names on one line. */
.buy-panel h1 .product-title-yaro {
  display: inline !important;
  color: inherit !important;
  font-family: var(--font-tertiary) !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: inherit !important;
}

.buy-panel h1 .product-title-satoshi {
  display: inline !important;
  color: inherit !important;
  font-family: var(--font-secondary) !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}

.buy-panel h1 .product-title-category {
  display: block !important;
  color: var(--cedar) !important;
  font-family: var(--font-secondary) !important;
  font-size: .5em !important;
  font-weight: 500 !important;
}

@media (max-width: 900px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 30px 74px minmax(78px, 1fr) auto !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    min-width: 84px !important;
    grid-template-columns: repeat(3, 26px) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .account-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu {
    display: inline-grid !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .wishlist-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .cart-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .account-header-link {
    width: 26px !important;
    min-width: 26px !important;
    height: 34px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu {
    width: 32px !important;
    min-width: 32px !important;
    position: relative !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu summary {
    width: 32px !important;
    min-height: 34px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--charcoal) !important;
    font-size: 10px !important;
    line-height: 34px !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu div {
    right: 0 !important;
    left: auto !important;
    min-width: 170px !important;
  }
}

@media (max-width: 380px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 28px 66px minmax(68px, 1fr) auto !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .logo-brand img {
    width: 66px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    min-width: 78px !important;
    grid-template-columns: repeat(3, 25px) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .wishlist-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .cart-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .account-header-link {
    width: 25px !important;
    min-width: 25px !important;
  }
}

@media (min-width: 901px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 150px minmax(0, 1fr) max-content !important;
    gap: clamp(14px, 1.8vw, 26px) !important;
    padding-left: clamp(20px, 3.2vw, 64px) !important;
    padding-right: clamp(20px, 3.2vw, 64px) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .primary-nav {
    min-width: 0 !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(12px, 1.45vw, 26px) !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-top: 3px !important;
    padding-bottom: 5px !important;
    scrollbar-width: none;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .primary-nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav a,
  body:not(.admin-body):not(.admin-login-body) .header-actions a,
  body:not(.admin-body):not(.admin-login-body) .header-account-menu summary {
    white-space: nowrap !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav a {
    flex: 0 0 auto !important;
    font-size: clamp(13px, .92vw, 15px) !important;
    line-height: 1.35 !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 112px minmax(0, 1fr) max-content !important;
    gap: 10px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .logo-brand img {
    width: 112px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .primary-nav {
    justify-content: center !important;
    gap: 9px !important;
    padding-top: 3px !important;
    padding-bottom: 5px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav a {
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    gap: 6px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions .icon-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions button.icon-link {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions .icon-link .icon,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions button.icon-link .icon {
    width: 18px !important;
    height: 18px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu summary {
    min-height: 32px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 98px minmax(0, 1fr) max-content !important;
    gap: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .logo-brand img {
    width: 98px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .primary-nav {
    gap: 7px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav a {
    font-size: 11px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    gap: 4px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions .icon-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions button.icon-link {
    width: 28px !important;
    min-width: 28px !important;
    height: 30px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions .icon-link .icon,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-actions button.icon-link .icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Admin and homepage slider refinements. */
.admin-body,
.admin-body * {
  font-family: var(--font-secondary) !important;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body th,
.admin-body label {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.admin-body p,
.admin-body a,
.admin-body td,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button,
.admin-body .button,
.admin-body .muted {
  font-size: 14px !important;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
  color: var(--walnut);
}

.admin-table-actions {
  flex-wrap: wrap;
}

.admin-entries-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.admin-entries-control select {
  min-height: 36px;
  width: auto;
  padding: 0 28px 0 10px;
}

.table-wrap:not(.variant-price-wrap) tr:not(.admin-detail-row) td:last-child,
.admin-inline-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-wrap:not(.variant-price-wrap) tr:not(.admin-detail-row) td:last-child form {
  margin: 0;
}

.variant-thickness-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.variant-thickness-tabs button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(114,66,27,.22);
  background: #fff;
  color: var(--walnut);
}

.variant-thickness-tabs button.is-active {
  background: var(--walnut);
  color: #fff;
}

.variant-thickness-tabs button.is-hidden {
  display: none;
}

.staff-role-form {
  display: grid;
  gap: 16px;
}

.permission-grid {
  display: grid;
  gap: 1px;
  overflow-x: auto;
  border: 1px solid rgba(114,66,27,.12);
  border-radius: 8px;
  background: rgba(114,66,27,.12);
}

.permission-grid-head,
.permission-grid-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(92px, 1fr));
  gap: 1px;
}

.permission-grid-head > *,
.permission-grid-row > * {
  min-height: 44px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 10px !important;
  background: rgba(255,255,255,.82);
}

.permission-grid-head > :first-child,
.permission-grid-row > :first-child {
  justify-content: flex-start !important;
  font-weight: 800;
}

.permission-grid .admin-checkline input[type="checkbox"] {
  margin: 0;
}

.admin-banner-slot {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(114,66,27,.12);
}

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

.home-banner-slider {
  position: relative;
  width: 100%;
}

.home-banner-track {
  position: relative;
  min-height: clamp(260px, 33vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ee;
  box-shadow: var(--shadow);
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.home-banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-banner-slide picture,
.home-banner-slide img {
  width: 100%;
  height: 100%;
}

.home-banner-slide img {
  object-fit: cover;
  object-position: center;
}

.home-banner-slide span {
  position: absolute;
  top: clamp(18px, 5vw, 58px);
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  color: #fff7ee;
  font-size: clamp(22px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0,0,0,.42);
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 22px;
  transform: translateX(-50%);
}

.home-banner-dots button {
  width: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.home-banner-dots button.is-active {
  width: 58px;
  background: #fff;
}

.admin-order-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

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

.admin-order-card summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.admin-order-card summary::-webkit-details-marker {
  display: none;
}

.admin-order-card summary p {
  margin: 4px 0 0;
}

.admin-order-card .admin-order-grid,
.admin-order-card .order-items-preview,
.admin-order-card .admin-order-actions {
  margin-left: 16px;
  margin-right: 16px;
}

.admin-order-card .admin-order-actions {
  margin-bottom: 16px;
}

.admin-pagination .is-disabled {
  pointer-events: none;
  opacity: .48;
}

@media (max-width: 900px) {
  .admin-banner-previews,
  .admin-order-filters,
  .admin-order-card summary,
  .admin-order-actions {
    grid-template-columns: 1fr !important;
  }

  .admin-order-card summary {
    display: grid;
  }

  .home-banner-track {
    min-height: clamp(230px, 70vw, 430px);
  }

  .home-banner-slide span {
    top: 20px;
    font-size: clamp(20px, 8vw, 34px);
  }
}

/* Requested mobile navigation and product-detail refinements. */
.visit-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .34);
}

.visit-modal-open .visit-modal {
  display: grid;
}

.visit-modal-card {
  width: min(100%, 380px);
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
}

.visit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(114, 66, 27, .14);
}

.visit-modal-head button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}

.visit-modal-card a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(114, 66, 27, .14);
  border-radius: 8px;
  background: #fff7ee;
}

.visit-modal-card a strong {
  color: var(--walnut);
}

.visit-modal-card a span {
  color: #766a62;
  font-size: 13px;
  line-height: 1.45;
}

.admin-checkline {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 44px;
}

.admin-checkline input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}

.admin-checkline span {
  line-height: 1.2;
}

.gallery-panel .heart-float {
  top: 8px !important;
  right: 8px !important;
}

.firmness-options figure.selected .firmness-color-strip {
  outline-offset: 0 !important;
}

.size-chart-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(114, 66, 27, .14);
  border-radius: 8px;
  background: #fff;
}

.size-chart-panel[hidden] {
  display: none !important;
}

.size-chart-panel img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  body:not(.admin-body):not(.admin-login-body) {
    padding-bottom: 76px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header {
    grid-template-columns: 30px 74px minmax(0, 1fr) 58px !important;
    column-gap: 6px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .account-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .header-account-menu {
    display: none !important;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header > .header-actions {
    grid-column: 4 !important;
    min-width: 58px !important;
    width: 58px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 26px) !important;
    gap: 3px !important;
    justify-content: end !important;
    justify-self: end !important;
    position: relative;
    z-index: 2;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-header-search {
    grid-column: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    position: relative;
    z-index: 1;
  }

  body:not(.admin-body):not(.admin-login-body) .site-header .wishlist-header-link,
  body:not(.admin-body):not(.admin-login-body) .site-header .cart-link {
    display: inline-grid !important;
  }

  body:not(.admin-body):not(.admin-login-body) .primary-nav {
    inset: 0 auto 0 0 !important;
    left: -12px !important;
    right: auto !important;
    margin: 0 !important;
    width: calc(min(86vw, 330px) + 12px) !important;
    height: 100dvh !important;
    padding: 16px 14px 24px 26px !important;
    border-radius: 0 !important;
    background: #faf8f5 !important;
    box-shadow: 22px 0 54px rgba(0, 0, 0, .24) !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-location-button {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-location-button .icon {
    align-self: center !important;
    width: 18px !important;
    height: 18px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .drawer-location-button span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    line-height: 18px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 300;
    min-height: 62px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(114, 66, 27, .16);
    border-radius: 8px;
    background: rgba(250, 248, 245, .98);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, .14);
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav a,
  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav button {
    min-width: 0;
    min-height: 48px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--charcoal);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav .icon {
    width: 20px;
    height: 20px;
  }

  .size-options {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  .size-options button {
    width: 74px !important;
    min-width: 74px !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: 28px 10px !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 1px !important;
    color: var(--charcoal) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    overflow: visible !important;
  }

  .size-options button > span {
    width: 100% !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border: 1px solid rgba(114, 66, 27, .32) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--charcoal) !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .size-options small {
    width: 100% !important;
    min-height: 9px !important;
    display: block !important;
    overflow: visible !important;
    color: #766a62 !important;
    font-size: 6.5px !important;
    line-height: 9px !important;
    opacity: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .size-options button.selected > span {
    border-color: var(--oak) !important;
    background: var(--oak) !important;
    color: #fff !important;
  }
}

.size-availability-block .option-title {
  display: block !important;
  margin-bottom: 8px !important;
}

.size-availability-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.size-availability-row .size-options {
  flex: 0 1 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.size-availability-row .size-chart-link {
  flex: 0 0 auto !important;
  align-self: center !important;
  color: #6f94c8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 28px !important;
  text-decoration: underline !important;
}

.size-availability-row .size-options button {
  width: auto !important;
  min-width: 84px !important;
  min-height: 39px !important;
  display: grid !important;
  grid-template-rows: 28px 10px !important;
  justify-items: center !important;
  align-items: start !important;
  gap: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--charcoal) !important;
  overflow: visible !important;
}

.size-availability-row .size-options button > span {
  width: auto !important;
  min-width: 84px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border: 1px solid rgba(114, 66, 27, .34) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--charcoal) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.size-availability-row .size-options small {
  width: 100% !important;
  min-height: 10px !important;
  display: block !important;
  overflow: visible !important;
  color: #6f625b !important;
  font-size: 7px !important;
  font-weight: 700 !important;
  line-height: 10px !important;
  opacity: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.size-availability-row .size-options button.selected > span {
  border-color: var(--oak) !important;
  background: var(--oak) !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .size-availability-row {
    gap: 8px !important;
  }

  .size-availability-row .size-options {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 55px !important;
    min-width: 0 !important;
  }

  .size-availability-row .size-options button {
    width: auto !important;
    min-width: 64px !important;
  }

  .size-availability-row .size-options button > span {
    width: auto !important;
    min-width: 64px !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  .size-availability-row .size-options small {
    font-size: 6px !important;
  }

  .size-availability-row .size-chart-link {
    font-size: 9px !important;
    line-height: 26px !important;
  }
}

/* Account pages should use Satoshi throughout. */
body:not(.admin-body):not(.admin-login-body) .account-dashboard,
body:not(.admin-body):not(.admin-login-body) .account-dashboard *,
body:not(.admin-body):not(.admin-login-body) .account-dashboard h1,
body:not(.admin-body):not(.admin-login-body) .account-dashboard h2,
body:not(.admin-body):not(.admin-login-body) .account-dashboard h3,
body:not(.admin-body):not(.admin-login-body) .account-dashboard .eyebrow,
body:not(.admin-body):not(.admin-login-body) .account-dashboard .button,
body:not(.admin-body):not(.admin-login-body) .account-dashboard button,
body:not(.admin-body):not(.admin-login-body) .account-dashboard label,
body:not(.admin-body):not(.admin-login-body) .account-dashboard input,
body:not(.admin-body):not(.admin-login-body) .account-dashboard textarea,
body:not(.admin-body):not(.admin-login-body) .account-dashboard select {
  font-family: var(--font-secondary) !important;
}

/* Similar products slider on product detail pages. */
.similar-products .grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.similar-products .grid::-webkit-scrollbar {
  display: none;
}

.similar-products .product-card {
  flex: 0 0 clamp(210px, 21vw, 270px) !important;
  max-width: clamp(210px, 21vw, 270px) !important;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .similar-products .grid {
    gap: 12px !important;
  }

  .similar-products .product-card {
    flex-basis: min(64vw, 230px) !important;
    max-width: min(64vw, 230px) !important;
  }
}

/* Product detail title keeps the brand-style first word only. */
.buy-panel h1 .product-title-yaro {
  display: inline !important;
  font-family: "YaroLocal", Yaro, Satoshi, Arial, sans-serif !important;
  font-size: 1em !important;
  font-weight: 500 !important;
  line-height: inherit !important;
  color: inherit !important;
}

.buy-panel h1 .product-title-satoshi {
  display: inline !important;
  font-family: Satoshi, Arial, sans-serif !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* Requested storefront/admin refinements. */
body:not(.admin-body):not(.admin-login-body) .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 260 !important;
}

body:not(.admin-body):not(.admin-login-body) .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 250 !important;
}

body.has-topbar:not(.admin-body):not(.admin-login-body) .site-header {
  top: 38px !important;
}

.home-banner-track {
  min-height: clamp(260px, 36vw, 540px) !important;
}

.home-banner-slide img,
.category-banner img,
.home-category-block:first-child .category-banner img {
  object-fit: contain !important;
  object-position: center !important;
  background: #fff7ee !important;
}

.main-product-image {
  width: min(100%, 500px) !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  background: #fff7ee !important;
}

.thumbs img {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: #fff7ee !important;
}

.buy-form #addToCartBtn {
  background: #eadcca !important;
  color: var(--walnut) !important;
  border: 2px solid var(--walnut) !important;
}

.buy-form #buyNowBtn {
  background: var(--walnut) !important;
  color: #fff !important;
  border: 2px solid var(--walnut) !important;
}

.product-card .pill {
  color: #fff !important;
}

.product-card .pill strong {
  color: #248c3a !important;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav button.active,
body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav a.active,
body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav button.active {
  background: var(--walnut) !important;
  color: #fff !important;
}

.page-banner > div {
  background: rgba(114, 66, 27, .84) !important;
}

.product-story details,
.product-accordion {
  padding: 16px 18px !important;
  border: 1px solid rgba(114, 66, 27, .16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .58) !important;
}

.product-story summary,
.product-accordion > summary {
  list-style: none !important;
}

.product-story summary::-webkit-details-marker,
.product-accordion > summary::-webkit-details-marker {
  display: none !important;
}

.product-story summary::after,
.product-accordion > summary::after {
  content: "+";
  color: var(--walnut);
  font-weight: 900;
}

.product-story details[open] > summary::after,
.product-accordion[open] > summary::after {
  content: "-";
}

.product-reviews-section,
.product-faq-section,
.frequently-bought-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-left: clamp(8px, 1.4vw, 20px);
  padding-right: clamp(8px, 1.4vw, 20px);
}

.frequently-bought-section .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-detail-page .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.product-sort-panel {
  display: grid;
  gap: 14px;
}

.drag-handle {
  width: 56px;
  color: var(--walnut);
  cursor: grab;
  font-weight: 900;
  letter-spacing: 2px;
}

[data-product-sort-row].is-dragging {
  opacity: .55;
}

@media (max-width: 900px) {
  body:not(.has-topbar):not(.admin-body):not(.admin-login-body) .site-header {
    top: 0 !important;
  }

  body.has-topbar:not(.admin-body):not(.admin-login-body) .site-header {
    top: 28px !important;
  }

  body:not(.admin-body):not(.admin-login-body) .mobile-bottom-nav {
    display: grid !important;
  }

  .page-banner > div {
    background: var(--walnut) !important;
  }

  .home-banner-track {
    min-height: clamp(220px, 72vw, 430px) !important;
  }

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

/* Fixed storefront header stack with no gap between offer strip and menu. */
body:not(.admin-body):not(.admin-login-body) {
  --fixed-topbar-height: 28px;
  --fixed-header-height: 86px;
}

body:not(.admin-body):not(.admin-login-body) .topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 500 !important;
  min-height: 0 !important;
  height: var(--fixed-topbar-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
}

body:not(.admin-body):not(.admin-login-body) .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 490 !important;
  margin-top: 0 !important;
}

body.has-topbar:not(.admin-body):not(.admin-login-body) .site-header {
  top: var(--fixed-topbar-height) !important;
}

body:not(.admin-body):not(.admin-login-body) main {
  padding-top: var(--fixed-header-height) !important;
}

body.has-topbar:not(.admin-body):not(.admin-login-body) main {
  padding-top: calc(var(--fixed-topbar-height) + var(--fixed-header-height)) !important;
}

@media (max-width: 900px) {
  body:not(.admin-body):not(.admin-login-body) {
    --fixed-topbar-height: 28px;
    --fixed-header-height: 58px;
  }

  body:not(.admin-body):not(.admin-login-body) .topbar {
    font-size: 10px !important;
    line-height: 1.15 !important;
    padding: 0 8px !important;
  }

  body.has-topbar:not(.admin-body):not(.admin-login-body) .site-header {
    top: var(--fixed-topbar-height) !important;
  }

  .delivery-card form {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .delivery-card form input {
    min-width: 0 !important;
  }

  .delivery-card form button {
    min-width: 72px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
  }
}
