/* =========================================================
   HotFix.lt – PrestaShop Classic tema
   Stilius pagal servisas.hotfix.lt (tamsi + žalia)
   Tik CSS: be papildomų šriftų, JS ar paveikslėlių -> greitis nenukenčia.
   Įkelti į: /themes/classic/assets/css/custom.css
   (arba į child temos assets/css/custom.css)
   ========================================================= */

:root {
  --hf-green: #5fd43a;        /* pagrindinė žalia (kaip baneryje) */
  --hf-green-dark: #3fae1f;   /* hover */
  --hf-green-soft: #eefbe8;   /* švelnus fonas */
  --hf-dark: #0e1411;         /* beveik juoda su žalsvu atspalviu */
  --hf-dark-2: #161e19;
  --hf-dark-3: #222b25;
  --hf-text: #1d2420;
  --hf-muted: #6b756f;
  --hf-border: #e4e8e5;
  --hf-bg: #f4f6f5;
  --hf-radius: 12px;
  --hf-shadow: 0 2px 10px rgba(14, 20, 17, .06);
  --hf-shadow-hover: 0 10px 28px rgba(14, 20, 17, .14);
  --hf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Bendra ---------- */
body {
  font-family: var(--hf-font);
  color: var(--hf-text);
  background: var(--hf-bg);
  -webkit-font-smoothing: antialiased;
}
#wrapper { background: var(--hf-bg); padding-top: 1.5rem; }
a { color: var(--hf-text); transition: color .15s; }
a:hover, a:focus { color: var(--hf-green-dark); text-decoration: none; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -.01em; color: var(--hf-text); }

/* ---------- Mygtukai ---------- */
.btn-primary,
.btn-primary:focus {
  background: var(--hf-green);
  border-color: var(--hf-green);
  color: var(--hf-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 8px;
  box-shadow: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background: var(--hf-green-dark) !important;
  border-color: var(--hf-green-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(95, 212, 58, .35);
}
.btn-secondary, .btn-tertiary {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hf-border);
  color: var(--hf-text);
}
.btn-secondary:hover, .btn-tertiary:hover { border-color: var(--hf-green); color: var(--hf-green-dark); }

/* ---------- Viršutinė juosta (header-nav) ---------- */
#header { background: #fff; box-shadow: none; }
#header .header-nav {
  background: var(--hf-dark);
  border-bottom: 0;
  max-height: none;
  margin-bottom: 0;
}
#header .header-nav,
#header .header-nav a,
#header .header-nav .material-icons,
#header .header-nav #contact-link,
#header .header-nav .user-info a,
#header .header-nav .cart-preview .header span { color: #e8eee9; }
#header .header-nav a:hover { color: var(--hf-green); }
#header .header-nav .cart-preview.active {
  background: var(--hf-green);
}
#header .header-nav .cart-preview.active a,
#header .header-nav .cart-preview.active i,
#header .header-nav .cart-preview.active span { color: var(--hf-dark) !important; }
#header .header-nav .blockcart { background: transparent; height: auto; padding: .5rem .9rem; border-radius: 8px; }

/* ---------- Logo + paieška ---------- */
#header .header-top { padding: 1.25rem 0 0; }
#header .logo { max-height: 90px; width: auto; }

#search_widget form input[type="text"] {
  border: 2px solid var(--hf-border);
  border-radius: 999px;
  background: var(--hf-bg);
  padding: 12px 20px 12px 46px;
  min-width: 0;
  outline: none;
  transition: border-color .15s, background .15s;
}
#search_widget form input[type="text"]:focus {
  border-color: var(--hf-green);
  background: #fff;
  outline: none;
  color: var(--hf-text);
}
#search_widget form i { padding: 12px 14px; color: var(--hf-muted); }

/* ---------- Pagrindinis meniu (tamsi juosta) ---------- */
#header .header-top .menu,
#_desktop_top_menu {
  padding-left: 0;
}
@media (min-width: 768px) {
  #header .header-top .position-static > .menu,
  #_desktop_top_menu {
    background: var(--hf-dark);
    border-radius: var(--hf-radius) var(--hf-radius) 0 0;
    margin-top: 1.25rem;
    padding: 0 .5rem;
  }
  #_desktop_top_menu .top-menu { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
  #_desktop_top_menu .top-menu > li { float: none; }
  #_desktop_top_menu .top-menu a[data-depth="0"] {
    color: #e8eee9;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .04em;
    padding: 1rem .6rem;
    position: relative;
  }
  #_desktop_top_menu .top-menu a[data-depth="0"]::after {
    content: "";
    position: absolute;
    left: .6rem; right: .6rem; bottom: .55rem;
    height: 2px;
    background: var(--hf-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
  }
  #_desktop_top_menu .top-menu > li:hover > a[data-depth="0"] { color: var(--hf-green); }
  #_desktop_top_menu .top-menu > li:hover > a[data-depth="0"]::after { transform: scaleX(1); }

  /* Išskleidžiamas meniu */
  #_desktop_top_menu .top-menu .sub-menu {
    border-top: 3px solid var(--hf-green);
    border-radius: 0 0 var(--hf-radius) var(--hf-radius);
    box-shadow: var(--hf-shadow-hover);
    margin-left: 0;
    padding: 1.5rem;
  }
  #_desktop_top_menu .top-menu .sub-menu a[data-depth="1"] { color: var(--hf-text); font-weight: 700; }
  #_desktop_top_menu .top-menu .sub-menu a[data-depth="2"] { color: var(--hf-muted); }
  #_desktop_top_menu .top-menu .sub-menu a:hover { color: var(--hf-green-dark); }
}

