﻿:root {
  --bg: #f3eadc;
  --surface: #fdf9f2;
  --surface-alt: #e8ddcd;
  --text: #24312d;
  --muted: #6d756f;
  --line: #d9ccb9;
  --accent: #5b7f6d;
  --accent-dark: #3f5e50;
  --accent-soft: #d9e4dd;
  --dark: #182421;
  --shadow-soft: 0 18px 40px rgba(32, 38, 34, 0.08);
  --shadow-card: 0 16px 30px rgba(32, 38, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 127, 109, 0.14), transparent 28%),
    linear-gradient(180deg, #fdfbf6 0%, var(--bg) 100%);
}

body.cart-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

.container {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(253, 249, 242, 0.9);
  border-bottom: 1px solid rgba(91, 127, 109, 0.12);
}

.topbar-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted);
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #2f463d 0%, #567564 58%, #7e9a8b 100%);
  box-shadow:
    0 0 0 5px rgba(91, 127, 109, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0 43%, transparent 43% 52%, rgba(255, 255, 255, 0.7) 52% 100%);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  box-shadow:
    inset 0 0 0 1.5px rgba(47, 70, 61, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(47, 70, 61, 0.4) 46% 50%, transparent 50% 100%);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34);
}

.menu {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.menu a {
  color: #4e5965;
  text-decoration: none;
  font-size: 14px;
}

.call-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid var(--line);
  font-weight: 600;
}

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

.cart-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.96);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cart-toggle strong {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 12px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(31, 36, 41, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cart-overlay.is-visible {
  opacity: 1;
}

.mini-cart {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(390px, calc(100vw - 24px));
  z-index: 30;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.98);
  box-shadow: 0 20px 50px rgba(31, 36, 41, 0.18);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.28s ease;
}

.mini-cart.is-open {
  transform: translateX(0);
}

.mini-cart-head,
.mini-cart-footer,
.mini-cart-item,
.mini-cart-empty {
  border: 1px solid rgba(91, 127, 109, 0.14);
  border-radius: 12px;
  background: #fff;
}

.mini-cart-head,
.mini-cart-footer {
  padding: 16px;
}

.mini-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-cart-head h3 {
  margin: 10px 0 0;
  font-size: 26px;
}

.mini-cart-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mini-cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.mini-cart-item {
  padding: 12px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.mini-cart-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 9px;
}

.mini-cart-item-body {
  display: grid;
  gap: 8px;
}

.mini-cart-item-body strong {
  line-height: 1.35;
}

.mini-cart-item-body span {
  color: var(--accent-dark);
  font-weight: 600;
}

.mini-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-btn,
.remove-btn {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.qty-btn {
  min-width: 34px;
  padding: 0;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  color: var(--text) !important;
}

.remove-btn {
  padding: 0 10px;
}

.mini-cart-empty {
  padding: 20px;
}

.mini-cart-empty strong {
  display: block;
  font-size: 18px;
}

.mini-cart-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.mini-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-cart-footer span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.mini-cart-footer strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.mini-cart-submit {
  min-width: 156px;
}

.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(35, 42, 48, 0.96);
  color: #fff;
  box-shadow: 0 18px 40px rgba(31, 36, 41, 0.18);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast strong,
.cart-toast span {
  display: block;
}

.cart-toast span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  padding: 42px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 18px;
}

.hero-copy,
.hero-banner {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  background: linear-gradient(145deg, #fbfcfb, #edf3f0);
  border: 1px solid rgba(47, 111, 115, 0.12);
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.selection-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.01;
  letter-spacing: -0.03em;
}

.hero-copy p,
.section-note,
.selection-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-search {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
}

.hero-search input,
.filter-block input,
.filter-block select,
.selection-widget-form input,
.selection-widget-form textarea,
.selection-form input,
.selection-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.hero-search input:focus,
.filter-block input:focus,
.filter-block select:focus,
.selection-widget-form input:focus,
.selection-widget-form textarea:focus,
.selection-form input:focus,
.selection-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 127, 109, 0.12);
}

.hero-search button,
.btn-primary,
.selection-widget-form button,
.selection-form button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hero-search button {
  min-width: 150px;
}

.hero-stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stats span,
.filter-chip,
.product-specs li {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.hero-stats span {
  background: rgba(91, 127, 109, 0.1);
  color: #245c4b;
  font-size: 13px;
}

.hero-banner {
  position: relative;
  background: #ddd;
  min-height: 520px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(248, 252, 251, 0.92);
  border: 1px solid rgba(91, 127, 109, 0.14);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  display: block;
  font-size: 18px;
}

.hero-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 28px 0 44px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.section-head.compact h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.catalog-result {
  text-align: right;
}

.catalog-result strong {
  display: block;
  font-size: 30px;
}

.catalog-result span {
  color: var(--muted);
  font-size: 14px;
}

.filter-panel,
.product-card,
.selection-shell,
.catalog-empty {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-panel {
  margin-top: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 12px;
}

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

.filter-block label {
  font-size: 13px;
  font-weight: 600;
  color: #556270;
}

.range-block strong {
  color: var(--accent-dark);
}

.filter-groups {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  color: #436055;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.catalog-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-load-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.catalog-load-more {
  min-width: 180px;
  background: rgba(255, 251, 245, 0.96);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(24, 33, 29, 0.05);
}

.product-media {
  position: relative;
  background: linear-gradient(145deg, rgba(228, 238, 233, 0.92), rgba(245, 241, 233, 0.96));
}

.product-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: inherit;
}

.product-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(244, 248, 245, 0.88);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(91, 127, 109, 0.1);
}

