@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --bg: #F6F3EF;
  --white: #FFFFFF;
  --surface-soft: #FAF7F3;
  --primary: #3E2318;
  --primary-dark: #28150E;
  --primary-light: #5D3525;
  --caramel: #A96428;
  --crimson: #C20E14;
  --accent-green: #00A651;
  --accent-green-hover: #008C44;
  --cta-green: #27AE60;
  --cta-green-hover: #219653;
  --stock-green: #10B981;
  --sale-red: #DC2626;
  --amber: #F59E0B;
  --text: #2B211D;
  --text-light: #63554E;
  --text-muted: #93847D;
  --border: #E5DDD5;
  --border-light: #F1EAE3;
  --footer-bg: #1E130E;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(40, 21, 14, 0.05);
  --shadow-md: 0 4px 14px rgba(40, 21, 14, 0.08);
  --shadow-hover: 0 12px 26px -4px rgba(40, 21, 14, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOP UTILITY BAR */
.top-bar {
  background: #EFE9E2;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-links a:hover { color: var(--crimson); }
.top-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}
.top-callback {
  background: none;
  border: none;
  color: var(--crimson);
  border-bottom: 1px dashed var(--crimson);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
}
.top-tg-link {
  color: #0088CC;
  font-weight: 600;
}
.lang-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 600;
  font-size: 11px;
}

