/* =====================================================================
   Detail produktu - design systém
   Role barev: #B12704 jen cena/sleva | #2FA51F jen akce + skladem
   | #2E7C97 odkazy a aktivní prvky | #F5A623 hvězdy
   ===================================================================== */

.pdPage a {
    color: #2E7C97;
}
.pdPage a.pdCta,
.pdPage a.pdGoBtn,
.pdPage a.greenButton,
.pdPage a.primaryButton {
    color: #fff;
}

/* ---------- hero: galerie + info ---------- */
.pdHero {
    margin-top: 6px;
}
.pdGallery .pdMain {
    border: 1px solid #E3EAED;
    border-radius: 10px;
    background: #F6F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    overflow: hidden;
}
.pdGallery .pdMain img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pdThumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.pdThumb {
    width: 64px;
    height: 52px;
    padding: 2px;
    border: 1px solid #E3EAED;
    border-radius: 8px;
    background: #F6F9FA;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdThumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pdThumb.active {
    border: 2px solid #2E7C97;
    padding: 1px;
}
.pdThumb:focus-visible {
    outline: 2px solid #2E7C97;
    outline-offset: 2px;
}

.pdInfo h1 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #16232B;
    letter-spacing: -.3px;
    margin: 12px 0 4px;
}
.pdBrandline {
    font-size: 13px;
    color: #64757E;
    margin: 0 0 4px;
}
.pdPage .nameDesc {
    margin: 0 0 10px;
    color: #64757E;
}

/* ---------- buy box ---------- */
.pdBuybox {
    border: 1px solid #E3EAED;
    border-radius: 10px;
    padding: 16px 18px;
    max-width: 470px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(30,60,70,.05);
}
.pdPriceRow {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.pdOd {
    font-size: 15px;
    color: #22313A;
}
.pdPrice {
    font-size: 34px;
    font-weight: 800;
    color: #B12704;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pdOldPrice {
    font-size: 15px;
    color: #93A2AA;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pdSale {
    background: #B12704;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}
.pdShopsCnt {
    font-size: 13px;
    color: #64757E;
    margin-top: 3px;
}
.pdAvail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: #EDF2F4;
    color: #52646E;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    padding: 4px 12px;
}
.pdAvail.ok {
    background: #EAF7EC;
    color: #217A33;
}
.pdAvail.ok i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2FA51F;
    display: inline-block;
}
a.pdCta {
    display: block;
    background: #2FA51F;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 8px;
    padding: 17px 10px;
    margin: 14px 0 10px;
    box-shadow: 0 2px 6px rgba(47,165,31,.35);
    text-decoration: none;
}
a.pdCta:hover {
    background: #28911A;
    text-decoration: none;
}
.pdCtaInfo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #64757E;
}
.pdShopChip {
    border: 1px solid #E3EAED;
    border-radius: 6px;
    background: #fff;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    flex: none;
}
.pdShopChip img {
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}
.pdGift {
    margin-top: 12px;
    background: #FFF7E8;
    border: 1px solid #F0E1C0;
    color: #8A6116;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
}
.pdPerex {
    max-width: 72ch;
    margin: 20px 0 6px;
}

