/*
Theme Name: TOK.SU — Промышленный каталог B2B
Theme URI: https://tok.su/
Author: ООО «Катрин» (TOK.SU)
Author URI: https://tok.su/
Description: Промышленная B2B-тема каталога комплектующих для электрощитов (Стёкла, Сальники, Заглушки, Изоляторы, Петли). Цветовая схема: Промышленный синий (#0052CC) + Холодный светло-серый (#F4F6F9). Полное управление товарами, характеристиками, фотогалереей, контактами и цветами из админки WordPress.
Version: 4.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: tok-su
*/

/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/optimized-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/optimized-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/optimized-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/optimized-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-5.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-6.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-7.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/optimized-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F4F6F9;
  --surface: #E8EEF5;
  --surface-strong: #DCE5F0;
  --white: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #DCE3ED;
  --accent: #0052CC;
  --accent-hover: #1D4ED8;
  --accent-soft: #EBF2FF;
  --priority-border: #93C5FD;
  --dark: #0F172A;
  --wa: #20b858;
  --wa-hover: #189947;
  --tg: #2496d4;
  --tg-hover: #1b7db3;
  --max-bg: #613cea;
  --max-hover: #4d2bc6;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: 'Manrope', 'Golos Text', sans-serif; letter-spacing: -0.025em; line-height: 1.2; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 32px;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 246, 249, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.brand-symbol {
  width: 28px;
  height: 30px;
  fill: var(--accent);
}

.wordmark {
  font-family: 'Manrope', 'Golos Text', sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.wordmark span {
  font-weight: 500;
  color: var(--accent);
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  line-height: 1.35;
  max-width: 220px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a {
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--accent);
  background: var(--surface);
}

/* Contacts & Messengers right in header */
.header-contacts-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.contact-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--accent);
}

.header-phone svg {
  color: var(--accent);
}

.contact-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.header-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.header-email:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-email svg {
  color: var(--accent);
}

.copy-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
}

.copy-icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

/* Messenger badges */
.messengers-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  border: 0;
  transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.messenger-btn:hover {
  transform: translateY(-1px);
}

.messenger-btn:active {
  transform: scale(0.97);
}

.messenger-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.messenger-btn.wa { background: var(--wa); }
.messenger-btn.wa:hover { background: var(--wa-hover); }

.messenger-btn.max {
  background: linear-gradient(135deg, #6b3df0 0%, #3b76f6 100%);
}
.messenger-btn.max:hover {
  background: linear-gradient(135deg, #582cd8 0%, #2962df 100%);
}

.messenger-btn.tg { background: var(--tg); }
.messenger-btn.tg:hover { background: var(--tg-hover); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s var(--ease);
  white-space: nowrap;
}

.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.98); }

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--surface);
}

.button.small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13.5px;
}

/* --- CATALOG SECTION (IMMEDIATE FIRST SCREEN) --- */
.catalog-section {
  padding-top: 24px;
  padding-bottom: 56px;
}

.catalog-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.catalog-title-wrap h1 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--ink);
}

.catalog-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}

.priority-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--priority-border);
  color: #0052CC;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Filter & Search Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--white);
  border-color: var(--line);
}

.filter-btn.is-priority-tab {
  background: rgba(0, 82, 204, 0.08);
  border-color: rgba(0, 82, 204, 0.25);
  color: #0052CC;
  font-weight: 600;
}

.filter-btn.is-priority-tab:hover {
  background: rgba(0, 82, 204, 0.14);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.filter-count {
  font-size: 11.5px;
  opacity: 0.75;
  font-weight: 400;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.18);
}

.search-box input {
  width: 100%;
  height: 38px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
}

.clear-search-btn {
  border: 0;
  background: var(--surface);
  color: var(--muted);
  border-radius: 5px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.clear-search-btn:hover {
  color: var(--ink);
  background: var(--line);
}

.catalog-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Product Grid — 4 columns on desktop so all 13 items fit compactly and neatly */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  position: relative;
}

.product-card.is-priority {
  border-color: var(--priority-border);
  box-shadow: 0 2px 12px rgba(0, 82, 204, 0.07);
}

.product-card:hover, .product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  border-color: var(--accent);
  outline: none;
}

.card-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
}

.card-badge.priority {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 82, 204, 0.25);
}

