/*!
 * LEOVODOTOK — layout & components
 * Works on top of uikit + uikit-theme.css
 */

/* ===== Topbar ===== */
.leovodotok-topbar {
  background: var(--uk-secondary, #4E5255);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 7px 0;
}
.leovodotok-topbar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.leovodotok-topbar a:hover { color: #fff; }
.leovodotok-topbar .leovodotok-phone {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* ===== Header ===== */
.leovodotok-header {
  background: #fff;
  border-bottom: 1px solid var(--uk-border, #e5e5e5);
  z-index: 100;
}
.leovodotok-header-inner {
  padding: 10px 0;
}
.leovodotok-logo .logo-text {
  font-family: 'Unbounded', 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--uk-heading, #2d3033);
  letter-spacing: -0.03em;
}
.leovodotok-logo .logo-text span {
  color: var(--uk-primary, #ea5b2a);
}
.leovodotok-logo img {
  /*max-height: 48px;*/
  width: auto;
}

.leovodotok-search {
  max-width: 520px;
  border: 2px solid var(--uk-primary, #ea5b2a);
  border-radius: var(--uk-radius, 10px);
  overflow: hidden;
}
.leovodotok-search .uk-search-input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 42px;
}

.leovodotok-cart-link {
  position: relative;
}
.leovodotok-cart-count {
  position: absolute;
  top: 6px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  padding: 0 5px;
}

/* ===== Header actions (Подбор / Сравнить / Избранное / Корзина / Войти) ===== */
.leovodotok-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.leovodotok-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  text-decoration: none !important;
  color: var(--uk-text-muted, #7a7e81);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  border-radius: var(--uk-radius-s, 6px);
  transition: color 0.15s, background 0.15s;
  min-width: 52px;
}
.leovodotok-act:hover {
  color: var(--uk-primary, #ea5b2a);
  background: var(--uk-primary-soft, #fff4f0);
}
.leovodotok-act-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.leovodotok-act-label {
  white-space: nowrap;
}
.leovodotok-act-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--uk-primary, #ea5b2a);
  color: #fff;
}
.leovodotok-act-badge:empty,
.leovodotok-act-badge[data-count="0"] {
  display: none;
}
.leovodotok-wishlist-count:empty,
.leovodotok-wishlist-count:literal-zero {
  display: none;
}
/* hide zero count */
.leovodotok-act-badge.leovodotok-wishlist-count:not([data-count]),
.leovodotok-cart-count:empty {
  display: none;
}
.leovodotok-act-wrap {
  position: relative;
}
@media (max-width: 959px) {
  .leovodotok-act:not(.leovodotok-act-keep):not(.uk-hidden\@m) {
    /* uk-visible@s handles tablet; on mobile keep cart + account + burger */
  }
  .leovodotok-act-label {
    display: none;
  }
  .leovodotok-act {
    min-width: 40px;
    padding: 8px;
  }
}

/* Nav row */
.leovodotok-navrow {
  border-top: 1px solid var(--uk-border, #e5e5e5);
  background: #fff;
}
.leovodotok-catbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--uk-primary, #ea5b2a);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 0 0 var(--uk-radius, 10px) var(--uk-radius, 10px);
  text-decoration: none !important;
  transition: background 0.15s;
}
.leovodotok-catbtn:hover {
  background: var(--uk-primary-hover, #d14a1f);
  color: #fff !important;
}
.leovodotok-mainnav > li > a {
  font-weight: 600;
  font-size: 14px;
  color: var(--uk-text, #4E5255) !important;
  padding: 14px 12px !important;
  border-bottom: 3px solid transparent;
}
.leovodotok-mainnav > li > a:hover,
.leovodotok-mainnav > li.uk-active > a {
  color: var(--uk-primary, #ea5b2a) !important;
  border-bottom-color: var(--uk-primary, #ea5b2a);
}

/* ===== Chips ===== */
.leovodotok-chips {
  background: var(--uk-bg, #fafafa);
  border-bottom: 1px solid var(--uk-border, #e5e5e5);
  padding: 10px 0;
  overflow-x: auto;
}
.leovodotok-chips .uk-container {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.leovodotok-chip {
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--uk-border, #e5e5e5);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--uk-text, #4E5255);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.leovodotok-chip:hover {
  border-color: var(--uk-primary, #ea5b2a);
  color: var(--uk-primary, #ea5b2a);
}

/* ===== Hero ===== */
.leovodotok-hero {
  background: linear-gradient(160deg, #2d3033 0%, #4E5255 50%, #5a5f63 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.leovodotok-hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 0 12px;
}
.leovodotok-hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 600px;
}

.leovodotok-selector {
  background: #fff;
  border-radius: var(--uk-radius-l, 14px);
  padding: 22px;
  color: var(--uk-text, #4E5255);
  max-width: 980px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.2);
}
.leovodotok-selector .uk-form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--uk-text-muted, #7a7e81);
}

.leovodotok-usp {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.leovodotok-usp span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Product card ===== */
.leovodotok-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--uk-radius-l, 14px);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.leovodotok-product-card .uk-card-media-top {
  height: 180px;
  background: var(--uk-bg, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.leovodotok-product-card .uk-card-media-top img {
  object-fit: contain;
  max-height: 100%;
  width: auto;
}
.leovodotok-product-placeholder {
  height: 180px;
  color: var(--uk-text-muted, #7a7e81);
}
.leovodotok-product-card .uk-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category tile */
.leovodotok-cat-tile {
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--uk-radius-l, 14px);
  overflow: hidden;
}
.leovodotok-cat-img {
  height: 100px;
  background: var(--uk-bg, #fafafa);
}

/* Brand cards */
.leovodotok-brand-leo {
  background: linear-gradient(135deg, #0369a1, #0c4a6e);
  color: #fff;
  border-radius: var(--uk-radius-l, 14px);
  padding: 28px;
}
.leovodotok-brand-vodotok {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff;
  border-radius: var(--uk-radius-l, 14px);
  padding: 28px;
}
.leovodotok-brand-leo a,
.leovodotok-brand-vodotok a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* Section helpers */
.leovodotok-section {
  padding: 48px 0;
}
.leovodotok-section-alt {
  background: #fff;
}
.leovodotok-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--uk-heading, #2d3033);
}

/* Trust / dealer */
.leovodotok-dealer {
  background: #fff;
  border: 1px solid var(--uk-border, #e5e5e5);
  border-radius: var(--uk-radius-l, 14px);
  padding: 24px;
}

/* FAQ */
.leovodotok-faq .uk-accordion-title {
  font-size: 15px;
}

/* SEO text accordion */
.leovodotok-seo-text {
  background: #fff;
  border: 1px solid var(--uk-border, #e5e5e5);
  border-radius: var(--uk-radius, 10px);
  padding: 0 22px;
}
.leovodotok-seo-text summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
  font-family: 'Unbounded', sans-serif;
}
.leovodotok-seo-text .txt {
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--uk-text-muted, #7a7e81);
  line-height: 1.65;
}

/* Calculator */
.leovodotok-calc {
  background: #fff;
  border: 1px solid var(--uk-border, #e5e5e5);
  border-radius: var(--uk-radius-l, 14px);
  padding: 22px;
}
.leovodotok-calc-out {
  background: var(--uk-bg, #fafafa);
  border: 1.5px dashed var(--uk-primary, #ea5b2a);
  border-radius: var(--uk-radius, 10px);
  padding: 18px;
}
.leovodotok-calc-out .n {
  font-size: 2rem;
  font-weight: 800;
  color: var(--uk-primary, #ea5b2a);
  font-family: 'Unbounded', sans-serif;
}

/* Query chips */
.leovodotok-qchips a {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--uk-border, #e5e5e5);
  border-radius: var(--uk-radius-s, 6px);
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--uk-text, #4E5255);
  text-decoration: none;
  margin: 0 6px 8px 0;
  transition: border-color 0.15s, color 0.15s;
}
.leovodotok-qchips a:hover {
  border-color: var(--uk-primary, #ea5b2a);
  color: var(--uk-primary, #ea5b2a);
}

/* Footer */
.leovodotok-footer {
  background: var(--uk-heading, #2d3033);
  color: #b9c6d3;
  padding: 48px 0 0;
  font-size: 14px;
}
.leovodotok-footer h4 {
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.leovodotok-footer a {
  color: #b9c6d3;
  text-decoration: none;
  display: block;
  padding: 3px 0;
}
.leovodotok-footer a:hover { color: #fff; }
.leovodotok-footer-phone {
  font-size: 18px !important;
  color: #fff !important;
  font-weight: 700;
}
.leovodotok-footer-pay {
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid #3a4048;
  font-size: 13px;
  color: #8fa1b3;
}
.leovodotok-footer-legal {
  padding: 16px 0 28px;
  border-top: 1px solid #3a4048;
  font-size: 12px;
  color: #8fa1b3;
  line-height: 1.7;
}
.leovodotok-footer-legal a {
  display: inline;
  color: #8fa1b3;
  text-decoration: underline;
}

/* Single product tweaks */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--uk-primary, #ea5b2a);
}
.woocommerce span.onsale {
  background: var(--uk-primary, #ea5b2a) !important;
  border-radius: var(--uk-radius-s, 6px) !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.leovodotok-breadcrumb {
  font-size: 13px;
  color: var(--uk-text-muted, #7a7e81);
  margin-bottom: 16px;
}
.woocommerce-breadcrumb a {
  color: var(--uk-text-muted, #7a7e81);
}
.woocommerce-breadcrumb a:hover {
  color: var(--uk-primary, #ea5b2a);
}

/* Page content */
.leovodotok-page-content {
  padding: 40px 0 60px;
}
.leovodotok-page-content .entry-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .leovodotok-hero h1 { font-size: 1.5rem; }
  .leovodotok-section { padding: 36px 0; }
}
@media (max-width: 640px) {
  .leovodotok-topbar .uk-visible\@s { display: none !important; }
  .leovodotok-section { padding: 28px 0; }
  .leovodotok-section h2 { font-size: 1.25rem; }
}