/* ---------- Banerio slaideris ---------- */
.carousel {
  border-radius: var(--hf-radius);
  overflow: hidden;
  box-shadow: var(--hf-shadow);
  margin-bottom: 2.5rem;
}
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i { color: var(--hf-green); }
.carousel .carousel-indicators li { border-color: #fff; }
.carousel .carousel-indicators .active { background: var(--hf-green); border-color: var(--hf-green); }

/* ---------- Sekcijų antraštės ---------- */
.products-section-title,
.featured-products h2,
#main .page-header h1 {
  text-transform: none;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: .9rem;
}
.products-section-title::after,
.featured-products h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 56px; height: 4px;
  margin-left: -28px;
  border-radius: 4px;
  background: var(--hf-green);
}

/* ---------- Prekių kortelės ---------- */
.product-miniature .thumbnail-container {
  background: #fff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-miniature .thumbnail-container:hover,
.product-miniature .thumbnail-container:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--hf-shadow-hover);
  border-color: var(--hf-green);
}
.product-miniature .thumbnail-container .product-thumbnail img {
  padding: 1rem;
  transition: transform .3s;
}
.product-miniature .thumbnail-container:hover .product-thumbnail img { transform: scale(1.04); }

.product-miniature .product-description {
  background: #fff;
  box-shadow: none;
  border-top: 1px solid var(--hf-border);
}
.product-miniature .product-title { text-transform: none; text-align: left; padding: 0 1rem; }
.product-miniature .product-title a {
  color: var(--hf-text);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-miniature .product-title a:hover { color: var(--hf-green-dark); }
.product-miniature .product-price-and-shipping {
  text-align: left;
  padding: 0 1rem;
  color: var(--hf-text);
}
.product-miniature .product-price-and-shipping .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hf-dark);
}
.product-miniature .regular-price { color: var(--hf-muted); font-size: .85rem; }
.product-miniature .highlighted-informations {
  box-shadow: none;
  background: rgba(255, 255, 255, .95);
}
.product-miniature .highlighted-informations .quick-view { color: var(--hf-text); font-weight: 600; }
.product-miniature .highlighted-informations .quick-view:hover { color: var(--hf-green-dark); }

/* Žymos (Nauja / -%) */
.product-flags li.product-flag {
  border-radius: 6px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .03em;
  box-shadow: none;
  background: var(--hf-dark);
  color: var(--hf-green);
}
.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-percentage,
.product-flags li.product-flag.on-sale {
  background: var(--hf-green);
  color: var(--hf-dark);
}

/* "Visos prekės" nuoroda */
.all-product-link {
  display: inline-block;
  padding: .6rem 1.25rem;
  border: 2px solid var(--hf-dark);
  border-radius: 999px;
  font-weight: 700;
  color: var(--hf-dark);
}
.all-product-link:hover { background: var(--hf-dark); color: var(--hf-green); }

/* ---------- Kategorijų puslapis ---------- */
.block-category, #js-product-list-top, .card, #left-column .block-categories, #search_filters {
  border-radius: var(--hf-radius);
  border: 1px solid var(--hf-border);
  box-shadow: var(--hf-shadow);
  background: #fff;
}
#left-column .block-categories .category-top-menu > li > a,
#search_filters .facet .facet-title { font-weight: 800; }
#left-column .block-categories a:hover { color: var(--hf-green-dark); }
.breadcrumb { background: transparent; padding: 0 0 1rem; }
.breadcrumb li a { color: var(--hf-muted); }
.breadcrumb li:last-child a, .breadcrumb li:last-child span { color: var(--hf-text); font-weight: 600; }
.pagination .current a { color: var(--hf-green-dark); font-weight: 800; }

/* ---------- Prekės puslapis ---------- */
.product-cover img, .product-images > li.thumb-container > .thumb {
  border-radius: var(--hf-radius);
  background: #fff;
}
.product-images > li.thumb-container > .thumb.selected,
.product-images > li.thumb-container > .thumb:hover { border-color: var(--hf-green); }
.product-prices .current-price span,
.product-price { color: var(--hf-dark); font-weight: 800; font-size: 1.9rem; }
.product-add-to-cart .btn.add-to-cart { min-height: 48px; padding: 0 1.75rem; }
.tabs { border-radius: var(--hf-radius); box-shadow: var(--hf-shadow); }
.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover { color: var(--hf-green-dark); border-bottom-color: var(--hf-green); }
#product-availability .product-available { color: var(--hf-green-dark); }

