/* =========================================================
   LAHOME DETAIL LIVE TUNE 2026
   Vychazi z aktualni zive verze produktu.
   Pouze cilene upravy, zadny novy redesign.
   ========================================================= */

#lh-product-live-tune-2026,
#lh-product-live-tune-2026 *,
#lh-product-live-tune-2026 *:before,
#lh-product-live-tune-2026 *:after {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   HLAVNI OBRAZEK
   - bez barevneho pozadi
   - az ke krajum ramecku
   --------------------------------------------------------- */

#lh-product-live-tune-2026 .lh-live-gallery #image-block {
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #e8ded5 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #view_full_size,
#lh-product-live-tune-2026 .lh-live-gallery #view_full_size > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #image-block img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* ---------------------------------------------------------
   CENA + SKLADEM
   --------------------------------------------------------- */

#lh-product-live-tune-2026 .lh-live-buybox .lh-live-price-stock-row {
    display: grid !important;
    grid-template-columns: minmax(145px, 1fr) minmax(155px, .9fr);
    grid-template-areas:
        "old stock"
        "price stock";
    column-gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

#lh-product-live-tune-2026 .lh-live-price-stock-row > #old_price {
    grid-area: old;
    margin: 0 0 1px !important;
}

#lh-product-live-tune-2026 .lh-live-price-stock-row > .our_price_display {
    grid-area: price;
    margin: 0 !important;
}

#lh-product-live-tune-2026 .lh-live-price-stock-row > #availability_statut {
    grid-area: stock;
}

/* Zadny ramecek, zadna zbytecna mezera. */
#lh-product-live-tune-2026 .lh-live-availability {
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 0 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid #e7ddd4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

#lh-product-live-tune-2026 .lh-live-availability #availability_value {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #438033 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    white-space: normal !important;
}

#lh-product-live-tune-2026 .lh-live-stock-main,
#lh-product-live-tune-2026 .lh-live-stock-dispatch,
#lh-product-live-tune-2026 .lh-live-stock-more {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lh-product-live-tune-2026 .lh-live-stock-main {
    color: #438033 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

#lh-product-live-tune-2026 .lh-live-stock-main .fa {
    margin-right: 3px;
    font-size: 11px;
}

#lh-product-live-tune-2026 .lh-live-stock-dispatch {
    margin-top: 3px !important;
    color: #766a61 !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
}

#lh-product-live-tune-2026 .lh-live-stock-more {
    margin-top: 2px !important;
    color: #9a7253 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

/* ---------------------------------------------------------
   CENA S KODEM - neni button ani velka krabice
   --------------------------------------------------------- */

#lh-product-live-tune-2026 .lh-live-code-price {
    display: flex !important;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 9px 0 12px !important;
    padding: 8px 0 !important;
    color: #64574d;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #eee4db !important;
    border-bottom: 1px solid #eee4db !important;
    border-radius: 0 !important;
    font-family: "Jost", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
}

#lh-product-live-tune-2026 .lh-live-code-price-label,
#lh-product-live-tune-2026 .lh-live-code-price-text {
    color: #84756a;
    font-weight: 400;
}

#lh-product-live-tune-2026 .lh-live-promo-code {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 6px;
    color: #6c472d !important;
    background: #f6eadc;
    border: 1px solid #e3cfb8;
    border-radius: 4px;
    font-size: 11px !important;
    line-height: 1.25;
    font-weight: 700 !important;
    letter-spacing: .035em;
}

#lh-product-live-tune-2026 .lh-live-code-final {
    color: #2f2924 !important;
    font-size: 15px !important;
    line-height: 1.2;
    font-weight: 600 !important;
}

#lh-product-live-tune-2026 .lh-live-code-discount {
    color: #987151;
    font-size: 10px;
}

/* ---------------------------------------------------------
   MOZnosti dopravy + kod produktu uvnitr buyboxu
   --------------------------------------------------------- */

#lh-product-live-tune-2026 .lh-live-buy-meta {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 11px 0 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #eee4db !important;
}

#lh-product-live-tune-2026 .lh-live-shipping-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #76533b !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.2;
    font-weight: 500 !important;
    text-decoration: none !important;
}

#lh-product-live-tune-2026 .lh-live-shipping-link .fa {
    color: #9b7253;
    font-size: 13px;
}

