:root {
  --canvas: #fbfaf7;
  --paper: #f1eee7;
  --ink: #171512;
  --muted: #655f56;
  --line: #ded6ca;
  --blue: #082b63;
  --blue-2: #0f4f91;
  --walnut: #6b4423;
  --olive: #697b3d;
  --sand: #dbc796;
  --red: #d9263f;
  --amber: #b77722;
  --green: #275b42;
  --shadow: 0 18px 45px rgba(23, 21, 18, 0.1);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
}

.promo-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 18px;
  background: var(--blue);
  color: white;
  font-size: 0.88rem;
}

.promo-bar span {
  color: var(--sand);
  font-weight: 650;
}

.promo-bar strong {
  font-weight: 500;
}

.promo-bar a {
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

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

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-logo {
  width: 154px;
  height: auto;
}

.inverse-logo {
  filter: brightness(0) invert(1);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-family: var(--serif);
  font-weight: 700;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav a {
  font-weight: 500;
}

.icon-button {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.icon-button strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  background: var(--red);
  color: white;
  font-size: 0.76rem;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(290px, 470px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
  background: var(--blue);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 43, 99, 0.98), rgba(10, 53, 109, 0.9) 52%, rgba(23, 21, 18, 0.72)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.hero-content {
  position: relative;
  width: min(790px, 100%);
  margin: 0;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.admin-topbar h1,
.admin-panel h2,
.success-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(2.45rem, 5.4vw, 4.75rem);
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions,
.section-tools,
.newsletter form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.hero-proof strong {
  color: white;
}

.hero-picks {
  position: relative;
  display: grid;
  gap: 14px;
  align-self: center;
}

.hero-picks a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.hero-picks a:first-child {
  grid-template-columns: 104px 1fr;
  min-height: 132px;
}

.hero-picks img {
  width: 82px;
  height: 82px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--paper);
}

.hero-picks a:first-child img {
  width: 104px;
  height: 108px;
}

.hero-picks div {
  display: grid;
  gap: 4px;
}

.hero-picks span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-picks strong {
  line-height: 1.25;
  font-weight: 600;
}

.hero-picks em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--red);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--blue);
  border-color: rgba(255, 255, 255, 0.55);
}

.button.compact {
  min-height: 38px;
  background: var(--blue);
  color: white;
}

.button.full {
  width: 100%;
}

.commercial-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -38px clamp(18px, 4vw, 52px) 0;
  position: relative;
  z-index: 2;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 52px) 0;
}

.category-rail button {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.04);
  transition: border-color 160ms ease, transform 160ms ease;
}

.category-rail button:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.category-rail span {
  color: var(--ink);
  font-weight: 600;
}

.category-rail strong {
  color: var(--muted);
  font-size: 0.84rem;
}

.commercial-tabs a {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.commercial-tabs a:last-child {
  border-right: 0;
}

.commercial-tabs span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.commercial-tabs strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.section {
  padding: 72px clamp(18px, 4vw, 52px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  background: var(--paper);
  margin-top: 54px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  line-height: 1.06;
}

.intro-band > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.spotlight-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  gap: 28px;
  align-items: stretch;
}

.spotlight-band > div:first-child {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.spotlight-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.featured-rail a {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(26, 23, 20, 0.06);
}

.featured-rail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

.featured-rail div {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.featured-rail span {
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.featured-rail strong {
  min-height: 42px;
  line-height: 1.25;
  font-weight: 600;
}

.featured-rail em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 52px) 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 750;
}

.breadcrumbs strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-shell {
  background: var(--canvas);
}

.pdp-loading {
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 72px clamp(18px, 4vw, 52px);
}

.pdp-loading h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.pdp {
  display: grid;
  grid-template-columns: minmax(300px, 0.52fr) minmax(320px, 0.48fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: 22px clamp(18px, 4vw, 52px) 42px;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}

.pdp-main-image {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(26, 23, 20, 0.055);
}

.pdp-main-image img {
  width: 100%;
  height: min(64vh, 520px);
  object-fit: contain;
  padding: clamp(10px, 2vw, 24px);
  mix-blend-mode: multiply;
}

.pdp-image-count {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(26, 23, 20, 0.12);
}

.pdp-thumbs {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  max-height: min(64vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.pdp-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.pdp-thumbs button.active {
  border-color: var(--blue);
}

.pdp-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 4px;
}

.pdp-info {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 38px rgba(26, 23, 20, 0.07);
}

.pdp-info h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.06;
}

.pdp-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.pdp-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-rating span,
.pdp-rating strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 550;
}

.pdp-rating strong {
  color: var(--ink);
}

.pdp-price-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #f0d2d7;
  border-radius: 8px;
  background: #fff7f8;
}

.pdp-price-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.pdp-price-card span {
  color: var(--muted);
  font-weight: 550;
}

.pdp-price-card strong {
  color: var(--red);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
}

.pdp-price-card em {
  color: var(--muted);
  font-style: normal;
  text-decoration: line-through;
}

.pdp-price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.pdp-buying-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdp-buying-signals span {
  display: grid;
  min-height: 58px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.25;
}

.pdp-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 40px 42px 40px;
  height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.qty-stepper button {
  height: 100%;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  font-weight: 650;
}

.qty-stepper strong {
  text-align: center;
}

.button.dark,
.button.secondary.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pdp-benefits {
  display: grid;
  gap: 8px;
}

.pdp-benefits span {
  display: flex;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.pdp-benefits span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--olive);
}