/* ---------- Footer (tamsus kaip servise) ---------- */
#footer {
  background: var(--hf-dark);
  color: #b9c3bd;
  padding-top: 3rem;
  margin-top: 3rem;
}
#footer .footer-container { background: transparent; box-shadow: none; margin-top: 0; }
#footer .h3, #footer .h4, #footer p.h3, #footer .block-contact-title,
.footer-container .links .h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  font-weight: 800;
}
#footer a,
.footer-container li a,
#footer .block-contact,
#footer .block-contact a { color: #b9c3bd; }
#footer a:hover,
.footer-container li a:hover,
#footer .block-contact a:hover { color: var(--hf-green); }
#footer .text-sm-center, #footer .footer-container + * { color: #7d8882; }
.footer-container .links .collapse { background: transparent; }
@media (max-width: 767px) {
  .footer-container .links .title { border-bottom-color: var(--hf-dark-3); }
  .footer-container .links .navbar-toggler .material-icons { color: #fff; }
  .footer-container .links ul { background: var(--hf-dark-2); }
  .footer-container .links ul > li { border-bottom-color: var(--hf-dark-3); }
}

/* Naujienlaiškis / reasurance blokai virš footerio */
.block_newsletter { background: var(--hf-dark-2); border-radius: var(--hf-radius); color: #e8eee9; }
.block_newsletter p, .block_newsletter #block-newsletter-label { color: #e8eee9; }
.block_newsletter form input[type="email"] { border-radius: 8px 0 0 8px; border: 0; }
.block_newsletter form .btn { border-radius: 0 8px 8px 0; }

/* ---------- Formos / krepšelis / checkout ---------- */
.form-control { border-radius: 8px; border-color: var(--hf-border); }
.form-control:focus { border-color: var(--hf-green); outline: 0; box-shadow: 0 0 0 3px rgba(95, 212, 58, .18); }
.custom-radio input[type="radio"]:checked + span { background-color: var(--hf-green); }
body#checkout section.checkout-step { border-radius: var(--hf-radius); }
body#checkout section.checkout-step.-current .step-title { color: var(--hf-dark); }
.cart-grid-body .card-block h1 { font-weight: 800; }
#blockcart-modal .modal-header { background: var(--hf-green); }
#blockcart-modal .modal-title { color: var(--hf-dark); font-weight: 800; }

/* ---------- Mobilus header ---------- */
@media (max-width: 767px) {
  #header .header-nav { background: var(--hf-dark); }
  #header .header-nav .top-logo img { max-height: 44px; }
  #menu-icon .material-icons,
  #_mobile_cart .material-icons,
  #_mobile_user_info .material-icons { color: #e8eee9; }
  #mobile_top_menu_wrapper { background: #fff; border-top: 3px solid var(--hf-green); }
  #mobile_top_menu_wrapper .top-menu a[data-depth="0"] { font-weight: 700; }
}

/* ---------- Prieinamumas ---------- */
:focus-visible { outline: 2px solid var(--hf-green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   v1.0.1 pataisymai: šviesesni meniu punktai ir footerio antraštės
   ========================================================= */
@media (min-width: 768px) {
  #header #_desktop_top_menu .top-menu a[data-depth="0"],
  #_desktop_top_menu .top-menu > li > a[data-depth="0"] {
    color: #f2f6f3 !important;
  }
  #header #_desktop_top_menu .top-menu > li:hover > a[data-depth="0"],
  #header #_desktop_top_menu .top-menu > li > a[data-depth="0"]:focus,
  #header #_desktop_top_menu .top-menu > li.current > a[data-depth="0"] {
    color: var(--hf-green) !important;
  }
  #header #_desktop_top_menu .top-menu .sub-menu a[data-depth="1"] { color: var(--hf-text) !important; }
  #header #_desktop_top_menu .top-menu .sub-menu a[data-depth="2"] { color: var(--hf-muted) !important; }
  #header #_desktop_top_menu .top-menu .sub-menu a:hover { color: var(--hf-green-dark) !important; }
}

/* Footerio antraštės – baltos */
#footer .h3, #footer .h4, #footer p.h3, #footer .title .h3,
#footer .links .h3, #footer .links .title, #footer .block-contact-title,
#footer .block-contact .block-contact-title, #footer .myaccount-title,
#footer .myaccount-title a, #footer .wrapper > .h3, #footer .wrapper > p.h3 {
  color: #ffffff !important;
}

/* Footerio tekstas ir nuorodos – šviesesni */
#footer, #footer p, #footer li, #footer .block-contact,
#footer a, #footer .footer-container li a, #footer .block-contact a {
  color: #d3dcd6 !important;
}
#footer a:hover, #footer .footer-container li a:hover { color: var(--hf-green) !important; }
#footer .text-sm-center, #footer .text-sm-center a { color: #a3aea8 !important; }

/* Facebook ikona footeryje */
.block-social ul li {
  background-color: var(--hf-dark-3);
  border-radius: 8px;
  transition: background-color .15s;
}
.block-social ul li:hover { background-color: var(--hf-green); }

/* =========================================================
   v1.0.2: meniu punktai balti (stipresni selektoriai)
   ========================================================= */
@media (min-width: 768px) {
  html body #header .header-top #_desktop_top_menu #top-menu > li > a,
  html body #header .header-top #_desktop_top_menu #top-menu > li > a.dropdown-item,
  html body #header .header-top #_desktop_top_menu .top-menu > li > a,
  html body #header .header-top #_desktop_top_menu .top-menu > li > a *,
  html body #header .header-top .menu .top-menu > li > a,
  html body #header .header-top .menu .top-menu > li > a * {
    color: #f2f6f3 !important;
    -webkit-text-fill-color: #f2f6f3 !important;
    opacity: 1 !important;
  }
  html body #header .header-top #_desktop_top_menu .top-menu > li:hover > a,
  html body #header .header-top #_desktop_top_menu .top-menu > li:hover > a *,
  html body #header .header-top #_desktop_top_menu .top-menu > li > a:focus,
  html body #header .header-top .menu .top-menu > li:hover > a,
  html body #header .header-top .menu .top-menu > li:hover > a * {
    color: var(--hf-green) !important;
    -webkit-text-fill-color: var(--hf-green) !important;
  }
  /* Išskleidžiamo meniu nuorodos lieka tamsios ant balto fono */
  html body #header .header-top .top-menu .sub-menu a,
  html body #header .header-top .top-menu .sub-menu a * {
    -webkit-text-fill-color: currentColor !important;
  }
}

