/* ============================================================================
   kategoria-karta-si-2026-11-04.css  -  kompaktna karta produktu vo vypise
   (#products) + mobil 2 produkty vedla seba. TEST najprv len na julivan.si.

   Namerane na zivom webe 4. 11. 2026 (Shoptet template-13 Disco):
   hviezdicky -> cena 25 px, cena -> tlacidlo 22 px, tlacidlo -> varianty 44 px
   (.p-bottom padding-top 20, .p-tools padding 22/22, .widget-parameter-wrapper
   margin-top 22 z main-13). Tu: 8px rytmus, cena + tlacidlo prilepene na spodok
   karty, aby boli ceny v rade v jednej linii.

   Mobil (<768px) na strankach kategorie: DEFAULT 2 stlpce. Trieda kat-1col na
   <html> (z localStorage, prepinac v kategoria-mobile-view-toggle-si-2026-11-04.js)
   vrati 1 stlpec. V 2 stlpcoch sa skryva tlacidlo (cela karta je klikatelna).

   Vklada sa do ZAHLAVIA (spolu s 1-riadkovym inline skriptom proti skoku):
     <script>try{if(localStorage.getItem('julivanKatView')==='1')document.documentElement.classList.add('kat-1col')}catch(e){}</script>
     <link href="/user/documents/kategoria-karta-si-2026-11-04.css?v=1" rel="stylesheet">
   ============================================================================ */

/* --- Karta: vsetky sirky ------------------------------------------------- */
/* .p ma zo sablony margin-bottom 20px, preto flex na karte (nie height:100%, ktore pridalo 20px medzeru nad cenu) */
#products .product{display:flex;flex-direction:column}
#products .product .p{display:flex;flex-direction:column;flex:1 1 auto}
#products .product .p-in{display:flex;flex-direction:column;flex:1 1 auto;padding-top:8px}
#products .product .p-in-in{display:flex;flex-direction:column;gap:4px}
#products .product .name{min-height:2.8em;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* bez hodnotenia ziadne prazdne miesto - ceny v rade aj tak zarovna margin-top:auto na .p-bottom */
#products .product .ratings-wrapper{display:flex;justify-content:center;line-height:1}
#products .product .stars-placeholder{display:none !important}
#products .product .stars-wrapper{margin:0 !important}
#products .product .p-bottom{padding:8px 10px 0 !important;margin-top:auto}
#products .product .prices{gap:0 6px;flex-wrap:wrap;justify-content:center;align-items:baseline}
#products .product .p-tools{padding:10px 0 0 !important}
#products .product .p-tools .btn{min-height:44px;padding:6px 18px;line-height:30px}
#products .product .widget-parameter-wrapper{margin:8px 0 0 !important}
#products .product .widget-parameter-value a{font-size:14px}

/* --- Prepinac 1/2 stlpce (len mobil) ------------------------------------ */
.kat-view-toggle{display:none}
@media (max-width:767px){
  .kat-view-toggle{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}
  .kat-view-toggle button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #ddd;border-radius:6px;background:#fff;color:#888;cursor:pointer}
  .kat-view-toggle button.active{border-color:#C3B1E1;background:#F3EEFA;color:#6E4FA3}
  .kat-view-toggle svg{width:18px;height:18px;pointer-events:none}
}

/* --- Mobil: 2 stlpce (default), mimo html.kat-1col ---------------------- */
@media (max-width:767px){
  html:not(.kat-1col) body.type-category #products{column-gap:10px;row-gap:12px}
  html:not(.kat-1col) body.type-category #products .product .p{margin-bottom:10px}
  html:not(.kat-1col) body.type-category #products .product{width:calc(50% - 5px) !important}
  html:not(.kat-1col) body.type-category #products .product .name{font-size:14px;padding:0 4px !important}
  html:not(.kat-1col) body.type-category #products .product .price-final{font-size:17px}
  html:not(.kat-1col) body.type-category #products .product .price-standard,
  html:not(.kat-1col) body.type-category #products .product .price-save{font-size:13px}
  html:not(.kat-1col) body.type-category #products .product .p-bottom{padding:6px 4px 0 !important}
  html:not(.kat-1col) body.type-category #products .product .p-tools{display:none !important}
  html:not(.kat-1col) body.type-category #products .product .hpx-cd-listing{padding:2px 4px}
  html:not(.kat-1col) body.type-category #products .product .hpx-cd-listing-label{font-size:8px}
  html:not(.kat-1col) body.type-category #products .product .hpx-cd-listing-timer{font-size:12px}
  html:not(.kat-1col) body.type-category #products .product .flags-extra .flag{transform:scale(.75);transform-origin:bottom right}
  html:not(.kat-1col) body.type-category #products .product .widget-parameter-wrapper{margin:6px 0 0 !important}
  html:not(.kat-1col) body.type-category #products .product .widget-parameter-value a{font-size:12px}
}
