/* ============================================================================
   Sunny Gardens – напоителни системи | design layer v2 over OpenCart 3 "default"
   Зарежда се СЛЕД stylesheet.css. Връщане към стария вид: махни реда от header.twig.
   Визуален ориентир: въздушен header, голям hero, плаващи USP карти, hover карти.
   ========================================================================== */

:root {
  --sg-green:       #4d7310;
  --sg-green-600:   #6d990f;
  --sg-lime:        #b4d336;
  --sg-mint:        #f0f5e3;
  --sg-blue:        #0288d1;
  --sg-water:       #4fc3f7;
  --sg-ink:         #1f2a14;
  --sg-text:        #4f5a42;
  --sg-muted:       #8a978e;
  --sg-bg:          #f6f8ef;
  --sg-line:        #e4e9d6;
  --sg-radius:      16px;
  --sg-radius-sm:   10px;
  --sg-shadow:      0 8px 26px rgba(31, 42, 20, .08);
  --sg-shadow-lg:   0 18px 44px rgba(31, 42, 20, .16);
  --sg-container:   1240px;
  --sg-hero:        linear-gradient(135deg, #1d2d0b 0%, #3b5813 55%, #6d990f 100%);
}

/* ---------- База ---------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px; line-height: 1.65; color: var(--sg-text); background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Open Sans', Arial, sans-serif;
  color: var(--sg-ink); font-weight: 800; letter-spacing: -.01em;
}
h1 { font-size: 34px; } h2 { font-size: 28px; } h3 { font-size: 20px; } h4 { font-size: 16px; }
a { color: var(--sg-green); transition: color .15s ease; }
a:hover, a:focus { color: var(--sg-green-600); }
.container { max-width: var(--sg-container); }
::selection { background: var(--sg-lime); color: var(--sg-ink); }

/* ---------- Бутони / форми ------------------------------------------------ */
.btn {
  border-radius: 999px; font-weight: 700; padding: 10px 22px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-primary:focus {
  background: var(--sg-green); border-color: var(--sg-green); background-image: none;
  box-shadow: 0 8px 18px rgba(77, 115, 16, .28);
}
.btn-primary:hover { background: var(--sg-green-600); border-color: var(--sg-green-600); }
.btn-default { background: #fff; border-color: var(--sg-line); color: var(--sg-ink); background-image: none; }
.btn-default:hover { border-color: var(--sg-green); color: var(--sg-green); background: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-light { background: #fff; color: var(--sg-green); border-color: #fff; }
.btn-light:hover { background: var(--sg-lime); border-color: var(--sg-lime); color: var(--sg-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.form-control { border-radius: var(--sg-radius-sm); border-color: var(--sg-line); box-shadow: none; }
.form-control:focus { border-color: var(--sg-green-600); box-shadow: 0 0 0 3px rgba(109,153,15,.18); }
.breadcrumb { border-radius: var(--sg-radius-sm); background: var(--sg-bg); }
.alert { border-radius: var(--sg-radius-sm); }
.panel, .well { border-radius: var(--sg-radius); }

/* ---------- Хедър (един ред: лого · меню · икони) ------------------------------ */
#sg-sticky {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 1030; background: #fff;
  transition: box-shadow .2s ease;
}
body.sg-stuck #sg-sticky { box-shadow: var(--sg-shadow); }
.sg-head { background: #fff; position: relative; border-bottom: 1px solid var(--sg-line); }
.sg-head__in { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.sg-logo, #logo.sg-logo { flex: 0 0 auto; margin: 0; }
.sg-logo img { max-height: 60px; width: auto; }
.sg-logo h1 { margin: 0; font-size: 24px; }
.sg-logo h1 a { color: var(--sg-green); }

/* навигация */
.sg-nav { flex: 1 1 auto; align-self: stretch; display: flex; }
.sg-nav__list { display: flex; align-items: stretch; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; width: 100%; }
.sg-nav__list > li > a {
  display: flex; align-items: center; height: 100%; position: relative; padding: 12px 20px; color: var(--sg-ink);
  font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.sg-nav__list > li > a .fa { font-size: 12px; margin-left: 4px; opacity: .65; }
.sg-nav__list > li > a:after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; border-radius: 3px;
  background: var(--sg-green-600); transform: scaleX(0); transition: transform .2s ease;
}
.sg-nav__list > li > a:hover, .sg-nav__list > li.open > a, .sg-nav__list > li:hover > a { color: var(--sg-green); }
.sg-nav__list > li > a:hover:after, .sg-nav__list > li.open > a:after, .sg-nav__list > li:hover > a:after { transform: scaleX(1); }

/* икони */
.sg-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.sg-tools #form-currency, .sg-tools #form-language { margin: 0 4px; }
.sg-tools .btn-link { color: var(--sg-text) !important; font-weight: 700; }
.sg-phone {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--sg-mint); color: var(--sg-green); font-weight: 800; font-size: 13px; white-space: nowrap;
}
.sg-phone:hover { background: var(--sg-green); color: #fff; }
.sg-iconbtn, #cart > .btn {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--sg-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: none; transition: background .15s ease, color .15s ease;
}
.sg-iconbtn .fa, #cart > .btn .fa { font-size: 19px; }
.sg-iconbtn:hover, .sg-iconbtn:focus, .open > .sg-iconbtn, #cart > .btn:hover, #cart.open > .btn {
  background: var(--sg-mint); color: var(--sg-green); outline: 0;
}
/* текстът в иконите е скрит – остава броячът */
#wishlist-total span, #cart-total { font-size: 0; }
#wishlist-total span { display: inline-block; width: 0; overflow: hidden; }
.sg-cartwrap #cart { width: auto; }
#cart > button.btn, #cart > button.btn.btn-inverse, #cart > button.btn.btn-inverse:hover {
  background-image: none; text-shadow: none; border: 0; line-height: 1; min-height: 0;
}
#cart > button.btn.btn-inverse { background-color: transparent; color: var(--sg-ink); }
#cart > button.btn.btn-inverse:hover, #cart.open > button.btn.btn-inverse { background-color: var(--sg-mint); color: var(--sg-green); }
#wishlist-total[data-count]::after, #cart[data-count] > .btn::after {
  content: attr(data-count); position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--sg-green-600); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.sg-cartwrap #cart { margin: 0; display: inline-block; }
.sg-tools .dropdown-menu { border: 0; border-radius: var(--sg-radius-sm); box-shadow: var(--sg-shadow-lg); padding: 8px; }
.sg-tools .dropdown-menu > li > a { border-radius: 8px; padding: 8px 14px; font-weight: 600; }
.sg-tools .dropdown-menu > li > a:hover { background: var(--sg-mint); color: var(--sg-green); background-image: none; }
.sg-cartwrap .dropdown-menu { min-width: 340px; }
.sg-burger { display: none; }

/* панел за търсене (отваря се с лупата) */
.sg-searchpanel {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow-lg); padding: 20px 0; z-index: 5;
}
.sg-searchpanel[hidden] { display: none; }
.sg-searchpanel .container { display: flex; align-items: center; gap: 14px; }
.sg-searchpanel #search { flex: 1 1 auto; margin: 0; }
.sg-searchpanel #search .form-control {
  height: 54px; border-radius: 999px 0 0 999px; background: var(--sg-bg); border: 1px solid var(--sg-line);
  border-right: 0; padding-left: 24px; font-size: 16px;
}
.sg-searchpanel #search .btn {
  height: 54px; border-radius: 0 999px 999px 0; background: var(--sg-green); color: #fff; padding: 0 28px;
  border: 0; box-shadow: none; font-size: 17px;
}
.sg-searchpanel #search .btn:hover { background: var(--sg-green-600); }
.sg-searchpanel__close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sg-bg); color: var(--sg-ink); cursor: pointer;
}
.sg-searchpanel__close:hover { background: var(--sg-green); color: #fff; }

/* мега меню „Продукти“: категории вляво, подкатегории вдясно */
.sg-has-mega { position: static; }
.sg-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 4; padding: 0; background: transparent; pointer-events: none; }
.sg-mega .container { pointer-events: none; }
.sg-has-mega:hover > .sg-mega, .sg-has-mega.open > .sg-mega { display: block; }
.sg-mega__wrap {
  pointer-events: auto; background: #fff; border-top: 3px solid var(--sg-green-600); border-radius: 0 0 var(--sg-radius) var(--sg-radius);
  box-shadow: var(--sg-shadow-lg); padding: 34px 38px 30px; max-height: calc(100vh - 150px); overflow: auto;
}
.sg-mega__cols { columns: 5; column-gap: 40px; }
.sg-mega__col { break-inside: avoid; margin-bottom: 30px; }
.sg-mega__title {
  display: block; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--sg-line);
  color: var(--sg-ink); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35;
}
.sg-mega__title:hover { color: var(--sg-green); }
.sg-mega__col ul { list-style: none; margin: 0; padding: 0; }
.sg-mega__col li a { display: block; padding: 6px 0; color: var(--sg-text); font-size: 15px; font-weight: 500; line-height: 1.4; transition: color .15s ease, padding .15s ease; }
.sg-mega__col li a:hover { color: var(--sg-green); padding-left: 8px; }
.sg-mega__more { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sg-green-600); }
.sg-mega__more:hover { color: var(--sg-green); }
@media (max-width: 1399px) { .sg-mega__cols { columns: 4; } }
@media (max-width: 1199px) { .sg-mega__cols { columns: 3; } }