#lh-product-live-tune-2026 .lh-live-shipping-link:hover {
    color: #9b7253 !important;
    text-decoration: underline !important;
}

#lh-product-live-tune-2026 .lh-live-reference {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #8c7c70;
    font-family: "Jost", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.2;
}

#lh-product-live-tune-2026 .lh-live-reference strong {
    color: #3e3128 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .025em;
}

/* Stary standalone product_code uz v TPL neni. */
#lh-product-live-tune-2026 #product_code {
    display: none !important;
}

/* ---------------------------------------------------------
   PODOBNE KOUSKY - JEDEN RADEK PRES CELOU SIRKU
   stejny product-list.tpl jako kategorie
   --------------------------------------------------------- */

#lh-live-similar-2026 {
    clear: both;
    width: 100%;
    margin: 20px 0 27px !important;
    padding: 0 !important;
}

#lh-live-similar-2026 .lh-live-similar-head {
    width: 100%;
    margin: 0 0 11px;
    padding: 0 0 8px;
    border-bottom: 1px solid #eadfd5;
}

#lh-live-similar-2026 .lh-live-similar-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #3a2e25 !important;
    background: transparent !important;
    border: 0 !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

/* Override the standard 4-col category grid ONLY inside this full-width row. */
#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026:before,
#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026:after {
    content: none !important;
    display: none !important;
}

#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 > li.ajax_block_product,
#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 > li[class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Single-row cards can be a little tighter than category cards. */
#lh-live-similar-2026 .product-container {
    min-height: 0 !important;
}

#lh-live-similar-2026 .product-name {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

#lh-live-similar-2026 .content_price > .price.product-price {
    font-size: 13px !important;
}

/* Hide any old accessory structures if another hook/module still emits them. */
#lh-product-live-tune-2026 .accessories-blocky,
#lh-product-live-tune-2026 #bxsliderc,
#lh-product-live-tune-2026 #price2226 {
    display: none !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991px) {
    #lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    #lh-product-live-tune-2026 .lh-live-price-stock-row {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "old"
            "price"
            "stock" !important;
        row-gap: 5px !important;
    }

    #lh-product-live-tune-2026 .lh-live-availability {
        margin-top: 3px !important;
        padding: 7px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid #e7ddd4 !important;
    }

    #lh-product-live-tune-2026 .lh-live-buy-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    #lh-product-live-tune-2026 .lh-live-code-price {
        align-items: baseline;
    }
}

@media (max-width: 640px) {
    #lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
}

/* =========================================================
   LAHOME DETAIL v7
   Galerie = geometrie první detailové verze.
   Povrch hlavního obrázku + Skladem = přesně logika v5.
   ========================================================= */

/* ---------------------------------------------------------
   GALERIE - VRACENO PODLE PRVNI DETAILOVE VERZE
   --------------------------------------------------------- */

#lh-product-live-tune-2026 .primary_block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    margin: 0 -10px 24px !important;
}

#lh-product-live-tune-2026 .primary_block > .container,
#lh-product-live-tune-2026 #admin-action,
#lh-product-live-tune-2026 .confirmation {
    flex: 0 0 100%;
    width: 100%;
}

#lh-product-live-tune-2026 .lh-live-gallery {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    grid-template-areas:
        "thumbs image"
        "collection collection" !important;
    gap: 0 12px !important;
    flex: 0 0 54% !important;
    width: 54% !important;
    margin: 0 !important;
    padding: 0 18px 0 10px !important;
    float: none !important;
}

#lh-product-live-tune-2026 .lh-live-main {
    flex: 0 0 46% !important;
    width: 46% !important;
    margin: 0 !important;
    padding: 0 10px 0 18px !important;
    float: none !important;
}

#lh-product-live-tune-2026 .lh-live-empty-column {
    display: none !important;
}

/* Povrch hlavního obrázku zůstává přesně podle v5:
   bez barevného pozadí + obrazek až k hraně rámečku. */
#lh-product-live-tune-2026 .lh-live-gallery #image-block {
    grid-area: image !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #e8ded5 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #thumbs-wrapper {
    grid-area: thumbs !important;
    width: 84px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list,
