/* =========================================================
   ZLATO Z OLIV – PRODUKTOVÉ KARTY v6
   ČISTÁ VERZE – pouze hlavní výpis produktů POD ŘAZENÍM.
   Sekce „Nejprodávanější“ nad řazením zůstává nedotčená.
   ========================================================= */

/* Všechna pravidla jsou schválně jen pod .zzo-final-card.
   Díky tomu se nerozbije horní sekce Nejprodávanější. */

html body .zzo-final-card {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 18px 16px !important;
    background: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-right: 1px solid #e4e1da !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Každá třetí karta bez pravé čáry */
html body .zzo-final-card:nth-child(3n) {
    border-right: 0 !important;
}

/* Vnitřní bloky */
html body .zzo-final-card .p,
html body .zzo-final-card .p-in,
html body .zzo-final-card .p-in-in,
html body .zzo-final-card .p-bottom {
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================
   HODNOCENÍ + NÁZEV NAD LAHVÍ
   ========================================================= */

html body .zzo-final-card .zzo-card-head-v6 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    margin: 0 0 6px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Hodnocení první */
html body .zzo-final-card .zzo-rating-top-v6 {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    min-height: 25px !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Název druhý = hned nad lahví */
html body .zzo-final-card .zzo-title-top-v6 {
    order: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #172713 !important;
    font-size: 17px !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
}

html body .zzo-final-card .zzo-title-top-v6:hover {
    color: #273d1b !important;
    text-decoration: none !important;
}

/* Originální název/hodnocení necháváme v DOM, jen je schováme */
html body .zzo-final-card .zzo-original-name-v6,
html body .zzo-final-card .zzo-original-rating-v6 {
    display: none !important;
}

/* Kód produktu ve výpisu nechceme */
html body .zzo-final-card .p-code,
html body .zzo-final-card .product-code,
html body .zzo-final-card .code {
    display: none !important;
}

/* =========================================================
   OBRÁZEK – ČISTĚ BÍLÝ, BEZ KRUHU, BEZ ČÁRY POD LAHVÍ
   ========================================================= */

html body .zzo-final-card .zzo-media-v6,
html body .zzo-final-card .p-image,
html body .zzo-final-card .image,
html body .zzo-final-card a.image,
html body .zzo-final-card .image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 245px !important;
    min-height: 245px !important;
    max-height: 245px !important;
    margin: 0 !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

html body .zzo-final-card .zzo-media-v6::before,
html body .zzo-final-card .zzo-media-v6::after,
html body .zzo-final-card .p-image::before,
html body .zzo-final-card .p-image::after,
html body .zzo-final-card .image::before,
html body .zzo-final-card .image::after,
html body .zzo-final-card a.image::before,
html body .zzo-final-card a.image::after,
html body .zzo-final-card .image-wrapper::before,
html body .zzo-final-card .image-wrapper::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

html body .zzo-final-card .zzo-media-v6 img,
html body .zzo-final-card .p-image img,
html body .zzo-final-card .image img,
html body .zzo-final-card a.image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 88% !important;
    max-height: 228px !important;
    margin: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

/* DŮLEŽITÉ: žádná vodorovná čára pod lahví */
html body .zzo-final-card .p-bottom {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    border-top: 0 !important;
}

/* =========================================================
   CENA + SKLAD
   ========================================================= */

html body .zzo-final-card .zzo-price-stock-v6 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 0 8px !important;
}

html body .zzo-final-card .zzo-price-box-v6 {
    min-width: 0 !important;
    text-align: left !important;
}

html body .zzo-final-card .zzo-stock-box-v6 {
    align-self: start !important;
    text-align: right !important;
}

html body .zzo-final-card .prices {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

html body .zzo-final-card .price,
html body .zzo-final-card .price-final,
html body .zzo-final-card .price-final strong {
    color: #111 !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

html body .zzo-final-card .availability,
html body .zzo-final-card .zzo-stock-box-v6 .availability {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* =========================================================
   MNOŽSTVÍ + KOŠÍK
   ========================================================= */

html body .zzo-final-card .zzo-buy-row-v6 {
    display: grid !important;
    grid-template-columns: minmax(150px,42%) minmax(0,1fr) !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 8px 0 14px !important;
}

html body .zzo-final-card .zzo-quantity-v6 {
    display: grid !important;
    grid-template-columns: 1fr 1.25fr 1fr !important;
    width: 100% !important;
    height: 48px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #9d9d94 !important;
    box-sizing: border-box !important;
}

html body .zzo-final-card .zzo-quantity-v6 button,
html body .zzo-final-card .zzo-quantity-v6 input {
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 17px !important;
    line-height: 46px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .zzo-final-card .zzo-qty-value-v6 {
    border-left: 1px solid #c7c7bf !important;
    border-right: 1px solid #c7c7bf !important;
    -moz-appearance: textfield !important;
}

html body .zzo-final-card .zzo-qty-value-v6::-webkit-inner-spin-button,
html body .zzo-final-card .zzo-qty-value-v6::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

html body .zzo-final-card .zzo-buy-row-v6 .btn,
html body .zzo-final-card .zzo-buy-row-v6 .btn-cart,
html body .zzo-final-card .zzo-buy-row-v6 button[type="submit"],
html body .zzo-final-card .zzo-buy-row-v6 input[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    color: #fff !important;
    background: #18320d !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

/* =========================================================
   POPIS
   ========================================================= */

html body .zzo-final-card .description,
html body .zzo-final-card .p-desc,
html body .zzo-final-card .product-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    width: 100% !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

/* Hover bez rámečku a bez stínu */
html body .zzo-final-card:hover {
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* =========================================================
   MOBIL
   ========================================================= */
@media (max-width:767px) {
    html body .zzo-final-card {
        padding: 8px 7px 12px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e4e1da !important;
    }

    html body .zzo-final-card .zzo-card-head-v6 {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0 3px !important;
    }

    html body .zzo-final-card .zzo-title-top-v6 {
        max-height: 36px !important;
        font-size: 14px !important;
    }

    html body .zzo-final-card .zzo-media-v6,
    html body .zzo-final-card .p-image,
    html body .zzo-final-card .image,
    html body .zzo-final-card a.image {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }

    html body .zzo-final-card .zzo-media-v6 img,
    html body .zzo-final-card .p-image img,
    html body .zzo-final-card .image img,
    html body .zzo-final-card a.image img {
        max-height: 178px !important;
    }

    html body .zzo-final-card .zzo-price-stock-v6 {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }

    html body .zzo-final-card .price,
    html body .zzo-final-card .price-final,
    html body .zzo-final-card .price-final strong {
        font-size: 19px !important;
    }

    html body .zzo-final-card .availability {
        font-size: 11px !important;
        white-space: normal !important;
    }

    html body .zzo-final-card .zzo-buy-row-v6 {
        grid-template-columns: 44% minmax(0,1fr) !important;
        gap: 6px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    html body .zzo-final-card .zzo-quantity-v6,
    html body .zzo-final-card .zzo-buy-row-v6 .btn,
    html body .zzo-final-card .zzo-buy-row-v6 .btn-cart,
    html body .zzo-final-card .zzo-buy-row-v6 button[type="submit"] {
        height: 44px !important;
        min-height: 44px !important;
    }

    html body .zzo-final-card .zzo-quantity-v6 button,
    html body .zzo-final-card .zzo-quantity-v6 input {
        height: 42px !important;
        line-height: 42px !important;
        font-size: 15px !important;
    }
}
/* =========================================================
   ZZO  spodn ohranien cel produktov karty
   ========================================================= */

@media (min-width: 768px) {

    html body .zzo-final-card {
        border-bottom: 1px solid #e4e1da !important;
    }

}

/* pod bez ry pmo pod lahv */
html body .zzo-final-card .p-bottom {
    border-top: 0 !important;
}
