/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #00a651;
  --primary-dark: #008a43;
  --dark: #1a2332;
  --dark-2: #232f42;
  --gray: #6b7280;
  --light-gray: #f4f6f9;
  --border: #e5e7eb;
  --white: #ffffff;
  --accent: #ff6b35;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --max-width: 1240px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-size: 15px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--light-gray); }

.section { padding: 70px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--dark);
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 45px;
  font-size: 17px;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cbd5e1; transition: color .2s; }
.topbar a:hover { color: var(--primary); }
.topbar .phone { font-weight: 800; color: #fff; font-size: 18px; }
.topbar .socials { display: flex; gap: 14px; }

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
.logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 22px;
}
.logo span { color: var(--primary); }
.logo img { height: 165px; width: auto; display: block; }
/* Лого на тъмен фон (admin sidebar) — бяла подложка, защото PNG има бял фон */
.admin-logo img {
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
/* Footer логото — специална прозрачна версия, направо на тъмния фон, без подложка */
.footer .logo img { height: 143px; background: none; padding: 0; }

.search-box {
  flex: 1;
  display: flex;
  max-width: 720px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Autocomplete търсене */
.search-wrap { position: relative; flex: 1 1 auto; max-width: 720px; display: flex; width: 100%; }
.search-wrap .search-box { flex: 1; max-width: 100%; width: 100%; }
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 1000;
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
}
.search-suggest-item:hover, .search-suggest-item.active { background: #f4f8f6; }
.search-suggest-item .ss-img {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f7f7f7; border-radius: 8px; overflow: hidden;
}
.search-suggest-item .ss-img img { width: 100%; height: 100%; object-fit: contain; }
.search-suggest-item .ss-emoji { font-size: 22px; }
.search-suggest-item .ss-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-suggest-item .ss-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-item .ss-cat { font-size: 12px; color: var(--gray); }
.search-suggest-item .ss-price { font-weight: 700; color: var(--primary); white-space: nowrap; font-size: 14px; }
.search-suggest-all {
  display: block; padding: 12px 14px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; background: #fafafa;
}
.search-suggest-all:hover, .search-suggest-all.active { background: #eef5f1; }
.search-suggest-empty { padding: 16px; text-align: center; color: var(--gray); font-size: 14px; }
.search-box input {
  flex: 1;
  border: none;
  padding: 11px 16px;
  font-size: 15px;
  outline: none;
}
.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.header-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  position: relative;
}
.header-icon .icon { font-size: 22px; }
.cart-count {
  position: absolute;
  top: -8px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0 4px;
}

/* ===== Nav ===== */
.nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
}
.nav a:hover, .nav a.active { background: rgba(0,0,0,0.15); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--dark);
}

/* ===== Hero ===== */
/* ===== Hero слайдер ===== */
.hero-slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--dark);
}
.slides { height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,32,0.88) 0%, rgba(15,23,32,0.6) 45%, rgba(15,23,32,0.15) 100%);
}
.slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 640px;
  animation: slideUp .8s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-content h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.slide-content h1 span { color: var(--primary); }
.slide-content p {
  font-size: 19px;
  color: #e5e7eb;
  margin-bottom: 28px;
  max-width: 520px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slide-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.slide-btns .btn { padding: 14px 32px; font-size: 16px; }

/* Брандиран слайд с прозрачно изображение */
.slide-branded {
  background: linear-gradient(120deg, #0f1720 0%, #16241c 55%, #0c3b22 100%);
}
.slide-branded-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 20px;
  height: 100%;
  width: 100%;
}
.slide-branded .slide-content { max-width: none; }
.slide-branded-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.slide-branded-img img {
  max-height: 95%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  animation: fadeInRight .9s ease;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Стрелки */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s;
  display: grid;
  place-items: center;
}
.slider-arrow:hover { background: var(--primary); }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

/* Точки */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all .2s;
}
.slider-dots button.active { background: var(--primary); border-color: var(--primary); transform: scale(1.2); }

/* ===== Features bar ===== */
.features {
  background: var(--light-gray);
  padding: 40px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature .f-icon {
  font-size: 34px;
  color: var(--primary);
}
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--gray); }

/* ===== Categories ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: all .25s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.category-card .cat-icon {
  font-size: 54px;
  margin-bottom: 15px;
}
.category-card h3 { font-size: 19px; margin-bottom: 8px; }
.category-card p { color: var(--gray); font-size: 14px; }

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.product-img {
  background: var(--light-gray);
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 80px;
  position: relative;
}
.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge {
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge.spec { background: var(--primary); }
.badge.discount {
  position: absolute;
  top: 12px; right: 12px;
  left: auto;
  background: var(--accent);
  font-size: 14px;
  padding: 5px 12px;
}
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
  flex: 1;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.product-price .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}
.product-price .old-price {
  font-size: 15px;
  color: var(--gray);
  text-decoration: line-through;
}
.add-to-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-size: 14px;
}
.add-to-cart:hover { background: var(--primary-dark); }

.center-btn { text-align: center; margin-top: 40px; }

/* ===== About ===== */
.about { background: var(--light-gray); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-visual {
  font-size: 160px;
  text-align: center;
  color: var(--primary);
}
.about h2 { font-size: 30px; margin-bottom: 18px; }
.about p { color: var(--gray); margin-bottom: 16px; }
.about ul { margin: 20px 0; }
.about ul li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.about ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  display: grid; place-items: center;
  font-size: 60px;
  color: #fff;
}
.blog-body { padding: 22px; }
.blog-body .blog-date { font-size: 13px; color: var(--gray); }
.blog-body h3 { font-size: 18px; margin: 8px 0 12px; }
.blog-body a { color: var(--primary); font-weight: 600; }

