/* ===========================================================================
   Voltek — Product Detail page responsive cleanup
   Tətbiq olunur: yalnız body.single-product (məhsul detalı səhifəsi).
   Məqsəd: lstyles.css və lmystyles.css içərisindəki köhnə float / absolute
   məntiqlərini səliqəyə salmaq, mobil/tablet görünüşləri stabil etmək.
   =========================================================================== */

/* ---------- Ümumi konteyner ---------- */
body.single-product .single-product-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
    row-gap: 24px;
}

body.single-product .single-product-wrapper > .product-images-wrapper,
body.single-product .single-product-wrapper > .summary.entry-summary {
    float: none;
    width: 100%;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
}

@media (min-width: 768px) {
    body.single-product .single-product-wrapper > .product-images-wrapper {
        width: 45%;
        position: sticky;
        top: 90px;
    }

    body.single-product .single-product-wrapper > .summary.entry-summary {
        width: 55%;
    }
}

@media (min-width: 1200px) {
    body.single-product .single-product-wrapper > .product-images-wrapper {
        width: 42%;
    }

    body.single-product .single-product-wrapper > .summary.entry-summary {
        width: 58%;
    }
}

/* ---------- Qalereya / şəkillər ---------- */
body.single-product .product-images-wrapper {
    position: relative;
}

body.single-product .product-images-wrapper .new {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    pointer-events: none;
}

body.single-product .product-images-wrapper .new img {
    width: clamp(48px, 8vw, 70px);
    height: auto;
}

body.single-product .product-images-wrapper .images.electro-gallery {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(37, 52, 68, 0.08);
}

body.single-product .product-images-wrapper .thumbnails-single {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body.single-product .product-images-wrapper .thumbnails-single .owl-carousel .owl-item img {
    width: 100%;
    height: clamp(260px, 55vw, 500px);
    object-fit: contain;
    background: #fff;
}

@media (min-width: 992px) {
    body.single-product .product-images-wrapper .thumbnails-single .owl-carousel .owl-item img {
        height: 460px;
    }
}

/* Kiçik şəkillər (thumbnails-all) */
body.single-product .product-images-wrapper .thumbnails-all {
    margin-top: 12px;
}

body.single-product .product-images-wrapper .thumbnails-all .owl-stage-outer {
    height: 80px;
    overflow: hidden;
}

body.single-product .product-images-wrapper .thumbnails-all .owl-stage-outer img {
    height: 70px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 575px) {
    body.single-product .product-images-wrapper .thumbnails-all,
    body.single-product .product-images-wrapper .thumbnails-all .owl-stage-outer {
        display: none;
    }
}

/* ---------- Başlıq + heart button ---------- */
body.single-product .summary.entry-summary .product_title.entry-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.3;
    margin-bottom: 12px;
}

body.single-product .summary.entry-summary .product_title .voltek-favorite-btn--inline {
    flex-shrink: 0;
    margin-top: 2px;
}

body.single-product .summary.entry-summary hr.single-product-title-divider {
    margin: 8px 0 16px;
}

/* ---------- Kredit kalkulyatoru ---------- */
body.single-product .summary.entry-summary .credits {
    padding: 10px 0 16px;
}

body.single-product .summary.entry-summary .credits .nav {
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 0;
    margin-bottom: 10px;
}

body.single-product .summary.entry-summary .credits .nav-link {
    margin-right: 0;
    font-size: clamp(12px, 1.4vw, 15px);
    padding: 5px 12px;
}

body.single-product .summary.entry-summary .monthlybuttons {
    gap: 8px;
    padding-left: 0;
    margin-bottom: 12px;
}

body.single-product .summary.entry-summary .monthlybuttons .creditmonth {
    margin: 0;
    width: auto;
    min-width: 76px;
    padding: 6px 12px;
    font-size: 13px;
}

body.single-product .summary.entry-summary .credits .content {
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
}

body.single-product .summary.entry-summary .credits .content .monthly h6,
body.single-product .summary.entry-summary .credits .content .firstly h6 {
    margin: 0;
    font-size: clamp(13px, 1.5vw, 15px);
    color: #253444;
}

@media (max-width: 575px) {
    body.single-product .summary.entry-summary .credits .content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---------- Qiymət + zəng et bloku ---------- */
body.single-product .summary.entry-summary .offers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 0;
    margin: 8px 0 18px;
}

body.single-product .summary.entry-summary .offers .price.btn-danger {
    margin: 0;
    padding: 8px 14px;
    font-weight: 600;
}