.photo-count-badge {
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
}

.product-image {
  height: 195px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}

.product-image.scale-fix img {
  transform: scale(1.32);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card:hover .product-image.scale-fix img {
  transform: scale(1.38);
}

.product-info {
  padding: 14px 16px 16px;
  background: var(--white);
  border-top: 1px solid #EEF2F7;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.28;
}

.product-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.spec-chip {
  font-size: 11.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--ink);
}

.spec-chip b {
  font-weight: 500;
  color: var(--muted);
}

.product-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.open-desc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.product-card:hover .open-desc-btn {
  text-decoration: underline;
}

.catalog-empty {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius);
}

.catalog-empty h3 {
  margin-bottom: 8px;
}

.catalog-empty p {
  color: var(--muted);
  margin: 0 auto 16px;
}

/* --- PRODUCT DETAIL MODAL --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modal-pop 0.22s var(--ease);
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.modal-breadcrumbs strong {
  color: var(--ink);
}

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

.modal-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s;
}

.modal-step-btn:hover {
  background: var(--surface-strong);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img-wrap {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 380px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.gallery-arrow:hover {
  background: var(--ink);
  color: var(--white);
}

.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
}

.modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-thumb-btn {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}

.modal-thumb-btn:hover {
  transform: translateY(-2px);
}

.modal-thumb-btn[aria-pressed="true"] {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.18);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
}

.modal-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.modal-specs {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 16px;
}

.modal-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.modal-specs div:last-child {
  border-bottom: 0;
}

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

.modal-specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Quick Order Box inside Modal */
.modal-order-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.modal-order-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.modal-order-inputs {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-order-inputs input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 0 11px;
  font-size: 13.5px;
}

.modal-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.modal-direct-messengers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* --- COMPACT PRODUCTION & REQUEST SECTION --- */
.info-strip {
  background: var(--dark);
  color: #f3f5ee;
  padding-block: 38px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
}

.info-card strong {
  display: block;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.55;
}

.request-section {
  padding-block: 52px;
  background: #EAF0F7;
  border-top: 1px solid var(--line);
}

.request-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.request-copy h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 12px;
}

.request-copy p {
  color: var(--muted);
  margin-bottom: 20px;
}

.request-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.request-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.request-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  background: var(--white);
}

.form-status {
  margin-top: 14px;
  padding: 14px;
  background: #EBF2FF; border: 1px solid var(--priority-border);
  border-radius: 8px;
  font-size: 13.5px;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: opacity 0.25s, transform 0.25s;
}

/* Responsive breakpoints */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .wrap { padding-inline: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-main-img-wrap { height: 300px; }
  .info-grid { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-nav { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 14px; }
  .header-inner { gap: 10px; }
  .header-contacts-bar { width: 100%; justify-content: space-between; }
  .contact-pill-group { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .product-grid { grid-template-columns: 1fr; }
  .field-row, .modal-order-inputs { grid-template-columns: 1fr; }
  .search-box { max-width: 100%; width: 100%; }
  .modal-backdrop { padding: 10px; }
  .modal-body { padding: 16px; }
}

/* v3.1.0: SEO links on cards, modal price pill & copy-link button */
.product-card-title-link {
  color: inherit;
  text-decoration: none;
}
.product-card-title-link:hover {
  color: var(--accent);
}
.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-price-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--priority-border);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
}
.modal-copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}
.modal-copy-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* v4.0.0: Dedicated Single Product Page (/produkciya/<slug>/) & Real Prices */
.product-card-link-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.price-tag-strong {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(0, 82, 204, 0.2);
}
.single-product-section {
  padding-top: 24px;
  padding-bottom: 52px;
}
.single-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.back-to-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 82, 204, 0.2);
  transition: background 0.2s, transform 0.15s;
}
.back-to-catalog-btn:hover {
  background: rgba(0, 82, 204, 0.14);
  transform: translateX(-2px);
}
.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.single-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.single-card-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.single-gallery-main {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 430px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.single-price-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
  z-index: 2;
}
.single-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.single-url-bar code {
  color: var(--ink);
  font-family: monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.other-products-section {
  padding-top: 12px;
  padding-bottom: 56px;
}
.other-products-section h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .single-card-box {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 24px;
  }
  .single-gallery-main {
    height: 320px;
  }
}
