/* Samo elementi, ki rabijo JavaScript (filtri, razvrščanje, št. na stran), so brez JS skriti. */
html:not(.js) .js-only { display: none !important; }
#enabled_filters:empty { display: none; }
#enabled_filters ul { list-style: none; padding: 0; }
.kontakt { font-weight: 600; }

/* ==========================================================================
   PETER 22.11.: drsnik  (#homepage-slider / bxSlider, naloži se za temo)
   Prej: puščici sta bili 52 px kvadrata spodaj desno (bottom:10px; .bx-prev right:60px), zato sta
   se skupaj tiskali v kotu. Zdaj: okrogla gumba 44 px, navpično na sredini, 12 px od levega/desnega roba.
   (hitrost: homeslider_pause 2000 -> 6000, homeslider_speed 1000 -> 700 v inline skripti; autoHover je v homeslider.js že true)
   ========================================================================== */
#homepage-slider .bx-wrapper { position: relative; }
#homepage-slider .bx-wrapper .bx-controls-direction a {
  position: absolute; top: 50%; bottom: auto; margin-top: -22px;
  width: 44px; height: 44px; line-height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  text-indent: -9999px; overflow: hidden; outline: 0;
  z-index: 20; transition: background .2s ease;
}
#homepage-slider .bx-wrapper .bx-controls-direction a:before { display: none; }
#homepage-slider .bx-wrapper .bx-controls-direction a:after {
  display: block; position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  padding: 0; line-height: 44px; font-size: 20px; text-align: center; text-indent: 0; color: #fff;
}
#homepage-slider .bx-wrapper .bx-controls-direction a.bx-prev { left: 12px; right: auto; }
#homepage-slider .bx-wrapper .bx-controls-direction a.bx-next { right: 12px; left: auto; }
#homepage-slider .bx-wrapper .bx-controls-direction a:hover { background: rgba(0, 0, 0, .85); }
#homepage-slider .bx-wrapper .bx-controls-direction a:focus-visible,
#homepage-slider .bx-wrapper .bx-controls-direction a:focus {
  outline: 3px solid #fff; box-shadow: 0 0 0 5px #000;
}
/* PETER 22.11.: drsnik - razporeditev: ob manj kot 992 px prostora se drsnik raztegne čez vso širino, bloki (htmlcontent_top) gredo pod njega */
#homepage-slider { min-width: 0; }
#homepage-slider .bx-wrapper .bx-viewport { max-width: 100%; }
#htmlcontent_top { min-width: 0; }
@media (max-width: 991px) {
  #homepage-slider { float: none; width: 100%; max-width: 100%; }
  #htmlcontent_top { float: none; clear: both; width: 100%; max-width: 100%; padding-left: 0; overflow: hidden; }
  #htmlcontent_top ul { margin: 0 -5px; }
  #htmlcontent_top ul li { float: left; width: 50%; padding: 0 5px; margin-bottom: 10px; }
}
@media (max-width: 479px) {
  #htmlcontent_top ul li { float: none; width: 100%; }
}

/* ==========================================================================
   PETER 22.11.: noga FB  (blok "Follow us on Facebook" in "I buy lighter ...")
   Prej (global.css): #facebook_block, #cmsinfo_block { overflow:hidden; height:344px; min-height:344px }
   (991 px: 354 px) -> Facebook plugin je bil odrezan. Zdaj: višina po vsebini, brez odrezovanja.
   ========================================================================== */