/* ===== Partners ===== */
.partners { background: var(--light-gray); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 90px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--gray);
  font-size: 15px;
  transition: all .2s;
}
.partner-logo:hover { color: var(--primary); box-shadow: var(--shadow); }

/* ===== Footer ===== */
.footer {
  position: relative;
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 60%);
  color: #cbd5e1;
  padding: 70px 0 25px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 45px;
  margin-bottom: 45px;
}
.footer h4 {
  position: relative;
  color: #fff;
  margin-bottom: 22px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 12px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p { font-size: 14px; margin-bottom: 12px; color: #94a3b8; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a {
  font-size: 14px;
  color: #cbd5e1;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer ul li a:hover { color: var(--primary); padding-left: 6px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  color: #fff;
  transition: background .25s, transform .25s, border-color .25s;
}
.footer .socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #cbd5e1;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  color: #8b97a8;
}

/* ===== Footer — приемани карти (компактно, до copyright) ===== */
.footer-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.footer-pay img {
  height: 22px;
  width: auto;
  border-radius: 3px;
  display: inline-block;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 210;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 20px; }
.cart-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--gray); }
.cart-items { flex: 1; overflow-y: auto; padding: 15px 22px; }
.cart-empty { text-align: center; color: var(--gray); padding: 50px 0; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 60px; height: 60px;
  background: var(--light-gray);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 30px;
  flex-shrink: 0;
}
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 15px; }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.cart-item-remove {
  background: none; border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  align-self: flex-start;
}
.cart-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-total span:last-child { color: var(--primary); }
.cart-footer .btn { width: 100%; text-align: center; }

/* ===== Page header (products page) ===== */
.page-header {
  background: linear-gradient(120deg, var(--dark), var(--dark-2));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { color: #cbd5e1; }
.breadcrumb { font-size: 14px; color: #cbd5e1; margin-top: 10px; }
.breadcrumb a { color: var(--primary); }

/* ===== Filters ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 35px;
}
.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.filters h3 { font-size: 17px; margin-bottom: 16px; }
.filter-group { margin-bottom: 22px; }
.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}
.filter-btn:hover { background: #e5e7eb; }
.filter-btn.active { background: var(--primary); color: #fff; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.shop-toolbar .results-count { color: var(--gray); }
.shop-toolbar select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--dark);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .toast-icon { color: var(--primary); font-size: 20px; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-slider { height: 320px; }
  .slide-content h1 { font-size: 36px; }
  .slide-content p { font-size: 17px; }
  .categories-grid, .products-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; }
  .logo img { height: 99px; }
  .search-box { order: 3; max-width: 100%; width: 100%; }
  .menu-toggle { display: block; }
  .nav .container { display: none; flex-direction: column; align-items: stretch; }
  .nav.open .container { display: flex; }
  .nav a { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.1); }
  .hero h1 { font-size: 32px; }
  .hero-slider { height: 340px; }
  .slide-content h1 { font-size: 27px; }
  .slide-branded-inner { grid-template-columns: 1fr; }
  .slide-branded-img { display: none; }
  .slide-content p { font-size: 15px; margin-bottom: 20px; }
  .slide-btns .btn { padding: 11px 22px; font-size: 14px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 24px; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .section-title { font-size: 26px; }
  .categories-grid, .products-grid, .shop-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; }
}

/* ===== Auth форми ===== */
.auth-wrap {
  max-width: 460px;
  margin: 50px auto;
  padding: 0 20px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.auth-tabs {
  display: flex;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }
.auth-form .btn { width: 100%; text-align: center; margin-top: 6px; }
.auth-hint { text-align: center; margin-top: 18px; font-size: 13px; color: var(--gray); }

/* ===== Профил ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}
.profile-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}
.profile-avatar {
  width: 70px; height: 70px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.profile-sidebar h3 { text-align: center; font-size: 18px; }
.profile-sidebar .email { text-align: center; color: var(--gray); font-size: 13px; margin-bottom: 20px; }
.profile-sidebar .btn { width: 100%; text-align: center; }

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.order-head b { font-size: 16px; }
.order-head .date { color: var(--gray); font-size: 13px; }
.order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-pending { background: #fef3c7; color: #b45309; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-shipped { background: #e0e7ff; color: #4338ca; }
.status-completed { background: #d1fae5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* ===== Admin панел ===== */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar {
  background: var(--dark);
  color: #cbd5e1;
  padding: 25px 0;
}
.admin-sidebar .admin-logo {
  padding: 0 24px 20px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 15px;
}
.admin-sidebar .admin-logo span { color: var(--primary); }
.admin-nav-item {
  display: block;
  padding: 13px 24px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 15px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all .2s;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-main { padding: 30px; background: var(--light-gray); }
.admin-main h1 { font-size: 26px; margin-bottom: 24px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat-card .stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { color: var(--gray); font-size: 14px; }
.admin-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table th { background: var(--dark); color: #fff; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light-gray); }
.admin-table select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.admin-section { display: none; }
.admin-section.active { display: block; }
.order-detail-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--gray); }

/* Бутони за действия в таблица */
.btn-icon {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 15px;
  margin-right: 4px;
  transition: all .2s;
}
.btn-icon:hover { background: var(--light-gray); border-color: var(--primary); }

/* Модал */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 400;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row .form-group:only-child { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-wrap: wrap; padding: 10px; }
  .admin-sidebar .admin-logo { border: none; width: 100%; padding: 10px; }
  .admin-nav-item { width: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table { display: block; overflow-x: auto; }
}


/* ===== Продуктова страница (product.html) ===== */
.product-link { color: inherit; text-decoration: none; }
.product-card h3 .product-link:hover { color: var(--primary); }
.product-img.product-link { cursor: pointer; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
  align-items: start;
}
.product-detail-media {
  position: sticky;
  top: 90px;
}
.product-detail-img {
  background: var(--light-gray);
  border-radius: var(--radius);
  height: 400px;
  display: grid;
  place-items: center;
  font-size: 180px;
  position: relative;
  border: 1px solid var(--border);
}
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.product-detail-info h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.product-subtitle {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.product-shortdesc {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.6;
}
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.product-detail-price .price {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
}
.product-detail-price .old-price {
  font-size: 20px;
  color: var(--gray);
  text-decoration: line-through;
}
.product-stock {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.product-stock.in { color: var(--primary); }
.product-stock.out { color: #ef4444; }

.product-longdesc, .product-specs {
  margin-top: 45px;
  max-width: 900px;
}
.product-longdesc h3, .product-specs h3 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.product-longdesc p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 16px;
}
.product-specs table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-specs td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.product-specs tr td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 40%;
  background: var(--light-gray);
}
.product-specs tr td:last-child { color: var(--gray); }
.product-specs tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 25px; }
  .product-detail-media { position: static; }
  .product-detail-img { height: 260px; font-size: 120px; }
  .product-detail-info h1 { font-size: 26px; }
  .product-detail-price .price { font-size: 28px; }
}


/* ===== Контактна страница ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form-wrap h2 { font-size: 26px; margin-bottom: 8px; }
.contact-intro { color: var(--gray); margin-bottom: 24px; }
.contact-success {
  background: #d1fae5;
  color: #047857;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
  display: none;
}
.contact-success.show { display: block; }

.contact-info {
  background: var(--dark);
  color: #cbd5e1;
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info h3 { color: #fff; font-size: 20px; margin-bottom: 22px; }
.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
}
.contact-item .contact-icon {
  font-size: 24px;
  width: 46px;
  height: 46px;
  background: rgba(0,166,81,0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item b { color: #fff; display: block; margin-bottom: 3px; }
.contact-item p { font-size: 14px; line-height: 1.6; margin: 0; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-socials a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  transition: background .2s;
}
.contact-socials a:hover { background: var(--primary); }

.contact-map {
  width: 100%;
  height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===== Реални снимки на продуктите ===== */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-emoji { font-size: 80px; }
.product-detail-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 20px;
}

/* ===== Checkout страница ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
.checkout-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-box h3 {
  font-size: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Radio опции (доставка/плащане) */
.radio-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .2s;
}
.radio-option:hover { border-color: var(--primary); }
.radio-option.active { border-color: var(--primary); background: rgba(0,166,81,0.04); }
.radio-option input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.radio-content b { display: block; font-size: 15px; margin-bottom: 2px; }
.radio-content span { font-size: 13px; color: var(--gray); }

.delivery-fields {
  margin-top: 6px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--radius);
}
.delivery-fields .form-group:last-child { margin-bottom: 0; }

/* Обобщение */
.checkout-summary { position: sticky; top: 20px; }
.summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.summary-box h3 { font-size: 18px; margin-bottom: 18px; }
.summary-items { margin-bottom: 18px; }
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.summary-item-img {
  position: relative;
  width: 54px; height: 54px;
  background: var(--light-gray);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.summary-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.summary-emoji { font-size: 26px; }
.summary-qty {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0 5px;
}
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-info h4 { font-size: 14px; margin: 0 0 3px; line-height: 1.3; }
.summary-item-info span { font-size: 12px; color: var(--gray); }
.summary-item-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 7px 0;
  color: var(--gray);
}
.summary-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  border-top: 2px solid var(--border);
  margin-top: 6px;
  padding-top: 14px;
}
.summary-total span:last-child { color: var(--primary); }
.summary-note { text-align: center; font-size: 12px; color: var(--gray); margin-top: 14px; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}