/* ---------- srovnání cen ---------- */
.pdOffers h2 small {
    font-size: 13px;
    font-weight: 600;
    color: #64757E;
    margin-left: 10px;
}
.pdOffersList {
    border: 1px solid #E3EAED;
    border-radius: 10px;
    overflow: hidden;
}
.pdOffer {
    padding: 13px 16px;
    border-top: 1px solid #EEF3F5;
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}
.pdOffer:first-child {
    border-top: none;
}
.pdOffer.best {
    background: #F4FBF2;
    box-shadow: inset 3px 0 0 #2FA51F;
}
.pdOfferLogo {
    flex: none;
    width: 110px;
}
.pdOfferLogo img {
    max-width: 100px;
    max-height: 34px;
    object-fit: contain;
}
.pdOfferShop {
    flex: 1 1 160px;
    min-width: 140px;
}
.pdOfferShop h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0;
    display: inline;
}
.pdBest {
    display: inline-block;
    background: #2FA51F;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 9px;
    margin-left: 8px;
    vertical-align: 2px;
}
.pdStars {
    display: block;
    color: #F5A623;
    font-size: 12px;
    margin-top: 2px;
}
.pdStars small {
    color: #64757E;
    font-size: 12px;
    margin-left: 4px;
}
.pdOfferDel,
.pdOfferExtra {
    flex: 1 1 140px;
    min-width: 120px;
    color: #64757E;
    font-size: 12.5px;
}
.pdOfferDel b {
    color: #217A33;
    font-weight: 700;
    font-size: 14px;
    display: block;
}
.pdOfferDel span,
.pdOfferExtra span {
    display: block;
}
.pdOfferPrice {
    flex: none;
    margin-left: auto;
    text-align: right;
}
.pdOfferPr {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #B12704;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
a.pdGoBtn {
    display: block;
    background: #2FA51F;
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    text-align: center;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 6px;
    text-decoration: none;
}
a.pdGoBtn:hover {
    background: #28911A;
    text-decoration: none;
}

/* ---------- parametry, popis, recenze ---------- */
.pdParams table.product-params-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 640px;
    font-size: 14px;
}
.pdParams table.product-params-table td {
    padding: 8px 14px 8px 0;
    border-bottom: 1px solid #EEF3F5;
    vertical-align: top;
}
.pdParams table.product-params-table td:first-child {
    color: #64757E;
    width: 190px;
}
.pdParams table.product-params-table tr:last-child td {
    border-bottom: none;
}
.pdDesc articleWrap {
    display: block;
    max-width: 72ch;
}
.pdReviewHint {
    margin: 26px 0 6px;
    border-top: 1px solid #EEF3F5;
    padding-top: 14px;
    font-size: 13.5px;
    color: #64757E;
}
.pdReviewHint a.primaryButton {
    display: inline-block;
    background: none;
    border: none;
    color: #2E7C97;
    font-size: 13.5px;
    font-weight: 700;
    padding: 0;
    margin-left: 6px;
    text-decoration: underline;
}

/* ---------- mobilní sticky lišta ---------- */
.pdSticky {
    display: none;
}

/* ---------- desktop ---------- */
@media (min-width: 800px) {
    .pdHero {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }
    .pdGallery {
        flex: none;
        width: 380px;
    }
    .pdGallery .pdMain {
        height: 320px;
    }
    .pdInfo {
        flex: 1;
        min-width: 0;
    }
    .pdInfo h1 {
        font-size: 30px;
        margin-top: 0;
    }
    .pdPrice {
        font-size: 40px;
    }
    .pdOffer {
        display: grid;
        grid-template-columns: 110px 1fr 170px 140px 160px;
        gap: 14px;
    }
    .pdOfferPrice {
        margin-left: 0;
    }
}

/* ---------- mobil ---------- */
@media (max-width: 799px) {
    .pdBuybox {
        max-width: none;
    }
    .pdOfferLogo {
        display: none;
    }
    /* nabídka v jednom řádku, pokud stačí šířka; jinak se přirozeně zalomí */
    .pdOfferShop {
        flex: 1 1 auto;
        min-width: 0;
    }
    .pdOfferDel,
    .pdOfferExtra {
        flex: 0 1 auto;
        min-width: 0;
        font-size: 12.5px;
    }
    .pdOfferPrice {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    a.pdGoBtn {
        margin-top: 0;
        padding: 9px 14px;
    }
    .pdSticky {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: #fff;
        border-top: 1px solid #E3EAED;
        box-shadow: 0 -4px 14px rgba(30,60,70,.08);
        padding: 8px 12px;
        gap: 12px;
        align-items: center;
    }
    .pdStickyPrice {
        font-size: 18px;
        font-weight: 800;
        color: #B12704;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        line-height: 1.15;
    }
    .pdStickyPrice small {
        display: block;
        font-size: 11px;
        color: #64757E;
        font-weight: 400;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .pdSticky a.pdCta {
        flex: 1;
        margin: 0;
        padding: 11px 8px;
        font-size: 15.5px;
    }
    /* ať sticky lišta nepřekrývá konec stránky */
    body {
        padding-bottom: 64px;
    }
}