#facebook_block, #cmsinfo_block { height: auto !important; min-height: 344px; }
/* PETER 22.11.: pas - overflow:hidden je #cmsinfo_block držal ob Facebooku (BFC); brez njega je "About Me" zdrsnil pod Facebook. */
#cmsinfo_block { overflow: hidden !important; }
#facebook_block { overflow: visible !important; }
@media (min-width: 768px) {
  /* enaka višina sivega pasu za oba bloka */
  .clearfix:has(> #facebook_block) { display: flex; align-items: stretch; }
  .clearfix:has(> #facebook_block)::before, .clearfix:has(> #facebook_block)::after { display: none; }
  .clearfix:has(> #facebook_block) > #facebook_block { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .clearfix:has(> #facebook_block) > #cmsinfo_block { flex: 1 1 0; min-width: 0; }
}
#facebook_block .facebook-fanbox { overflow: visible; max-width: 100%; }
#facebook_block .fb-page, #facebook_block .fb-page span, #facebook_block .fb-page iframe { max-width: 100% !important; }
#facebook_block { padding-bottom: 20px; }
.footer-container .container { height: auto; overflow: visible; }
@media (max-width: 767px) {
  #facebook_block, #cmsinfo_block { float: none; clear: both; width: 100% !important; }
}

/* PETER 22.11.: new products - zavihek New arrivals odstranjen, "Popular" je zdaj naslov bloka */
.home-popular-title { margin-top: 10px; }

/* ==========================================================================
   PETER 22.11.: Impressum  (samo body.cms-1; besedilo je nespremenjeno)
   ========================================================================== */
body.cms-1 #center_column .rte { max-width: 70ch; margin: 0 auto 30px; line-height: 1.6; }
body.cms-1 #center_column h1 { font: 600 28px/34px "Open Sans", sans-serif; margin: 10px 0 24px; padding-bottom: 12px; border-bottom: 1px solid #d6d4d4; text-transform: none; }
body.cms-1 #center_column h2 { font: 600 19px/26px "Open Sans", sans-serif; color: #555; margin: 26px 0 10px; text-transform: none; }
body.cms-1 #center_column h3 { font: 600 16px/22px "Open Sans", sans-serif; color: #555; margin: 20px 0 8px; }
body.cms-1 #center_column p { margin: 0 0 14px; line-height: 1.6; }
body.cms-1 #center_column ul, body.cms-1 #center_column ol { margin: 0 0 14px; padding-left: 1.6em; }
body.cms-1 #center_column li { margin-bottom: 4px; }
body.cms-1 #center_column table { display: block; width: 100%; margin: 0 0 18px; background: #f6f6f6; border: 1px solid #d6d4d4; border-radius: 3px; padding: 6px 16px; }
body.cms-1 #center_column tbody { display: block; }
body.cms-1 #center_column tr { display: flex; flex-wrap: wrap; gap: 4px 16px; }
body.cms-1 #center_column td:empty { display: none; }
body.cms-1 #center_column td { display: block; padding: 6px 0; border: 0; background: none; }
body.cms-1 #center_column td:first-child { flex: 0 0 9em; font-weight: 600; color: #777; }
body.cms-1 #center_column td:last-child { flex: 1 1 12em; }
body.cms-1 #center_column a[href^="mailto:"], body.cms-1 #center_column a[href^="tel:"] { color: #333; text-decoration: underline; }
@media (max-width: 575px) {
  body.cms-1 #center_column td:first-child { flex-basis: 100%; padding-bottom: 0; }
  body.cms-1 #center_column td:last-child { flex-basis: 100%; padding-top: 0; }
}

/* PETER 22.11.: kontakt (/contact-meold - statična stran, brez obrazca) */
body.cms-contact #center_column .rte { max-width: 70ch; margin: 0 auto 30px; line-height: 1.6; }
body.cms-contact #center_column h1 { font: 600 28px/34px "Open Sans", sans-serif; margin: 10px 0 24px; padding-bottom: 12px; border-bottom: 1px solid #d6d4d4; text-transform: none; }
body.cms-contact #center_column p { margin: 0 0 14px; }
body.cms-contact .kontakt-naslov { font-size: 20px; font-weight: 600; }
body.cms-contact .kontakt-naslov a { color: #333; text-decoration: underline; }

/* PETER 22.11.: noga FB - navadna povezava namesto vticnika */
#facebook_block .fb-povezava { margin: 10px 0 0; font-size: 16px; }
#facebook_block .fb-povezava a { color: #3b5998; font-weight: 600; }
#facebook_block .fb-povezava i { margin-right: 6px; }

/* ==========================================================================
   PETER 22.11.: More čez kartico
   Prej (product_list.css, >=1200 px): ob lebdenju se pod imenom pokaže gumb "More" (in prazni functional-buttons),
   kartica se podaljša navzdol. Zdaj: "More" se pokaže na sredini kartice čez sliko, kartica ostane enako visoka.
   ========================================================================== */
ul.product_list.grid > li .product-container .functional-buttons { display: none !important; }
@media (min-width: 1200px) {
  ul.product_list.grid > li .product-container { position: relative; }
  ul.product_list.grid > li .product-container .button-container {
    display: flex !important; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: 0;
    align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
    pointer-events: none; z-index: 5;
  }
  ul.product_list.grid > li.hovered .product-container .button-container,
  ul.product_list.grid > li .product-container:hover .button-container,
  ul.product_list.grid > li .product-container:focus-within .button-container { opacity: 1; visibility: visible; }
  ul.product_list.grid > li .product-container .button-container .lnk_view { margin: 0; pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
}
@media (prefers-reduced-motion: reduce) {
  ul.product_list.grid > li .product-container .button-container { transition: none; }
}

/* PETER 22.11.: FB 2 klika - siv okvir z gumbom na mestu Facebookovega okna */
#facebook_block .fb-dvoklik { min-height: 230px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 18px 14px; text-align: center; }
#facebook_block .fb-dvoklik-besedilo { font-size: 12px; line-height: 1.5; color: #555; margin: 0; max-width: 32ch; }
#facebook_block .fb-dvoklik .fb-povezava { margin: 0; font-size: 13px; }
#facebook_block .fb-page, #facebook_block .fb-page > span { width: 100% !important; }

/* ==========================================================================
   PETER 22.11.: noga v eni vrstici
   Prej: dva pasova - "Follow us" (ikone, desno) in pod njim "Information" (povezave v stolpcu).
   Zdaj (>=768 px): ena vrstica - levo "Information" s povezavami v vrsti, desno "Follow us" z ikonami.
   ========================================================================== */
@media (min-width: 768px) {
  .footer-container #footer { padding-bottom: 0; }
  .footer-container #footer > .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; padding: 18px 0; margin-left: 0; margin-right: 0; }
  .footer-container #footer > .row > .clearfix { display: none; }
  .footer-container #footer #block_various_links_footer { order: 1; flex: 1 1 0; min-width: 0; width: auto; float: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
  .footer-container #footer #block_various_links_footer h4 { margin: 0; padding: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
  .footer-container #footer #block_various_links_footer h4:after { display: none; }
  .footer-container #footer #block_various_links_footer ul.toggle-footer { display: flex !important; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
  .footer-container #footer #block_various_links_footer ul.toggle-footer li { padding: 0; margin: 0; list-style: none; }
  /* PETER 22.11.: tema daje #social_block width:50% -> se je prelomil v novo vrstico */
  .footer-container #footer #social_block { order: 2; float: none; width: auto; flex: 0 0 auto; margin: 0 0 0 auto; padding: 0;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; }
  .footer-container #footer #social_block h4 { float: none; margin: 0; padding: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
  .footer-container #footer #social_block ul { float: none; margin: 0; padding: 0; display: flex; gap: 6px; }
  .footer-container #footer #social_block ul li { float: none; padding: 0; margin: 0; width: auto; line-height: 1; }
  /* PETER 22.11.: Follow us v isti višini kot Information - ikone brez visoke vrstice in brez zamika navzdol (-5px) */
  .footer-container #footer #social_block ul li a { line-height: 1; font-size: 24px; display: block; padding: 0 4px; }
  .footer-container #footer #social_block ul li a:before { vertical-align: middle; }
  .footer-container #footer #social_block h4,
  .footer-container #footer #block_various_links_footer h4 { line-height: 24px; }
  .footer-container #footer #block_various_links_footer ul.toggle-footer li a { line-height: 24px; }
}

/* PETER 22.11.: Random lighters - manj prostora med vrstama.
   Tema je na naslovnici pod vsako kartico pustila 85 px (prostor za gumb More pod kartico); More je zdaj čez kartico. */
@media (min-width: 1200px) {
  #index ul.product_list.tab-pane > li { padding-bottom: 12px; margin-bottom: 0; }
}