/* MAIN HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(40, 21, 14, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { height: 44px; width: auto; }
.brand-text-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: #1A1A1A;
}
.brand-text-title span { color: var(--crimson); }
.brand-text-slogan {
  font-size: 11px;
  font-weight: 600;
  color: var(--crimson);
  margin-top: 2px;
}

.mobile-catalog-btn {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.search-wrap {
  flex: 1;
  position: relative;
}
.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  min-width: 0;
}
.search-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.search-form button:hover { background: var(--primary-dark); }
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  z-index: 200;
  overflow: hidden;
}
.search-dropdown.open { display: block; }
.search-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-light);
}
.search-dd-item:hover { background: var(--surface-soft); }
.search-dd-item img { width: 42px; height: 42px; object-fit: contain; background: #FAF7F3; border-radius: 6px; padding: 3px; }
.search-dd-title { font-size: 13px; font-weight: 500; color: var(--text); }
.search-dd-price { font-size: 13px; font-weight: 800; color: var(--primary); white-space: nowrap; margin-left: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hdr-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-light);
  transition: background 0.15s, color 0.15s;
}
.hdr-action:hover { background: var(--surface-soft); color: var(--primary); }
.hdr-action .ico { font-size: 20px; line-height: 1.1; }
.hdr-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--crimson);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.hdr-badge.blue { background: var(--primary); }
.hdr-badge.empty { display: none; }

/* HERO SECTION */
.hero {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: stretch;
}
.cat-sidebar {
  width: 265px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-sidebar-head {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sidebar-list { list-style: none; }
.cat-sidebar-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.cat-sidebar-list li:last-child a { border-bottom: none; }
.cat-sidebar-list li a:hover {
  background: var(--surface-soft);
  color: var(--crimson);
  padding-left: 20px;
}
.cat-sidebar-list .cat-ico { font-size: 17px; width: 22px; text-align: center; }

.hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 270px;
  background: linear-gradient(135deg, #28150E 0%, #4E2A1E 52%, #7D3F20 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.hero-slide {
  display: none;
  padding: 34px 42px;
  min-height: 270px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-slide.active { display: flex; }
.hero-slide.slide-2 {
  background: linear-gradient(135deg, #1E130E 0%, #5B1914 55%, #9B2219 100%);
}
.hero-slide.slide-3 {
  background: linear-gradient(135deg, #221610 0%, #3E2723 50%, #244F39 100%);
}
.hero-content { max-width: 600px; }
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFE4C4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.hero-slide h1, .hero-slide h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 10px;
}
.hero-slide p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green);
  color: var(--white);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s, transform 0.15s;
}
.btn-hero-green:hover { background: var(--accent-green-hover); transform: translateY(-1px); }
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.24); }
.hero-visual {
  flex-shrink: 0;
  width: 175px;
  height: 175px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
}
.hero-visual img { height: 110px; width: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); }
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-nav-btn:hover { background: rgba(0,0,0,0.55); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.hero-dot.active { background: var(--white); width: 22px; border-radius: 99px; }

/* 5 PROMO TILES */
.promo-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.promo-tile {
  position: relative;
  border-radius: var(--radius);
  padding: 14px 12px;
  color: var(--white);
  overflow: hidden;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s, box-shadow 0.18s;
}
.promo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-tile-ico {
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 32px;
  opacity: 0.22;
}
.promo-tile-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.promo-tile-price {
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* SECTION HEADERS & GRIDS */
.section { margin-top: 32px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}
.section-more {
  color: var(--crimson);
  font-weight: 700;
  font-size: 13.5px;
}
.section-more:hover { text-decoration: underline; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.products-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products-grid.list-view { grid-template-columns: minmax(0, 1fr); }

/* PRODUCT CARD (You-Smart high-conversion style in Mindak Pisti palette) */
.product-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  position: relative;
  height: 195px;
  background: #FCFBF9;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img-wrap img {
  max-height: 165px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--white);
  width: fit-content;
}
.badge-stock { background: var(--stock-green); }
.badge-to { background: var(--primary); }
.badge-top { background: var(--amber); color: #1E130E; }
.badge-reserved { background: #D97706; }
.badge-sold { background: #64748B; }
.badge-sale { background: var(--crimson); }

.card-hover-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.card-ico-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.card-ico-btn:hover, .card-ico-btn.active {
  background: #FFF1F2;
  border-color: var(--crimson);
}

.card-body {
  border-top: 1px solid var(--border-light);
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 6px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stock-green);
}
.status-dot.reserved { color: #B45309; }
.status-dot.reserved::before { background: #F59E0B; }
.status-dot.out { color: #64748B; }
.status-dot.out::before { background: #EF4444; }
.card-sku { color: var(--text-muted); }

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.card-title:hover { color: var(--crimson); }

.card-machine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.m-pill {
  font-size: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

.card-rating {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 8px;
}
.card-rating span { color: var(--text-light); font-weight: 600; margin-left: 3px; }

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}
.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.1;
}
.price-now {
  font-size: 19px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.15;
}
.price-now.sale { color: var(--sale-red); }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}
.qty-stepper button {
  width: 24px;
  height: 26px;
  border: none;
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}
.qty-stepper input {
  width: 28px;
  height: 26px;
  border: none;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.card-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-buy {
  width: 100%;
  background: var(--cta-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-buy:hover { background: var(--cta-green-hover); }
.btn-buy.disabled {
  background: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
}
.btn-oneclick {
  width: 100%;
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-oneclick:hover { background: var(--primary); color: var(--white); }

/* ADVANTAGES ROW */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.adv-ico { font-size: 34px; margin-bottom: 8px; }
.adv-title { font-size: 15px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.adv-desc { font-size: 12.5px; color: var(--text-light); }

/* CATALOG LAYOUT */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light);
  margin: 16px 0 14px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--crimson); }

.catalog-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.catalog-layout > *, .pdp-grid > *, .checkout-grid > * {
  min-width: 0;
  max-width: 100%;
}
.filters-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.filters-head h3 { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.filters-reset { color: var(--crimson); font-size: 12px; font-weight: 700; }
.filter-group {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group-title { font-size: 13.5px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 6px;
}
.filter-list a:hover, .filter-list a.active {
  background: var(--surface-soft);
  color: var(--crimson);
  font-weight: 700;
}
.filter-cnt { color: var(--text-muted); font-size: 11.5px; }
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.price-inputs input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
}
.btn-primary-full {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-primary-full:hover { background: var(--primary-dark); }

.catalog-toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toolbar-sort select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--white);
}
.catalog-h1 { font-size: 24px; font-weight: 900; color: var(--primary-dark); margin-bottom: 12px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
}

/* PRODUCT DETAIL PAGE */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.pdp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.pdp-main-img {
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FCFBF9;
  border-radius: 10px;
  padding: 16px;
  cursor: zoom-in;
}
.pdp-main-img img { max-height: 350px; object-fit: contain; }
.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.pdp-thumb {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img { max-height: 58px; object-fit: contain; }

.pdp-h1 { font-size: 24px; font-weight: 900; color: var(--primary-dark); line-height: 1.25; margin-bottom: 10px; }
.pdp-submeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.sku-pill { background: var(--surface-soft); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; font-weight: 600; }

.pdp-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.pdp-price-now { font-size: 30px; font-weight: 900; color: var(--primary-dark); }
.pdp-price-old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }

.machine-to-box {
  background: #FAF5EE;
  border: 1px solid #E5D4C0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.machine-to-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.machine-to-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.to-stat {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
}
.to-stat-lbl { font-size: 11px; color: var(--text-muted); }
.to-stat-val { font-size: 13.5px; font-weight: 800; color: var(--primary-dark); }
.to-checklist { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.to-checklist li::before { content: "✅ "; }

.tg-consult-box {
  background: #EFF8FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.tg-consult-btn {
  background: #0088CC;
  color: var(--white);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 12.5px;
}

.pdp-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pdp-tab-btn {
  background: none;
  border: none;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.pdp-tab-btn.active { color: var(--crimson); border-bottom-color: var(--crimson); }
.pdp-tab-panel { display: none; }
.pdp-tab-panel.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table td { padding: 9px 6px; font-size: 13.5px; }
.specs-table td:first-child { color: var(--text-light); width: 45%; }
.specs-table td:last-child { font-weight: 600; color: var(--text); }

/* CHECKOUT / CART */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 22px;
  align-items: start;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: var(--primary-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-soft);
}
.city-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.city-pill {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.city-pill:hover { border-color: var(--primary); color: var(--crimson); }

.summary-sticky {
  position: sticky;
  top: 84px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.upsell-box {
  background: #FFFBEB;
  border: 1.5px dashed #F59E0B;
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  margin-top: 48px;
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h4 { color: var(--white); font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 18px;
}

/* MODALS & TOAST */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* HEADER MOBILE CONTROLS & DRAWER & BOTTOM NAV */
.header-left-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0 9px;
  cursor: pointer;
}
.mobile-menu-trigger span {
  display: block;
  height: 2.2px;
  background: var(--primary-dark);
  border-radius: 2px;
}
.mobile-only-action { display: none; }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
  backdrop-filter: blur(2px);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25);
}
.mobile-drawer-backdrop.open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-head {
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-close {
  background: rgba(255,255,255,0.14);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 28px;
}
.mobile-drawer-contacts {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.mdc-phone {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-dark);
}
.mdc-btn-call {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mdc-btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0088CC;
  color: #fff;
  border-radius: 7px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
}
.mobile-drawer-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 14px 4px 6px;
}
.mobile-drawer-list { list-style: none; }
.mobile-drawer-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.mobile-drawer-list li a:active, .mobile-drawer-list li a:hover {
  background: var(--surface-soft);
  color: var(--crimson);
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(40, 21, 14, 0.08);
  z-index: 400;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mbn-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
}
.mbn-item.active { color: var(--crimson); font-weight: 800; }
.mbn-ico { font-size: 19px; line-height: 1.1; }
.mbn-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  background: var(--crimson);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mbn-badge.empty { display: none; }

.mobile-filters-toggle {
  display: none;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1150px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .products-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .top-bar { display: none; }
  .cat-sidebar { display: none; }
  .mobile-menu-trigger { display: flex; }
  .desktop-only-action { display: none; }
  .mobile-only-action { display: flex; }
  .mobile-bottom-nav { display: grid; }
  body { padding-bottom: 66px; }
  .toast { bottom: 74px; right: 12px; left: 12px; text-align: center; }

  .products-grid, .products-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout, .pdp-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-filters-toggle { display: flex; }
  .filters-card { display: none; }
  .filters-card.open { display: block; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { padding: 0 12px; width: 100%; max-width: 100%; }
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 10px;
  }
  .header-left-mobile { min-width: 0; flex: 1; }
  .brand-logo { min-width: 0; }
  .brand-mark { width: 30px; height: 36px; }
  .brand-mark img { height: 35px; }
  .brand-text-title { font-size: 18px; }
  .brand-text-slogan { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 2px; }
  .hdr-action { padding: 5px 8px; }
  .hdr-action .ico { font-size: 21px; }
  .hdr-action span.lbl { display: none; }
  .search-wrap { order: 3; flex: 1 0 100%; max-width: 100%; }
  .search-form { border-radius: 10px; border-width: 1.5px; width: 100%; }
  .search-form input { padding: 9px 12px; font-size: 14px; }
  .search-form button { padding: 0 14px; }

  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .toolbar-sort { width: 100%; justify-content: space-between; }
  .toolbar-sort select { flex: 1; min-width: 0; max-width: 100%; }

  .hero { margin-top: 12px; width: 100%; }
  .hero-main { width: 100%; max-width: 100%; }
  .hero-slider { min-height: 215px; border-radius: 12px; width: 100%; }
  .hero-slide { padding: 20px 16px 34px; min-height: 215px; flex-direction: column; align-items: flex-start; }
  .hero-visual { display: none; }
  .hero-tag { font-size: 9.5px; padding: 3px 9px; margin-bottom: 8px; }
  .hero-slide h1, .hero-slide h2 { font-size: 20px; line-height: 1.22; margin-bottom: 8px; }
  .hero-slide p { font-size: 13px; margin-bottom: 14px; line-height: 1.42; }
  .hero-cta-row { width: 100%; gap: 8px; }
  .btn-hero-green, .btn-hero-ghost { padding: 9px 10px; font-size: 12.5px; flex: 1; min-width: 0; justify-content: center; text-align: center; }
  .hero-nav-btn { display: none; }

  /* Horizontal swipeable promo tiles on phone */
  .promo-tiles {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 9px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .promo-tiles::-webkit-scrollbar { display: none; }
  .promo-tile {
    min-width: 142px;
    flex: 0 0 142px;
    min-height: 74px;
    padding: 11px 10px;
    scroll-snap-align: start;
  }
  .promo-tile-name { font-size: 12px; }
  .promo-tile-price { font-size: 11px; }

  .section { margin-top: 22px; }
  .section-head h2 { font-size: 17px; }
  .section-more { font-size: 12px; white-space: nowrap; }

  /* Crisp 2-column mobile product cards */
  .products-grid, .products-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-img-wrap { height: 142px; padding: 10px; }
  .card-img-wrap img { max-height: 122px; }
  .card-badges { top: 7px; left: 7px; gap: 3px; }
  .badge { font-size: 9px; padding: 2px 6px; }
  .card-hover-actions { top: 7px; right: 7px; gap: 4px; }
  .card-ico-btn { width: 28px; height: 28px; font-size: 12px; }
  .card-body { padding: 9px 9px 10px; }
  .card-meta { font-size: 10px; margin-bottom: 4px; }
  .card-sku { display: none; }
  .card-title { font-size: 12.5px; min-height: 34px; margin-bottom: 5px; }
  .card-machine-pills { gap: 4px; margin-bottom: 6px; }
  .m-pill { font-size: 10px; padding: 1px 5px; }
  .card-rating { font-size: 11px; margin-bottom: 6px; }
  .card-price-row { margin-bottom: 8px; }
  .card-price-row .qty-stepper { display: none; }
  .price-now { font-size: 16.5px; }
  .price-old { font-size: 11px; }
  .btn-buy { padding: 8px 6px; font-size: 12.5px; }
  .btn-oneclick { padding: 6px 6px; font-size: 11.5px; }

  .advantages { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }
  .adv-card { padding: 14px 10px; }
  .adv-ico { font-size: 26px; margin-bottom: 6px; }
  .adv-title { font-size: 13px; }
  .adv-desc { font-size: 11.5px; }

  /* PDP mobile polish */
  .pdp-card { padding: 14px; }
  .pdp-main-img { height: 260px; padding: 10px; }
  .pdp-main-img img { max-height: 236px; }
  .pdp-h1 { font-size: 19px; }
  .pdp-price-now { font-size: 24px; }
  .machine-to-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .to-stat { padding: 7px 6px; }
  .to-stat-val { font-size: 12px; }
  .pdp-tabs-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pdp-tab-btn { white-space: nowrap; padding: 9px 10px; font-size: 12.5px; }
  .tg-consult-box { flex-direction: column; align-items: stretch; text-align: center; }

  .form-row-2, .radio-cards { grid-template-columns: 1fr; }
  .footer { padding: 28px 0 20px; margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