@media (max-width: 1199px) { .sg-phone span { display: none; } .sg-phone { padding: 10px 12px; margin-right: 4px; } }
@media (max-width: 991px) {
  .sg-head__in { min-height: 72px; gap: 12px; flex-wrap: wrap; }
  .sg-logo img { max-height: 48px; }
  .sg-tools { margin-left: auto; }
  .sg-burger { display: inline-flex; }
  .sg-nav {
    display: none; flex: 1 0 100%; order: 5; margin: 0 -15px; padding: 6px 15px 14px;
    border-top: 1px solid var(--sg-line); background: #fff; max-height: 75vh; overflow: auto;
  }
  .sg-nav.on { display: block; }
  .sg-nav__list > li > a { height: auto; display: block; }
  .sg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .sg-nav__list > li > a { padding: 14px 6px; border-bottom: 1px solid var(--sg-line); }
  .sg-nav__list > li > a:after { display: none; }
  .sg-has-mega:hover > .sg-mega { display: none; }
  .sg-has-mega.open > .sg-mega { display: block; }
  .sg-mega { position: static; pointer-events: auto; }
  .sg-mega .container { padding: 0; width: auto; pointer-events: auto; }
  .sg-mega__wrap { box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 8px; max-height: none; }
  .sg-mega__cols { columns: 1; }
  .sg-mega__col { margin-bottom: 0; }
  .sg-mega__title { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--sg-line); font-size: 13px; }
  .sg-mega__col ul, .sg-mega__more { display: none; }
  .sg-cartwrap .dropdown-menu { min-width: 300px; }
}