/* =========================================================
   v1.0.3: jūsų temos meniu klasės (menu__item-link--top)
   ========================================================= */
@media (min-width: 768px) {
  #_desktop_top_menu .menu__item-link--top,
  #_desktop_top_menu .menu__item-link--top span {
    color: #f2f6f3 !important;
    -webkit-text-fill-color: #f2f6f3 !important;
    font-weight: 700;
    letter-spacing: .03em;
    transition: color .15s;
  }
  #_desktop_top_menu .menu__item--top:hover .menu__item-link--top,
  #_desktop_top_menu .menu__item--top:hover .menu__item-link--top span,
  #_desktop_top_menu .menu__item-link--top:focus,
  #_desktop_top_menu .menu__item-link--top:focus span,
  #_desktop_top_menu .menu__item--top.current .menu__item-link--top span {
    color: var(--hf-green) !important;
    -webkit-text-fill-color: var(--hf-green) !important;
  }
  /* išskleidžiamo meniu viršus žalia linija */
  #_desktop_top_menu .menu-sub {
    border-top: 3px solid var(--hf-green);
    border-radius: 0 0 var(--hf-radius) var(--hf-radius);
    box-shadow: var(--hf-shadow-hover);
  }
}

/* =========================================================
   v1.1.0: tamsus viršus (kaip servisas.hotfix.lt)
   Reikia logotipo su baltu užrašu (hotfix-logo-tamsiam-fonui.png)
   ========================================================= */
:root { --hf-bg: #eef1ee; }
body, #wrapper { background: var(--hf-bg) !important; }

#header,
#header .header-top,
#header .header-banner {
  background: var(--hf-dark) !important;
  color: #e8eee9;
}
#header { border-bottom: 3px solid var(--hf-green); box-shadow: 0 4px 18px rgba(0,0,0,.18); }
#header .header-nav {
  background: #070a08 !important;
  border-bottom: 1px solid var(--hf-dark-3) !important;
}
#header .header-top { padding: 1rem 0 .25rem; }

/* Logotipas */
#header .logo,
#header #_desktop_logo img,
#header .header-top img {
  max-height: 72px;
  width: auto;
}

/* Visi užrašai ir ikonos viršuje – šviesūs */
#header .header-top a,
#header .header-top .material-icons,
#header .header-top span:not(.cart-products-count),
#header .header-nav a,
#header .header-nav span,
#header .header-nav .material-icons,
#header .header-nav div {
  color: #e8eee9;
}
#header .header-top a:hover,
#header .header-top a:hover .material-icons,
#header .header-nav a:hover { color: var(--hf-green) !important; }

/* Krepšelio skaičius – žalias ženkliukas */
#header .cart-products-count {
  color: var(--hf-green);
  font-weight: 700;
}

/* Paieška tamsiame fone */
#header #search_widget form input[type="text"],
#header .search-widget input[type="text"],
#header input[type="search"] {
  background: #1a221d !important;
  border: 1px solid #2c3630 !important;
  color: #f2f6f3 !important;
  border-radius: 999px !important;
}
#header #search_widget form input[type="text"]::placeholder,
#header input[type="search"]::placeholder { color: #8d9891; }
#header #search_widget form input[type="text"]:focus,
#header input[type="search"]:focus {
  border-color: var(--hf-green) !important;
  background: #1f2923 !important;
  box-shadow: 0 0 0 3px rgba(95, 212, 58, .18);
}
#header #search_widget .material-icons,
#header #search_widget button,
#header #search_widget i { color: var(--hf-green) !important; }

/* Meniu juosta – per visą plotį, tamsiai pilka su linija */
@media (min-width: 768px) {
  #header #_desktop_top_menu {
    background: transparent !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--hf-dark-3);
    margin-top: .75rem !important;
  }
}

/* Mobilus viršus */
@media (max-width: 767px) {
  #header .header-nav,
  #header .header-nav .mobile,
  #header .header-nav .top-logo,
  #header .header-nav .container { background: var(--hf-dark) !important; }
  #header .header-nav .top-logo img,
  #header .header-nav img { max-height: 44px; width: auto; }
  #header .header-nav .material-icons { color: #e8eee9 !important; }
}

/* =========================================================
   v1.1.1: be šviesios juostelės po viršumi, vienodo aukščio kortelės
   ========================================================= */
html, body, main, #wrapper, #notifications, #notifications .container,
#wrapper > .container, main > .container, #content-wrapper, #main, .page-home {
  background-color: var(--hf-bg) !important;
}
#notifications:empty, #notifications .container:empty { display: none; }
#wrapper { padding-top: 1.5rem !important; margin-top: 0 !important; }
#header + *, #header .header-banner:empty { margin-top: 0 !important; }

/* Prekių kortelės – pavadinimas visada 2 eilutės, kaina toje pačioje vietoje */
.product-miniature .product-title,
.product-miniature h3.product-title,
.product-miniature .h3.product-title {
  min-height: 2.7em;
  line-height: 1.35;
  margin-bottom: .4rem;
}
.product-miniature .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-miniature .thumbnail-container,
.product-miniature .card,
.product-miniature .product-miniature__card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-miniature .product-description,
.product-miniature .product-miniature__infos,
.product-miniature .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-miniature .product-price-and-shipping { margin-top: auto; padding-bottom: 1rem; }

