:root {
  --primary: #1594f7;
  --primary-dark: #0f77cb;
  --accent: #f7a41d;
  --text: #212529;
  --muted: #697586;
  --line: #e7ebf0;
  --surface: #ffffff;
  --bg: #f6f7fb;
  --danger: #ec4b4b;
  --success: #11a36a;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(25, 44, 72, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.top-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.top-strip__inner,
.top-strip__left,
.top-strip__right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-strip__inner {
  justify-content: space-between;
  min-height: 36px;
}

.top-strip__left span,
.top-strip__right a {
  color: var(--muted);
  white-space: nowrap;
}

.top-strip a { color: var(--primary); }

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.main-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 148, 247, 0.12), rgba(247, 164, 29, 0.12));
}

.logo__mark svg { width: 40px; height: 40px; }
.logo__wordmark { display: grid; }
.logo__wordmark strong {
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
  font-weight: 900;
}
.logo__wordmark strong span { color: var(--accent); }
.logo__wordmark small {
  color: var(--muted);
  font-size: 11px;
}

.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.category-trigger,
.search-bar,
.header-link,
.filter-pill,
.category-tile,
.primary-button,
.secondary-button,
.text-button,
.icon-heart,
.color-pill,
.select-mock,
.mini-promo,
.thumb {
  transition: 0.2s ease;
}

.category-trigger {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: #f2f5f8;
  border-radius: 14px;
  padding: 0 12px;
  min-height: 52px;
  border: 1px solid transparent;
}
.search-bar:focus-within {
  background: #fff;
  border-color: rgba(21, 148, 247, 0.35);
  box-shadow: 0 0 0 4px rgba(21, 148, 247, 0.08);
}
.search-bar input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  outline: none;
}
.search-bar button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

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

.header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}
.header-link:hover,
.header-link.is-active {
  background: rgba(21, 148, 247, 0.08);
  border-color: rgba(21, 148, 247, 0.14);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: var(--danger);
}

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

.page-main {
  padding: 24px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.hero-banner,
.mini-promo,
.inspiration-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 272px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.14);
}

.hero-banner {
  min-height: 316px;
  display: flex;
  align-items: flex-end;
}

.hero-banner__overlay,
.mini-promo__overlay,
.inspiration-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 20, 38, 0.76), rgba(8, 20, 38, 0.14) 58%, rgba(8, 20, 38, 0.08));
}

.hero-banner__content,
.mini-promo__content,
.inspiration-card__content {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.hero-kicker,
.mini-promo__content span,
.inspiration-card__content span,
.article-card span,
.product-card__meta,
.buy-box__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-banner h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.02;
}
.hero-banner p {
  max-width: 520px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}
.hero-banner strong { font-size: 24px; color: #ffd073; }

.promo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-promo {
  min-height: 144px;
}
.mini-promo h3,
.inspiration-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}
.mini-promo p,
.inspiration-card p { margin: 0; color: rgba(255,255,255,0.88); }

.services-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 10px;
}

.service-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
}
.service-item:hover { background: #f7fbff; }
.service-item__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(21, 148, 247, 0.1);
  font-size: 18px;
}
.service-item strong { display: block; font-size: 13px; }
.service-item span { display: block; color: var(--muted); font-size: 11px; }