body.single-product .summary.entry-summary .offers .electro-price {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

body.single-product .summary.entry-summary .offers .electro-price ins {
    text-decoration: none;
}

body.single-product .summary.entry-summary .offers .electro-price del {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7em;
    font-weight: 500;
}

body.single-product .summary.entry-summary .offers .call-me {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    margin: 0;
    transform: none;
    width: auto;
    min-width: 160px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border-width: 4px;
}

body.single-product .summary.entry-summary .offers .call-me .phone_icon {
    max-width: 32px;
    flex-shrink: 0;
}

body.single-product .summary.entry-summary .offers .call-me .phone_icon img {
    width: 100%;
    height: auto;
    display: block;
}

body.single-product .summary.entry-summary .offers .call-me .phone_text {
    line-height: 1.2;
    font-size: 13px;
}

@media (max-width: 575px) {
    body.single-product .summary.entry-summary .offers {
        gap: 10px;
    }

    body.single-product .summary.entry-summary .offers .price.btn-danger {
        flex: 1 1 60%;
        text-align: center;
    }

    body.single-product .summary.entry-summary .offers .call-me {
        flex: 1 1 35%;
        min-width: 0;
        justify-content: center;
        padding: 6px 8px;
    }

    body.single-product .summary.entry-summary .offers .call-me .phone_text {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    body.single-product .summary.entry-summary .offers .price.btn-danger {
        flex: 1 1 100%;
    }

    body.single-product .summary.entry-summary .offers .call-me {
        flex: 1 1 100%;
    }
}

/* ---------- Miqdar + səbətə əlavə et ---------- */
body.single-product .summary.entry-summary .variations_form.cart {
    margin: 0 0 18px;
}

body.single-product .summary.entry-summary .single_variation_wrap .number {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    height: auto;
}

body.single-product .summary.entry-summary .single_variation_wrap .number > * {
    margin: 0;
}

body.single-product .summary.entry-summary .single_variation_wrap input.qty {
    width: 80px !important;
    height: 52px;
    padding: 0 10px;
    text-align: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-weight: 600;
    order: 2;
}

body.single-product .summary.entry-summary .single_variation_wrap .number .minus {
    order: 1;
}

body.single-product .summary.entry-summary .single_variation_wrap .number .plus {
    order: 3;
}

body.single-product .summary.entry-summary .single_variation_wrap .number .itemSender {
    order: 4;
    width: auto !important;
    min-width: 90px;
    height: 52px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

body.single-product .summary.entry-summary .single_variation_wrap .number .itemSender i {
    position: static;
    transform: none;
    font-size: 22px;
}

@media (max-width: 575px) {
    body.single-product .summary.entry-summary .single_variation_wrap .number {
        gap: 8px;
        justify-content: flex-start;
    }

    body.single-product .summary.entry-summary .single_variation_wrap input.qty {
        width: 64px !important;
        height: 46px;
    }

    body.single-product .summary.entry-summary .single_variation_wrap .number .plus,
    body.single-product .summary.entry-summary .single_variation_wrap .number .minus {
        width: 46px;
        height: 46px;
    }

    body.single-product .summary.entry-summary .single_variation_wrap .number .itemSender {
        height: 46px;
        min-width: 70px;
        margin-left: auto;
    }
}

/* ---------- Təsvir mətni ---------- */
body.single-product .summary.entry-summary [itemprop="description"] {
    margin-top: 18px;
    color: #253444;
    line-height: 1.55;
    word-break: break-word;
}

body.single-product .summary.entry-summary [itemprop="description"] ul {
    padding-left: 18px;
}

body.single-product .summary.entry-summary [itemprop="description"] img {
    max-width: 100%;
    height: auto;
}

/* ---------- Breadcrumb ---------- */
@media (max-width: 575px) {
    body.single-product .woocommerce-breadcrumb {
        font-size: 12px;
        line-height: 1.4;
        flex-wrap: wrap;
        word-break: break-word;
    }

    body.single-product .woocommerce-breadcrumb .delimiter {
        margin: 0 4px !important;
    }
}

/* ---------- Əlaqəli məhsullar ---------- */
body.single-product .related {
    margin-top: 8px;
}

body.single-product .related ul.products {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
    padding-left: 0 !important;
}

@media (max-width: 1199px) {
    body.single-product .related ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    body.single-product .related ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body.single-product .related ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 360px) {
    body.single-product .related ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

body.single-product .related ul.products > li.product {
    width: auto !important;
    margin: 0 !important;
}

/* Köhnə qaydaların tətbiq etdiyi dəyərlərə qarşı təhlükəsiz override */
@media (max-width: 550px) {
    body.single-product .single-product-wrapper .electro-price {
        font-size: clamp(16px, 4.6vw, 20px);
    }

    body.single-product .offers {
        margin-bottom: 18px;
    }
}