/* =========================================================
   v1.2.0: šoninis išskleidžiamas meniu (kairėje subkategorijos,
   dešinėje jų vidinis sąrašas). Tik kompiuteriui (>=992px),
   mobilus meniu nepakeistas.
   ========================================================= */
@media (min-width: 992px) {
  #_desktop_top_menu .menu-sub {
    padding: 0 !important;
    border-top: 3px solid var(--hf-green);
    border-radius: 0 0 var(--hf-radius) var(--hf-radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    overflow: hidden;
    background: #fff;
  }
  #_desktop_top_menu .menu-sub__content {
    position: relative !important;
    min-height: 340px;
    padding: 0 !important;
  }

  /* Kairysis stulpelis – subkategorijos */
  #_desktop_top_menu .menu-sub__list--1 {
    display: block !important;
    width: 290px;
    margin: 0 !important;
    padding: .5rem 0 !important;
    background: #f6f8f6;
    border-right: 1px solid var(--hf-border);
    min-height: 340px;
  }
  #_desktop_top_menu .menu-sub__list--1 > .menu__item--1 {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #_desktop_top_menu .menu-sub__list--1 > .menu__item--1 > .menu__item-header { height: auto !important; }
  #_desktop_top_menu .menu__item-link--1 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1.1rem !important;
    color: var(--hf-text) !important;
    font-weight: 600 !important;
    font-size: .9rem;
    text-transform: none !important;
    line-height: 1.25;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
  }
  #_desktop_top_menu .menu__item-link--1.menu__item-link--hassubmenu::after {
    content: "›";
    font-size: 1.3rem;
    line-height: 1;
    color: #a5aea8;
    margin-left: .75rem;
  }
  #_desktop_top_menu .menu-sub__list--1 > .menu__item--1:hover > .menu__item-header .menu__item-link--1,
  #_desktop_top_menu .menu-sub__list--1:not(:hover) > .menu__item--1:first-child > .menu__item-header .menu__item-link--1 {
    background: #fff;
    color: var(--hf-green-dark) !important;
    border-left-color: var(--hf-green);
  }
  #_desktop_top_menu .menu-sub__list--1 > .menu__item--1:hover > .menu__item-header .menu__item-link--1::after,
  #_desktop_top_menu .menu-sub__list--1:not(:hover) > .menu__item--1:first-child > .menu__item-header .menu__item-link--1::after {
    color: var(--hf-green);
  }

  /* Dešinysis skydelis – gamintojai / vidinis sąrašas */
  #_desktop_top_menu .menu__item--1 > div:not(.menu__item-header) {
    display: none !important;
    position: absolute !important;
    top: 0; right: 0; bottom: 0;
    left: 290px;
    padding: 1.25rem 1.75rem !important;
    overflow-y: auto;
    background: #fff;
    height: auto !important;
  }
  #_desktop_top_menu .menu-sub__list--1 > .menu__item--1:hover > div:not(.menu__item-header),
  #_desktop_top_menu .menu-sub__list--1:not(:hover) > .menu__item--1:first-child > div:not(.menu__item-header) {
    display: block !important;
  }
  #_desktop_top_menu .menu__item--1 > div:not(.menu__item-header) ul {
    display: block !important;
    column-count: 3;
    column-gap: 2rem;
    margin: 0 !important;
    padding: 0 !important;
  }
  #_desktop_top_menu .menu__item--1 > div:not(.menu__item-header) li {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    break-inside: avoid;
  }
  #_desktop_top_menu .menu__item--1 > div:not(.menu__item-header) a {
    display: block !important;
    padding: .38rem 0 !important;
    color: #4d5751 !important;
    font-size: .9rem;
    font-weight: 400 !important;
    text-transform: none !important;
    border-bottom: 1px solid #f0f2f0;
    transition: color .12s, padding-left .12s;
  }
  #_desktop_top_menu .menu__item--1 > div:not(.menu__item-header) a:hover {
    color: var(--hf-green-dark) !important;
    padding-left: .35rem !important;
  }
}

/* =========================================================
   v1.2.1: kai subkategorijos neturi savo vidinių kategorijų –
   rodomas tik siauras sąrašas po meniu punktu, be tuščio skydelio
   ========================================================= */
@media (min-width: 992px) {
  #_desktop_top_menu .menu__item--top:not(:has(.menu__item-link--1.menu__item-link--hassubmenu)) {
    position: relative !important;
  }
  #_desktop_top_menu .menu__item--top:not(:has(.menu__item-link--1.menu__item-link--hassubmenu)) > .menu-sub {
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
    margin-left: 0 !important;
  }
  #_desktop_top_menu .menu__item--top:not(:has(.menu__item-link--1.menu__item-link--hassubmenu)) .menu-sub__content,
  #_desktop_top_menu .menu__item--top:not(:has(.menu__item-link--1.menu__item-link--hassubmenu)) .menu-sub__list--1 {
    min-height: 0 !important;
    width: 100% !important;
    border-right: 0 !important;
    background: #fff !important;
  }
  /* paskutiniai meniu punktai – sąrašas lygiuojamas į dešinę, kad neišlįstų už ekrano */
  #_desktop_top_menu .menu__item--top:nth-last-child(-n+2):not(:has(.menu__item-link--1.menu__item-link--hassubmenu)) > .menu-sub {
    left: auto !important;
    right: 0 !important;
  }
}