.product-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-prices {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.product-prices strong {
  font-size: 22px;
  color: var(--accent-dark);
}

.product-prices span {
  color: #9aa4ad;
  text-decoration: line-through;
}

.product-body h3 {
  margin: 8px 0 0;
  min-height: calc(1.16em * 2);
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--accent-dark);
}

.product-body p {
  margin-top: 8px;
  min-height: calc(1.5em * 2);
  flex-grow: 1;
  color: var(--muted);
  line-height: 1.5;
}

.product-specs {
  margin: 12px 0 0;
  padding: 0;
  min-height: 56px;
  align-content: flex-start;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-specs li {
  background: rgba(232, 221, 205, 0.54);
  color: #60706c;
  font-size: 12px;
}

.product-actions {
  margin-top: 12px;
  display: flex;
  margin-top: auto;
  gap: 8px;
}

.btn-primary,
.btn-secondary,
.selection-form button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.catalog-empty {
  padding: 26px;
}

.catalog-empty h3 {
  margin: 0;
  font-size: 24px;
}

.catalog-empty p {
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 1121px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 14px;
  }

  .product-prices {
    gap: 8px;
  }

  .product-prices strong {
    font-size: 20px;
  }

  .product-body h3 {
    font-size: 18px;
  }

  .product-body p {
    font-size: 13px;
    line-height: 1.45;
  }

  .product-specs {
    margin-top: 10px;
    gap: 6px;
  }

  .product-specs li {
    font-size: 11px;
  }

  .product-actions {
    margin-top: 10px;
  }
}
.collection-content {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(248, 252, 251, 0.9);
  backdrop-filter: blur(10px);
}

.collection-content h3 {
  font-size: 24px;
}

.collection-content p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.selection-shell {
  padding: 18px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.selection-form {
  display: grid;
  gap: 10px;
}

.selection-form button {
  margin-top: 4px;
}

.selection-anchor {
  position: relative;
  top: -80px;
  height: 1px;
}

.selection-widget-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 28, 0.28);
  backdrop-filter: blur(4px);
  z-index: 39;
}

.selection-widget-backdrop.is-visible {
  display: block;
}

.selection-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: block;
}

.selection-widget-trigger {
  min-height: 52px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 18px 30px rgba(18, 30, 34, 0.18);
  cursor: pointer;
}

.selection-widget-trigger__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.selection-widget-trigger__text {
  font-size: 14px;
  font-weight: 600;
}

.selection-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 12px 12px 6px 12px;
  border: 1px solid rgba(91, 127, 109, 0.14);
  background: rgba(253, 249, 242, 0.97);
  box-shadow: 0 22px 40px rgba(24, 32, 28, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(18px) translateY(4px) scale(0.98);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-height: min(72vh, 560px);
  overflow: auto;
}

.selection-widget.is-open .selection-widget-panel {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  pointer-events: auto;
}

.selection-widget-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.selection-widget-panel__head h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.selection-widget-panel__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.selection-widget-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 127, 109, 0.1);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

