/* ===========================================================================
   ALRE.cz - Vypis kategorie (produktove karty), verze 2
   Zadna nova barva: vse stoji na odstinech stavajici fialove a zelene.
   Fialova = sleva v % a tlacitko. Barvy stitku Novinka/Akce se nemeni, ridi je admin.
   Karta je nizsi (bez prazdneho mista pod nazvem), cena je nejvetsi prvek.

   Selektory jsou schvalne dlouhe, aby vyhraly nad alre-zaklad.css,
   alre-produkty.css a styly sablony bez ohledu na poradi nacteni.
   Vypnuti: smazat jeden <link> v paticce.
   =========================================================================== */

/* --- Karta: klidny zaklad, pri najeti fialovy okraj a jemny stin --- */
html body .products.products-page.products-block .product.product > .p{ transition: box-shadow .18s ease, border-color .18s ease !important; }
html body .products.products-page.products-block .product.product:hover > .p{ border-color:#c4b0ea !important; box-shadow:0 8px 24px rgba(109,40,217,.13) !important; }
html body .products.products-page.products-block .product.product:hover a.name span{ color:#6d28d9 !important; }

/* --- Odznaky: barvy stitku (Novinka, Akce...) zustavaji z adminu, menime jen slevu v % --- */
html body .products.products-page.products-block .product.product .flag-discount{ background:#6d28d9 !important; color:#fff !important; padding:5px 9px !important; border-radius:6px !important; height:auto !important; min-height:0 !important; line-height:1.2 !important; }
html body .products.products-page.products-block .product.product .flag-discount .price-save{ color:#fff !important; font-size:13px !important; font-weight:800 !important; letter-spacing:.01em !important; }

/* --- Nazev: 2 radky, bez prazdneho mista pod nim --- */
html body .products.products-page.products-block .product.product a.name{ min-height:38px !important; margin-bottom:6px !important; }
html body .products.products-page.products-block .product.product a.name span{ display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; transition:color .15s ease !important; }
html body .products.products-page.products-block .product.product .ratings-wrapper:not(:has(*)){ display:none !important; }

/* --- Dostupnost: zelena tecka + vyraznejsi text --- */
html body .products.products-page.products-block .product.product .availability{ display:inline-flex !important; align-items:center !important; gap:5px !important; font-weight:700 !important; }
html body .products.products-page.products-block .product.product .availability::before{ content:"" !important; width:7px !important; height:7px !important; border-radius:50% !important; background:#009901 !important; flex:none !important; }

/* --- Cena: nejvyraznejsi prvek karty --- */
html body .products.products-page.products-block .product.product .price-final strong{ font-size:22px !important; font-weight:800 !important; letter-spacing:-.01em !important; }
html body .products.products-page.products-block .product.product .prices .price-standard{ font-size:13px !important; }

/* --- Tlacitko: stejna fialova, tmavsi odstin pri najeti --- */
html body .products.products-page.products-block .product.product .add-to-cart-button{ font-weight:700 !important; transition:background-color .15s ease !important; }
html body .products.products-page.products-block .product.product .add-to-cart-button:hover{ background-color:#5b21b6 !important; }
html body .products.products-page.products-block .product.product .add-to-cart-button:active{ background-color:#4c1d95 !important; }

/* === Karta "Rychly nakup" (varianta C) ===================================
   Popis je skryty, sklad + doruceni jsou jeden radek, cena je vlevo a
   tlacitko vpravo. Texty "Usetrite" a "doruceni" doplnuje
   alre-kategorie-redesign.js. */
html body .products.products-page.products-block .product.product{ container-type:inline-size !important; }
html body .products.products-page.products-block .product.product > .p{ position:relative !important; }
html body .products.products-page.products-block .product.product .p-desc{ display:none !important; }
html body .products.products-page.products-block .product.product .p-tools{ margin-bottom:10px !important; }
html body .products.products-page.products-block .product.product .availability{ flex-wrap:wrap !important; row-gap:2px !important; }
html body .products.products-page.products-block .product.product .alre-deliv{ color:#302936 !important; font-weight:400 !important; text-transform:none !important; font-size:13px !important; }
html body .products.products-page.products-block .product.product .prices{ border-top:1px solid #efecf3 !important; padding-top:12px !important; }
html body .products.products-page.products-block .product.product .price-final{ flex-wrap:wrap !important; align-items:baseline !important; column-gap:8px !important; }
html body .products.products-page.products-block .product.product .alre-dot{ display:none !important; }
html body .products.products-page.products-block .product.product .alre-save{ align-self:flex-start !important; display:none !important; background:#dff2df !important; color:#0a5c0b !important; font-size:12px !important; font-weight:700 !important; line-height:1.3 !important; padding:3px 7px !important; border-radius:5px !important; margin-top:4px !important; white-space:nowrap !important; }

/* cena vlevo + tlacitko vpravo jen kdyz je karta dost siroka; na uzkych kartach (mobil) je tlacitko pres celou sirku a "Usetrite" i tecka pred dorucenim se nezobrazuji */
@container (min-width: 300px){
  html body .products.products-page.products-block .product.product .alre-dot{ display:inline !important; }
  html body .products.products-page.products-block .product.product .alre-save{ display:inline-block !important; }
  html body .products.products-page.products-block .product.product .p-in{ padding-bottom:14px !important; }
  html body .products.products-page.products-block .product.product .prices{ padding-right:134px !important; }
  html body .products.products-page.products-block .product.product .p-bottom > div:not(:has(.alre-save)) .prices{ min-height:58px !important; box-sizing:border-box !important; }
  html body .products.products-page.products-block .product.product .product-btn{ position:absolute !important; left:auto !important; top:auto !important; right:12px !important; bottom:14px !important; width:auto !important; padding:0 !important; margin:0 !important; }
  html body .products.products-page.products-block .product.product .product-btn .add-to-cart-button{ width:auto !important; min-width:0 !important; min-height:46px !important; padding:0 16px !important; white-space:nowrap !important; }
}

/* === Detail produktu: nakupni blok (varianta E1) ==========================
   Pruh s odpoctem, uspora a zaruky doplnuje alre-kategorie-redesign.js. */
html body .alre-buy-box.alre-has-strip{ padding-top:0 !important; overflow:hidden !important; }
html body .alre-buy-box .alre-ship-strip{ margin:0 -20px 18px !important; padding:11px 20px !important; background:#eef8ee !important; color:#0a5c0b !important; display:flex !important; align-items:center !important; gap:10px !important; font-size:15px !important; line-height:1.35 !important; }
html body .alre-buy-box .alre-ship-strip svg{ flex:none !important; }
html body .alre-buy-box .alre-ship-strip strong{ font-weight:700 !important; color:inherit !important; }
html body .alre-buy-box .alre-ship-strip .alre-count{ font-size:17px !important; font-weight:800 !important; white-space:nowrap !important; }
html body .alre-buy-box .alre-chips{ display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:6px !important; margin-top:8px !important; }
html body .alre-buy-box .alre-save{ background:#dff2df !important; color:#0a5c0b !important; font-size:14px !important; font-weight:700 !important; line-height:1.3 !important; padding:4px 9px !important; border-radius:6px !important; }
html body .alre-buy-box .alre-pct{ background:#6d28d9 !important; color:#fff !important; font-size:13px !important; font-weight:800 !important; line-height:1.3 !important; padding:4px 8px !important; border-radius:6px !important; }
html body .alre-buy-box .availability-value.alre-last-stock{ display:inline-flex !important; align-items:center !important; gap:6px !important; background:#f0eaf8 !important; color:#4c1d95 !important; font-size:13px !important; font-weight:700 !important; padding:5px 10px !important; border-radius:6px !important; height:auto !important; }
html body .alre-buy-box .availability-value.alre-last-stock *{ color:#4c1d95 !important; }
html body .alre-buy-box .availability-value.alre-last-stock::before{ content:"" !important; width:7px !important; height:7px !important; border-radius:50% !important; background:#6d28d9 !important; flex:none !important; }
/* termin ze Shoptetu schovame, kdyz uz ho rika pruh nahore (odkaz "Moznosti doruceni" zustava) */
html body .alre-buy-box.alre-has-strip .delivery-time-label,
html body .alre-buy-box.alre-has-strip .delivery-time{ display:none !important; }
html body .alre-assure{ display:flex !important; flex-wrap:wrap !important; gap:8px 22px !important; margin:12px 2px 0 !important; font-size:14px !important; color:#4a4352 !important; }
html body .alre-assure span{ display:inline-flex !important; align-items:center !important; gap:8px !important; }
html body .alre-assure svg{ flex:none !important; }
/* na mobilu zaruky pod nakupnim blokem nezobrazujeme */
@media (max-width: 767px){
  html body .alre-assure{ display:none !important; }
}

/* === Stejna karta na uvodni strance (body.in-index) ====================== */
/* --- Karta: klidny zaklad, pri najeti fialovy okraj a jemny stin --- */
html body.in-index .products.products-block .product.product > .p{ transition: box-shadow .18s ease, border-color .18s ease !important; }
html body.in-index .products.products-block .product.product:hover > .p{ border-color:#c4b0ea !important; box-shadow:0 8px 24px rgba(109,40,217,.13) !important; }
html body.in-index .products.products-block .product.product:hover a.name span{ color:#6d28d9 !important; }

/* --- Odznaky: barvy stitku (Novinka, Akce...) zustavaji z adminu, menime jen slevu v % --- */
html body.in-index .products.products-block .product.product .flag-discount{ background:#6d28d9 !important; color:#fff !important; padding:5px 9px !important; border-radius:6px !important; height:auto !important; min-height:0 !important; line-height:1.2 !important; }
html body.in-index .products.products-block .product.product .flag-discount .price-save{ color:#fff !important; font-size:13px !important; font-weight:800 !important; letter-spacing:.01em !important; }

/* --- Nazev: 2 radky, bez prazdneho mista pod nim --- */
html body.in-index .products.products-block .product.product a.name{ min-height:38px !important; margin-bottom:6px !important; }
html body.in-index .products.products-block .product.product a.name span{ display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; transition:color .15s ease !important; }
html body.in-index .products.products-block .product.product .ratings-wrapper:not(:has(*)){ display:none !important; }

/* --- Dostupnost: zelena tecka + vyraznejsi text --- */
html body.in-index .products.products-block .product.product .availability{ display:inline-flex !important; align-items:center !important; gap:5px !important; font-weight:700 !important; }
html body.in-index .products.products-block .product.product .availability::before{ content:"" !important; width:7px !important; height:7px !important; border-radius:50% !important; background:#009901 !important; flex:none !important; }

/* --- Cena: nejvyraznejsi prvek karty --- */
html body.in-index .products.products-block .product.product .price-final strong{ font-size:22px !important; font-weight:800 !important; letter-spacing:-.01em !important; }
html body.in-index .products.products-block .product.product .prices .price-standard{ font-size:13px !important; }

/* --- Tlacitko: stejna fialova, tmavsi odstin pri najeti --- */
html body.in-index .products.products-block .product.product .add-to-cart-button{ font-weight:700 !important; transition:background-color .15s ease !important; }
html body.in-index .products.products-block .product.product .add-to-cart-button:hover{ background-color:#5b21b6 !important; }
html body.in-index .products.products-block .product.product .add-to-cart-button:active{ background-color:#4c1d95 !important; }

/* === Karta "Rychly nakup" (varianta C) ===================================
   Popis je skryty, sklad + doruceni jsou jeden radek, cena je vlevo a
   tlacitko vpravo. Texty "Usetrite" a "doruceni" doplnuje
   alre-kategorie-redesign.js. */
html body.in-index .products.products-block .product.product{ container-type:inline-size !important; }
html body.in-index .products.products-block .product.product > .p{ position:relative !important; }
html body.in-index .products.products-block .product.product .p-desc{ display:none !important; }
html body.in-index .products.products-block .product.product .p-tools{ margin-bottom:10px !important; }
html body.in-index .products.products-block .product.product .availability{ flex-wrap:wrap !important; row-gap:2px !important; }
html body.in-index .products.products-block .product.product .alre-deliv{ color:#302936 !important; font-weight:400 !important; text-transform:none !important; font-size:13px !important; }
html body.in-index .products.products-block .product.product .prices{ border-top:1px solid #efecf3 !important; padding-top:12px !important; }
html body.in-index .products.products-block .product.product .price-final{ flex-wrap:wrap !important; align-items:baseline !important; column-gap:8px !important; }
html body.in-index .products.products-block .product.product .alre-dot{ display:none !important; }
html body.in-index .products.products-block .product.product .alre-save{ align-self:flex-start !important; display:none !important; background:#dff2df !important; color:#0a5c0b !important; font-size:12px !important; font-weight:700 !important; line-height:1.3 !important; padding:3px 7px !important; border-radius:5px !important; margin-top:4px !important; white-space:nowrap !important; }

/* cena vlevo + tlacitko vpravo jen kdyz je karta dost siroka; na uzkych kartach (mobil) je tlacitko pres celou sirku a "Usetrite" i tecka pred dorucenim se nezobrazuji */
@container (min-width: 300px){
  html body.in-index .products.products-block .product.product .alre-dot{ display:inline !important; }
  html body.in-index .products.products-block .product.product .alre-save{ display:inline-block !important; }
  html body.in-index .products.products-block .product.product .p-in{ padding-bottom:14px !important; }
  html body.in-index .products.products-block .product.product .prices{ padding-right:134px !important; }
  html body.in-index .products.products-block .product.product .p-bottom > div:not(:has(.alre-save)) .prices{ min-height:58px !important; box-sizing:border-box !important; }
  html body.in-index .products.products-block .product.product .product-btn{ position:absolute !important; left:auto !important; top:auto !important; right:12px !important; bottom:14px !important; width:auto !important; padding:0 !important; margin:0 !important; }
  html body.in-index .products.products-block .product.product .product-btn .add-to-cart-button{ width:auto !important; min-width:0 !important; min-height:46px !important; padding:0 16px !important; white-space:nowrap !important; }
}

