/* sportobaze_custom – stiliai (perkelta iš custom.tpl) */

/* PASKYROS IKONA MOBILIAJAME VAIZDE (salia krepselio) */
.sb-user-link{ display:none; }
@media (max-width: 991px){
  .sb-has-user{ display:flex !important; align-items:center; justify-content:flex-end; }
  .sb-user-link{ display:inline-flex; align-items:center; line-height:0; margin-right:14px; }
  .sb-user-link svg{ width:26px; height:26px; }
}

/* PAIEŠKOS IKONA MOBILIAJAME VAIZDE (prieš paskyros ikoną) */
.sb-search-link{ display:none; }
.sb-search-panel{ display:none; }
@media (max-width: 991px){
  .sb-search-link{ display:inline-flex; align-items:center; line-height:0; margin-right:14px; cursor:pointer; background:none; border:0; padding:0; }
  .sb-search-link svg{ width:25px; height:25px; }
  .sb-search-panel.open{ display:block; width:100%; padding:10px 15px; box-sizing:border-box; }
  .sb-search-panel .sb-search-form{ display:flex; width:100%; margin:0; }
  .sb-search-panel input[type=text]{ flex:1; min-width:0; height:44px; padding:0 16px; font-size:16px;
    border:1px solid #ddd; border-right:0; border-radius:22px 0 0 22px; outline:none; }
  .sb-search-panel button{ height:44px; padding:0 18px; border:0; border-radius:0 22px 22px 0;
    color:#fff; font-weight:bold; font-size:16px; cursor:pointer; }
}
.sb-suggest{ display:none; background:#fff; border:1px solid #eee; border-radius:8px; margin-top:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.08); max-height:60vh; overflow-y:auto; }
.sb-sug-item{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid #f2f2f2; text-decoration:none !important; }
.sb-sug-item img, .sb-sug-noimg{ width:56px; height:56px; object-fit:contain; flex:0 0 56px; border:1px solid #eee; border-radius:4px; background:#fff; }
.sb-sug-txt{ display:flex; flex-direction:column; min-width:0; }
.sb-sug-name{ color:#5a3a1a; font-size:14px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.sb-sug-price{ font-weight:bold; font-size:15px; margin-top:4px; }
.sb-sug-all{ display:block; text-align:center; padding:10px; font-weight:bold; text-decoration:none !important; }
@media (max-width: 480px){
  .sb-search-link, .sb-user-link{ margin-right:8px !important; }
  .sb-search-link svg, .sb-user-link svg{ width:22px !important; height:22px !important; }
}

/* "KONTAKTAI" PUNKTAS MOBILIAJAME MENIU – visada paskutinis (kompiuteryje paslėptas) */
@media (min-width: 992px){ .sb-mobile-only{ display:none !important; } }

/* FILTRAI MOBILIAJAME VAIZDE: paslėpti, atidaromi mygtuku FILTRAS */
@media (max-width: 991px){
  .sb-filters-hidden{ display:none !important; }
  .sb-filter-open-btn{ box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
  /* tik viena rodyklė prie filtro skilties */
  .facet .collapse-icons .add, .facet .collapse-icons .fa-angle-down{ display:none !important; }
  .facet [aria-expanded="false"] .collapse-icons .add,
  .facet [aria-expanded="false"] .collapse-icons .fa-angle-down{ display:inline-block !important; }
  .facet [aria-expanded="false"] .collapse-icons .remove,
  .facet [aria-expanded="false"] .collapse-icons .fa-angle-up{ display:none !important; }
}

/* FILTRŲ SKILČIŲ (Kaina, Lytis...) SUSKLEIDIMAS PASPAUDUS ANT PAVADINIMO/RODYKLĖS (telefone) */
@media (max-width: 991px){
  .facet .title, .facet .facet-title, .facet .collapse-icons{ cursor:pointer; }
  .facet.sb-collapsed > *:not(.title):not(.facet-title){ display:none !important; }
  .facet.sb-collapsed .collapse-icons .add, .facet.sb-collapsed .collapse-icons .fa-angle-down{ display:inline-block !important; }
  .facet.sb-collapsed .collapse-icons .remove, .facet.sb-collapsed .collapse-icons .fa-angle-up{ display:none !important; }
}

/* MYGTUKAS "IŠVALYTI FILTRUS" (telefone, šalia FILTRAS) */
#sb-clear-filters{ display:none !important; }
@media (max-width: 991px){
  /* filtrų modulio savas "išvalyti" mygtukas telefone slepiamas – naudojamas mūsų */
  #search_filters .clear-all-wrapper, #search_filters .js-search-filters-clear-all,
  #_mobile_search_filters_clear_all, #_desktop_search_filters_clear_all{ display:none !important; }
  #sb-clear-filters.show{ display:inline-flex !important; align-items:center; gap:6px; margin-left:10px; padding:8px 14px;
    border:1px solid #ddd; border-radius:3px; background:#fff; color:#5a3a1a !important; font-size:15px;
    text-decoration:none !important; vertical-align:middle; }
}

/* KATEGORIJŲ SĄRAŠAS KAIRĖJE: rodomos pirmos 8, likusios po "Rodyti daugiau" */
.sb-cat-more-hidden{ display:none !important; }
.sb-cat-toggle{ display:inline-block; margin:8px 0 4px 12px; font-weight:bold; cursor:pointer; text-decoration:none !important; }

/* PREKIŲ KORTELĖSE PASLEPIAMAS UŽRAŠAS "Pagrindinis" */
.product-miniature .categoryname:has(a[href$="/pagrindinis"]),
.product-miniature .categoryname a[href$="/pagrindinis"]{ display:none !important; }

/* FILTRŲ VARNELĖS: slepiama visada matoma temos varnelės ikona */
.facet .custom-checkbox .checkbox-checked,
.facet .custom-checkbox .ps-shown-by-js i{ display:none !important; }

/* "SUSIJĘ PRODUKTAI" PREKĖS PUSLAPYJE: viena eilutė, stumdoma (karuselė) */
.sb-rel-wrap{ position:relative; }
.sb-related-section{ margin-bottom:30px !important; padding-bottom:0 !important; height:auto !important; min-height:0 !important; }
.sb-related-section + *, .sb-related-section ~ .product-comments, .sb-related-section ~ #product-comments-list-header{ margin-top:0 !important; }
.sb-related-grid{ display:flex !important; flex-wrap:nowrap !important; gap:20px !important; overflow-x:auto !important;
  scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch;
  width:100% !important; transform:none !important; padding:4px 2px 10px !important; margin:0 !important;
  scrollbar-width:none; align-items:stretch !important; }
.sb-related-grid::-webkit-scrollbar{ display:none; }
.sb-related-grid > *{ flex:0 0 calc((100% - 60px) / 4) !important; width:auto !important; max-width:none !important;
  float:none !important; margin:0 !important; height:auto !important; min-height:0 !important; scroll-snap-align:start; }
.sb-related-grid > *:empty{ display:none !important; }
.sb-related-grid .product-miniature, .sb-related-grid .js-product-miniature, .sb-related-grid .thumbnail-container{
  height:100% !important; min-height:0 !important; margin-bottom:0 !important; }
.sb-related-grid img{ max-width:100% !important; height:auto !important; }
.sb-rel-btn{ position:absolute; top:40%; transform:translateY(-50%); z-index:5; width:40px; height:40px; border-radius:50%;
  border:1px solid #ddd; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.12); cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:22px; line-height:1; color:#5a3a1a; padding:0; }
.sb-rel-btn.prev{ left:-18px; } .sb-rel-btn.next{ right:-18px; }
.sb-rel-btn[disabled]{ opacity:0; pointer-events:none; }
@media (max-width: 991px){ .sb-related-grid > *{ flex-basis:calc((100% - 40px) / 3) !important; } }
@media (max-width: 767px){
  .sb-related-grid{ gap:12px !important; }
  .sb-related-grid > *{ flex-basis:calc((100% - 12px) / 2.2) !important; }  /* matosi dalis kitos prekės – aišku, kad galima stumti */
  .sb-rel-btn{ display:none; }
}

/* PREKĖS PUSLAPYJE PASLEPIAMAS "Accessories" BLOKAS */
.product-accessories, section.product-accessories{ display:none !important; }

/* UŽSAKYMO PUSLAPIO (The Checkout) ANGLIŠKŲ TEKSTŲ VERTIMAS */
[data-optional-label]::after, [data-optional-label]::before{ content:none !important; display:none !important; }
/* naujienlaiškio blokas užsakyme paslėptas (nesiunčiame naujienlaiškių) */
#thecheckout-newsletter, .checkout-block#thecheckout-newsletter{ display:none !important; }

/* UŽSAKYMO PUSLAPIS: ryškus "Mokėti" mygtukas */
.sb-pay-btn{ background:#f7923a !important; border:0 !important; color:#fff !important; font-size:18px !important;
  font-weight:bold !important; text-transform:uppercase; letter-spacing:.5px; padding:14px 40px !important;
  min-width:260px; border-radius:30px !important; box-shadow:0 4px 12px rgba(247,146,58,.35) !important; cursor:pointer; }
.sb-pay-btn:hover{ filter:brightness(.95); }
@media (max-width: 767px){ .sb-pay-btn{ width:100% !important; min-width:0; } }

/* UŽSAKYMO PUSLAPIS: dešinysis stulpelis (krepšelis + Mokėti) lieka matomas slenkant */
@media (min-width: 992px){
  .sb-sticky-col{ position:sticky !important; top:20px; align-self:flex-start !important; height:auto !important; }
}

/* UŽSAKYMO PUSLAPIS: mažesni tarpai 1 stulpelyje (paskyra, sutikimas, mokėjimas) */
@media (min-width: 768px){
  #thecheckout-account, #thecheckout-psgdpr, #thecheckout-data-privacy, #thecheckout-html-box-1{
    margin-bottom:0 !important; padding-bottom:0 !important; min-height:0 !important; }
  #thecheckout-account .form-group, #thecheckout-account .custom-checkbox,
  #thecheckout-psgdpr .form-group, #thecheckout-psgdpr .custom-checkbox{
    margin-top:0 !important; margin-bottom:8px !important; padding-top:0 !important; padding-bottom:0 !important; }
  #thecheckout-psgdpr, #thecheckout-data-privacy{ margin-top:4px !important; padding-top:0 !important; }
  #thecheckout-payment{ margin-top:20px !important; padding-top:0 !important; }
}

/* UŽSAKYMO PUSLAPIS (kompiuteris, #tc-container): mažesni tarpai 1 stulpelyje */
#tc-container #thecheckout-account,
#tc-container #thecheckout-psgdpr{ margin-top:0 !important; margin-bottom:0 !important; padding-top:0 !important; padding-bottom:0 !important; min-height:0 !important; }
#tc-container #thecheckout-account > *:last-child,
#tc-container #thecheckout-psgdpr > *{ margin-bottom:0 !important; padding-bottom:0 !important; }
#tc-container #thecheckout-psgdpr .form-group, #tc-container #thecheckout-psgdpr .custom-checkbox,
#tc-container #thecheckout-psgdpr label, #tc-container #thecheckout-psgdpr p{ margin-top:0 !important; margin-bottom:0 !important; padding-top:0 !important; }
#tc-container #thecheckout-account .form-group{ margin-bottom:6px !important; }
#tc-container #thecheckout-account .form-group[style*="display: none"]{ margin:0 !important; }
#tc-container #thecheckout-newsletter{ display:none !important; }
#tc-container #thecheckout-payment{ margin-top:8px !important; padding-top:0 !important; }
#tc-container #thecheckout-payment > *:first-child,
#tc-container #thecheckout-payment .block-header,
#tc-container #thecheckout-payment .step-number{ margin-top:0 !important; padding-top:0 !important; }
#tc-container #thecheckout-account .form-group:last-child,
#tc-container #thecheckout-account .custom-checkbox{ margin-bottom:2px !important; padding-bottom:0 !important; }

/* UŽSAKYMO PUSLAPIS: mažesni tarpai viršuje ir aplink prisijungimo bloką */
#thecheckout-login-form{ margin-top:0 !important; margin-bottom:10px !important; padding-top:10px !important; padding-bottom:0 !important; }
#thecheckout-login-form > *{ margin-top:0 !important; }
#tc-container, #tc-container-mobile{ padding-top:0 !important; margin-top:0 !important; }
#tc-container .checkout-block.main-block.num-1,
#tc-container .checkout-block.main-block.num-2,
#tc-container .checkout-block.main-block.num-3{ margin-top:0 !important; padding-top:0 !important; }

/* UŽSAKYMO PUSLAPIS: kompaktiškesnis mokėjimo blokas */
#tc-container #thecheckout-payment .block-header,
#tc-container #thecheckout-payment h1, #tc-container #thecheckout-payment h2,
#tc-container #thecheckout-payment h3, #tc-container #thecheckout-payment h4{ margin-bottom:12px !important; padding-bottom:0 !important; }
#tc-container #thecheckout-payment .block-inner, #tc-container #thecheckout-payment .inner-area,
#tc-container #thecheckout-payment .payment-options, #tc-container #thecheckout-payment form{ margin-top:0 !important; padding-top:0 !important; }
#tc-container #thecheckout-payment .payment-option, #tc-container #thecheckout-payment .payment-options > div{ padding-top:10px !important; padding-bottom:10px !important; }
#tc-container #thecheckout-payment p, #tc-container #thecheckout-payment .additional-information{ line-height:1.3 !important; margin-top:6px !important; margin-bottom:6px !important; }
#thecheckout-login-form{ margin-bottom:0 !important; padding-bottom:0 !important; }

/* UŽSAKYMO PUSLAPIS TELEFONE (#tc-container-mobile): mažesni tarpai */
#tc-container-mobile #thecheckout-newsletter{ display:none !important; }
#tc-container-mobile .checkout-block{ margin-top:0 !important; margin-bottom:0 !important; padding-bottom:0 !important; min-height:0 !important; }
#tc-container-mobile .checkout-block.main-block{ margin-top:18px !important; padding-top:0 !important; }
#tc-container-mobile #thecheckout-login-form{ margin-top:0 !important; padding-top:0 !important; }
#tc-container-mobile #thecheckout-account .form-group, #tc-container-mobile #thecheckout-account .custom-checkbox,
#tc-container-mobile #thecheckout-psgdpr .form-group, #tc-container-mobile #thecheckout-psgdpr .custom-checkbox,
#tc-container-mobile #thecheckout-psgdpr label, #tc-container-mobile #thecheckout-psgdpr p{
  margin-top:0 !important; margin-bottom:8px !important; padding-top:0 !important; padding-bottom:0 !important; }
#tc-container-mobile #thecheckout-psgdpr{ margin-top:0 !important; padding-top:0 !important; }
#tc-container-mobile #thecheckout-account .form-group[style*="display: none"]{ margin:0 !important; }
/* mažesni žingsnių ratai su skaičiais */
#tc-container-mobile .block-header{ margin-bottom:10px !important; }
#tc-container-mobile .block-header::before, #tc-container-mobile .step-number{ transform:scale(.7); transform-origin:left top; }
#tc-container-mobile .block-header{ padding-top:0 !important; }

/* UŽSAKYMO PUSLAPIS: savas Google mygtukas (The Checkout mygtukas kartais nesukuriamas) */
#tc-container .tc-google-signin, #tc-container-mobile .tc-google-signin{ display:none !important; }
.sb-co-google{ display:flex; justify-content:center; margin:8px auto 0; min-height:40px; }

/* ATSILIEPIMO LANGAS: tvarkinga sutikimo varnelė, "Quality" vertimas */
#post-product-comment-modal .custom-checkbox, #post-product-comment-modal .gdpr_consent{ display:flex !important; align-items:flex-start; gap:10px; }
#post-product-comment-modal input[type=checkbox]{ width:18px !important; height:18px !important; min-width:18px; margin:3px 0 0 0 !important;
  position:static !important; opacity:1 !important; display:inline-block !important; transform:none !important; }
#post-product-comment-modal .custom-checkbox > span, #post-product-comment-modal .custom-checkbox .material-icons,
#post-product-comment-modal .checkbox-checked, #post-product-comment-modal .ps-shown-by-js i{ display:none !important; }
#post-product-comment-modal .gdpr_consent label, #post-product-comment-modal .custom-checkbox label{ margin:0 !important; }

/* PREKIŲ KORTELĖSE PASLEPIAMA "GREITA PERŽIŪRA", "Į KREPŠELĮ" PAKEIČIAMA Į "PERŽIŪRĖTI" */
.quick-view, .js-quick-view, .quickview, .btn-quickview, a[data-link-action="quickview"]{ display:none !important; }

/* PREKIŲ KORTELĖS: pavadinimui visada 2 eilutės, kad kainos būtų viename lygyje */
.product-miniature .product-title, .product-miniature .product-name, .product-miniature h3.h3,
.js-product-miniature .product-title, .js-product-miniature .product-name{
  display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden !important;
  line-height:1.4 !important; min-height:2.8em !important; max-height:2.8em !important; white-space:normal !important; }
.product-miniature .product-title a, .product-miniature .product-name a{ white-space:normal !important; }

/* NORŲ SĄRAŠAS: vietoj naršyklės "alert" lango – švelnus pranešimas ir mirksinti širdutė */
.sb-toast{ position:fixed; left:50%; bottom:30px; transform:translateX(-50%) translateY(20px); z-index:99999;
  background:#fff; color:#5a3a1a; border:1px solid #f7923a; border-radius:30px; padding:12px 22px;
  box-shadow:0 6px 20px rgba(0,0,0,.15); font-size:15px; opacity:0; transition:opacity .3s, transform .3s; pointer-events:none; }
.sb-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.sb-toast a{ color:#f7923a !important; font-weight:bold; text-decoration:underline !important; margin-left:6px; }
@keyframes sbPulse{ 0%{transform:scale(1)} 30%{transform:scale(1.45)} 60%{transform:scale(.9)} 100%{transform:scale(1)} }
.sb-pulse{ animation:sbPulse .7s ease 2; color:#f7923a !important; }

/* NORŲ SĄRAŠO PREKĖS: vienodo aukščio kortelės ir 2 eilučių pavadinimai */
#module-jmswishlist-mywishlist .sb-wl-row{display:flex !important;flex-wrap:wrap;gap:16px;list-style:none;padding:0;margin:0 0 20px}
#module-jmswishlist-mywishlist .sb-wl-row:before,#module-jmswishlist-mywishlist .sb-wl-row:after{display:none !important}
#module-jmswishlist-mywishlist .sb-wl-card{float:none !important;display:flex !important;flex-direction:column;align-items:center;text-align:center;width:calc(25% - 12px) !important;max-width:calc(25% - 12px) !important;margin:0 !important;box-sizing:border-box;padding:12px !important}
#module-jmswishlist-mywishlist .sb-wl-card *{float:none}
#module-jmswishlist-mywishlist .sb-wl-img{height:170px !important;width:auto !important;max-width:100% !important;object-fit:contain;display:block;margin:0 auto 10px}
#module-jmswishlist-mywishlist .sb-wl-title{display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4em !important;height:2.8em !important;margin:0 0 10px !important;text-align:center}
#module-jmswishlist-mywishlist .sb-wl-card .sb-wl-actions{margin-top:auto}
@media (max-width:991px){#module-jmswishlist-mywishlist .sb-wl-card{width:calc(33.333% - 11px) !important;max-width:calc(33.333% - 11px) !important}}
@media (max-width:767px){#module-jmswishlist-mywishlist .sb-wl-card{width:calc(50% - 8px) !important;max-width:calc(50% - 8px) !important}#module-jmswishlist-mywishlist .sb-wl-img{height:130px !important}}

/* KREPŠELIO LANGAS: „Pereiti prie apmokėjimo“ – visada oranžinis */
.modal a[href*="krepselis"], .modal a[href*="action=show"], .modal a[href*="/order"], .modal a[href*="uzsakym"],
#blockcart-modal .cart-content-btn a{
  background:#f7923a !important;border-color:#f7923a !important;color:#fff !important;
}
.modal a[href*="krepselis"]:hover, .modal a[href*="action=show"]:hover, .modal a[href*="/order"]:hover, .modal a[href*="uzsakym"]:hover,
#blockcart-modal .cart-content-btn a:hover{
  background:#e57d22 !important;border-color:#e57d22 !important;color:#fff !important;
}
@media (max-width:767px){
  #blockcart-modal .cart-content-btn{display:flex !important;flex-direction:column-reverse;gap:10px}
  #blockcart-modal .cart-content-btn a,#blockcart-modal .cart-content-btn button{width:100% !important;margin:0 !important}
}

/* MŪSŲ KLIENTAI: logotipai neištempti, vienodo aukščio */
.sb-brands img{
  width:100% !important;height:110px !important;max-width:100% !important;
  object-fit:contain !important;object-position:center !important;display:block;margin:0 auto;
}
.sb-brands .owl-item > *, .sb-brands .brand-item, .sb-brands .item{
  display:flex !important;align-items:center;justify-content:center;padding:0 10px;box-sizing:border-box;
}
.sb-brands .owl-dots, .sb-brands .owl-controls .owl-pagination, .sb-brands .owl-pagination{
  position:static !important;transform:none !important;margin-top:20px !important;text-align:center;
}
@media (max-width:767px){ .sb-brands img{height:80px !important} }