.selection-widget-form {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.selection-widget-form textarea {
  min-height: 90px;
  resize: vertical;
}

.selection-widget-form button {
  min-height: 46px;
  margin-top: 2px;
}

.site-footer {
  margin-top: 12px;
  padding: 0;
}

.footer-shell {
  width: 100%;
  padding: 12px 24px 10px;
  border-radius: 0;
  background: linear-gradient(145deg, #235845, #182521 72%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
  gap: 14px;
}

.footer-brand-block,
.footer-contact-block,
.footer-mini-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand-block {
  display: grid;
  gap: 2px;
}

.footer-brand-block strong {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-brand-block span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

.footer-contact-block a,
.footer-mini-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
}

.footer-contact-block a {
  font-weight: 600;
}

.footer-meta {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-meta span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.footer-bottom {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.footer-bottom span:first-child {
  max-width: 72ch;
}

.footer-requisites-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
}

@media (max-width: 1120px) {
  .hero-grid,
  .selection-shell,
  .section-head {
    grid-template-columns: 1fr;
  }


/* Final mobile product-gallery override (force marketplace layout) */
@media (max-width: 760px) {
  .product-page-main .product-main-image {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .product-page-main .product-thumbs,
  .product-page-main .product-thumbs--inside {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 4px 2px !important;
    margin-top: 10px !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .product-page-main .product-thumbs::-webkit-scrollbar,
  .product-page-main .product-thumbs--inside::-webkit-scrollbar {
    display: none !important;
  }

  .product-page-main .product-thumbs--inside::before {
    display: none !important;
  }

  .product-page-main .product-thumb {
    flex: 0 0 56px !important;
    width: 56px !important;
    border-radius: 9px !important;
    opacity: 1 !important;
  }

  .product-page-main .product-thumb img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
}
  .filter-panel,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
  }

  .catalog-result {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .topbar-row {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px 0;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cart-toggle,
  .call-link {
    justify-content: center;
  }

  .menu {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-search,
  .filter-panel,
  .catalog-grid,
  .selection-shell {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .hero-banner img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1220px, calc(100% - 20px));
  }

  .mini-cart {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .mini-cart-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-cart-submit {
    width: 100%;
  }

  .hero-copy h1,
  .section-head h2,
  .selection-copy h2 {
    font-size: 32px;
  }

  .product-actions {
    flex-direction: column;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 24;
}

.utilitybar {
  background: #1c262a;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.utility-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.utility-list,
.utility-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-list span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79aeb0;
}

.utility-links a,
.categorybar-link {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: static;
  border-bottom: 1px solid rgba(47, 111, 115, 0.1);
  background: rgba(251, 253, 252, 0.96);
}

.topbar-row--shop {
  min-height: 74px;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  gap: 14px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-caption {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.catalog-section .section-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
}

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-search input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0 10px;
  outline: none;
}

.header-search button,
.hero-link-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.consultation-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.phone-card {
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 2px;
}

.consultation-whatsapp {
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(91, 127, 109, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #1f8f5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.consultation-whatsapp:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 143, 95, 0.22);
  background: rgba(233, 247, 239, 0.96);
}

.consultation-whatsapp svg {
  width: 20px;
  height: 20px;
}

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

.phone-card strong {
  font-size: 15px;
}

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

.header-icon-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.header-icon-btn span {
  font-size: 14px;
  line-height: 1;
}

.header-icon-btn strong {
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  font-size: 11px;
}

.categorybar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(47, 111, 115, 0.1);
}

.categorybar-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.catalog-entry {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.menu--catalog {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.menu--catalog a {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 111, 115, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.categorybar-link {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  padding: 22px 0 18px;
}

.hero-shell {
  display: grid;
  gap: 12px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.hero-copy,
.hero-banner,
.hero-service-card,
.tool-card {
  border: 1px solid rgba(47, 111, 115, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 115, 0.16), transparent 34%),
    linear-gradient(145deg, #fbfcfb, #edf3f0);
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-actions-row {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-search {
  margin-top: 18px;
}

.hero-banner {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 36, 41, 0.08), rgba(31, 36, 41, 0.36));
}

.hero-banner img {
  min-height: 540px;
}

.hero-banner-stack {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.hero-glass-card,
.hero-quick-panel {
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-glass-card {
  padding: 14px;
}

.hero-glass-card strong {
  display: block;
  font-size: 22px;
}

.hero-glass-card p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: #5f6770;
}

.hero-quick-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.hero-quick-panel div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.hero-quick-panel span,
.calculator-result span,
.summary-metrics span,
.tool-field-grid span,
.tracker-result p,
.summary-list li {
  color: var(--muted);
}

.hero-quick-panel span {
  display: block;
  font-size: 12px;
}

.hero-quick-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-service-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-service-card strong,
.tool-head h3 {
  display: block;
  font-size: 24px;
}

.hero-service-card p,
.tool-head p,
.tracker-result p,
.summary-list {
  margin: 10px 0 0;
  line-height: 1.6;
}

.tools-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 12px;
}

.tool-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.tool-head h3 {
  margin: 10px 0 0;
}

.tool-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

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

.tool-field-grid label,
.tool-form label {
  display: grid;
  gap: 8px;
}

.tool-form input,
.tool-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
}

.calculator-result,
.summary-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calculator-result div,
.summary-metrics div,
.tracker-result {
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.calculator-result strong,
.summary-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.order-tracker-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.tracker-result {
  margin-top: 12px;
}

.tracker-result strong {
  display: block;
  font-size: 20px;
}

.summary-list {
  padding-left: 18px;
}

.product-top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

.icon-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 245, 0.92);
  color: var(--text);
  cursor: pointer;
}

.icon-toggle.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

.product-ghost-link {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1180px) {
  .topbar-row--shop,
  .hero-main,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .header-toolbar {
    justify-content: space-between;
  }

  .header-actions,
  .categorybar-row,
  .utility-row {
    flex-wrap: wrap;
  }

  .calculator-result,
  .summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .hero-service-grid,
  .tool-field-grid,
  .order-tracker-form,
  .calculator-result,
  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .utility-links {
    display: none;
  }

  .header-search {
    width: 100%;
  }

  .phone-card {
    flex: 1 1 220px;
  }

  .menu--catalog {
    overflow: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .utilitybar {
    font-size: 10px;
  }

  .utility-row {
    min-height: 0;
    padding: 6px 0;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 10px;
    scrollbar-width: none;
  }

  .utility-row::-webkit-scrollbar {
    display: none;
  }

  .utility-list {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 12px;
  }

  .topbar-row--shop {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .topbar-row--shop .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-caption {
    font-size: 8px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 5px;
    border-radius: 11px;
  }

  .header-search input {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .header-search button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
  }

  .header-actions {
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-toolbar {
    width: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .consultation-card {
    width: auto;
    display: contents;
  }

  .phone-card {
    display: none;
  }

  .header-icon-btn,
  .cart-toggle {
    flex: initial;
    justify-content: center;
  }

  .header-icon-btn {
    min-height: 42px;
    min-width: 42px;
    width: 42px;
    padding: 0;
    gap: 0;
    position: relative;
  }

  .header-icon-btn strong,
  .cart-toggle strong {
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    position: absolute;
    top: -5px;
    right: -4px;
    font-size: 10px;
  }

  .header-icon-btn span {
    font-size: 16px;
  }

  .cart-toggle {
    min-height: 42px;
    min-width: 42px;
    width: 42px;
    padding: 0;
    position: relative;
    justify-content: center;
  }

  .cart-toggle span {
    display: none;
  }

  .cart-toggle::before {
    content: '🛒';
    font-size: 16px;
    line-height: 1;
  }

  .consultation-whatsapp {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 10px;
  }

  .categorybar {
    padding: 2px 0 6px;
  }

  .filter-panel {
    gap: 10px;
    padding: 12px;
  }

  .filter-groups {
    gap: 10px;
  }

  .chip-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .chip-group::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .categorybar-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: center;
    gap: 2px;
  }

  .catalog-entry {
    display: none;
  }

  .categorybar-link {
    display: none;
  }

  .menu--catalog {
    grid-column: 1;
    overflow-x: auto;
    width: 100%;
    padding: 0 0 2px;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .menu--catalog::-webkit-scrollbar {
    display: none;
  }

  .menu--catalog a {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-copy,
  .tool-card,
  .hero-service-card {
    padding: 18px;
  }

  .hero-banner,
  .hero-banner img {
    min-height: 400px;
  }

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

  .selection-widget {
    right: 10px;
    bottom: 10px;
  }

  .selection-widget-trigger {
    min-height: 46px;
    padding: 0 14px 0 10px;
    gap: 8px;
    border-radius: 999px;
  }

  .selection-widget-trigger__icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .selection-widget-trigger__text {
    font-size: 13px;
  }

  .catalog-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-media img {
    aspect-ratio: 4 / 3;
  }

  .product-badge {
    left: 10px;
    top: 10px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .product-top-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .icon-toggle {
    width: 34px;
    height: 34px;
  }

  .product-body {
    padding: 12px;
  }

  .product-prices strong {
    font-size: 18px;
  }

  .product-prices span {
    font-size: 13px;
  }

  .product-body h3 {
    margin-top: 6px;
    min-height: 0;
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-body p {
    margin-top: 6px;
    min-height: 0;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-specs {
    margin-top: 10px;
    min-height: 0;
    gap: 6px;
  }

  .product-specs li {
    font-size: 11px;
  }

  .product-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .product-actions .btn-primary,
  .product-actions .btn-secondary {
    min-height: 40px;
  }

  .product-actions .btn-secondary {
    padding-inline: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 5px;
  }

  .categorybar-row {
    grid-template-columns: 1fr;
  }

  .catalog-entry,
  .categorybar-link {
    display: none;
  }

  .hero-banner--crafted {
    min-height: 470px;
    background-position: 86% center;
  }

  .hero-editorial-footer {
    bottom: 18px;
  }

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

  .product-actions .btn-secondary {
    width: 100%;
  }

  .selection-widget-trigger__text {
    display: none;
  }

  .selection-widget-trigger {
    width: 46px;
    min-width: 46px;
    padding: 0;
    justify-content: center;
  }
}

.hero {
  padding: 16px 0 12px;
}

.hero-shell {
  gap: 12px;
}

.hero-main {
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 16px;
}

.hero-copy,
.hero-banner {
  border-radius: 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)),
    linear-gradient(145deg, #f9fbfa, #eef4f2);
}

.hero-copy-head h1 {
  margin-top: 14px;
  max-width: 9ch;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy-head p {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
}

.hero-search--minimal {
  margin-top: 16px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-search--minimal input {
  min-height: 46px;
  border-radius: 9px;
}

.hero-search--minimal button {
  min-width: 124px;
}

.hero-actions-row {
  margin-top: 10px;
  gap: 8px;
}

.hero-link-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
}

.hero-meta-row {
  margin-top: 14px;
  gap: 8px;
}

.hero-meta-row span {
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(91, 127, 109, 0.12);
  background: rgba(255, 250, 244, 0.8);
  color: #355e52;
  font-size: 13px;
}

.hero-banner {
  min-height: 500px;
  background: #d8dfdc;
}

.hero-banner::after {
  background: linear-gradient(180deg, rgba(22, 31, 34, 0.04), rgba(22, 31, 34, 0.38));
}

.hero-banner img {
  min-height: 500px;
}

.hero-badge-card {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  max-width: 300px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(249, 252, 251, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-badge-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-badge-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.18;
  color: var(--text);
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(20, 30, 33, 0.58);
  backdrop-filter: blur(10px);
  color: #fff;
}

.hero-caption p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.hero-caption-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-caption-stats div {
  display: grid;
  gap: 2px;
}

.hero-caption-stats strong {
  font-size: 24px;
  line-height: 1;
}

.hero-caption-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-service-grid {
  gap: 12px;
}

.hero-service-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.hero-service-card strong {
  font-size: 16px;
}

.hero-service-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-copy-head h1 {
    max-width: 10ch;
  }

  .hero-banner,
  .hero-banner img {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 20px;
  }

  .hero-copy-head h1 {
    font-size: 32px;
  }

  .hero-search--minimal,
  .hero-actions-row,
  .hero-caption-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions-row {
    display: grid;
  }

  .hero-banner,
  .hero-banner img {
    min-height: 360px;
  }

  .hero-badge-card,
  .hero-caption {
    left: 14px;
    right: 14px;
  }

  .hero-caption {
    padding: 14px;
  }
}

.hero {
  padding: 18px 0 10px;
}

.hero-shell {
  gap: 14px;
}

.hero-panorama {
  position: relative;
}

.hero-banner--wide {
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 115, 0.12);
  box-shadow: var(--shadow-soft);
}

.hero-banner--wide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 24, 27, 0.42) 0%, rgba(14, 24, 27, 0.18) 34%, rgba(14, 24, 27, 0.08) 58%, rgba(14, 24, 27, 0.24) 100%),
    linear-gradient(180deg, rgba(14, 24, 27, 0.02), rgba(14, 24, 27, 0.22));
}

.hero-banner--wide img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-panel--floating {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  width: min(480px, calc(100% - 52px));
  padding: 26px;
  border-radius: 14px;
  background: rgba(248, 251, 250, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 40px rgba(16, 25, 28, 0.1);
}

.hero-panel--floating h1 {
  margin: 14px 0 0;
  max-width: 8ch;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-panel--floating p {
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.55;
  color: #5a686c;
}

.hero-search--compact {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 111, 115, 0.1);
}

.hero-search--compact input {
  min-height: 46px;
  border: 0;
  padding: 0 12px;
  background: transparent;
}

.hero-search--compact button {
  min-width: 120px;
}

.hero-inline-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-ribbon {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-ribbon span {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(16, 24, 27, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.hero-service-grid--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-service-grid--inline .hero-service-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(47, 111, 115, 0.1);
  box-shadow: none;
}

.hero-service-grid--inline .hero-service-card strong {
  font-size: 15px;
}

.hero-service-grid--inline .hero-service-card p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-banner--wide,
  .hero-banner--wide img {
    min-height: 480px;
  }

  .hero-panel--floating {
    width: min(460px, calc(100% - 40px));
    top: 20px;
    left: 20px;
  }

  .hero-ribbon {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

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

@media (max-width: 700px) {
  .hero-banner--wide,
  .hero-banner--wide img {
    min-height: 520px;
  }

  .hero-panel--floating {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 20px;
  }

  .hero-panel--floating h1 {
    font-size: 34px;
  }

  .hero-search--compact,
  .hero-inline-actions {
    grid-template-columns: 1fr;
  }

  .hero-inline-actions {
    display: grid;
  }

  .hero-ribbon {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

.hero {
  padding: 14px 0 6px;
}

.hero-panorama {
  position: relative;
}

.hero-banner--editorial {
  position: relative;
  min-height: 620px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 115, 0.12);
  box-shadow: 0 22px 44px rgba(18, 30, 34, 0.08);
  background: #dfe5e2;
}

.hero-banner--editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 22, 26, 0.44) 0%, rgba(15, 22, 26, 0.18) 28%, rgba(15, 22, 26, 0.03) 56%, rgba(15, 22, 26, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 22, 26, 0.06), rgba(15, 22, 26, 0.22));
}

.hero-banner--editorial img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.hero-editorial-copy {
  position: absolute;
  left: 34px;
  top: 34px;
  z-index: 2;
  max-width: 420px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-editorial-copy h1 {
  margin: 18px 0 0;
  max-width: 8ch;
  color: #fff;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.hero-editorial-copy p {
  margin: 18px 0 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.hero-editorial-footer {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.hero-search--line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 560px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(248, 251, 250, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-search--line input {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 14px;
  color: var(--text);
}

.hero-search--line button {
  min-width: 112px;
  border-radius: 8px;
}

.hero-inline-actions--minimal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-inline-actions--minimal .hero-link-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.hero-inline-actions--minimal .btn-secondary {
  background: rgba(248, 251, 250, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-metrics-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-metrics-line span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(248, 251, 250, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.hero-service-grid--inline {
  margin-top: 2px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-service-grid--inline .hero-service-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(47, 111, 115, 0.08);
  box-shadow: none;
}

.hero-service-grid--inline .hero-service-card strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.hero-service-grid--inline .hero-service-card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #64757a;
}

@media (max-width: 980px) {
  .hero-banner--editorial,
  .hero-banner--editorial img {
    min-height: 560px;
  }

  .hero-editorial-copy,
  .hero-editorial-footer {
    left: 24px;
    right: 24px;
  }

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

@media (max-width: 680px) {
  .hero-banner--editorial,
  .hero-banner--editorial img {
    min-height: 560px;
  }

  .hero-editorial-copy {
    top: 22px;
    left: 18px;
    right: 18px;
    max-width: none;
  }

  .hero-editorial-copy h1 {
    max-width: 9ch;
    font-size: 38px;
  }

  .hero-editorial-copy p {
    max-width: 25ch;
    font-size: 14px;
  }

  .hero-editorial-footer {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-search--line,
  .hero-inline-actions--minimal {
    grid-template-columns: 1fr;
  }

  .hero-inline-actions--minimal {
    display: grid;
  }
}

.hero-banner--crafted {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(91, 127, 109, 0.12);
  box-shadow: 0 24px 48px rgba(18, 30, 34, 0.08);
  background: #d8c8ad url('./assets/photos/hero-ladder.jpg') 78% center / cover no-repeat;
}

.hero-banner--crafted::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 41, 33, 0.72) 0%, rgba(19, 41, 33, 0.42) 34%, rgba(19, 41, 33, 0.12) 58%, rgba(19, 41, 33, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(18, 28, 31, 0.12));
  z-index: 1;
}

.hero-visual-assembly {
  position: absolute;
  inset: 0;
}

.hero-photo-shell {
  position: absolute;
}

.hero-photo-shell {
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-photo-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(239, 244, 242, 0.08) 0%, rgba(239, 244, 242, 0) 22%, rgba(18, 28, 31, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(14, 24, 27, 0.18));
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-editorial-copy {
  position: absolute;
  left: 28px;
  top: 22px;
  z-index: 2;
  width: min(560px, calc(100% - 68px));
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(253, 249, 242, 0.76);
  border: 1px solid rgba(91, 127, 109, 0.1);
  color: #305e52;
  font-size: 10px;
  font-weight: 700;
}

.hero-photo {
  object-position: 82% center;
}

.hero-editorial-copy h1 {
  margin: 14px 0 0;
  max-width: 100%;
  width: min(520px, 100%);
  color: #fff;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-shadow: 0 10px 26px rgba(18, 28, 31, 0.22);
  text-wrap: balance;
}

.hero-editorial-copy p {
  margin: 10px 0 0;
  max-width: min(540px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.38;
}

.hero-copy-notes {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-copy-notes span {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
}

.hero-editorial-footer {
  position: absolute;
  left: 28px;
  bottom: 128px;
  z-index: 2;
  width: min(560px, calc(100% - 68px));
  display: grid;
  gap: 8px;
}

.hero-search--line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 249, 241, 0.82);
  border: 1px solid rgba(91, 127, 109, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(18, 30, 34, 0.08);
}

.hero-search--line input {
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  color: var(--text);
}

.hero-search--line button {
  min-width: 112px;
  border-radius: 9px;
}

.hero-inline-actions--minimal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-inline-actions--minimal .hero-link-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
}

.hero-inline-actions--minimal .btn-secondary {
  background: rgba(248, 251, 250, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
  color: #23413f;
}

.hero-metrics-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-metrics-line span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(248, 251, 250, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #566c69;
  font-size: 11px;
}

.hero-service-grid--inline .hero-service-card {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(47, 111, 115, 0.06);
  box-shadow: none;
}

.hero-service-grid--inline .hero-service-card strong {
  font-size: 13px;
  letter-spacing: 0;
}

.hero-service-grid--inline .hero-service-card p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: #6a7975;
}

@media (max-width: 1020px) {
  .hero-banner--crafted {
    min-height: 620px;
  }

  .hero-editorial-copy {
    width: min(520px, calc(100% - 48px));
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .hero-banner--crafted {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 18px;
    background-position: 92% center;
  }

  .hero-editorial-copy,
  .hero-editorial-footer {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, 420px);
    text-align: center;
  }

  .hero-editorial-footer {
    gap: 10px;
    margin-top: 18px;
    justify-items: center;
  }

  .hero-editorial-copy h1 {
    font-size: 30px;
  }

  .hero-editorial-copy p {
    display: none;
  }

  .hero-copy-notes {
    display: none;
  }

  .hero-copy-notes span {
    font-size: 10px;
  }

  .hero-search--line,
  .hero-inline-actions--minimal {
    grid-template-columns: 1fr;
  }

  .hero-search--line {
    display: none !important;
  }

  .hero-service-grid--inline {
    display: none;
  }

  .hero-inline-actions--minimal {
    display: grid;
    width: 100%;
    justify-content: center;
  }

  .hero-metrics-line {
    justify-content: center;
  }

  .footer-shell {
    padding: 12px 14px 10px;
  }

  .selection-widget {
    right: 12px;
    bottom: 12px;
  }

  .selection-widget-trigger {
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
  }

  .selection-widget-panel {
    width: min(340px, calc(100vw - 24px));
    border-radius: 12px 12px 6px 12px;
    max-height: min(68vh, 520px);
  }

  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .footer-contact-block,
  .footer-mini-nav {
    gap: 10px 14px;
  }

  .footer-brand-block span {
    font-size: 12px;
  }

  .footer-contact-block a,
  .footer-mini-nav a,
  .footer-meta span,
  .footer-bottom {
    font-size: 12px;
  }

  .footer-meta {
    margin-top: 8px;
    gap: 5px;
  }

  .footer-meta span {
    min-height: 26px;
    padding: 0 8px;
  }

  .footer-bottom {
    margin-top: 6px;
    padding-top: 6px;
  }

  .footer-bottom span:first-child {
    max-width: none;
  }
}

.product-page-main {
  padding: 18px 0 32px;
}

.product-page-shell {
  padding-bottom: 18px;
}

.product-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.product-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.product-detail-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(300px, 0.66fr) 330px;
  gap: 18px;
  align-items: start;
}

.product-detail-media,
.product-mid-specs__card,
.product-buybox,
.product-tab-card,
.product-short-info-card,
.product-empty-state,
.quick-buy-modal__dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.product-detail-media {
  padding: 14px;
}

.product-main-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f3ee;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

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

.product-thumbs--inside {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(44px, 58px));
  justify-content: start;
  gap: 6px;
  z-index: 1;
}

.product-thumbs--inside::before {
  content: '';
  position: absolute;
  inset: -12px -12px -12px -12px;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0) 0%, rgba(20, 24, 26, 0.28) 100%);
  pointer-events: none;
  z-index: -1;
}

.product-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
  opacity: 1;
}

.product-thumb:hover {
  opacity: 0.72;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-mid-specs {
  display: grid;
  gap: 12px;
}

.product-mid-specs__card {
  padding: 18px;
}

.product-mid-specs__card--table {
  padding: 16px 18px 10px;
}

.product-mid-specs__card--plain {
  padding: 14px 18px 16px;
}

.product-mid-specs__card h2,
.product-mid-specs__card h3 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.product-mid-specs__card--plain h3 {
  margin-top: 0;
  font-size: 16px;
}

.product-buybox {
  padding: 16px;
  position: sticky;
  top: 102px;
}

.product-buybox__top,
.product-buybox__badges,
.product-buybox__actions,
.product-buybox__extra-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.product-buybox__top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-page-badge,
.product-page-discount,
.product-standard-benefits span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.product-page-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-page-discount {
  background: rgba(63, 94, 80, 0.08);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-buybox__article,
.product-buybox__status {
  color: var(--muted);
  font-size: 12px;
}

.product-buybox h1,
.product-empty-state h1 {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-buybox__lead,
.product-tab-card p,
.product-empty-state p,
.quick-buy-modal__note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.product-summary-price {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-summary-price strong {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
  color: var(--accent-dark);
}

.product-summary-price span {
  color: #97a09c;
  text-decoration: line-through;
  font-size: 15px;
}

.product-standard-benefits span {
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid var(--line);
  color: #4d6158;
  font-size: 13px;
}

.product-buybox__actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.product-summary-buy,
.product-buybox__quick {
  width: 100%;
  flex: 0 0 auto;
}

.product-summary-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.product-summary-icon.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #fff;
}

.product-buybox__manager-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
}

.product-buybox__extra-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 42px 42px 1fr;
  gap: 8px;
  align-items: stretch;
}

.product-buybox__info {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.product-buybox__info div {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-alt);
  display: grid;
  align-content: center;
  gap: 2px;
}

.product-buybox__info span {
  color: var(--muted);
  font-size: 11px;
}

.product-buybox__info strong {
  font-size: 13px;
  line-height: 1.35;
}

.product-tabs-section,
.product-short-info-grid {
  margin-top: 18px;
}

.product-tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
}

.product-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #fff;
}

.product-tab-panels {
  margin-top: 14px;
}

.product-tab-panel.is-active {
  display: block;
}

.product-tab-card,
.product-empty-state,
.quick-buy-modal__dialog {
  padding: 22px;
}

.product-tab-card h2,
.product-short-info-card h3,
.quick-buy-modal__dialog h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-standard-benefits {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-spec-table {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.product-spec-table--compact {
  margin-top: 12px;
  gap: 0;
}

.product-spec-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(91, 127, 109, 0.12);
}

.product-spec-table div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-spec-table dt {
  color: var(--muted);
  font-size: 12px;
}

.product-spec-table dd {
  margin: 0;
  line-height: 1.4;
}

.product-spec-table--compact div {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(91, 127, 109, 0.1);
}

.product-spec-table--compact dt {
  font-size: 12px;
  color: #8a918d;
  line-height: 1.35;
}

.product-spec-table--compact dd {
  font-size: 14px;
  line-height: 1.4;
  color: #2d3733;
}

.product-mid-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.product-mid-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(91, 127, 109, 0.1);
  line-height: 1.4;
  color: #38423f;
}

.product-mid-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-delivery-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.product-delivery-list--compact {
  margin-top: 14px;
  gap: 8px;
}

.product-delivery-list li {
  line-height: 1.48;
}

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

.product-short-info-card {
  padding: 18px;
}

.product-short-info-card h3 {
  margin-bottom: 0;
}

.product-related-section {
  padding-bottom: 0;
}

.product-empty-state {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.product-empty-state__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.quick-buy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 26, 0.34);
}

.quick-buy-modal__dialog {
  position: relative;
  width: min(460px, calc(100vw - 24px));
  margin: 8vh auto 0;
}

.quick-buy-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(63, 94, 80, 0.08);
  cursor: pointer;
  font-size: 20px;
}

.quick-buy-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.quick-buy-form textarea,
.quick-buy-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.quick-buy-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  }

  .product-buybox {
    position: static;
  }

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

@media (max-width: 760px) {
  .product-page-main {
    padding: 14px 0 24px;
  }

  .product-breadcrumbs {
    gap: 6px;
    font-size: 12px;
  }

  .product-detail-layout {
    margin-top: 12px;
    gap: 12px;
  }

  .product-detail-layout,
  .product-mid-specs,
  .product-spec-table div,
  .product-short-info-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image {
    aspect-ratio: 4 / 5;
  }

  .product-spec-table--compact div {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 9px 10px;
    border: 1px solid rgba(91, 127, 109, 0.12);
    border-radius: 10px;
    background: rgba(248, 252, 250, 0.86);
  }

  .product-spec-table--compact dt {
    font-size: 11px;
    line-height: 1.3;
  }

  .product-spec-table--compact dd {
    font-size: 13px;
    line-height: 1.35;
  }

  .product-buybox h1 {
    font-size: 24px;
  }

  .product-buybox__lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .product-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .product-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .product-thumbs {
    grid-template-columns: none;
  }

  .product-thumbs--inside {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 2px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }

  .product-thumbs--inside::-webkit-scrollbar {
    display: none;
  }

  .product-thumbs--inside::before {
    display: none;
  }

  .product-thumb {
    flex: 0 0 56px;
    width: 56px;
    border-radius: 9px;
    opacity: 0.92;
    scroll-snap-align: start;
  }

  .product-thumb.is-active {
    opacity: 1;
  }

  .product-thumb img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .product-page-main {
    padding-top: 14px;
  }

  .product-detail-media,
  .product-mid-specs__card,
  .product-buybox,
  .product-tab-card,
  .product-short-info-card,
  .product-empty-state,
  .quick-buy-modal__dialog {
    padding: 18px;
  }

  .product-mid-specs {
    gap: 10px;
  }

  .product-mid-specs__card--table {
    padding: 12px;
  }

  .product-mid-specs__card--plain {
    padding: 12px;
  }

  .product-mid-specs__card h2,
  .product-mid-specs__card h3 {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .product-mid-specs__card .eyebrow {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .product-mid-list {
    margin-top: 8px;
  }

  .product-mid-list li {
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .product-detail-media {
    padding: 12px;
  }

  .product-main-image {
    aspect-ratio: 1 / 1;
  }

  .product-thumb {
    flex-basis: 52px;
    width: 52px;
  }

  .product-buybox {
    padding: 14px;
  }

  .product-tab-card {
    padding: 14px;
  }

  .product-tab-card h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .product-tab-card p {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.42;
  }

  .product-standard-benefits {
    margin-top: 10px;
    gap: 6px;
  }

  .product-standard-benefits span {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 7px;
  }

  .product-spec-table {
    margin-top: 10px;
    gap: 8px;
  }

  .product-spec-table div {
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(91, 127, 109, 0.12);
    border-radius: 10px;
    background: rgba(248, 252, 250, 0.84);
  }

  .product-spec-table dt {
    font-size: 11px;
  }

  .product-spec-table dd {
    font-size: 13px;
    line-height: 1.35;
  }

  .product-delivery-list {
    margin-top: 10px;
    gap: 6px;
    padding-left: 16px;
  }

  .product-delivery-list li {
    font-size: 13px;
    line-height: 1.4;
  }

  .product-buybox__top {
    gap: 8px;
  }

  .product-buybox__article,
  .product-buybox__status {
    font-size: 11px;
  }

  .product-summary-price {
    margin-top: 10px;
    gap: 8px;
  }

  .product-summary-price strong {
    font-size: 24px;
  }

  .product-summary-price span {
    font-size: 13px;
  }

  .product-summary-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .product-buybox__info {
    margin-top: 10px;
    gap: 6px;
  }

  .product-buybox__info div {
    min-height: 52px;
    padding: 8px 10px;
  }

  .product-tab-card h2,
  .product-short-info-card h3,
  .quick-buy-modal__dialog h2 {
    font-size: 20px;
  }

  .product-tab-card,
  .product-short-info-card {
    padding: 16px;
  }

  .product-buybox__actions,
  .product-empty-state__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-buybox__extra-actions {
    display: grid;
    grid-template-columns: 38px 38px minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
  }

  .product-summary-buy,
  .product-buybox__quick,
  .product-buybox__manager-link {
    width: 100%;
  }

  .product-buybox__manager-link {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 780px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .catalog-load-more {
    min-width: 168px;
  }
}

@media (max-width: 560px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-media img {
    aspect-ratio: 1 / 1;
  }

  .product-badge {
    left: 10px;
    top: 10px;
    min-height: 20px;
    padding: 0 6px;
    font-size: 9px;
  }

  .product-top-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .icon-toggle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .product-body {
    padding: 12px;
  }

  .product-prices {
    gap: 6px;
    flex-wrap: wrap;
  }

  .product-prices strong {
    font-size: 17px;
  }

  .product-prices span {
    font-size: 12px;
  }

  .product-body h3 {
    min-height: calc(1.22em * 2);
    font-size: 15px;
    line-height: 1.22;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-body p {
    display: none;
  }

  .product-specs {
    margin-top: 6px;
    min-height: 0;
    gap: 6px;
  }

  .product-specs li {
    font-size: 10px;
    padding: 4px 6px;
  }

  .product-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-actions .btn-primary,
  .product-actions .btn-secondary {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .product-actions .btn-secondary {
    display: none;
  }

  .catalog-load-more-wrap {
    margin-top: 14px;
  }

  .catalog-load-more {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-banner--crafted {
    background-position: right center;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .product-body {
    padding: 10px;
  }

  .product-prices {
    gap: 4px;
  }

  .product-prices strong {
    font-size: 16px;
  }

  .product-prices span {
    font-size: 11px;
  }

  .product-body h3 {
    min-height: auto;
    font-size: 14px;
    line-height: 1.18;
  }

  .product-body p,
  .product-specs,
  .product-actions .btn-secondary {
    display: none;
  }

  .product-actions {
    margin-top: 8px;
  }

  .product-actions .btn-primary {
    min-height: 36px;
    font-size: 11px;
    padding: 0 8px;
  }
}
