/* ==========================================================
   Klimatservice – gemensam produktlayout
   Ingen Bootstrap-grid används i produktsidorna.
========================================================== */

body.single-ks_product .subpage-cover,
body.single-ks_product .left-nav,
body.single-ks_product .sidebar,
body.single-ks_product .widget-area {
    display: none !important;
}

body.single-ks_product {
    overflow-x: hidden;
}

.ks-product-page {
    width: 100%;
    padding: 28px 0 64px;
    background: #f7f7f7;
}

.ks-product-shell {
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto;
}

.ks-product {
    width: 100%;
    color: #1d1d1d;
}

.ks-product-breadcrumb {
    margin-bottom: 18px;
}

.ks-product-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3e3e3e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ks-product-breadcrumb a:hover {
    color: #bd0000;
}

.ks-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(34px, 4vw, 72px);
    align-items: center;
    padding: clamp(28px, 3vw, 52px);
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .07);
}

.ks-product-media,
.ks-product-summary {
    min-width: 0;
}

.ks-product-image-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(430px, 37vw, 620px);
    padding: clamp(22px, 3vw, 44px);
    border: 1px solid #ededed;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 38%, #fff 0, #fafafa 58%, #f2f3f4 100%);
    overflow: hidden;
}

.ks-product-featured-image {
    display: block;
    width: auto;
    max-width: 94%;
    max-height: 530px;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity .16s ease, transform .22s ease;
}

.ks-product-featured-image.is-changing {
    opacity: .2;
    transform: scale(.985);
}

.ks-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ks-product-thumbnail {
    min-width: 0;
    padding: 9px 7px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ks-product-thumbnail:hover,
.ks-product-thumbnail:focus,
.ks-product-thumbnail.is-active {
    border-color: #c90000;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .09);
    outline: 0;
    transform: translateY(-2px);
}

.ks-product-thumbnail img {
    display: block;
    width: 100%;
    height: 72px;
    margin-bottom: 5px;
    object-fit: contain;
}

.ks-product-thumbnail span {
    display: block;
    overflow: hidden;
    color: #444;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks-product-summary h1 {
    margin: 0 0 15px;
    color: #151515;
    font-size: clamp(52px, 5vw, 82px);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.045em;
}

.ks-product-brand-logo {
    display: block;
    width: 315px;
    max-width: 65%;
    height: auto;
    margin-bottom: 15px;
}

.ks-product-badge {
    display: inline-flex;
    margin-bottom: 17px;
    padding: 7px 13px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f7f7f7;
    color: #3f3f3f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.ks-product-lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: #505050;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.6;
}

.ks-product-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.ks-product-benefits article {
    min-height: 102px;
    padding: 17px 18px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    background: #fafafa;
}

.ks-product-benefits strong,
.ks-product-benefits span {
    display: block;
}

.ks-product-benefits strong {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
}

.ks-product-benefits span {
    color: #626262;
    font-size: 13px;
    line-height: 1.5;
}

.ks-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.ks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ks-button--primary {
    min-width: 245px;
    border: 1px solid #c90000;
    background: #c90000;
    color: #fff;
    box-shadow: 0 8px 22px rgba(201, 0, 0, .21);
}

.ks-button--primary:hover {
    background: #a90000;
    color: #fff;
    transform: translateY(-1px);
}

.ks-button--secondary {
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #2d2d2d;
}

.ks-button--secondary:hover {
    border-color: #c90000;
    color: #c90000;
    transform: translateY(-1px);
}

.ks-product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 19px;
    margin-top: 18px;
    color: #4b4b4b;
    font-size: 13px;
    font-weight: 700;
}

.ks-product-trust span::first-letter {
    color: #c90000;
}

.ks-product-price {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 800;
}

.ks-product-content,
.ks-product-details {
    margin-top: 34px;
    padding: clamp(28px, 3vw, 48px);
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    background: #fff;
}

.ks-product-content {
    color: #414141;
    font-size: 16px;
    line-height: 1.75;
}

.ks-product-content > :first-child {
    margin-top: 0;
}

.ks-product-content > :last-child {
    margin-bottom: 0;
}

.ks-section-heading {
    max-width: 850px;
    margin-bottom: 28px;
}

.ks-section-heading > span,
.ks-product-cta > div > span {
    display: block;
    margin-bottom: 7px;
    color: #c90000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ks-section-heading h2,
.ks-product-cta h2 {
    margin: 0;
    font-size: clamp(31px, 3vw, 47px);
    font-weight: 830;
    line-height: 1.1;
    letter-spacing: -.032em;
}

.ks-product-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ks-detail-card {
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 17px;
    background: #fff;
}

.ks-detail-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 28px;
    background: #f7f8f9;
}

.ks-detail-card__image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 215px;
    object-fit: contain;
}

.ks-detail-card__body {
    padding: 22px;
}

.ks-detail-card__body h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
}

.ks-detail-card__body p {
    margin: 0;
    color: #5b5b5b;
    font-size: 14px;
    line-height: 1.6;
}

.ks-product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 34px;
    padding: clamp(28px, 3vw, 44px);
    border-radius: 20px;
    background: linear-gradient(135deg, #181818, #353535);
    color: #fff;
}

.ks-product-cta > div {
    max-width: 850px;
}

.ks-product-cta > div > span {
    color: #f0b1b1;
}

.ks-product-cta h2 {
    color: #fff;
}

.ks-product-cta p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .ks-product-hero {
        grid-template-columns: 1fr;
    }

    .ks-product-image-stage {
        min-height: 470px;
    }

    .ks-product-summary h1 {
        font-size: 58px;
    }
}

@media (max-width: 850px) {
    .ks-product-shell {
        width: calc(100% - 30px);
    }

    .ks-product-detail-grid {
        grid-template-columns: 1fr;
    }

    .ks-product-cta {
        display: block;
    }

    .ks-product-cta .ks-button {
        width: 100%;
        margin-top: 22px;
    }
}

@media (max-width: 620px) {
    .ks-product-page {
        padding-top: 12px;
        padding-bottom: 35px;
    }

    .ks-product-shell {
        width: calc(100% - 20px);
    }

    .ks-product-hero,
    .ks-product-content,
    .ks-product-details {
        padding: 18px;
        border-radius: 14px;
    }

    .ks-product-image-stage {
        min-height: 300px;
        padding: 18px;
    }

    .ks-product-featured-image {
        max-height: 265px;
    }

    .ks-product-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ks-product-summary h1 {
        font-size: 44px;
    }

    .ks-product-brand-logo {
        max-width: 82%;
    }

    .ks-product-benefits {
        grid-template-columns: 1fr;
    }

    .ks-product-benefits article {
        min-height: 0;
    }

    .ks-product-actions {
        display: block;
    }

    .ks-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .ks-product-trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ks-product-cta {
        padding: 25px 21px;
        border-radius: 15px;
    }
}