/* ===== Autocomplete (избор на град) ===== */
.autocomplete-wrap {
  position: relative;
}
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--light-gray); }
.autocomplete-item b { color: var(--dark); }
.autocomplete-item span { color: var(--gray); font-size: 12px; }
.autocomplete-item small { margin-left: auto; color: var(--primary); font-size: 12px; }
.autocomplete-empty { padding: 14px; color: var(--gray); font-size: 14px; text-align: center; }


/* ===== Checkout: гост/потребител банери ===== */
.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.guest-banner b { display: block; font-size: 15px; margin-bottom: 2px; }
.guest-banner span { font-size: 13px; color: var(--gray); }
.guest-banner .btn { white-space: nowrap; }
.user-banner {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #047857;
}


/* ===== Admin: продукти в поръчка с цени ===== */
.order-products {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.order-products td {
  padding: 4px 8px 4px 0;
  border: none;
  vertical-align: top;
}
.order-products .op-name { color: var(--dark); }
.order-products .op-calc { color: var(--gray); white-space: nowrap; text-align: right; }
.order-products .op-sum { font-weight: 700; color: var(--dark); white-space: nowrap; text-align: right; padding-left: 10px; }


/* ===== Страница за потвърждение (thank-you) ===== */
.ty-hero {
  text-align: center;
  padding: 30px 0 10px;
}
.ty-check {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 44px;
  font-weight: 800;
  animation: tyPop .5s ease;
  box-shadow: 0 8px 24px rgba(0,166,81,0.35);
}
@keyframes tyPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.ty-hero h1 { font-size: 28px; margin-bottom: 8px; }
.ty-hero p { color: var(--gray); font-size: 16px; }
.ty-status {
  display: inline-block;
  margin-top: 16px;
  background: #fef3c7;
  color: #b45309;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
}
.ty-status b { color: #92400e; }

.ty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 22px;
}
.ty-card h3 { font-size: 18px; margin-bottom: 16px; }
.ty-items { margin-bottom: 12px; }
.ty-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ty-item:last-child { border-bottom: none; }
.ty-item-img {
  width: 54px; height: 54px;
  background: var(--light-gray);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}
.ty-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ty-item-info { flex: 1; }
.ty-item-info h4 { font-size: 15px; margin: 0 0 3px; }
.ty-item-info span { font-size: 13px; color: var(--gray); }
.ty-item-price { font-weight: 700; }
.ty-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  color: var(--gray);
  font-size: 15px;
}
.ty-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  border-top: 2px solid var(--border);
  margin-top: 6px;
  padding-top: 14px;
}
.ty-total span:last-child { color: var(--primary); }
.ty-info {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--light-gray);
}
.ty-info:last-child { border-bottom: none; }
.ty-info span { color: var(--gray); min-width: 110px; }
.ty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}


