/* ==========================================================================
   Mobilmax Premium Cards & Alza Filters Suite v2.3
   1. Rychlé Alza filtry nad produkty (horizontální scrollovatelné pilulky)
   2. Moderní design bočního panelu filtrů (#filters)
   3. Odstraněna duplicitní tlačítka na kartách (zůstává jediné nativní tlačítko)
   4. Skladovost ponechána v původním umístění na straně
   5. Zarovnaná 2-řádková výška názvů (dokonale rovné karty v řadě)
   6. Krásný 2-sloupcový mobilní grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ALZA-STYLE RYCHLÉ FILTRY NAD PRODUKTY (QUICK PILLS)
   -------------------------------------------------------------------------- */
.mm-alza-quick-filters {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 0 16px 0 !important;
  margin-bottom: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  width: 100% !important;
}

.mm-alza-quick-filters::-webkit-scrollbar {
  display: none !important;
}

.mm-alza-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 7px 15px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

.mm-alza-pill:hover {
  background: #f8fafc !important;
  border-color: #0b0e14 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07) !important;
}

.mm-alza-pill.active {
  background: #0b0e14 !important;
  color: #ffffff !important;
  border-color: #0b0e14 !important;
  box-shadow: 0 4px 14px rgba(11, 14, 20, 0.25) !important;
}

.mm-alza-pill-title {
  display: inline-flex !important;
  align-items: center !important;
}

.mm-alza-pill-count {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 99px !important;
  transition: background 0.2s, color 0.2s !important;
}

.mm-alza-pill.active .mm-alza-pill-count {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. MODERNÍ ALZA VZHLED BOČNÍHO PANELU FILTRŮ (#filters)
   -------------------------------------------------------------------------- */
#filters {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

#filters h4 {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0b0e14 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin: 18px 0 12px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
}

#filters h4:first-of-type {
  margin-top: 0 !important;
}

#filters .filter-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 0 !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

#filters .filter-label:hover {
  color: #0b0e14 !important;
}

#filters input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  accent-color: #0b0e14 !important;
  cursor: pointer !important;
  margin-right: 10px !important;
}

#filters .filter-count {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
  margin-left: auto !important;
}

#manufacturer-filter fieldset {
  max-height: 280px !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
}

#manufacturer-filter fieldset::-webkit-scrollbar {
  width: 5px !important;
}

#manufacturer-filter fieldset::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 99px !important;
}

/* --------------------------------------------------------------------------
   3. ČISTÁ A DOKONALE VYROVNANÁ KARTA PRODUKTU
   -------------------------------------------------------------------------- */
.product {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

@media (hover: hover) {
  .product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12) !important;
    border-color: #0b0e14 !important;
  }
}

.product .p {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

/* Rám obrázku a plynulý zoom */
.product .image {
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  height: 230px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  transition: background 0.2s ease !important;
  margin-bottom: 4px !important;
}

.product:hover .image {
  background: #f1f5f9 !important;
}

.product .image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (hover: hover) {
  .product:hover .image img {
    transform: scale(1.05) !important;
  }
}

/* Název produktu - přesně 2 řádky pro rovný grid */
.product .p-in {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

.product .p-in-in {
  display: flex !important;
  flex-direction: column !important;
}

.product .name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 8px 0 !important;
  min-height: 37px !important;
  max-height: 37px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease !important;
}

.product:hover .name {
  color: #e11d48 !important;
}

/* --------------------------------------------------------------------------
   4. SKLADOVOST PONECHÁNA V PŮVODNÍM UMÍSTĚNÍ NA STRANĚ
   -------------------------------------------------------------------------- */
.ratings-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

.ratings-wrapper .availability {
  margin-left: auto !important;
  text-align: right !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.ratings-wrapper .availability .show-tooltip {
  color: #009901 !important;
  font-weight: 700 !important;
}

.ratings-wrapper .availability-amount {
  color: #64748b !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   5. SPODNÍ ČÁST (CENA & PŮVODNÍ TLAČÍTKO)
   -------------------------------------------------------------------------- */
.product .p-bottom {
  margin-top: auto !important;
  padding-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.product .price.price-final strong {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #0b0e14 !important;
  letter-spacing: -0.3px !important;
}

/* Zamezení jakéhokoliv duplicitního tlačítka */
.mm-card-buy-btn,
.mm-card-action-btn {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. ČISTÝ 2-SLOUPOVÝ MOBILNÍ GRID
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body .products.products-block,
  body .products.products-page {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body .products.products-block > div.product,
  body .products.products-page > div.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  body .product .image {
    height: 155px !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  body .product .name {
    font-size: 12px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.3 !important;
    margin: 6px 0 !important;
  }

  body .ratings-wrapper .availability {
    font-size: 10.5px !important;
  }

  body .product .price.price-final strong {
    font-size: 16px !important;
  }
}
