:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a2b3c;
  --muted: #5c6f82;
  --accent: #1a7f8c;
  --accent-hover: #146a75;
  --accent-soft: #e6f4f6;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(26, 43, 60, 0.08);
  --shadow-sm: 0 2px 12px rgba(26, 43, 60, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body > main,
body > .static-page {
  flex: 1 0 auto;
}

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

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

button,
input,
select {
  font: inherit;
}

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

/* Header */
.site-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.82;
}

.logo__mark {
  display: block;
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo__wordmark {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.42em;
  line-height: 1;
}

.logo__brand {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #1a2b3c;
}

.logo__tag {
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #5c6f82;
}

.logo__text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3d5a73;
  line-height: 1;
  white-space: nowrap;
}

.logo--lg .logo__mark {
  width: 52px;
  height: 52px;
}

.logo--lg .logo__name,
.logo--lg .logo__suffix {
  font-size: 1.75rem;
}

.logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
}

.search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 127, 140, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

.cart-btn {
  position: relative;
}

.cart-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e85d4c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 40px 0 24px;
}

.hero__card {
  background: linear-gradient(135deg, #1a7f8c 0%, #2a9daf 50%, #3eb8c9 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease;
}

.hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

.hero__text {
  margin: 0 0 20px;
  opacity: 0.92;
  max-width: 560px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease 0.1s both;
}

.toolbar label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.toolbar__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

#category-chips,
.category-chips {
  display: none !important;
}

.category-chips_section,
.category-chips_sub {
  display: none !important;
}

.chip_section,
.chip_sub {
  display: none !important;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Grid */
.catalog {
  padding-bottom: 60px;
}

.catalog__title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

.category-chips {
  margin-bottom: 24px;
}

.category-chips .chip {
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.45s ease both;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__img {
  aspect-ratio: 1;
  background: #f0f4f8;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

.product-card__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.breadcrumbs[hidden] { display: none !important; }

.category-chips.category-chips_main {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: none;
}

.category-chips.category-chips_main::-webkit-scrollbar {
  display: none;
  height: 0;
}

#category-chips .chip:empty {
  display: none !important;
}

.product-card__tag {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  min-height: 1.5rem;
}

.product-card__price--request {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: stretch;
}

.product-grid--featured .product-card {
  min-height: 0;
}

.product-card--featured .product-card__body {
  min-height: 168px;
}

.product-card--featured .product-card__name {
  -webkit-line-clamp: 3;
}

.product-card__purchase {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.card-line-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  min-height: 1.25rem;
}

.card-line-total--request {
  color: var(--muted);
  font-weight: 600;
}

.card-in-cart {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.card-in-cart__open {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font: inherit;
}

.product-card--featured .product-card__actions .btn {
  flex: 1;
  min-width: 0;
}

.card-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  flex-shrink: 0;
}

.card-qty__btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.card-qty__input {
  width: 52px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  -moz-appearance: textfield;
}

.card-qty__input::-webkit-outer-spin-button,
.card-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn.is-in-cart {
  background: var(--accent-2, #0d6b4a);
}

.cart-btn--pulse {
  animation: cart-pulse 0.4s ease;
}

@keyframes cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.cart-loading {
  color: var(--muted);
  padding: 12px 0;
}

.product-detail__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.product-detail__line-total {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}

.product-detail__qty-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-qty input {
  width: 56px;
  text-align: center;
}

.product-card__actions .btn {
  flex: 1;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 2;
}

.modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.modal__img {
  background: #f0f4f8;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__img img {
  max-height: 360px;
  object-fit: contain;
}

.modal__info {
  padding: 28px 28px 28px 8px;
}

.modal__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  padding-right: 40px;
}

.modal__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--surface);
  z-index: 160;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-drawer__count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.cart-drawer__close {
  border: none;
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cart-drawer__items {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  padding: 14px 16px 18px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.cart-summary__row--total {
  font-size: 1.05rem;
  color: var(--text);
  margin: 10px 0 4px;
}

.cart-summary__row--total strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.cart-summary__note {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-drawer__actions .btn--sm {
  font-size: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  gap: 10px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item__thumb {
  grid-row: 1 / span 2;
  display: block;
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.cart-item__main {
  min-width: 0;
}

.cart-item__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__name:hover {
  color: var(--accent);
}

.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-item__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.cart-item__subtotal {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-item__unit {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.qty button:hover {
  background: var(--border);
}

.qty__value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item__remove {
  grid-column: 3;
  grid-row: 1;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: #c0392b;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.cart-item__remove:hover {
  background: #fdecea;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  line-height: 1.6;
}

.cart-empty a {
  color: var(--accent);
}

.cart-loading {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.checkout-modal {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-modal__sum {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkout-modal__sum strong {
  color: var(--accent);
  font-size: 1.15rem;
}

#checkout-overlay {
  z-index: 170;
}

#checkout-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #1a2b3c;
  color: #b8c5d3;
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #7ec8d4;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__tagline {
  margin: 4px 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.bc-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.bc-sep {
  opacity: 0.5;
}

.bc-current {
  color: var(--text);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 20px;
}

.pagination__info {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.product-card__sku {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

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

.product-card__name a:hover {
  color: var(--accent);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.order-form input,
.order-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.order-form__title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.modal--sm {
  max-width: 420px;
  padding: 28px 24px;
  position: relative;
}

.modal__crumb,
.modal__sku,
.modal__brand {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.static-page {
  padding: 32px 0 48px;
  max-width: 900px;
}

.static-page h1 {
  margin: 0 0 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card--wide {
  grid-column: 1 / -1;
}

.info-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.info-card .muted,
.prose .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.prose h2 {
  margin: 24px 0 8px;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 12px;
}

.product-page {
  padding: 24px 0 48px;
}

.product-page__loading {
  padding: 48px;
  text-align: center;
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-detail__img img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-detail__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.product-detail__tag {
  color: var(--accent);
  font-size: 0.875rem;
  margin: 0 0 8px;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}

.product-detail__desc {
  color: var(--muted);
  line-height: 1.6;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.product-detail__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__meta a {
  color: inherit;
  text-decoration: underline;
}

.toolbar--filters {
  margin-bottom: 8px;
  gap: 12px;
}

.toolbar--filters label {
  font-size: 0.85rem;
  color: var(--muted);
}

.toolbar--filters select {
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.product-card {
  position: relative;
}

.product-card__tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.icon-btn {
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.icon-btn.is-active {
  color: var(--accent);
}

.compare-bar[hidden] {
  display: none !important;
}

.compare-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 40;
}

.compare-table-wrap {
  overflow-x: auto;
  max-width: 90vw;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: none;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: var(--accent);
}

.product-gallery__thumb-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.product-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}

.product-tabs__tab {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.product-tabs__tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel.is-active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th {
  text-align: left;
  color: var(--muted);
  padding: 6px 12px 6px 0;
  width: 40%;
}

.pdf-list {
  padding-left: 20px;
}

.similar {
  margin-top: 40px;
  padding-top: 8px;
}

.similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.similar__title {
  margin: 0;
  font-size: 1.35rem;
}

.similar__nav {
  display: flex;
  gap: 8px;
}

.similar__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.similar__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.similar-carousel {
  overflow: hidden;
}

.similar-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.similar-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.similar-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.similar-card__img {
  display: block;
  aspect-ratio: 1;
  background: #fff;
  padding: 12px;
}

.similar-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.similar-card__name {
  display: block;
  padding: 10px 12px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.similar-card__name:hover {
  color: var(--accent);
}

.similar-card__price {
  margin: 0;
  padding: 0 12px 12px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 768px) {
  .toolbar--filters {
    flex-direction: column;
    align-items: stretch;
  }
  .product-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .header-actions .btn--ghost:not(.cart-btn) {
    display: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal__inner {
    grid-template-columns: 1fr;
  }
  .modal__info {
    padding: 20px 24px 28px;
  }
}

@media (max-width: 768px) {
  .search {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero__card {
    padding: 28px 22px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar__count {
    margin-left: 0;
  }
  .mobile-nav .search-mobile {
    display: block;
    margin-bottom: 8px;
  }
  .mobile-nav .search-mobile input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
}

@media (min-width: 769px) {
  .search-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rekvizity-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rekvizity-brand img {
  height: 56px;
  width: auto;
  max-width: min(100%, 320px);
}

.rekvizity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.rekvizity-table th,
.rekvizity-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.rekvizity-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}

.trust { padding: 32px 0; background: var(--surface); border-block: 1px solid var(--border); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.trust__item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.trust__item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.section-title { margin: 0 0 16px; font-size: 1.35rem; }
.home-categories, .partners { padding: 28px 0; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.category-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.category-tile:hover { border-color: var(--accent); }
.category-tile__count { font-size: 0.85rem; color: var(--muted); }
.partners__note { color: var(--muted); margin: 0; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.catalog-nav { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; max-height: 70vh; overflow: auto; }
.category-seo { margin-bottom: 16px; }
.category-seo__inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.category-seo__title { margin: 0 0 12px; font-size: 1.15rem; color: var(--accent); }
.category-seo__inner h3 { margin: 14px 0 8px; font-size: 1rem; }
.category-seo__inner p { margin: 0 0 10px; }
.category-seo__inner a { color: var(--accent); }
.catalog-nav__head { width: 100%; text-align: left; background: none; border: none; font-weight: 600; padding: 8px 6px; cursor: pointer; color: inherit; }
.catalog-nav__subhead { width: 100%; text-align: left; background: none; border: none; font-weight: 600; font-size: 0.82rem; padding: 8px 6px 4px; cursor: pointer; color: var(--muted); }
.catalog-nav__subhead.is-active, .catalog-nav__subhead:hover { color: var(--accent); }
.catalog-nav__subsection { margin-bottom: 4px; }
.catalog-nav__head.is-active { color: var(--accent); }
.catalog-nav__list { list-style: none; margin: 0 0 8px; padding: 0 0 0 8px; }
.catalog-nav__link { background: none; border: none; padding: 4px 6px; cursor: pointer; color: var(--muted); font-size: 0.9rem; text-align: left; }
.catalog-nav__link.is-active, .catalog-nav__link:hover { color: var(--accent); }
.search--with-suggest { position: relative; }
.search-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.search-suggest a { display: block; padding: 8px 12px; text-decoration: none; color: inherit; font-size: 0.9rem; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px 16px; background: #1a2332; color: #fff; }
.cookie-banner[hidden] { display: none !important; }
.call-bar { display: none; position: fixed; bottom: 16px; right: 16px; z-index: 80; padding: 12px 18px; background: var(--accent); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-nav { display: none; }
  .call-bar { display: inline-flex; }
}
.shop-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #1a2332; color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 95; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.shop-toast.is-visible { opacity: 1; }
.order-form__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 8px 0; }
.hero__wa, .hero__tg, .hero__max { font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.contact-links a { font-weight: 600; }
.max-phone-card { text-align: center; margin: 1.5rem 0; }
.max-phone-card__label { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.max-phone-card__phone { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.02em; }
.max-phone-card__intl { margin: 4px 0 16px; color: var(--muted); }
.max-phone-card__alt { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.product-grid.is-loading { opacity: 0.55; pointer-events: none; }