/* ---------- Секции / заглавия --------------------------------------------- */
.sg-section { padding: 64px 0; }
.sg-section--tint { background: var(--sg-bg); }
.sg-section-head { text-align: center; margin-bottom: 38px; }
.sg-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sg-green-600); margin-bottom: 8px;
}
.sg-section-head h2 { margin: 0; font-size: 32px; }
.sg-section-head p { color: var(--sg-muted); margin: 10px auto 0; max-width: 560px; }
.sg-section-head h2 + p { margin-top: 12px; }

/* ---------- Hero ----------------------------------------------------------- */
.sg-hero {
  position: relative; background: var(--sg-hero); color: #fff; overflow: hidden;
  padding: 84px 0 150px;
}
.sg-hero:before, .sg-hero:after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.sg-hero:before { width: 560px; height: 560px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(166,214,63,.32), transparent 65%); }
.sg-hero:after  { width: 520px; height: 520px; left: -180px; bottom: -260px; background: radial-gradient(circle, rgba(79,195,247,.28), transparent 65%); }
.sg-hero .container { position: relative; z-index: 2; }
.sg-hero__grid { display: flex; align-items: center; gap: 40px; }
.sg-hero__text { flex: 1 1 54%; }
.sg-hero__art  { flex: 1 1 40%; text-align: center; }
.sg-hero .sg-eyebrow { color: var(--sg-lime); }
.sg-hero h1 { color: #fff; font-size: 52px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.sg-hero h1 em { font-style: normal; color: var(--sg-lime); }
.sg-hero p { font-size: 18px; color: #d2e8d6; max-width: 520px; margin: 0 0 30px; }
.sg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-hero__art svg { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
.sg-hero__art img { max-width: 100%; border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lg); }
@media (max-width: 991px) {
  .sg-hero { padding: 56px 0 130px; }
  .sg-hero h1 { font-size: 36px; }
  .sg-hero__grid { flex-direction: column; text-align: center; }
  .sg-hero p { margin-left: auto; margin-right: auto; }
  .sg-hero__cta { justify-content: center; }
  .sg-hero__art { display: none; }
}

/* плаваща USP лента върху hero */
.sg-usp { position: relative; z-index: 5; margin-top: -78px; }
.sg-usp .container { max-width: var(--sg-container); }
.sg-usp__card {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lg); overflow: hidden;
}
.sg-usp__item {
  display: flex; align-items: center; gap: 14px; padding: 24px 22px;
  font-weight: 800; font-size: 14px; color: var(--sg-ink); line-height: 1.3;
}
.sg-usp__item + .sg-usp__item { border-left: 1px solid var(--sg-line); }
.sg-usp__item i {
  font-size: 22px; color: var(--sg-green); width: 52px; height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center; background: var(--sg-mint); border-radius: 16px;
}
.sg-usp__item small { display: block; font-weight: 500; color: var(--sg-muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 991px) {
  .sg-usp__card { grid-template-columns: repeat(2, 1fr); }
  .sg-usp__item:nth-child(3) { border-left: 0; }
  .sg-usp__item:nth-child(n+3) { border-top: 1px solid var(--sg-line); }
}
@media (max-width: 480px) { .sg-usp__card { grid-template-columns: 1fr; } .sg-usp__item + .sg-usp__item { border-left: 0; border-top: 1px solid var(--sg-line); } }

/* админски слайдшоу/банери (ако ги ползваш) */
.swiper-viewport, #common-home .swiper-container { border: 0 !important; border-radius: var(--sg-radius); overflow: hidden; box-shadow: var(--sg-shadow); margin-bottom: 30px; }
#common-home:empty, #common-home .row:empty { display: none; }

/* ---------- Категории-плочки --------------------------------------------- */
.sg-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.sg-cat {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px 22px;
  text-align: center; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: #fff;
  color: var(--sg-ink); font-weight: 800; font-size: 13.5px; transition: all .2s ease; position: relative;
}
.sg-cat:hover { border-color: transparent; box-shadow: var(--sg-shadow-lg); transform: translateY(-6px); color: var(--sg-green); }
.sg-cat__ico {
  width: 84px; height: 84px; border-radius: 50%; background: var(--sg-mint);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.sg-cat:hover .sg-cat__ico { background: var(--sg-lime); }
.sg-cat__ico i { font-size: 32px; color: var(--sg-green); }
.sg-cat__ico img { width: 56px; height: 56px; object-fit: contain; }
.sg-cat span { line-height: 1.3; }
@media (max-width: 991px) { .sg-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .sg-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Промо / countdown --------------------------------------------- */
.sg-promo {
  background: var(--sg-hero); color: #fff; border-radius: 24px; padding: 40px 44px; position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  box-shadow: var(--sg-shadow-lg);
}
.sg-promo:before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,214,63,.35), transparent 65%);
}
.sg-promo > * { position: relative; }
.sg-promo .sg-eyebrow { color: var(--sg-lime); }
.sg-promo h3 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.sg-promo p { margin: 0; color: #d2e8d6; }
.sg-countdown { display: flex; gap: 10px; }
.sg-countdown div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 70px; }
.sg-countdown b { display: block; font-size: 28px; line-height: 1; }
.sg-countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }

