:root {
  --ink: #17213a;
  --muted: #66708a;
  --line: #dce2ee;
  --paper: #ffffff;
  --soft: #f5f7fc;
  --brand: #1e2f5f;
  --brand-strong: #142244;
  --brand-soft: #e8edf8;
  --accent: #e34325;
  --gold: #d9a441;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(30, 47, 95, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.main-nav,
.home-actions,
.section-heading,
.product-card-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand-logo {
  display: block;
  width: clamp(142px, 18vw, 230px);
  height: auto;
}

.eyebrow,
.product-card p,
.cart-line p,
.empty-state p,
.confirmation p {
  color: var(--muted);
}

.main-nav {
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 700;
  color: var(--brand);
}

.main-nav > a,
.account-menu-trigger,
.cart-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

.cart-link {
  gap: 4px;
}

.cart-link span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.account-menu-trigger {
  position: relative;
  z-index: 21;
}

.account-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 170px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms ease;
}

.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel {
  opacity: 1;
  pointer-events: auto;
}

.account-menu-panel a,
.account-menu-panel button {
  width: 100%;
  padding: 10px 12px;
  color: var(--brand);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover,
.account-menu-panel a:focus-visible,
.account-menu-panel button:focus-visible {
  background: var(--brand-soft);
  outline: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.home-copy {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  color: white;
  background:
    linear-gradient(120deg, rgba(30, 47, 95, 0.98), rgba(20, 34, 68, 0.9)),
    radial-gradient(circle at 84% 18%, rgba(227, 67, 37, 0.52), transparent 26%),
    radial-gradient(circle at 15% 88%, rgba(217, 164, 65, 0.38), transparent 30%),
    linear-gradient(45deg, #1e2f5f, #263d77);
  border-radius: var(--radius);
}

.home-copy .eyebrow,
.home-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.home-copy p {
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.category-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.category-panel a {
  min-height: 104px;
  display: flex;
  align-items: end;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(30, 47, 95, 0.07);
  font-weight: 800;
}

.button,
.small-button,
.cart-qty button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.button.secondary,
.small-button {
  color: var(--brand);
  background: var(--brand-soft);
}

.section-heading,
.page-title {
  margin: 38px 0 18px;
}

.back-link + .page-title {
  margin-top: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.page-title h1,
.product-info h1,
.empty-state h1,
.confirmation h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.promo-card,
.summary,
.empty-state,
.checkout-form,
.cart-line {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(30, 47, 95, 0.08);
  isolation: isolate;
}

.promo-catalog-card {
  border-color: rgba(227, 67, 37, 0.28);
}

.product-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.product-discount-badge.detail {
  top: 16px;
  right: 16px;
  padding: 10px 14px;
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(227, 67, 37, 0.22);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.promo-card {
  padding: 20px;
  box-shadow: 0 10px 26px rgba(30, 47, 95, 0.08);
}

.promo-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.promo-card.is-disabled {
  opacity: 0.72;
}

.promo-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.promo-card p {
  color: var(--muted);
  line-height: 1.6;
}

.promo-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  color: white !important;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-items {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.promo-items li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.promo-items small {
  color: var(--muted);
}

.selected-prices small[hidden] {
  display: none;
}

.selected-prices small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.selected-prices small span {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stock-warning {
  margin-bottom: 0;
  color: var(--accent) !important;
  font-weight: 800;
}

.promo-add-form {
  display: grid;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.promo-add-form label,
.promo-selectors label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.promo-selectors {
  display: grid;
  gap: 10px;
}

.promo-mini {
  display: grid;
  place-items: center;
  color: var(--paper);
  font-weight: 900;
  font-size: 1.4rem;
}

.cart-promo-items {
  display: grid;
  gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: none;
}

.product-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.25;
  min-height: 0;
  overflow: hidden;
  background: #e8edf5;
}

.product-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: #f8fafc;
}

.product-art.large {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-art.large img {
  min-height: 0;
  padding: clamp(18px, 4vw, 44px);
}

.product-art.photo {
  background: #f8fafc;
}

.hanger {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 94px;
  height: 34px;
  border-top: 4px solid rgba(255, 255, 255, 0.86);
  border-left: 4px solid rgba(255, 255, 255, 0.86);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.72;
}

.garment {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 58%;
  height: 60%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 32px 32px 12px 12px;
  transform: translateX(-50%);
  box-shadow: inset 0 -34px rgba(30, 47, 95, 0.1);
}

.tone-navy { background: linear-gradient(135deg, #1e2f5f, #3c5f9f); }
.tone-green { background: linear-gradient(135deg, #1e2f5f, #5f7f6f); }
.tone-charcoal { background: linear-gradient(135deg, #17213a, #66708a); }
.tone-white { background: linear-gradient(135deg, #eef2f8, #c6d0e3); }
.tone-plaid { background: linear-gradient(135deg, #1e2f5f, #e34325 47%, #d9a441); }
.tone-socks { background: linear-gradient(135deg, #f6f8fb, #9aa8c2); }

.product-card-body {
  display: grid;
  grid-template-rows: auto minmax(52px, auto) minmax(18px, auto) 1fr;
  align-content: start;
  padding: 16px;
}

.product-card h3 {
  min-height: 52px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-card-attributes {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.size-options span {
  display: inline-grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  font-weight: 700;
}

.size-options span {
  min-width: 92px;
  padding: 0 10px;
  white-space: nowrap;
}

.product-card-footer {
  align-self: end;
  margin-top: 14px;
  justify-content: flex-end;
  gap: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.password-field input {
  border-radius: 7px 0 0 7px;
}

.password-field button {
  min-width: 78px;
  padding: 0 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  font-weight: 900;
  cursor: pointer;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 900;
}

.back-link span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  line-height: 1;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.product-info p {
  color: var(--muted);
  line-height: 1.7;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.product-meta div {
  min-width: 138px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-meta dd {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

.add-cart-form {
  display: grid;
  gap: 18px;
}

.purchase-actions {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-weight: 800;
}

.selected-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.selected-prices article {
  position: relative;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 5px 8px;
  color: #991b1b !important;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1;
  text-transform: uppercase;
}

.price-discount-badge[hidden] {
  display: none !important;
}

.selected-prices span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.selected-prices strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.variant-picker,
.quantity-field {
  max-width: 420px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 92px auto 36px;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.cart-line h2 {
  margin: 0;
  font-size: 1rem;
}

.mini-art {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 7px;
  background: #f8fafc;
}

.mini-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
}

.cart-qty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.cart-qty label {
  gap: 4px;
  font-size: 0.76rem;
}

.cart-qty input {
  padding: 7px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--accent);
  background: #fdeceb;
  font-size: 1.4rem;
  cursor: pointer;
}

.summary,
.checkout-form,
.empty-state,
.confirmation {
  padding: 20px;
}

.summary h2 {
  margin-top: 0;
}

.summary dl,
.summary-line {
  display: grid;
  gap: 10px;
}

.summary dl div,
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 800;
}

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

.checkout-form .full,
.checkout-form button {
  grid-column: 1 / -1;
}

.empty-state,
.confirmation {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
}

.inline-form {
  margin: 12px 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
  color: white;
  background: var(--brand);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav,
.site-footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.site-footer a {
  color: white;
  font-weight: 700;
}

.info-grid,
.size-chart,
.auth-layout,
.account-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.content-panel,
.size-chart article,
.auth-form,
.account-panel article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(30, 47, 95, 0.06);
}

.info-card h2,
.content-panel h2,
.size-chart h2 {
  margin-top: 0;
}

.info-card p,
.content-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.content-panel {
  max-width: 860px;
}

.content-panel a {
  color: var(--brand);
  font-weight: 800;
}

.size-chart table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
}

.size-chart th,
.size-chart td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.size-chart th {
  color: var(--brand);
  background: var(--brand-soft);
}

.auth-layout {
  align-items: start;
  max-width: 980px;
}

.auth-copy {
  padding: 24px 0;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.auth-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.google-button {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.muted-note,
.form-link {
  margin: 0;
  color: var(--muted);
}

.form-link a {
  color: var(--brand);
  font-weight: 800;
}

.account-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.account-panel h2 {
  margin-top: 0;
}

.account-panel p {
  color: var(--muted);
}

.purchases-table {
  display: grid;
  gap: 8px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 96px 92px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-row strong {
  min-width: 0;
}

.order-row span {
  color: var(--muted);
}

.order-row > span:last-child {
  text-align: right;
}

.purchase-status {
  display: inline-flex;
  width: 72px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  color: var(--brand) !important;
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 800;
}

.flash.success {
  color: #163a27;
  background: #e0f2e7;
}

.flash.error {
  color: #842029;
  background: #f8d7da;
}

@media (max-width: 900px) {
  .home-grid,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .site-footer,
  .info-grid,
  .size-chart,
  .selected-prices,
  .auth-layout,
  .account-panel {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .checkout-layout,
  .cart-layout {
    gap: 18px;
  }

  .product-art.large {
    width: min(100%, 560px);
    margin: 0 auto;
  }

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

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

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-qty,
  .cart-line > strong {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: clamp(128px, 42vw, 170px);
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    font-size: 0.9rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav > a,
  .account-menu-trigger,
  .cart-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand-soft);
  }

  .account-menu {
    flex: 0 0 auto;
  }

  .account-menu-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 20px, 1180px);
    padding: 16px 0 36px;
  }

  .page-title,
  .section-heading {
    margin: 24px 0 14px;
  }

  .back-link + .page-title {
    margin-top: 12px;
  }

  .section-heading h2,
  .page-title h1,
  .product-info h1,
  .empty-state h1,
  .confirmation h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .back-link {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .home-copy {
    min-height: auto;
    padding: 24px;
  }

  .home-copy h1 {
    font-size: clamp(2.7rem, 17vw, 4.6rem);
  }

  .home-copy p {
    font-size: 1rem;
  }

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

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

  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .filters label:first-child,
  .filters .button {
    grid-column: 1 / -1;
  }

  .filters label {
    gap: 5px;
    font-size: 0.78rem;
  }

  .button,
  .small-button,
  .cart-qty button {
    min-height: 40px;
    padding: 0 14px;
  }

  .summary .button,
  .purchase-actions .button,
  .checkout-form .button,
  .empty-state .button {
    width: 100%;
  }

  .product-discount-badge {
    top: 7px;
    right: 7px;
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .product-card-body {
    grid-template-rows: auto minmax(42px, auto) minmax(16px, auto) 1fr;
    padding: 10px;
  }

  .product-card h3 {
    min-height: 42px;
    font-size: 0.96rem;
  }

  .product-card .eyebrow {
    margin-bottom: 5px;
    font-size: 0.66rem;
  }

  .product-card-attributes {
    font-size: 0.72rem;
  }

  .product-card-footer {
    margin-top: 10px;
  }

  .product-card-footer .small-button {
    min-height: 36px;
    padding: 0 12px;
  }

  .product-art.large {
    aspect-ratio: 4 / 3.35;
    max-height: 420px;
  }

  .product-art.large img {
    padding: 16px;
  }

  .product-info p {
    margin: 8px 0;
    line-height: 1.55;
  }

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

  .product-meta div {
    min-width: 0;
  }

  .selected-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
  }

  .selected-prices article {
    min-height: 96px;
    padding: 11px;
  }

  .selected-prices article:nth-child(2) > span:first-child {
    max-width: calc(100% - 58px);
  }

  .selected-prices span {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .selected-prices strong {
    font-size: clamp(1.12rem, 6vw, 1.42rem);
    line-height: 1.05;
  }

  .selected-prices small,
  .selected-prices small span {
    font-size: 0.72rem;
  }

  .price-discount-badge {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 0.66rem !important;
  }

  .variant-picker,
  .quantity-field,
  .purchase-actions {
    max-width: none;
  }

  .add-cart-form {
    gap: 12px;
  }

  .promo-card {
    padding: 14px;
  }

  .promo-image {
    margin-bottom: 12px;
  }

  .promo-card h2 {
    font-size: 1.2rem;
  }

  .promo-add-form {
    gap: 10px;
  }

  .cart-line {
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: start;
    padding: 10px;
  }

  .mini-art {
    width: 58px;
    height: 58px;
  }

  .cart-line h2 {
    font-size: 0.96rem;
  }

  .cart-line p,
  .cart-promo-items {
    font-size: 0.8rem;
  }

  .cart-line > form:last-child {
    grid-column: 3;
    grid-row: 1;
  }

  .cart-qty {
    max-width: 138px;
  }

  .summary,
  .checkout-form,
  .empty-state,
  .confirmation,
  .info-card,
  .content-panel,
  .size-chart article,
  .auth-form,
  .account-panel article {
    padding: 16px;
  }

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

  .checkout-layout .summary {
    order: -1;
  }

  .summary h2 {
    margin-bottom: 10px;
  }

  .summary dl div,
  .summary-line {
    padding: 8px 0;
  }

  .auth-copy {
    padding: 4px 0;
  }

  .auth-copy h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .order-row > span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .site-footer {
    gap: 18px;
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .product-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .category-panel,
  .filters,
  .selected-prices,
  .product-meta {
    grid-template-columns: 1fr;
  }

  .selected-prices article:nth-child(2) > span:first-child {
    max-width: calc(100% - 64px);
  }

  .product-card-body {
    grid-template-rows: auto minmax(34px, auto) minmax(16px, auto) 1fr;
  }

  .product-card h3 {
    min-height: 34px;
  }

  .main-nav > a,
  .account-menu-trigger,
  .cart-link {
    padding: 0 9px;
  }
}