/* ===== EVZone 2026 storefront refresh ===== */
:root {
  --primary: #00a76f;
  --primary-dark: #007b54;
  --primary-soft: #e4f7ef;
  --dark: #10251e;
  --dark-2: #18372d;
  --ink: #15251f;
  --gray: #65736d;
  --light-gray: #f4f8f6;
  --border: #dce8e2;
  --accent: #ff7a45;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 56, 42, .08);
  --shadow-hover: 0 20px 45px rgba(20, 56, 42, .15);
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: #fff; letter-spacing: -.01em; }
body::selection { background: #b9efd7; color: var(--dark); }
.container { padding-left: 24px; padding-right: 24px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 167, 111, .32); outline-offset: 3px; }

.btn {
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 750;
  letter-spacing: -.01em;
  box-shadow: none;
}
.btn-primary { background: var(--primary); box-shadow: 0 9px 20px rgba(0, 167, 111, .22); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 26px rgba(0, 123, 84, .27); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.96); color: var(--dark); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.section { padding: 92px 0; }
.section-title { max-width: 720px; margin: 0 auto 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; }
.section-subtitle { max-width: 590px; margin: 0 auto 48px; font-size: 17px; line-height: 1.55; }

/* Header / navigation */
.topbar { background: #0c1f18; padding: 9px 0; font-size: 13px; }
.topbar .phone { color: #d7ffe9; }
.topbar a:hover { color: #73e9b3; }
.header { box-shadow: 0 1px 0 rgba(15, 58, 41, .09); }
.header .container { min-height: 82px; gap: 28px; padding-top: 7px; padding-bottom: 7px; }
.logo img { height: 68px; }
.search-box { max-width: 720px; border: 1px solid var(--border); border-radius: 999px; background: #f7faf8; transition: .2s ease; }
.search-wrap { max-width: 720px; }
.search-box:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 167, 111, .1); }
.search-box input { background: transparent; padding: 12px 18px; }
.search-box button { width: 44px; height: 40px; margin: 3px; padding: 0; border-radius: 50%; background: var(--dark); font-size: 14px; transition: background .2s ease; }
.search-box button:hover { background: var(--primary); }
.header-actions { gap: 18px; }
.header-icon { min-height: 42px; padding: 0 2px; font-weight: 650; transition: color .2s ease; }
.header-icon:hover { color: var(--primary); }
.header-icon .icon { font-size: 21px; }
.cart-count { top: 1px; left: 18px; min-width: 17px; height: 17px; background: var(--accent); box-shadow: 0 2px 6px rgba(255,122,69,.35); }
.nav { background: linear-gradient(90deg, #3fae2a 0%, #5cc93a 100%); box-shadow: 0 8px 20px rgba(60, 160, 50, .18); }
.nav .container { gap: 3px; }
.nav a { position: relative; padding: 13px 17px; color: #ffffff; font-size: 14px; }
.nav a::after { content: ""; position: absolute; right: 17px; bottom: 7px; left: 17px; height: 2px; border-radius: 2px; background: #ffffff; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.14); color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Hero */
.hero-slider { height: 570px; background: #0c2118; }
.slide-overlay { background: linear-gradient(90deg, rgba(6, 25, 17, .94) 0%, rgba(10, 43, 29, .78) 48%, rgba(8, 42, 27, .16) 100%); }
.slide-branded { background: radial-gradient(circle at 76% 35%, rgba(0, 210, 132, .27), transparent 26%), radial-gradient(circle at 12% 8%, rgba(0, 167, 111, .14), transparent 25%), linear-gradient(125deg, #071b13 0%, #103a29 54%, #0b2d20 100%); }
.slide-branded::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(120deg, transparent 0 45%, rgba(151,255,205,.15) 45.1% 45.3%, transparent 45.4% 100%); }
.slide-branded-inner { gap: 36px; }
.slide-content { max-width: 600px; }
.slide-content h1 { font-size: clamp(40px, 4.2vw, 62px); letter-spacing: -.065em; text-shadow: none; }
.slide-content h1 span { color: #7ff1b8; }
.slide-content p { max-width: 535px; font-size: 18px; line-height: 1.6; color: #d7e9e0; text-shadow: none; }
.slide-btns { gap: 12px; }
.slide-btns .btn { padding: 14px 25px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #9cf5c9; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #63e8a4; box-shadow: 0 0 0 5px rgba(99,232,164,.16); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; color: #d9f8e8; font-size: 13px; font-weight: 650; }
.hero-proof span::before { content: "✓"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; border-radius: 50%; color: #07301e; background: #82efb9; font-size: 11px; }
.slide-branded-img img { max-height: 93%; filter: drop-shadow(0 30px 34px rgba(0,0,0,.38)); }
.slider-arrow { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); background: rgba(8,29,20,.34); }
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-dots { bottom: 27px; }
.slider-dots button { width: 28px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.38); }
.slider-dots button.active { width: 42px; background: #78efb7; transform: none; }

/* Benefits / category / product cards */
.features { position: relative; z-index: 5; margin-top: -34px; padding: 0; background: transparent; }
.features-grid { padding: 27px 32px; gap: 18px; border: 1px solid rgba(211,231,220,.9); border-radius: var(--radius-lg); background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(10,52,34,.13); }
.feature { gap: 12px; }
.feature .f-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); font-size: 23px; }
.feature b { font-size: 14px; color: var(--dark); }
.feature span { font-size: 12.5px; }
.categories-grid { gap: 18px; }
.category-card { min-height: 225px; padding: 30px 22px; border: 1px solid #dfece5; border-radius: 20px; box-shadow: none; background: linear-gradient(150deg, #fff 0%, #f8fcfa 100%); }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: #9bd9ba; }
.category-card .cat-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: #e7f8ef; font-size: 35px; }
.category-card h3 { font-size: 18px; letter-spacing: -.025em; }
.category-card p { line-height: 1.45; }
.products-grid { gap: 20px; }
.product-card { border: 1px solid #dfeae4; border-radius: 20px; box-shadow: 0 5px 18px rgba(20,56,42,.04); }
.product-card:hover { transform: translateY(-7px); border-color: #a2dfbd; box-shadow: var(--shadow-hover); }
.product-img { height: 245px; padding: 8px; background: linear-gradient(145deg, #f6faf8 0%, #eaf4ee 100%); }
.product-photo { padding: 16px; mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-photo { transform: scale(1.045); }
.product-badges { top: 14px; left: 14px; }
.badge { padding: 5px 9px; border-radius: 999px; background: rgba(14,54,38,.88); font-size: 10px; letter-spacing: .02em; backdrop-filter: blur(8px); }
.badge.spec { background: var(--primary); }
.badge.discount { top: 14px; right: 14px; background: var(--accent); }
.product-info { padding: 18px 18px 19px; }
.product-cat { margin-bottom: 7px; font-size: 10px; letter-spacing: .09em; }
.product-info h3 { min-height: 43px; margin-bottom: 7px; font-size: 16px; letter-spacing: -.025em; }
.product-info h3 .product-link:hover { color: var(--primary); }
.product-desc { line-height: 1.45; }
.product-price { margin: 2px 0 15px; }
.product-price .price { font-size: 23px; color: var(--dark); }
.add-to-cart { padding: 12px; border-radius: 12px; background: var(--dark); font-weight: 750; }
.add-to-cart:hover { background: var(--primary); }
.center-btn { margin-top: 42px; }

/* Informational sections / footer */
.about { overflow: hidden; background: linear-gradient(115deg, #eff8f3, #f8fbf9); }
.about-grid { gap: 74px; }
.about-visual { position: relative; min-height: 320px; display: grid; place-items: center; border-radius: var(--radius-lg); background: radial-gradient(circle at 35% 35%, #5ce6a3, #009862 46%, #0d392a 100%); color: #fff; font-size: 142px; box-shadow: 0 24px 50px rgba(0,112,72,.2); }
.about-visual::after { content: "Електрическа мобилност"; position: absolute; bottom: 22px; left: 24px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.about h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.about ul li { font-weight: 550; }
.blog-card, .partner-logo { border-color: #dfeae4; border-radius: 18px; }
.blog-img { background: linear-gradient(135deg, #0b3021, #00a76f); }
.blog-body h3 { letter-spacing: -.03em; }
.partners-grid { gap: 14px; }
.partner-logo { height: 84px; color: #53675e; }
.footer { background: #0b2017; padding-top: 74px; }
.footer::before { content: ""; display: block; height: 1px; margin-top: -74px; background: linear-gradient(90deg, transparent, rgba(103,239,174,.5), transparent); }
.footer .logo img { height: 73px; }
.footer h4 { letter-spacing: -.02em; }
.footer .socials a { border-radius: 12px; }
.footer .socials a:hover { background: var(--primary); }

/* Shop, product details, cart, forms and checkout */
.page-header { padding: 76px 0; background: radial-gradient(circle at 75% 0%, rgba(24,204,126,.25), transparent 28%), linear-gradient(120deg, #0a2419, #164534); }
.page-header h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.05em; }
.shop-layout { gap: 28px; }
.filters, .checkout-box, .summary-box, .auth-card, .order-card, .profile-sidebar { border-color: #dce9e1; border-radius: 18px; box-shadow: 0 7px 22px rgba(20,56,42,.045); }
.filters { padding: 20px; top: 175px; }
.filter-btn { border-radius: 10px; background: #f3f8f5; font-weight: 600; }
.filter-btn:hover { background: #e1f4e9; }
.filter-btn.active { background: var(--dark); }
.shop-toolbar { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.shop-toolbar select, .form-group input, .form-group textarea, .form-group select { border-color: #d7e5dd; border-radius: 11px; }
.shop-toolbar select:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,167,111,.1); }
.product-detail { gap: 58px; }
.product-detail-img { border-radius: 22px; background: linear-gradient(145deg, #f5faf7, #e9f4ed); border-color: #dce9e1; }
.product-detail-price .price { color: var(--dark); letter-spacing: -.04em; }
.product-subtitle, .product-stock.in { color: var(--primary-dark); }
.product-longdesc h3, .product-specs h3 { border-bottom-color: var(--primary); }
.cart-drawer { border-radius: 20px 0 0 20px; }
.cart-header, .cart-footer { padding: 23px 25px; }
.cart-item-img { border-radius: 12px; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.checkout-box, .summary-box { padding: 28px; }
.step-num { background: var(--dark); }
.radio-option { border-color: #d9e6de; border-radius: 13px; }
.radio-option.active { border-color: var(--primary); background: #f0fbf5; }
.delivery-fields { background: #f3f8f5; }
.guest-banner { border-color: #b9e6cc; background: #effaf4; border-radius: 16px; }
.contact-info { border-radius: 20px; background: linear-gradient(145deg, #112f23, #0a2017); }
.contact-item .contact-icon { background: rgba(90,232,161,.13); }
.toast { border-radius: 14px; }

@media (max-width: 992px) {
  .header .container { gap: 16px; }
  .logo img { height: 58px; }
  .hero-slider { height: 510px; }
  .features { margin-top: -25px; }
  .features-grid { padding: 24px; }
  .about-grid { gap: 38px; }
  .product-img { height: 225px; }
}

@media (max-width: 768px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 66px 0; }
  .header .container { min-height: 70px; }
  .logo img { height: 47px; }
  .header-actions { gap: 10px; }
  .header-icon { font-size: 0; min-height: 36px; }
  .header-icon .icon { font-size: 21px; }
  .menu-toggle { color: var(--dark); }
  .nav { box-shadow: 0 8px 18px rgba(13,48,35,.14); }
  .nav .container { padding: 5px 18px 10px; }
  .nav a::after { display: none; }
  .nav a { border-radius: 8px; }
  .nav a:hover, .nav a.active { background: rgba(255,255,255,.1); }
  .hero-slider { height: 475px; }
  .slide-content h1 { font-size: 39px; }
  .slide-content p { font-size: 16px; }
  .hero-proof { gap: 9px 15px; margin-top: 22px; font-size: 12px; }
  .features { margin: 0; padding: 18px 0; background: #f4f8f6; }
  .features-grid { padding: 21px 18px; border-radius: 17px; box-shadow: none; }
  .feature .f-icon { width: 42px; height: 42px; font-size: 20px; }
  .category-card { min-height: 0; padding: 25px 20px; }
  .product-img { height: 255px; }
  .product-card { border-radius: 18px; }
  .page-header { padding: 54px 0; }
  .about-visual { min-height: 250px; font-size: 112px; }
  .footer { padding-top: 55px; }
  .footer::before { margin-top: -55px; }
  .footer .logo img { height: 60px; }
  .cart-drawer { border-radius: 0; }
  .checkout-box, .summary-box { padding: 21px; }
}

@media (max-width: 480px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .socials { display: none; }
  .search-box input { padding: 10px 14px; }
  .hero-slider { height: 455px; }
  .slide-content h1 { font-size: 34px; }
  .slide-btns .btn { width: 100%; text-align: center; }
  .slider-arrow { display: none; }
  .product-img { height: 225px; }
  .section-subtitle { margin-bottom: 32px; font-size: 15px; }
}



/* Wide header: clear logo and a search field fixed to the visual center. */
@media (min-width: 600px) {
  .header .container {
    position: relative;
    min-height: 138px;
  }

  .header .logo {
    flex: 0 0 175px;
  }

  .header .logo img {
    content: url("../img/logo-header-noslogan.png");
    width: 160px;
    height: 126px;
    max-width: 160px;
    object-fit: contain;
    transform: translateY(-6px);
    filter: contrast(1.05) saturate(1.08);
  }

  .header .search-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: calc(100% - 370px);
  }

  .header-actions {
    flex: 0 0 160px;
    justify-content: flex-end;
    margin-left: auto;
  }
}


/* ===== Modern navigation bar refresh ===== */
.nav {
  background: linear-gradient(105deg, #389526 0%, #4bb630 52%, #5cc53b 100%);
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 10px 24px rgba(70, 170, 55, .22);
}
.nav .container {
  min-height: 62px;
  gap: 7px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: #ffffff;
}
.nav a::after {
  right: 18px;
  bottom: 8px;
  left: 18px;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .55);
}
.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

@media (max-width: 768px) {
  .nav .container { min-height: auto; gap: 4px; }
  .nav a { min-height: auto; padding: 13px 18px; border-radius: 8px; }
}



/* Products toolbar sorting */
.shop-toolbar { gap: 18px; padding: 14px 0 18px; }
.sort-control { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--dark); font-size: 13px; font-weight: 750; }
.sort-control select { min-width: 215px; appearance: none; -webkit-appearance: none; padding: 11px 42px 11px 14px; border: 1px solid #cfe2d8; border-radius: 12px; background: #f7fbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310523a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--dark); font: inherit; cursor: pointer; outline: none; transition: .2s ease; }
.sort-control select:hover, .sort-control select:focus { border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(0,167,111,.1); }
@media (max-width: 600px) { .shop-toolbar { align-items: stretch; flex-direction: column; } .sort-control { margin-left: 0; justify-content: space-between; } .sort-control select { flex: 1; min-width: 0; } }



/* Compact products page header */
.page-header { padding: 20px 0; }
.page-header h1 { margin-bottom: 6px; }
.page-header p { margin-bottom: 0; }


/* Extra-compact products heading */
.page-header { min-height: 0 !important; padding: 10px 0 !important; }
.page-header h1 { font-size: 30px; line-height: 1.1; margin: 0 0 4px; }
.page-header p { font-size: 14px; line-height: 1.35; }
.breadcrumb { margin-top: 5px; }



/* Products page: use more screen width and remove excess whitespace */
.page-header + .section { padding-top: 28px; padding-bottom: 56px; }
.page-header + .section > .container { max-width: 1600px; }
.shop-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 26px; }
@media (max-width: 992px) { .page-header + .section { padding-top: 22px; } }



/* Compact spacing on the homepage */
#hero-slider ~ .section { padding-top: 55px; padding-bottom: 55px; }
#hero-slider ~ .section .section-subtitle { margin-bottom: 32px; }
#hero-slider ~ .section.partners { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 768px) { #hero-slider ~ .section { padding-top: 42px; padding-bottom: 42px; } }



/* ===== Technology minimal storefront — uncommitted redesign ===== */
body { background: #f7faf8; }
.page-header { padding: 28px 0 !important; min-height: 0 !important; background: linear-gradient(110deg, #061d14, #0b4a34) !important; }
.page-header h1 { font-size: 38px !important; }
.page-header p { font-size: 15px; }
.page-header + .section { padding: 30px 0 56px !important; background: #fff; }
.page-header + .section > .container { max-width: 1500px; }
.shop-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.filters { border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(12, 51, 36, .08); }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #537267; }
.filter-btn { padding: 12px 14px; border-radius: 10px; }
.products-grid.shop-grid { gap: 18px; }
.product-card { border-radius: 18px; box-shadow: 0 8px 24px rgba(12, 51, 36, .06); }
.product-img { height: 215px; }
.product-info { padding: 16px; }
.product-info h3 { font-size: 15px; }
.add-to-cart { border-radius: 10px; }
.shop-toolbar { margin-bottom: 18px; }
@media (max-width: 768px) { .page-header { padding: 22px 0 !important; } .page-header h1 { font-size: 30px !important; } .shop-layout { grid-template-columns: 1fr; } }



/* ===== EV Tech future skin — uncommitted ===== */
.page-header {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 76% 22%, rgba(32, 242, 151, .20), transparent 24%), linear-gradient(120deg, #031811, #0a3325 55%, #08261c) !important;
}
.page-header::before { content:""; position:absolute; inset:0; opacity:.16; background-image:linear-gradient(rgba(148,255,203,.24) 1px,transparent 1px),linear-gradient(90deg,rgba(148,255,203,.24) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to right,transparent,black 35%,black 80%,transparent); }
.page-header .container { position:relative; z-index:1; }
.page-header h1 { letter-spacing:-.065em; text-shadow:0 0 24px rgba(89,255,170,.15); }
.page-header p { color:#c8ebda; }
.page-header + .section { background:linear-gradient(180deg,#f8fcfa 0%,#eff7f2 100%) !important; }
.page-header + .section > .container { position:relative; }
.page-header + .section > .container::before { content:""; position:absolute; top:0; right:0; left:0; height:1px; background:linear-gradient(90deg,transparent,#00ae70,transparent); }
.filters { background:rgba(255,255,255,.76); backdrop-filter:blur(14px); border-color:rgba(0,166,105,.18); }
.filter-btn { border:1px solid transparent; background:rgba(234,244,238,.72); }
.filter-btn:hover { transform:translateX(3px); border-color:#a7e8c5; }
.filter-btn.active { background:linear-gradient(105deg,#073d2a,#0aa76c); box-shadow:0 8px 18px rgba(0,140,88,.22); }
.shop-toolbar { border-bottom-color:rgba(5,74,46,.16); }
.sort-control select { background-color:rgba(255,255,255,.82); }
.product-card { background:rgba(255,255,255,.9); border-color:rgba(0,129,80,.16); overflow:hidden; }
.product-card::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,#1cf29a,transparent); opacity:0; transition:.25s; }
.product-card:hover::before { opacity:1; }
.product-card:hover { box-shadow:0 18px 38px rgba(4,74,43,.16); }
.product-img { background:radial-gradient(circle at 50% 35%,#f8fffb,#e5f3eb 72%); }
.badge.spec { background:linear-gradient(135deg,#009762,#00bc79); box-shadow:0 4px 12px rgba(0,171,106,.22); }
.add-to-cart { background:linear-gradient(100deg,#082d20,#0c5a3d); }
.add-to-cart:hover { background:linear-gradient(100deg,#00a568,#15c47f); }



/* ===== Futuristic EV footer — uncommitted ===== */
.footer { position:relative; overflow:hidden; padding:72px 0 26px; background:radial-gradient(circle at 82% 0%,rgba(0,214,130,.16),transparent 30%),linear-gradient(125deg,#051a12,#082b1e 55%,#06170f) !important; }
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#00d682,#15c47f 50%,var(--accent)); z-index:2; }
.footer::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.12; background-image:linear-gradient(rgba(117,255,184,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(117,255,184,.2) 1px,transparent 1px); background-size:46px 46px; mask-image:linear-gradient(to bottom,black,transparent 75%); }
.footer .container { position:relative; z-index:1; }
.footer-grid { gap:45px; margin-bottom:44px; }
.footer p { color:#9fb8ab; }
.footer h4 { position:relative; padding-bottom:12px; text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.footer h4::after { content:""; position:absolute; bottom:0; left:0; width:34px; height:2px; background:#63f0a4; box-shadow:0 0 10px rgba(99,240,164,.7); }
.footer ul li { margin-bottom:11px; }
.footer ul li a { color:#bad1c5; transition:color .2s, padding-left .2s; }
.footer ul li a:hover { color:#8ef5bf; padding-left:6px; }
.footer .socials { gap:12px; margin-top:18px; }
.footer .socials a { width:40px; height:40px; border:1px solid rgba(142,245,191,.2); background:rgba(255,255,255,.04); transition:background .25s, transform .25s, border-color .25s, box-shadow .25s; }
.footer .socials a:hover { border-color:#79efb0; transform:translateY(-3px); box-shadow:0 0 18px rgba(45,232,138,.3); }
.footer-contact-item { align-items:center; color:#c3d6cb; }
.footer-bottom { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; padding-top:24px; color:#7ea092; }



/* Product card overlap fix */
.product-card { isolation: isolate; }
.product-img { overflow: hidden; position: relative; z-index: 1; }
.product-img .product-photo { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.product-info { position: relative; z-index: 2; background: #fff; }
.product-badges, .product-img .badge.discount { z-index: 3; }



/* Hard separation for product media and product details */
.product-card { display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.product-card .product-img { height: 215px !important; min-height: 215px !important; max-height: 215px !important; flex: 0 0 215px !important; overflow: hidden !important; }
.product-card .product-img > img.product-photo { display: block !important; width: 100% !important; height: 100% !important; max-height: 100% !important; object-fit: contain !important; }
.product-card .product-info { display: flex !important; flex-direction: column !important; min-height: 245px; overflow: hidden; background: #fff !important; }



/* Larger full-product media: show entire product image, never overlap details */
.product-card .product-img { display: block !important; position: relative !important; height: 320px !important; min-height: 320px !important; max-height: 320px !important; flex: 0 0 320px !important; overflow: hidden !important; }
.product-card .product-img > img.product-photo { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; padding: 14px !important; object-fit: contain !important; transform: none !important; }
.product-card .product-info { position: relative !important; z-index: 5 !important; flex: 1 0 auto !important; background: #fff !important; }
@media (max-width: 768px) { .product-card .product-img { height: 280px !important; min-height: 280px !important; max-height: 280px !important; flex-basis: 280px !important; } }



/* Final media containment for real product images */
.product-card .product-img { clip-path: inset(0); contain: paint; }
.product-card .product-img img.product-photo { mix-blend-mode: normal !important; filter: none !important; }
.product-card .product-info { isolation: isolate !important; opacity: 1 !important; }



/* Product detail: keep full image inside its own media panel */
.product-detail { align-items: start; }
.product-detail-media { position: sticky; top: 170px; overflow: hidden; border-radius: 22px; background: #f4faf6; }
.product-detail-img { position: relative !important; height: 520px !important; min-height: 520px !important; overflow: hidden !important; isolation: isolate; background: radial-gradient(circle at 50% 35%, #fbfffc, #e6f2eb) !important; }
.product-detail-img > img.product-detail-photo { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; padding: 24px !important; object-fit: contain !important; mix-blend-mode: normal !important; transform: none !important; }
.product-detail-info { position: relative; z-index: 3; background: #fff; }
@media (max-width: 768px) { .product-detail-media { position: static; } .product-detail-img { height: 330px !important; min-height: 330px !important; } }



/* Product image gallery */
.product-gallery-main { position: relative; }
.gallery-arrow { position:absolute; top:50%; z-index:8; width:42px; height:42px; border:1px solid rgba(255,255,255,.7); border-radius:50%; background:rgba(7,36,24,.72); color:#fff; font-size:30px; line-height:1; transform:translateY(-50%); cursor:pointer; }
.gallery-arrow:hover { background:var(--primary); }
.gallery-prev { left:14px; }.gallery-next { right:14px; }
.gallery-counter { position:absolute; right:16px; bottom:14px; z-index:8; padding:4px 10px; border-radius:20px; background:rgba(7,36,24,.7); color:#fff; font-size:12px; font-weight:700; }
.product-gallery-thumbs { display:flex; gap:10px; padding:12px 0 4px; overflow-x:auto; }
.gallery-thumb { flex:0 0 68px; height:68px; padding:4px; border:2px solid transparent; border-radius:10px; background:#f1f7f3; cursor:pointer; overflow:hidden; }
.gallery-thumb.active { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,167,111,.12); }
.gallery-thumb img { width:100%; height:100%; object-fit:contain; }



/* Definitive product-card layout: media and details never share a row */
.product-card { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 300px minmax(255px, auto) !important; align-content: start !important; }
.product-card > .product-img { grid-column: 1 !important; grid-row: 1 !important; width: 100% !important; height: 300px !important; min-height: 300px !important; max-height: 300px !important; align-self: stretch !important; }
.product-card > .product-info { grid-column: 1 !important; grid-row: 2 !important; width: 100% !important; height: auto !important; min-height: 255px !important; margin: 0 !important; padding: 18px !important; background: #fff !important; overflow: hidden !important; }
.product-card > .product-img > img.product-photo { position: static !important; display: block !important; width: 100% !important; height: 100% !important; object-fit: contain !important; }
@media (max-width: 768px) { .product-card { grid-template-rows: 280px minmax(250px,auto) !important; } .product-card > .product-img { height:280px !important; min-height:280px !important; max-height:280px !important; } }



/* Homepage manufacturers: exactly two featured brands */
.manufacturers-grid { grid-template-columns: repeat(2, minmax(180px, 300px)) !important; justify-content: center; }
.manufacturer-junsun, .manufacturer-feyree { font-size: 28px; font-weight: 800; letter-spacing: .03em; }
.manufacturer-junsun { color: #164f93; }
.manufacturer-feyree { color: #e34324; }
@media (max-width: 520px) { .manufacturers-grid { grid-template-columns: 1fr !important; } }

/* ===== Плаващ Viber бутон (винаги видим) ===== */
.viber-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #7360f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(115, 96, 242, 0.5);
  z-index: 1200;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: viber-pulse 2.2s infinite;
}
.viber-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(115, 96, 242, 0.7);
  animation: none;
}
.viber-fab svg { width: 34px; height: 34px; fill: #fff; }
.viber-fab .viber-fab-label {
  position: absolute;
  right: 72px;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.viber-fab:hover .viber-fab-label { opacity: 1; transform: translateX(0); }
@keyframes viber-pulse {
  0%   { box-shadow: 0 6px 22px rgba(115,96,242,0.5), 0 0 0 0 rgba(115,96,242,0.5); }
  70%  { box-shadow: 0 6px 22px rgba(115,96,242,0.5), 0 0 0 16px rgba(115,96,242,0); }
  100% { box-shadow: 0 6px 22px rgba(115,96,242,0.5), 0 0 0 0 rgba(115,96,242,0); }
}
@media (max-width: 520px) {
  .viber-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .viber-fab svg { width: 30px; height: 30px; }
  .viber-fab .viber-fab-label { display: none; }
}