/* =========================================================
   v1.3.0: kategorijų puslapis – kompaktiškas šoninis blokas,
   filtrai su slinktimi, žalios varnelės, plonesnė antraštė
   ========================================================= */

/* --- Kairės kolonos blokai --- */
#left-column .block-categories,
#left-column #search_filters,
#left-column .card {
  padding: 1rem 1.1rem !important;
  margin-bottom: 1rem !important;
}

/* Kategorijų sąrašas */
#left-column .block-categories .h6,
#left-column .block-categories .category-top-menu > li:first-child > a,
#left-column .block-categories > a,
#left-column .block-categories .block-categories__title {
  font-size: .8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hf-muted) !important;
  margin-bottom: .5rem;
}
#left-column .block-categories ul ul a,
#left-column .block-categories .category-sub-menu a,
#left-column .block-categories .category-sub__item a {
  display: block;
  padding: .35rem .6rem !important;
  font-size: .88rem;
  line-height: 1.3;
  color: var(--hf-text) !important;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
#left-column .block-categories ul ul a:hover,
#left-column .block-categories .category-sub-menu a:hover {
  background: var(--hf-green-soft);
  color: var(--hf-green-dark) !important;
}
#left-column .block-categories .current > a,
#left-column .block-categories a.current,
#left-column .block-categories li.current > a,
#left-column .block-categories .category-sub-menu .current a {
  background: var(--hf-dark);
  color: var(--hf-green) !important;
  font-weight: 700;
}
#left-column .block-categories ul ul,
#left-column .block-categories .category-sub-menu {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

/* --- Filtrai --- */
#search_filters .h6, #search_filters > p, #search_filters .text-uppercase:first-child {
  font-size: .8rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  color: var(--hf-muted) !important;
}
#search_filters .facet,
#search_filters section.facet {
  padding: .75rem 0 !important;
  border-top: 1px solid var(--hf-border);
}
#search_filters .facet .facet-title,
#search_filters .facet .facet__title,
#search_filters .facet > p,
#search_filters .facet .h6 {
  font-size: .9rem !important;
  font-weight: 800 !important;
  color: var(--hf-text) !important;
  margin-bottom: .4rem !important;
}
#search_filters .facet ul {
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding-right: 4px;
}
#search_filters .facet li { margin: 0 !important; }
#search_filters .facet label,
#search_filters .facet .facet-label,
#search_filters .facet .custom-control-label {
  font-size: .86rem;
  line-height: 1.3;
  padding-top: .2rem;
  padding-bottom: .2rem;
  color: var(--hf-text);
  cursor: pointer;
}
#search_filters .facet label:hover,
#search_filters .facet .custom-control-label:hover { color: var(--hf-green-dark); }
#search_filters .magnitude { color: var(--hf-muted); font-size: .78rem; }

/* Žalios varnelės (Bootstrap 4 ir paprastos) */
#search_filters input[type="checkbox"],
#search_filters input[type="radio"] { accent-color: var(--hf-green-dark); }
.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--hf-green) !important;
  border-color: var(--hf-green) !important;
}
.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px rgba(95, 212, 58, .25) !important;
}

/* Kainos slankiklis */
#search_filters .ui-slider .ui-slider-range,
#search_filters .noUi-connect { background: var(--hf-green) !important; }
#search_filters .ui-slider .ui-slider-handle,
#search_filters .noUi-handle { border-color: var(--hf-green) !important; }

/* Plona slinkties juosta sąrašuose */
#left-column ul::-webkit-scrollbar { width: 5px; }
#left-column ul::-webkit-scrollbar-thumb { background: #cfd6d1; border-radius: 4px; }
#left-column ul { scrollbar-width: thin; scrollbar-color: #cfd6d1 transparent; }

/* --- Kategorijos antraštė --- */
#js-product-list-header,
.block-category {
  padding: 1.1rem 1.5rem !important;
  min-height: 0 !important;
  margin-bottom: 1rem !important;
  border-left: 4px solid var(--hf-green) !important;
}
#js-product-list-header h1,
.block-category h1 {
  font-size: 1.5rem !important;
  margin: 0 !important;
  text-transform: none;
}
.block-category .category-cover,
.block-category .block-category-inner:empty { display: none; }

/* Rūšiavimo juosta */
#js-product-list-top,
.products-selection {
  padding: .6rem 1rem !important;
  align-items: center;
  margin-bottom: 1rem !important;
}
#js-product-list-top .products-sort-order .select-title,
#js-product-list-top select,
.products-sort-order .custom-select {
  border-radius: 8px !important;
  border: 1px solid var(--hf-border) !important;
}

/* Puslapiavimas */
.pagination .page-item .page-link,
.pagination a {
  border-radius: 8px !important;
  margin: 0 2px;
  color: var(--hf-text);
  border-color: var(--hf-border);
}
.pagination .page-item.active .page-link,
.pagination .current a {
  background: var(--hf-dark) !important;
  border-color: var(--hf-dark) !important;
  color: var(--hf-green) !important;
}
.pagination .page-link:hover { color: var(--hf-green-dark); }

/* =========================================================
   v1.4.0: prekės puslapis + kategorijų juostos lygiavimas
   ========================================================= */

