/* ============================================================
   LP DETAIL v7 FINAL (06.06.2026)
   Cesta: /css/lp-detail.css
   ============================================================
   Designerský finiš:
   - Buybox užší, matching galerie (480 / 640)
   - Teplejší kávová hnědá #5d4a37
   - Subtle drop shadow + větší border-radius
   - Tlačítko sytější zelená + větší
   - Více vzduchu uvnitř buyboxu (22px 30px padding)
   ============================================================ */

/* === SKRYJ PŮVODNÍ ROZBITÉ PRVKY === */
#mygallery,
.stepcarousel,
#dhtmlgoodies_slideshow,
.jqZoomWindow {
    display: none !important;
}

.lp-original-form-hidden {
    display: none !important;
}

.lp-price-row-hidden {
    display: none !important;
}

/* ============================================================
   GALERIE - centrovaná, thumbs vlevo, hlavní fotka vpravo
   ============================================================ */
.lp-gallery {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 30px auto 36px auto;
    width: max-content;
    max-width: 100%;
    align-items: flex-start;
}

.lp-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 2px;
    order: -1;
    flex-shrink: 0;
}

.lp-gallery-thumb {
    width: 65px;
    height: 65px;
    border: 2px solid #f1e5d5;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.lp-gallery-thumb:hover {
    border-color: #d4761e;
}

.lp-gallery-thumb.active {
    border-color: #c0571f;
    box-shadow: 0 0 0 1px #c0571f inset;
}

.lp-gallery-thumb img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lp-gallery-thumbs:empty {
    display: none;
}

.lp-gallery-main {
    width: 380px;
    height: 380px;
    border: 1px solid #fbd2bd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
    flex-shrink: 0;
}

.lp-gallery-main img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.lp-gallery-main:hover img {
    transform: scale(1.03);
}

/* ============================================================
   NÁKUPNÍ BOX
   ============================================================ */
.lp-buybox {
    background: #5d4a37;
    color: #faf8f5;
    padding: 22px 30px;
    border-radius: 10px;
    margin: 0 0 22px 0;
    box-sizing: border-box;
    box-shadow: 0 3px 14px rgba(61, 53, 41, 0.18);
}

/* --- BEZ VARIANT - užší, centrovaný, vše v jednom řádku --- */
.lp-buybox.lp-no-variant {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 480px !important;
    margin: 0 auto 22px auto;
}

.lp-buybox.lp-no-variant .lp-buybox-prices {
    margin-right: auto;
}

/* --- S VARIANTAMI - cena nahoře, akce dole --- */
.lp-buybox.lp-has-variant {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px !important;
    margin: 0 auto 22px auto;
}

.lp-buybox.lp-has-variant .lp-buybox-prices {
    padding-bottom: 14px;
    border-bottom: 1px solid #7d6a4f;
}

.lp-buybox.lp-has-variant .lp-buybox-actions {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-buybox.lp-has-variant .lp-variant-wrapper {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 320px;
}

.lp-buybox.lp-has-variant .lp-variant-wrapper .lp-variant-select {
    width: 100%;
}

.lp-buybox.lp-has-variant .lp-qty-wrapper {
    margin-left: auto;
}

/* --- Společné prvky --- */
.lp-buybox-prices {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-buybox-price-main {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
}

.lp-buybox-price-main .lp-price-label {
    font-size: 14px;
    font-weight: 400;
    color: #c4bfb5;
    margin-left: 4px;
}

.lp-buybox-price-small {
    font-size: 13px;
    color: #c4bfb5;
    white-space: nowrap;
}

.lp-buybox-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-variant-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-variant-label {
    font-size: 11px;
    color: #c4bfb5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.lp-buybox .lp-variant-select {
    padding: 10px 12px;
    border: 1px solid #7d6a4f;
    background: #ffffff;
    color: #3d3529;
    border-radius: 4px;
    min-width: 180px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.lp-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lp-qty-label {
    font-size: 13px;
    color: #c4bfb5;
}

.lp-buybox .lp-qty-input {
    width: 56px;
    padding: 10px 8px;
    border: 1px solid #7d6a4f;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    color: #3d3529;
    font-family: inherit;
    box-sizing: border-box;
}

.lp-buy-btn {
    background: #2e9637;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lp-buy-btn:hover {
    background: #258029;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.lp-buy-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.lp-buy-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    padding: 30px;
}

.lp-lightbox.lp-open {
    display: flex;
}

.lp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}