#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list_frame {
    float: none !important;
    width: 84px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list_frame {
    display: block !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list li {
    display: block !important;
    float: none !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 0 9px !important;
    padding: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #eadfd5 !important;
    border-radius: 9px !important;
}

#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list li a,
#lh-product-live-tune-2026 .lh-live-gallery #thumbs_list li img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 6px !important;
}

/* ---------------------------------------------------------
   SKLADEM
   --------------------------------------------------------- */

/* Záměrně zde NEPŘEPISUJEME .lh-live-availability.
   Používá se přesně blok z v5:
   - bez boxu
   - bez barevného pozadí
   - bez zbytečné výšky
   - jemná svislá linka vpravo od ceny.
*/

/* ---------------------------------------------------------
   PODOBNE KOUSKY - VSECHNY, JEDEN RADEK
   --------------------------------------------------------- */

#lh-live-similar-2026 {
    clear: both !important;
    width: 100% !important;
    margin: 22px 0 30px !important;
    padding: 0 10px !important;
}

#lh-live-similar-2026 .lh-live-similar-head,
#lh-live-same-category-2026 .lh-live-same-category-head {
    width: 100% !important;
    margin: 0 0 11px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #eadfd5 !important;
}

#lh-live-similar-2026 .lh-live-similar-head h3,
#lh-live-same-category-2026 .lh-live-same-category-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #392c23 !important;
    background: transparent !important;
    border: 0 !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

/* Všechny podobné zůstávají v JEDNOM řádku.
   Při více než 6 kartách se řádek vodorovně posouvá. */
#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 11px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026:before,
#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026:after {
    content: none !important;
    display: none !important;
}

#lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 > li.ajax_block_product {
    flex: 0 0 calc((100% - 55px) / 6) !important;
    width: calc((100% - 55px) / 6) !important;
    max-width: calc((100% - 55px) / 6) !important;
    margin: 0 !important;
    float: none !important;
    scroll-snap-align: start;
}

/* ---------------------------------------------------------
   STEJNA KATEGORIE - MAX 12
   --------------------------------------------------------- */

#lh-live-same-category-2026 {
    clear: both !important;
    width: 100% !important;
    margin: 25px 0 34px !important;
    padding: 0 10px !important;
}

#lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026 {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026:before,
#lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026:after {
    content: none !important;
    display: none !important;
}

#lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026 > li.ajax_block_product,
#lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026 > li[class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Starý modul stejné kategorie okamžitě schovat. */
#lh-product-live-tune-2026 [id="productscategory_list"],
#lh-product-live-tune-2026 .productscategory_list,
#lh-product-live-tune-2026 .productscategory {
    display: none !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991px) {
    #lh-product-live-tune-2026 .primary_block {
        display: block !important;
        margin: 0 !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery,
    #lh-product-live-tune-2026 .lh-live-main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        float: none !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery {
        display: grid !important;
        grid-template-columns: 76px minmax(0,1fr) !important;
        gap: 0 10px !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs-wrapper,
    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list,
    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list_frame {
        width: 76px !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list li {
        width: 76px !important;
        height: 76px !important;
    }

    #lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 > li.ajax_block_product {
        flex-basis: calc((100% - 22px) / 3) !important;
        width: calc((100% - 22px) / 3) !important;
        max-width: calc((100% - 22px) / 3) !important;
    }

    #lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    #lh-product-live-tune-2026 .lh-live-gallery {
        display: flex !important;
        flex-direction: column !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #image-block {
        order: 1 !important;
        width: 100% !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs-wrapper {
        order: 2 !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list,
    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list_frame {
        width: max-content !important;
        min-width: 100% !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list_frame {
        display: flex !important;
        gap: 7px !important;
    }

    #lh-product-live-tune-2026 .lh-live-gallery #thumbs_list li {
        flex: 0 0 70px !important;
        width: 70px !important;
        height: 70px !important;
        margin: 0 !important;
    }

    #lh-live-similar-2026,
    #lh-live-same-category-2026 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #lh-live-similar-2026 ul.product_list.grid.lh-productcards-2026 > li.ajax_block_product {
        flex-basis: calc((100% - 9px) / 2) !important;
        width: calc((100% - 9px) / 2) !important;
        max-width: calc((100% - 9px) / 2) !important;
    }

    #lh-live-same-category-2026 ul.product_list.grid.lh-productcards-2026 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
}
