/* ===========================================================================
   ALRE.cz - uvodni strana: benefity, Nase top trhaky, Vyprodej.
   Patri k alre-homepage.js. Karty produktu na uvodni strane se stylu
   z alre-kategorie-redesign.css (blok "body.in-index"), tady jen sekce kolem.
   Fialova = akce/tlacitko, zelena = uspora a dostupnost, tmava = trhaky.
   =========================================================================== */

/* --- Benefity pod hlavickou --- */
html body .alre-hp-ben{background:#f6f1fd;border-bottom:1px solid #e8ddf8;margin:0 0 6px}
html body .alre-hp-ben ul{list-style:none;margin:0;padding:12px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px 18px}
html body .alre-hp-ben li{display:flex;align-items:center;gap:11px;margin:0;padding:0;min-width:0}
html body .alre-hp-ben-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#fff;color:#6d28d9;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(109,40,217,.12)}
html body .alre-hp-ben li b{display:block;font-size:14px;font-weight:800;color:#1f1b24;line-height:1.25}
html body .alre-hp-ben li small{display:block;font-size:12px;color:#6b6475;line-height:1.3;margin-top:1px}

/* --- Spolecne: hlavicky sekci + odpocet --- */
html body .alre-hp-hits h2, html body .alre-hp-sale h2{margin:0;padding:0;border:0;font-weight:800;letter-spacing:-.3px;line-height:1.1}
html body .alre-hp-timer{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;line-height:1.3;padding:9px 14px;border-radius:999px}
html body .alre-hp-timer svg{flex:none}
html body .alre-hp-timer b{font-weight:800}
html body .alre-hp-grid{display:grid !important;gap:14px !important;margin:0 !important}

/* --- Nase top trhaky: tmavy pas pres celou sirku --- */
html body .alre-hp-hits{background:linear-gradient(135deg,#1e1038 0%,#34185f 55%,#4c1d95 100%);margin:30px 0;padding:34px 0 38px;color:#fff}
html body .alre-hp-hits .alre-hp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin-bottom:22px}
html body .alre-hp-hits .alre-hp-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#a7e8a8;margin-bottom:6px}
html body .alre-hp-hits h2{font-size:34px;color:#fff}
html body .alre-hp-hits p{margin:6px 0 0;color:#d9c9f5;font-size:15px}
html body .alre-hp-hits .alre-hp-timer{background:rgba(255,255,255,.12);color:#efe7fb;border:1px solid rgba(255,255,255,.2)}
html body .alre-hp-hits .alre-hp-timer b{color:#fff}
html body .alre-hp-hits .alre-hp-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
/* trhak: bila karta na tmave, vetsi cena, zelene tlacitko, stitek "TRHAK" */
html body.in-index .alre-hp-hits .products.products-block .product.product > .p{border-color:transparent !important;box-shadow:0 10px 30px rgba(10,4,30,.35) !important;border-radius:14px !important;overflow:visible !important}
html body.in-index .alre-hp-hits .products.products-block .product.product:hover > .p{transform:translateY(-3px);box-shadow:0 16px 38px rgba(10,4,30,.5) !important;border-color:transparent !important}
html body.in-index .alre-hp-hits .products.products-block .product.product > .p::before{content:"TRHÁK";position:absolute;top:-10px;left:50%;transform:translateX(-50%);z-index:3;background:#009901;color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em;padding:5px 10px;border-radius:6px;box-shadow:0 4px 10px rgba(0,80,0,.35)}
html body.in-index .alre-hp-hits .products.products-block .product.product .flag-discount{font-size:15px !important;padding:7px 11px !important}
html body.in-index .alre-hp-hits .products.products-block .product.product .price-final strong{font-size:27px !important}
html body.in-index .alre-hp-hits .products.products-block .product.product .add-to-cart-button{background:#009901 !important;border-color:#009901 !important}
html body.in-index .alre-hp-hits .products.products-block .product.product .add-to-cart-button:hover{background:#0a7d0a !important;border-color:#0a7d0a !important}

/* --- Vyprodej: svetly ramovany blok, velky sticker a obri procenta --- */
html body .alre-hp-sale{margin:34px 0}
html body .alre-hp-sale-in{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:stretch;background:#f3ebff;border:3px solid #6d28d9;border-radius:22px;padding:22px;position:relative;box-shadow:0 12px 34px rgba(109,40,217,.18)}
html body .alre-hp-sale-side{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;min-width:0}
html body .alre-hp-sticker{display:inline-block;background:#6d28d9;color:#fff;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:7px 14px;border-radius:8px;transform:rotate(-3deg);box-shadow:0 6px 14px rgba(109,40,217,.35)}
html body .alre-hp-sale h2{font-size:32px;color:#2b0f5c}
html body .alre-hp-big{font-size:68px;font-weight:900;line-height:.95;letter-spacing:-2px;color:#6d28d9}
html body .alre-hp-big small{display:block;font-size:14px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#4c1d95;margin-bottom:4px}
html body .alre-hp-sale-side p{margin:0;font-size:14px;line-height:1.45;color:#4a3a66}
html body .alre-hp-sale .alre-hp-timer{background:#fff;color:#2b0f5c;border:1px solid #d9c8f5;border-radius:12px}
html body .alre-hp-sale .alre-hp-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;align-content:stretch}
html body.in-index .alre-hp-sale .products.products-block .product.product > .p{border:2px solid #fff !important;box-shadow:0 6px 18px rgba(109,40,217,.16) !important}
html body.in-index .alre-hp-sale .products.products-block .product.product:hover > .p{border-color:#6d28d9 !important}
html body.in-index .alre-hp-sale .products.products-block .product.product .flag-custom1{font-size:12px !important}
html body .alre-hp-stock{display:inline-flex;align-items:center;align-self:flex-start;background:#2b0f5c;color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;margin:0 0 8px}
html body .alre-hp-stock::before{content:"";width:7px;height:7px;border-radius:50%;background:#a7e8a8;margin-right:7px}

/* originaly, ktere se ukazuji nahore ve vlastni sekci, v beznych radach schovame */
html body.in-index .products.products-block .product.alre-hp-src{display:none !important}


/* --- Oprava: sablona dela z mrizek na mobilu vodorovny posuvnik s kartami siroke 230 px;
       v nasich sekcich chceme normalni mrizku --- */
html body .alre-hp-hits .products.products-block.alre-hp-grid,
html body .alre-hp-sale .products.products-block.alre-hp-grid{overflow:visible !important;padding:0 !important;margin:0 !important;scroll-snap-type:none !important}
html body.in-index .alre-hp-grid.products.products-block .product.product{width:auto !important;max-width:none !important;min-width:0 !important;margin:0 !important;flex:none !important}

/* --- Oprava: sablona nekdy nastavi na obrazek karty inline max-height:0 (fotky zmizi) --- */
html body.in-index .products.products-block .product.product > .p > a.image{max-height:none !important}

/* --- Tablet a mobil --- */
@media (max-width:1100px){
  html body .alre-hp-hits .alre-hp-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  html body .alre-hp-sale-in{grid-template-columns:1fr}
  html body .alre-hp-sale-side{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px}
  html body .alre-hp-big{font-size:48px}
}
@media (max-width:767px){
  html body .alre-hp-ben ul{grid-template-columns:repeat(2,1fr);padding:10px 0}
  html body .alre-hp-ben li small{display:none}
  html body .alre-hp-ben-ic{flex-basis:34px;width:34px;height:34px;border-radius:10px}
  html body .alre-hp-ben li b{font-size:13px}
  html body .alre-hp-timer{font-size:12.5px;padding:8px 12px}

  /* trhaky: tmavy pas pres celou sirku obrazovky */
  html body .alre-hp-hits{margin:22px calc(50% - 50vw);width:100vw;max-width:none;padding:22px 0 18px;border-radius:0}
  html body.in-index .overall-wrapper{overflow-x:clip}
  html body .alre-hp-hits .container,html body .alre-hp-sale .container{padding-left:0 !important;padding-right:0 !important;max-width:none}
  html body .alre-hp-hits .alre-hp-head{padding:0 20px;margin-bottom:14px}
  html body .alre-hp-hits h2{font-size:26px}
  html body .alre-hp-hits p{font-size:13px}

  /* vyprodej: ramecek, uvnitr vodorovny posuvnik */
  html body .alre-hp-sale{margin:22px 12px}
  html body .alre-hp-sale-in{display:block;padding:16px 0 12px;border-radius:18px}
  html body .alre-hp-sale-side{padding:0 16px 12px;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 14px}
  html body .alre-hp-sale h2{font-size:24px}
  html body .alre-hp-big{font-size:44px;letter-spacing:-1px}
  html body .alre-hp-sale-side p{flex:1 1 100%}

  /* mrizka 2 x N (jako Alza): nase sekce i bezne rady produktu na uvodce */
  html body .alre-hp-hits .products.products-block.alre-hp-grid,
  html body .alre-hp-sale .products.products-block.alre-hp-grid,
  html body.in-index .products.products-block[class*="homepage-products-"]{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;overflow:visible !important;scroll-snap-type:none !important;margin:0 !important;padding:0 !important}
  html body .alre-hp-hits .products.products-block.alre-hp-grid{padding:0 14px !important}
  html body .alre-hp-sale .products.products-block.alre-hp-grid{padding:0 12px !important}
  html body.in-index .products.products-block .product.product,
  html body.in-index .alre-hp-grid.products.products-block .product.product{flex:none !important;width:auto !important;min-width:0 !important;max-width:none !important;margin:0 !important}
  /* na telefonu jen prvnich 6 produktu v rade (znaci JS), at se nescrolluje donekonecna */
  html body.in-index .products.products-block .product.alre-hp-over{display:none !important}

  /* kompaktni karta */
  html body.in-index .products.products-block .product.product > .p > a.image{aspect-ratio:1 / 1 !important}
  html body.in-index .products.products-block .product.product > .p > a.image img{width:calc(100% - 16px) !important;height:calc(100% - 16px) !important}
  html body.in-index .products.products-block .product.product .p-in{padding:8px 10px 12px !important}
  html body.in-index .products.products-block .product.product .p-in-in{min-height:0 !important}
  html body.in-index .products.products-block .product.product a.name{height:auto !important;max-height:none !important;min-height:0 !important;font-size:13px !important;line-height:1.3 !important;margin-bottom:4px !important}
  html body.in-index .products.products-block .product.product .p-tools{margin-bottom:6px !important}
  html body.in-index .products.products-block .product.product .availability{font-size:10.5px !important}
  html body.in-index .products.products-block .product.product .alre-deliv{display:none !important}
  html body.in-index .products.products-block .product.product .prices{padding-top:8px !important}
  html body.in-index .products.products-block .product.product .price-final strong{font-size:19px !important}
  html body.in-index .products.products-block .product.product .prices .price-standard{font-size:12px !important}
  html body.in-index .products.products-block .product.product .add-to-cart-button{min-height:40px !important;font-size:13px !important}
  html body.in-index .products.products-block .product.product .flags .flag{font-size:10px !important;padding:3px 6px !important}
  html body.in-index .products.products-block .product.product .flag-discount,
  html body.in-index .products.products-block .product.product .flag-discount .price-save{font-size:11px !important;padding:3px 6px !important}
  /* v nasich sekcich neopakujeme stitek Akce/Vyprodej a TRHAK (sekce to rika nadpisem) */
  html body.in-index .alre-hp-grid .product .flag-action,
  html body.in-index .alre-hp-grid .product .flag-custom1{display:none !important}
  html body.in-index .alre-hp-hits .products.products-block .product.product > .p::before{display:none !important}
  html body.in-index .alre-hp-hits .products.products-block .product.product .price-final strong{font-size:20px !important}
  html body .alre-hp-stock{font-size:11px;padding:3px 8px;white-space:nowrap;margin-bottom:6px}
}