/* Kategorijose: „Rasta N prekių“ juosta – vienodo pločio su tinkleliu */
#js-product-list-top { margin-left: 0 !important; margin-right: 0 !important; }

/* --- Prekės puslapis --- */
body#product h1,
body#product .h1,
body#product .product__name,
body#product h1.h1 {
  text-transform: none !important;
  font-size: 1.6rem !important;
  line-height: 1.25;
  font-weight: 800 !important;
  margin-bottom: .9rem !important;
}

/* Pagrindinė nuotrauka */
body#product .product-cover,
body#product .images-container .product-cover,
body#product .product-images,
body#product .product__images {
  background: #fff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  overflow: hidden;
}
body#product .product-thumbs img,
body#product .product-images img.thumb {
  border-radius: 8px;
  border: 2px solid transparent;
}
body#product .product-thumbs .selected img,
body#product .product-images img.thumb.selected,
body#product .product-thumbs img:hover { border-color: var(--hf-green); }

/* Kaina */
body#product .product-prices,
body#product .product__prices {
  margin: 0 0 .25rem !important;
}
body#product .product-prices .current-price,
body#product .product-prices .current-price span,
body#product .product-price,
body#product .current-price-value {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: var(--hf-dark) !important;
  line-height: 1.1;
}
body#product .product-prices .tax-shipping-delivery-label,
body#product .product-prices .product-tax-label,
body#product .tax-shipping-delivery-label {
  font-size: .82rem;
  color: var(--hf-muted) !important;
}
body#product .product-discount .regular-price { color: var(--hf-muted); font-size: 1.05rem; }
body#product .discount,
body#product .discount-percentage,
body#product .discount-amount {
  background: var(--hf-green) !important;
  color: var(--hf-dark) !important;
  border-radius: 6px;
  font-weight: 800;
}

/* Pirkimo kortelė */
body#product .product-actions,
body#product .product__actions {
  background: #fff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow);
  padding: 1.1rem 1.25rem !important;
  margin: 1rem 0 !important;
}
body#product .product-add-to-cart .add,
body#product .product-add-to-cart .product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .75rem;
}
body#product .product-add-to-cart .control-label,
body#product .product-add-to-cart label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--hf-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
body#product .product-add-to-cart .qty .input-group,
body#product .bootstrap-touchspin {
  border: 1px solid var(--hf-border);
  border-radius: 10px;
  overflow: hidden;
  height: 52px;
  box-shadow: none !important;
}
body#product .bootstrap-touchspin input,
body#product #quantity_wanted {
  height: 52px !important;
  border: 0 !important;
  font-weight: 700;
  text-align: center;
  box-shadow: none !important;
}
body#product .bootstrap-touchspin .btn,
body#product .bootstrap-touchspin .input-group-btn-vertical .btn,
body#product .input-group-btn .btn {
  border: 0 !important;
  background: #f4f6f5 !important;
  color: var(--hf-text) !important;
  min-width: 40px;
}
body#product .bootstrap-touchspin .btn:hover { background: var(--hf-green-soft) !important; color: var(--hf-green-dark) !important; }
body#product .product-add-to-cart .add-to-cart,
body#product .btn.add-to-cart {
  flex: 1 1 220px;
  min-height: 52px;
  font-size: 1.05rem !important;
  border-radius: 10px !important;
  padding: 0 1.75rem !important;
}

/* Pristatymo / sandėlio informacija */
body#product #product-availability,
body#product .product-availability,
body#product .product-additional-info .delivery-information {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  padding: .35rem .75rem;
  background: var(--hf-green-soft);
  color: var(--hf-green-dark) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
}
body#product #product-availability .material-icons,
body#product .product-availability .material-icons { color: var(--hf-green-dark) !important; }

/* Dalinimosi mygtukai – ramesni */
body#product .social-sharing { margin-top: .75rem; opacity: .75; transition: opacity .15s; }
body#product .social-sharing:hover { opacity: 1; }
body#product .social-sharing li,
body#product .social-sharing a {
  box-shadow: none !important;
  border: 1px solid var(--hf-border);
  background-color: #fff;
}

/* Aprašymo skirtukai */
body#product .tabs,
body#product .product-tabs,
body#product .product__tabs {
  background: #fff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow);
  padding: 1.25rem 1.5rem !important;
  overflow: hidden;
}
body#product .nav-tabs {
  border-bottom: 1px solid var(--hf-border) !important;
  justify-content: flex-start !important;
  gap: .25rem;
}
body#product .nav-tabs .nav-link {
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  color: var(--hf-muted) !important;
  font-weight: 700;
  padding: .6rem 1rem !important;
  background: transparent !important;
}
body#product .nav-tabs .nav-link.active,
body#product .nav-tabs .nav-link:hover {
  color: var(--hf-dark) !important;
  border-bottom-color: var(--hf-green) !important;
}

/* Aprašymo turinys: paveikslėliai ir lentelės neišlenda */
body#product .product-description,
body#product #description,
body#product .tab-content {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
body#product .product-description img,
body#product #description img,
body#product .tab-content img,
body#product .product-description iframe,
body#product .product-description video {
  max-width: 100% !important;
  height: auto !important;
}
body#product .product-description table,
body#product #description table,
body#product .tab-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
body#product .product-description table td,
body#product #description table td { padding: .3rem .6rem; }
body#product .product-features dl.data-sheet dt,
body#product .data-sheet .name { background: #f4f6f5 !important; font-weight: 700; }
body#product .product-features dl.data-sheet dd,
body#product .data-sheet .value { background: #fff !important; }