.section-block { margin-top: 24px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -0.03em;
}
.section-head a { color: var(--primary); font-weight: 700; }
.section-head--dense h2 { font-size: 22px; }

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(196px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 14px;
}
.category-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
}
.category-tile:hover,
.filter-pill:hover,
.category-trigger:hover,
.text-button:hover,
.icon-heart:hover,
.thumb:hover,
.color-pill:hover {
  transform: translateY(-2px);
}
.category-tile span { font-size: 24px; }
.category-tile strong { font-size: 15px; }

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.inspiration-card { min-height: 250px; display: flex; align-items: end; }

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-note { color: var(--muted); }

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.product-card--compact { min-width: 196px; }
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef3f8;
}
.product-card__media img,
.article-card img,
.cart-item__image img,
.gallery-main img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: rgba(17, 163, 106, 0.92);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.product-card__body {
  padding: 12px 12px 14px;
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.product-card__meta {
  width: fit-content;
  color: var(--primary-dark);
  background: rgba(21, 148, 247, 0.1);
  margin: 0;
}
.product-card__title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rating-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.rating-row--strong { font-size: 14px; }
.price-wrap,
.buy-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.price-wrap > div,
.buy-price > div {
  margin-left: auto;
  text-align: right;
}
.price-wrap strong,
.buy-price strong {
  font-size: 20px;
  line-height: 1;
  color: var(--danger);
}
.old-price {
  display: block;
  color: #9aa6b2;
  font-size: 11px;
  text-decoration: line-through;
}
.discount-chip {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(236, 75, 75, 0.12);
  color: var(--danger);
  font-weight: 800;
  font-size: 11px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
  font-size: 14px;
}
.primary-button {
  background: var(--primary);
  color: #fff;
}
.primary-button:hover { background: var(--primary-dark); }
.secondary-button {
  background: rgba(21, 148, 247, 0.08);
  color: var(--primary-dark);
  border-color: rgba(21, 148, 247, 0.18);
}
.primary-button--full { width: 100%; }
.text-button,
.icon-heart {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}
.icon-heart {
  width: 40px;
  display: grid;
  place-items: center;
  padding: 0;
}
.stock-link { color: var(--primary); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.article-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-card img { aspect-ratio: 16 / 10; }
.article-card div { padding: 12px; }
.article-card span {
  color: var(--primary-dark);
  background: rgba(21, 148, 247, 0.1);
}
.article-card h3 { margin: 10px 0 0; font-size: 17px; }

.site-footer {
  margin-top: 36px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer-columns h4,
.newsletter label,
.contact-card__body h4 {
  margin: 0 0 14px;
  font-size: 18px;
}
.footer-columns a {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}
.newsletter {
  margin-top: 28px;
}
.newsletter label { display: block; }
.newsletter label span { color: var(--accent); }
.newsletter__controls {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.newsletter input {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
}
.newsletter button {
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
  min-height: 46px;
  font-weight: 800;
}
.contact-card {
  overflow: hidden;
}
.contact-card__head {
  background: linear-gradient(90deg, #136ca8, #1787d0 65%, #0f6ea3);
  color: #fff;
  padding: 18px 22px;
  font-size: 30px;
  font-weight: 900;
}
.contact-card__body {
  padding: 20px;
}
.contact-card__body p,
.contact-card__body a,
.summary-note,
.buy-excerpt,
.filter-note,
.breadcrumb,
.review-panel p,
.empty-cart p,
.empty-filter p {
  color: var(--muted);
}
.select-mock {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom a { color: var(--primary); }

.breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 20px;
}
.product-gallery,
.buy-box,
.detail-panel,
.review-panel,
.summary-card,
.cart-toolbar,
.cart-item,
.empty-cart {
  padding: 16px;
}
.product-gallery {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
}
.thumb-column {
  display: grid;
  gap: 10px;
  align-content: start;
}
.thumb {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 148, 247, 0.12); }
.thumb img { aspect-ratio: 1 / 1; }
.gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #eef3f8;
}
.gallery-main img { aspect-ratio: 1 / 0.88; }
.gallery-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 22, 30, 0.6);
  color: #fff;
  font-size: 11px;
}
.buy-box {
  position: sticky;
  top: 106px;
  height: fit-content;
}
.buy-box h1 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
}
.buy-box__brand {
  color: var(--primary-dark);
  background: rgba(21, 148, 247, 0.1);
}
.color-selector,
.qty-box {
  margin-top: 16px;
}
.color-selector span,
.qty-box span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}
.color-pills,
.buy-actions,
.shipping-grid,
.detail-meta-grid,
.product-detail-grid,
.review-summary,
.summary-row,
.cart-layout,
.cart-item,
.cart-item__controls,
.cart-item__actions,
.newsletter__controls,
.toolbar-actions,
.check-wrap,
.qty-stepper {
  display: flex;
}
.color-pills,
.buy-actions,
.shipping-grid,
.toolbar-actions {
  gap: 10px;
}
.buy-actions { flex-wrap: wrap; }
.buy-actions .secondary-button,
.buy-actions .primary-button {
  flex: 1 1 160px;
}
.buy-actions .icon-heart {
  flex: 0 0 40px;
}
.color-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}
.color-pill.active { border-color: var(--primary); color: var(--primary-dark); background: rgba(21, 148, 247, 0.08); }
.qty-stepper {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  overflow: hidden;
}
.qty-stepper button {
  width: 40px;
  height: 42px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.qty-stepper input {
  width: 52px;
  height: 42px;
  border: 0;
  text-align: center;
  outline: none;
}
.qty-stepper--small input { width: 42px; }
.shipping-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.shipping-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f9fbfd;
}
.shipping-grid strong,
.summary-row strong { display: block; }
.shipping-grid span,
.summary-row span,
.cart-item__info p { color: var(--muted); font-size: 13px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}
.detail-panel h2,
.review-panel h2,
.summary-card h2 { margin-top: 0; }
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.detail-meta-grid div,
.spec-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfcfe;
}
.detail-meta-grid span,
.spec-row span { display: block; color: var(--muted); font-size: 13px; }
.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.spec-table { display: grid; gap: 12px; }
.spec-row strong { display: block; margin-top: 4px; }
.review-panel { margin-top: 24px; }
.review-summary {
  align-items: center;
  gap: 18px;
}
.review-summary strong {
  font-size: 46px;
  line-height: 1;
  color: var(--primary-dark);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 340px;
  gap: 20px;
  align-items: start;
}
.page-title span { color: var(--muted); }
.cart-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.check-wrap {
  align-items: center;
  gap: 10px;
}
.check-wrap input { width: 18px; height: 18px; accent-color: var(--primary); }
.check-wrap small { color: var(--muted); }
.cart-item {
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.cart-item__check { align-self: start; padding-top: 6px; }
.cart-item__image {
  width: 104px;
  min-width: 104px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef3f8;
}
.cart-item__image img { aspect-ratio: 1 / 1; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__info a { font-size: 20px; font-weight: 800; line-height: 1.25; }
.cart-item__controls {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cart-item__controls strong { font-size: 24px; }
.cart-item__actions {
  flex-direction: column;
  gap: 8px;
}
.summary-card {
  position: sticky;
  top: 106px;
}
.summary-row {
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row--total strong { font-size: 24px; color: var(--text); }
.summary-note { margin: 14px 0 0; font-size: 13px; }
.empty-cart,
.empty-filter {
  text-align: center;
  padding: 42px 24px;
}
.empty-cart h1,
.empty-filter h3 { margin-top: 0; }
.empty-cart .primary-button { display: inline-flex; align-items: center; justify-content: center; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: rgba(17, 25, 35, 0.92);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 20px 38px rgba(0,0,0,0.22);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.main-header__inner > *,
.product-layout > *,
.product-detail-grid > *,
.cart-layout > *,
.cart-toolbar > *,
.cart-item > * {
  min-width: 0;
}

.product-card__title,
.buy-box h1,
.page-title,
.cart-item__info a {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .top-strip__inner {
    min-height: auto;
    align-items: flex-start;
    padding: 8px 0;
  }
  .top-strip__left {
    flex-wrap: wrap;
  }
  .top-strip__left span {
    white-space: normal;
  }
  .services-row { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid,
  .inspiration-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .top-strip__right,
  .header-actions .header-link:last-child,
  .category-trigger { display: none; }
  .main-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 72px;
  }
  .header-actions .header-link span:nth-of-type(2) { display: none; }
  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    order: 3;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 16px 16px;
    gap: 10px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    background: #f7fafc;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
  }
  .hero-grid,
  .product-layout,
  .product-detail-grid,
  .cart-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .promo-stack { grid-template-columns: repeat(2, 1fr); }
  .services-row { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-card,
  .buy-box { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1320px); }
  .top-strip { display: none; }
  .main-header__inner {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }
  .logo__wordmark strong { font-size: 22px; }
  .header-search-wrap { grid-column: 1 / -1; }
  .search-bar { min-height: 48px; }
  .header-actions .header-link span:nth-of-type(2) { display: none; }
  .hero-banner { min-height: 280px; }
  .promo-stack,
  .inspiration-grid,
  .article-grid,
  .shipping-grid,
  .detail-meta-grid,
  .footer-columns,
  .newsletter__controls,
  .category-grid { grid-template-columns: 1fr; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-direction: column; align-items: stretch; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery { grid-template-columns: 1fr; }
  .thumb-column {
    grid-auto-flow: column;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery-main img { aspect-ratio: 1 / 1; }
  .cart-toolbar,
  .cart-item {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-item__controls,
  .cart-item__actions { align-items: stretch; }
  .cart-item__image {
    width: 100%;
    min-width: 0;
  }
  .cart-item__info a { font-size: 18px; }
  .cart-item__controls strong { font-size: 24px; }
  .footer-bottom { flex-direction: column; }
  .contact-card__head { font-size: 26px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 20px, 1320px); }
  .page-main { padding: 20px 0 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .horizontal-cards { grid-auto-columns: minmax(170px, 1fr); }
  .services-row { grid-template-columns: 1fr; }
  .hero-banner__content,
  .mini-promo__content,
  .inspiration-card__content { padding: 18px; }
  .hero-banner h1 { font-size: 28px; }
  .hero-banner strong { font-size: 20px; }
  .mini-promo h3,
  .inspiration-card h3 { font-size: 18px; }
  .product-card__title { font-size: 15px; }
  .price-wrap strong,
  .buy-price strong { font-size: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .review-summary { flex-direction: column; align-items: flex-start; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .main-header__inner {
    padding: 10px 0;
  }
  .promo-stack,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 8px;
  }
  .header-link {
    padding: 0 10px;
  }
  .buy-actions .secondary-button,
  .buy-actions .primary-button {
    flex-basis: 100%;
  }
  .review-summary strong {
    font-size: 38px;
  }
}