/* ---------- Брандове ------------------------------------------------------- */
.sg-brands { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 14px; }
.sg-brand {
  display: flex; align-items: center; justify-content: center; min-width: 160px; min-height: 76px; padding: 12px 22px;
  border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: #fff; transition: all .2s ease;
}
.sg-brand:hover { border-color: var(--sg-green-600); box-shadow: var(--sg-shadow); transform: translateY(-3px); }
.sg-brand img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .6; transition: all .2s ease; }
.sg-brand:hover img { filter: grayscale(0); opacity: 1; }
.sg-brand span { font-weight: 800; color: var(--sg-ink); font-size: 15px; }
.sg-brand:hover span { color: var(--sg-green); }

/* ---------- CTA лента ------------------------------------------------------ */
.sg-cta {
  background: var(--sg-mint); border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #dcecd5;
}
.sg-cta h3 { margin: 0 0 6px; font-size: 26px; }
.sg-cta p { margin: 0; color: var(--sg-text); }
.sg-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-cta__phone { font-size: 22px; font-weight: 800; color: var(--sg-ink); }
.sg-cta__phone i { color: var(--sg-green); margin-right: 8px; }

/* ---------- Продуктова карта ------------------------------------------------ */
.product-thumb {
  border: 1px solid transparent; border-radius: var(--sg-radius); background: #fff; overflow: hidden; position: relative;
  box-shadow: 0 2px 0 var(--sg-line), 0 0 0 1px var(--sg-line);
  transition: box-shadow .22s ease, transform .22s ease;
}
.product-grid .product-thumb { display: flex; flex-direction: column; height: 100%; }
.product-grid .product-thumb:hover { box-shadow: var(--sg-shadow-lg), 0 0 0 1px transparent; transform: translateY(-6px); }
.product-thumb .image { padding: 18px; background: var(--sg-bg); text-align: center; position: relative; }
.product-thumb .image a { display: block; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { mix-blend-mode: multiply; transition: transform .35s ease; }
.product-grid .product-thumb:hover .image img { transform: scale(1.06); }
.product-thumb .caption { padding: 14px 18px 8px; min-height: 0; }
.product-grid .product-thumb .caption { min-height: 0 !important; flex: 1 1 auto; }
.product-thumb h4 { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.product-grid .product-thumb h4 a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
.product-thumb h4 a { color: var(--sg-ink); }
.product-thumb h4 a:hover { color: var(--sg-green); }
.product-thumb .caption > p:not(.price) { color: var(--sg-muted); font-size: 13px; display: none; }
.product-thumb .caption > p.price { display: block; }
.product-list .product-thumb .caption > p:not(.price) { display: block; }
.product-thumb .price { color: var(--sg-ink); font-size: 20px; font-weight: 800; padding: 2px 0; margin-bottom: 4px; }
.product-thumb .price-new { color: var(--sg-green); font-weight: 800; }
.product-thumb .price-old { font-size: 14px; font-weight: 600; margin-left: 8px; }
.price-tax { display: none !important; } /* „Без ДДС“ – скрито */
.product-thumb .rating { padding-bottom: 4px; }
.rating .fa-star { color: #f4b400; }

/* бутони: пълна „Купи“ + малки икони */
.product-thumb .button-group {
  border: 0; background: #fff; display: flex; padding: 6px 14px 16px; gap: 8px; overflow: visible;
}
.product-thumb .button-group button {
  float: none; width: auto; border: 1px solid var(--sg-line); border-radius: 999px; line-height: 36px;
  text-transform: none; font-weight: 800; font-size: 13px; background: #fff; color: var(--sg-ink);
  transition: all .18s ease;
}
.product-thumb .button-group button:first-child {
  flex: 1 1 auto; background: var(--sg-green); border-color: var(--sg-green); color: #fff;
}
.product-thumb .button-group button:first-child:hover { background: var(--sg-ink); border-color: var(--sg-ink); color: #fff; }
.product-thumb .button-group button + button { width: 40px; border-left: 1px solid var(--sg-line); background: #fff; color: var(--sg-green); }
.product-thumb .button-group button + button:hover { background: var(--sg-lime); border-color: var(--sg-lime); color: var(--sg-ink); }
@media (max-width: 1200px) {
  .product-thumb .button-group button, .product-thumb .button-group button + button { width: auto; }
  .product-thumb .button-group button + button { width: 40px; }
}

.sg-badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sg-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; color: #fff; line-height: 1.4; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.sg-badge--new { background: var(--sg-blue); }
.sg-badge--sale { background: #e53935; }
.sg-wish {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: var(--sg-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .18s ease; box-shadow: 0 4px 12px rgba(0,0,0,.1);
  opacity: 0; transform: translateY(-6px);
}
.product-thumb:hover .sg-wish { opacity: 1; transform: translateY(0); }
.sg-wish:hover { color: #e53935; }
@media (hover: none) { .sg-wish { opacity: 1; transform: none; } }

.row.sg-products { display: flex; flex-wrap: wrap; }
.row.sg-products::before, .row.sg-products::after { display: none; }
.row.sg-products > .product-layout { display: flex; margin-bottom: 30px; }
.row.sg-products > .product-layout.product-list { display: block; }
.row.sg-products > .product-layout > .product-thumb { width: 100%; }
#content .product-layout { margin-bottom: 0; }
.sg-modwrap > h3:first-child { display: none; }
.sg-modwrap .row { margin-bottom: 0; }

/* ---------- Категорийна страница ------------------------------------------- */
#product-category .breadcrumb, #product-manufacturer .breadcrumb, #product-special .breadcrumb,
#product-search .breadcrumb, #product-product .breadcrumb { background: transparent; padding-left: 0; margin-bottom: 10px; }
#product-category h2 { margin: 6px 0 20px; font-size: 30px; }
#product-category .btn-group .btn { border-radius: 999px; }
.sg-brandbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 22px; padding: 14px 0; border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); }
.sg-brandbar__label { font-weight: 800; color: var(--sg-ink); margin-right: 4px; }
.sg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--sg-line); background: #fff; color: var(--sg-text); font-weight: 700; font-size: 13px; line-height: 1.4; transition: all .15s ease;
}
.sg-chip:hover { border-color: var(--sg-green-600); color: var(--sg-green); }
.sg-chip b { font-weight: 700; color: var(--sg-muted); font-size: 12px; }
.sg-chip--on { background: var(--sg-green); border-color: var(--sg-green); color: #fff; }
.sg-chip--on:hover { color: #fff; background: var(--sg-green-600); }
.sg-chip--on b { color: rgba(255,255,255,.75); }

#column-left .list-group, #column-right .list-group {
  border: 1px solid var(--sg-line); border-radius: var(--sg-radius); overflow: hidden; box-shadow: var(--sg-shadow); margin-bottom: 24px;
}
#column-left .list-group-item, #column-right .list-group-item {
  border: 0; border-bottom: 1px solid var(--sg-line); padding: 12px 18px; font-size: 14px; color: var(--sg-text); font-weight: 600;
}
#column-left .list-group-item:last-child, #column-right .list-group-item:last-child { border-bottom: 0; }
#column-left .list-group-item:hover, #column-right .list-group-item:hover { background: var(--sg-mint); color: var(--sg-green); }
#column-left .list-group-item.active, #column-left .list-group-item.active:hover, #column-right .list-group-item.active {
  background: var(--sg-green); border-color: var(--sg-green); color: #fff;
}
.pagination > li > a, .pagination > li > span { border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--sg-line); color: var(--sg-ink); font-weight: 700; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover { background: var(--sg-green); border-color: var(--sg-green); }

/* ---------- Продуктова страница -------------------------------------------- */
#product-product h1 { font-size: 30px; margin-bottom: 14px; }
#product-product .thumbnails { margin-left: -8px; }
#product-product .thumbnails > li { margin-left: 8px; }
#product-product .thumbnails .thumbnail { border-radius: var(--sg-radius); border-color: var(--sg-line); background: var(--sg-bg); padding: 14px; }
#product-product .image-additional a.thumbnail { border-radius: var(--sg-radius-sm); padding: 6px; }
#product-product .list-unstyled h2 { color: var(--sg-green); font-size: 34px; font-weight: 800; }
#product-product #product { background: var(--sg-bg); border-radius: var(--sg-radius); padding: 20px 22px; margin-top: 14px; }
#product-product #button-cart { padding: 14px 34px; font-size: 16px; width: 100%; margin-top: 6px; }
#product-product .nav-tabs { border-bottom: 2px solid var(--sg-line); }
#product-product .nav-tabs > li > a { border: 0; color: var(--sg-muted); font-weight: 800; border-radius: 0; }
#product-product .nav-tabs > li.active > a, #product-product .nav-tabs > li.active > a:hover {
  border: 0; border-bottom: 3px solid var(--sg-green); color: var(--sg-ink); background: transparent;
}

/* ---------- Footer ---------------------------------------------------------- */
footer { background: var(--sg-ink); color: #b7c6bb; margin-top: 70px; padding: 60px 0 22px; position: relative; }
footer:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sg-lime), var(--sg-water), var(--sg-green-600)); }
footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; font-weight: 800; }
footer a { color: #b7c6bb; }
footer a:hover { color: var(--sg-lime); }
footer hr { border-top: 1px solid rgba(255,255,255,.1); margin: 30px 0 18px; }
footer .list-unstyled li { padding: 5px 0; }
.sg-foot-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.sg-foot-contact i { color: var(--sg-lime); width: 18px; text-align: center; margin-top: 4px; }
.sg-foot-social { display: flex; gap: 10px; margin-top: 16px; }
.sg-foot-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sg-foot-social a:hover { background: var(--sg-lime); color: var(--sg-ink); }
.sg-foot-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sg-foot-pay span { background: #fff; border-radius: 6px; padding: 5px 10px; color: var(--sg-ink); font-weight: 800; font-size: 11px; letter-spacing: .03em; }
footer .sg-copy { color: #7f8f84; font-size: 12px; margin: 0; }

/* ---------- Бутон „нагоре“ ---------------------------------------------------- */
.sg-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--sg-green); color: #fff; box-shadow: var(--sg-shadow-lg); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; font-size: 16px;
}
.sg-totop.on { opacity: 1; visibility: visible; transform: none; }
.sg-totop:hover { background: var(--sg-lime); color: var(--sg-ink); }

/* ============================================================================
   Рунд 4: категорийна страница (сайдбар + toolbar + грид) и продуктова страница
   ========================================================================== */

/* ---------- Магазин: сайдбар + съдържание -------------------------------- */
.sg-shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.sg-shop--full { grid-template-columns: minmax(0, 1fr); }
.sg-side { position: static; }
.sg-box { background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); margin-bottom: 22px; overflow: hidden; }
.sg-box__title { margin: 0; padding: 16px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; background: var(--sg-bg); border-bottom: 1px solid var(--sg-line); }
.sg-list { list-style: none; margin: 0; padding: 8px; max-height: 420px; overflow-y: auto; }
.sg-list li a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: var(--sg-radius-sm); color: var(--sg-text); font-weight: 600; font-size: 14px;
}
.sg-list li a:hover { background: var(--sg-mint); color: var(--sg-green); }
.sg-list li.on a { background: var(--sg-green); color: #fff; }
.sg-list li a b { font-size: 12px; font-weight: 700; color: var(--sg-muted); background: var(--sg-bg); border-radius: 999px; padding: 1px 9px; }
.sg-list li.on a b { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 991px) {
  .sg-shop { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sg-side { position: static; }
  .sg-list { max-height: 220px; }
}

/* ---------- Заглавие на категорията ----------------------------------------- */
.sg-cathead { margin-bottom: 20px; }
.sg-cathead h1 { margin: 0 0 14px; font-size: 32px; }
.sg-cathead__body { display: flex; gap: 20px; align-items: flex-start; background: var(--sg-mint); border: 1px solid #dcecd5; border-radius: var(--sg-radius); padding: 20px 24px; }
.sg-cathead__img { width: 96px; height: auto; border-radius: var(--sg-radius-sm); background: #fff; padding: 6px; }
.sg-cathead__text { font-size: 14px; max-height: 120px; overflow: auto; }
.sg-cathead__text > :last-child { margin-bottom: 0; }

/* ---------- Toolbar ------------------------------------------------------------ */
.sg-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 10px 16px; margin-bottom: 24px;
}
.sg-toolbar__left, .sg-toolbar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-toolbar label { margin: 0; font-weight: 700; color: var(--sg-ink); font-size: 13px; }
.sg-toolbar select.form-control { width: auto; height: 36px; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.sg-toolbar__compare { font-weight: 700; font-size: 13px; }
.btn-group-sm > .btn { border-radius: 999px; }
.btn-group .btn.active { background: var(--sg-green); border-color: var(--sg-green); color: #fff; }

/* ---------- Грид на категорията (независим от bootstrap колоните) ----------- */
#product-category .row.sg-products, #product-search .row.sg-products,
#product-special .row.sg-products, #product-manufacturer .row.sg-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin: 0;
}
#product-category .row.sg-products > .product-layout, #product-search .row.sg-products > .product-layout,
#product-special .row.sg-products > .product-layout, #product-manufacturer .row.sg-products > .product-layout {
  width: auto; float: none; padding: 0; margin: 0; display: flex;
}
#product-category .row.sg-products > .product-layout.product-list, #product-search .row.sg-products > .product-layout.product-list,
#product-special .row.sg-products > .product-layout.product-list, #product-manufacturer .row.sg-products > .product-layout.product-list {
  grid-column: 1 / -1; display: block;
}
.product-list .product-thumb .image { width: 240px; }
@media (max-width: 767px) { .product-list .product-thumb .image { width: 100%; float: none; } }

.sg-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; }
.sg-pager .pagination { margin: 0; }
.sg-pager__info { color: var(--sg-muted); font-size: 13px; }
.sg-empty { padding: 30px; text-align: center; background: var(--sg-bg); border-radius: var(--sg-radius); }

/* ---------- Продуктова страница ---------------------------------------------- */
.sg-prodrow { display: flex; flex-wrap: wrap; margin-bottom: 36px; }
.sg-prodrow::before, .sg-prodrow::after { display: none; }
#product-product .sg-gallery .thumbnails { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
#product-product .sg-gallery .thumbnails > li { margin: 0; float: none; width: calc(25% - 9px); max-width: none; }
#product-product .sg-gallery .thumbnails > li:first-child { width: 100%; }
#product-product .sg-gallery .thumbnails > li:first-child .thumbnail { padding: 28px; }
#product-product .sg-gallery .thumbnail { margin: 0; background: var(--sg-bg); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); }
#product-product .sg-gallery .thumbnail img { mix-blend-mode: multiply; width: 100%; }
#product-product .sg-gallery .thumbnail:hover { border-color: var(--sg-green-600); }

.sg-buybox { align-self: flex-start; }
.sg-buybox > .sg-prodactions { float: right; margin-left: 10px; }
.sg-buybox h1 { font-size: 28px; line-height: 1.25; margin: 0 0 14px; }
.sg-buybox ul.list-unstyled { margin-bottom: 14px; font-size: 14px; }
.sg-buybox ul.list-unstyled li { padding: 2px 0; }
.sg-buybox h2 { margin: 6px 0; }
.sg-buybox #product { background: var(--sg-bg); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 22px; margin-top: 16px; }
.sg-buybox #input-quantity { max-width: 110px; font-weight: 700; text-align: center; height: 44px; }
.sg-buybox #button-cart { border-radius: 999px; }
.sg-buybox .rating { margin-top: 14px; }
@media (max-width: 767px) { .sg-buybox { position: static; margin-top: 24px; } }

.sg-tabs { margin: 10px 0 40px; }
.sg-tabs .nav-tabs { margin-bottom: 0; }
.sg-tabs .tab-content { background: #fff; border: 1px solid var(--sg-line); border-top: 0; border-radius: 0 0 var(--sg-radius) var(--sg-radius); padding: 28px; }
#product-product > .row > #content > h3 { text-align: center; margin: 10px 0 26px; font-size: 26px; }

/* ---------- Ляв сайдбар: bootstrap колоната #column-left вътре в .sg-side ---- */
.sg-side #column-left {
  display: block !important; float: none; width: 100%; padding: 0; margin: 0;
}
.sg-side #column-left .list-group { margin-bottom: 22px; }
.sg-side #column-left .list-group-item { white-space: normal; word-break: break-word; }
.swiper-viewport:has(.swiper-wrapper:empty) { display: none; }

/* ---------- Български форми на буквите ------------------------------------------
   При lang="bg" браузърът включва локални форми (к→k, п→n, и→u …) и текстът изглежда
   като „Kynu“. Изключваме ги, за да се ползват стандартните кирилски форми. */
html, body, button, input, select, textarea { font-feature-settings: "locl" 0; -webkit-font-feature-settings: "locl" 0; }

/* Линк „Промоции“ в менюто */
.sg-nav__list > li > a.sg-nav__sale { color: #d32f2f; }
.sg-nav__list > li > a.sg-nav__sale .fa { margin: 0 6px 0 0; opacity: 1; font-size: 13px; }
.sg-nav__list > li > a.sg-nav__sale:after { background: #d32f2f; }
.sg-nav__list > li > a.sg-nav__sale:hover { color: #b71c1c; }

/* ---------- Съобщения „Готово: Добавихте…“ (количка, любими, сравнение) ----------
   Плаващо известие горе вдясно, с ясен бутон към количката / сравнението / любимите. */
.alert-success.alert-dismissible {
  position: fixed; top: 104px; right: 24px; z-index: 2000; width: calc(100% - 48px); max-width: 430px;
  margin: 0; padding: 18px 46px 18px 18px; background: #fff; color: var(--sg-ink); font-weight: 600; font-size: 14px; line-height: 1.5;
  border: 1px solid var(--sg-line); border-left: 5px solid var(--sg-green-600); border-radius: var(--sg-radius-sm);
  box-shadow: var(--sg-shadow-lg); animation: sgToast .25s ease;
}
@keyframes sgToast { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.alert-success.alert-dismissible .close { position: absolute; top: 10px; right: 14px; opacity: .55; font-size: 22px; }
.alert-success.alert-dismissible .close:hover { opacity: 1; }
.alert-success.alert-dismissible a { color: var(--sg-green); font-weight: 800; text-decoration: underline; }
/* бутонът към сравнението / количката / любимите */
.alert-success.alert-dismissible a.sg-toast-btn {
  display: inline-block; margin-top: 12px; padding: 9px 22px; border-radius: 999px; text-decoration: none;
  background: var(--sg-green); color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: .03em;
  box-shadow: 0 6px 14px rgba(77,115,16,.28);
}
.alert-success.alert-dismissible a.sg-toast-btn:hover { background: var(--sg-ink); }
@media (max-width: 767px) { .alert-success.alert-dismissible { top: 76px; right: 12px; width: calc(100% - 24px); } }

/* Приети карти (изискване на банката – на видно място) */
.sg-foot-paytext { font-size: 13px; margin: 16px 0 0; color: #b7c6bb; }
.sg-foot-paytext b { color: #fff; }
.sg-foot-pay span { font-size: 13px; padding: 6px 14px; }
.sg-pay-visa { color: #1a1f71 !important; font-style: italic; letter-spacing: .06em; }
.sg-pay-mc { color: #eb001b !important; }
.sg-pay-borica { color: #00569c !important; }