/* =========================================================
   v1.5.0: statinis baneris (vietoje slaiderio)
   ========================================================= */
.hf-banner {
  display: block;
  border-radius: var(--hf-radius);
  overflow: hidden;
  box-shadow: var(--hf-shadow);
  margin-bottom: 2.5rem;
  background: var(--hf-dark);
  aspect-ratio: 5 / 2;
  transition: box-shadow .2s, transform .2s;
}
.hf-banner:hover { box-shadow: var(--hf-shadow-hover); transform: translateY(-2px); }
.hf-banner picture, .hf-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .hf-banner { margin-bottom: 1.5rem; border-radius: 10px; } }

/* =========================================================
   v1.5.1: vienodas šriftas (Noto Sans – tema jį jau krauna),
   tvarkingesnis kategorijų medis, aktyvūs filtrai
   ========================================================= */
:root { --hf-font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body, button, input, select, textarea,
#search_filters, #left-column,
#search_filters label, #search_filters a, #search_filters span:not([class*="icon"]):not(.material-icons),
#left-column a, #left-column p, #left-column li,
.custom-control-label, label {
  font-family: var(--hf-font) !important;
}
.material-icons { font-family: "Material Icons" !important; }

/* Filtrų tekstas – tokio pat dydžio kaip kitur */
#search_filters .facet label,
#search_filters .facet label *,
#search_filters .facet .custom-control-label,
#search_filters .facet a,
#search_filters .facet span:not(.magnitude) {
  font-size: .88rem !important;
  line-height: 1.35 !important;
  font-weight: 400;
}

/* Kategorijų medis: be horizontalios slinkties, „+“ dešinėje */
#left-column .block-categories ul { overflow-x: hidden !important; }
#left-column .block-categories ul ul { max-height: 420px; }
#left-column .block-categories li { position: relative; }
#left-column .block-categories li > a { padding-right: 2rem !important; }
#left-column .block-categories .navbar-toggler,
#left-column .block-categories .collapse-icons,
#left-column .block-categories [data-toggle="collapse"]:not(a) {
  position: absolute !important;
  right: 0;
  top: .25rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--hf-muted) !important;
  cursor: pointer;
}
#left-column .block-categories .navbar-toggler:hover,
#left-column .block-categories .collapse-icons:hover { background: var(--hf-green-soft); color: var(--hf-green-dark) !important; }
#left-column .block-categories .navbar-toggler .material-icons,
#left-column .block-categories .collapse-icons .material-icons { font-size: 1.1rem; }

/* Aktyvūs filtrai */
#js-active-search-filters,
.active_filters {
  background: #fff !important;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow);
  padding: .75rem 1rem !important;
  margin-bottom: 1rem !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
#js-active-search-filters .active-filter-title,
.active_filters .active-filter-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--hf-muted);
  margin: 0 .25rem 0 0 !important;
}
#js-active-search-filters ul { display: contents; }
#js-active-search-filters .filter-block,
.active_filters .filter-block {
  background: var(--hf-dark) !important;
  color: #e8eee9 !important;
  border-radius: 999px !important;
  padding: .3rem .8rem !important;
  font-size: .82rem;
  margin: 0 !important;
  box-shadow: none !important;
}
#js-active-search-filters .filter-block a,
#js-active-search-filters .filter-block .close,
.active_filters .filter-block a { color: var(--hf-green) !important; opacity: 1; }

/* „Išvalyti viską“ mygtukas */
#search_filters .clear-all-wrapper .btn,
#search_filters .js-search-filters-clear-all {
  border-radius: 8px !important;
  border: 1px solid var(--hf-border) !important;
  background: #fff !important;
  color: var(--hf-text) !important;
  font-size: .85rem;
}
#search_filters .js-search-filters-clear-all:hover { border-color: var(--hf-green) !important; color: var(--hf-green-dark) !important; }

/* =========================================================
   v1.5.2: kategorijų medžio rodyklės vietoje „+“ ir kvadratėlių
   ========================================================= */
#left-column .block-categories a {
  display: block;
  padding-right: 2.25rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* paslepiam originalią ikoną (+ / -) */
#left-column .block-categories .navbar-toggler *,
#left-column .block-categories .collapse-icons *,
#left-column .block-categories [data-toggle="collapse"]:not(a) * { display: none !important; }
#left-column .block-categories .navbar-toggler,
#left-column .block-categories .collapse-icons,
#left-column .block-categories [data-toggle="collapse"]:not(a) {
  font-size: 0 !important;
  background: transparent;
  border: 0 !important;
  top: .3rem !important;
}
/* plona rodyklė › kuri pasisuka žemyn atidarius */
#left-column .block-categories .navbar-toggler::before,
#left-column .block-categories .collapse-icons::before,
#left-column .block-categories [data-toggle="collapse"]:not(a)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s;
}
#left-column .block-categories [aria-expanded="true"]::before,
#left-column .block-categories .navbar-toggler:not(.collapsed)[aria-expanded="true"]::before {
  transform: rotate(45deg) translate(-2px, -2px);
  color: var(--hf-green-dark);
}

/* tuščia „Aktyvūs filtrai“ juosta nerodoma */
#js-active-search-filters:not(:has(.filter-block)) { display: none !important; }