.pdp-detail-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding: 0 clamp(18px, 4vw, 52px);
}

.pdp-detail-band article {
  min-height: 210px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--paper);
}

.pdp-detail-band h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.pdp-detail-band p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.related-section {
  background: var(--canvas);
}

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

.section-tools span {
  color: var(--muted);
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.filters h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

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

.filter-list button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.filter-list button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.filter-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.filter-note strong {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 23, 20, 0.08);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  mix-blend-mode: multiply;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 60px);
  border-radius: 999px;
  background: var(--red);
  color: white;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 650;
}

.card-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 7px 10px 0;
  background: white;
}

.card-thumbs span,
.card-thumbs em {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

.card-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.product-info {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 9px;
  padding: 11px 12px 12px;
}

.product-meta,
.delivery-row,
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-meta,
.delivery-row {
  color: var(--muted);
  font-size: 0.78rem;
}

.delivery-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--canvas);
  padding: 0 9px;
}

.product-info h3 {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row strong {
  display: block;
  color: var(--red);
  font-size: 1.06rem;
  font-weight: 700;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.86rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding-top: 0;
  padding-bottom: 0;
}

.trust-strip article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--blue);
  color: white;
}

.trust-strip article:nth-child(2) {
  background: var(--green);
}

.trust-strip article:nth-child(3) {
  background: var(--ink);
}

.trust-strip span {
  color: var(--sand);
  font-weight: 600;
}

.trust-strip h3 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
}

.trust-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.newsletter {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--paper);
}

.newsletter input {
  width: min(360px, 100%);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  padding: 44px clamp(18px, 4vw, 52px);
  background: var(--ink);
  color: white;
}

.site-footer p,
.site-footer nav {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(26, 23, 20, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  height: 100%;
  background: white;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}

.cart-head,
.cart-summary {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  padding: 16px 20px;
}

.empty-cart,
.mini-message {
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 82px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.88rem;
}

.qty-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.qty-controls button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.legal-page {
  background: var(--canvas);
}

.legal-hero {
  display: grid;
  gap: 16px;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 860px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: 56px clamp(18px, 5vw, 72px) 76px;
}

.policy-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.policy-nav a {
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.policy-nav a:hover {
  background: var(--canvas);
  color: var(--blue);
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-copy article,
.contact-card,
.policy-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 21, 18, 0.05);
}

.legal-copy article {
  padding: clamp(22px, 4vw, 36px);
}

.legal-copy h2,
.contact-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
}

.legal-copy p,
.contact-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-copy p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  padding: 56px clamp(18px, 5vw, 72px) 28px;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-card span,
.policy-grid span {
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.primary-contact {
  background: var(--blue);
  color: white;
}

.primary-contact span,
.primary-contact p {
  color: rgba(255, 255, 255, 0.76);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px) 76px;
}

.policy-grid a {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 18px;
}

.policy-grid strong {
  line-height: 1.3;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.success-card {
  width: min(560px, calc(100% - 36px));
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.success-card h1 {
  margin-top: 24px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.success-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.admin-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  background: #f7f5f1;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: var(--ink);
  color: white;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-sidebar nav a {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

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

.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.ops-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.05);
}

.ops-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.ops-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ops-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-panel {
  padding: 22px;
  margin-top: 18px;
}

.admin-panel.compact {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 28px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf2e5;
  color: #445220;
  font-weight: 600;
  font-size: 0.82rem;
}

.import-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.5fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.import-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.import-form input,
.import-form select {
  width: 100%;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-product {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.table-product img {
  width: 54px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.table-product span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
}

.ops-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .promo-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-nav a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 560px;
    padding-bottom: 28px;
  }

  .commercial-tabs,
  .intro-band,
  .catalog-layout,
  .trust-strip,
  .newsletter,
  .category-rail,
  .contact-grid,
  .legal-layout,
  .policy-grid,
  .spotlight-band,
  .pdp,
  .pdp-detail-band,
  .admin-body,
  .ops-grid,
  .admin-panel.compact {
    grid-template-columns: 1fr;
  }

  .commercial-tabs {
    margin-top: 0;
    border-radius: 0;
  }

  .hero-picks {
    grid-template-columns: 1fr;
  }

  .commercial-tabs a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters {
    position: static;
  }

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

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

  .pdp-info {
    position: static;
  }

  .pdp-gallery {
    grid-template-columns: 1fr;
  }

  .pdp-main-image {
    grid-column: 1;
    grid-row: 1;
  }

  .pdp-main-image img {
    height: auto;
    max-height: 460px;
  }

  .pdp-thumbs {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    padding-right: 0;
  }

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

  .featured-rail {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    display: flex;
  }

  .policy-nav {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-content {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .product-grid,
  .compact-grid,
  .filter-list,
  .import-form,
  .pdp-buying-signals {
    grid-template-columns: 1fr;
  }

  .pdp-actions {
    grid-template-columns: 1fr;
  }

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

  .hero-picks a,
  .hero-picks a:first-child {
    grid-template-columns: 82px 1fr;
    min-height: 106px;
  }

  .hero-picks img,
  .hero-picks a:first-child img {
    width: 82px;
    height: 86px;
  }

  .qty-stepper {
    width: 124px;
  }

  .product-info h3,
  .product-info p {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
