/* ==========================================================
   HANTEON PRODUCT PAGE
   ========================================================== */

.hpp-page {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 72px;
    color: #203024;
}

.hpp-page *,
.hpp-page *::before,
.hpp-page *::after {
    box-sizing: border-box;
}


/* BACK */

.hpp-back {
    margin-bottom: 28px;
}

.hpp-back a {
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.hpp-back a:hover {
    text-decoration: underline;
}


/* ==========================================================
   HERO
   ========================================================== */

.hpp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .85fr);
    gap: 60px;
    align-items: start;
}


/* ==========================================================
   GALLERY
   ========================================================== */

.hpp-gallery {
    min-width: 0;
}

.hpp-main-image-wrap {
    position: relative;
    width: 100%;
    text-align: center;
}

/*
 * Ei pakotettua neliötä.
 * Kuvan oma kuvasuhde määrittää korkeuden.
 */
.hpp-main-img,
.hpp-main-image-wrap > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 660px;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
    opacity: 1;
    transition: opacity .18s ease;
}

.hpp-main-img.is-changing {
    opacity: 0;
}

.hpp-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.hpp-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d6ddd7;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.hpp-thumb:hover {
    transform: translateY(-1px);
    border-color: #8b988e;
}

.hpp-thumb.is-active {
    border-color: #213627;
    box-shadow: 0 0 0 1px #213627;
}

.hpp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================
   SUMMARY
   ========================================================== */

.hpp-summary {
    min-width: 0;
}

.hpp-title {
    margin: 0;
    color: #18281d;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.hpp-price {
    margin-top: 14px;
    color: #17271c;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.15;
}

.hpp-price del {
    margin-right: 8px;
    opacity: .5;
    font-size: .72em;
}

.hpp-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
}

.hpp-product-rating .star-rating {
    margin: 0;
}

.hpp-short-description {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.68;
}

.hpp-short-description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   COMMERCE CARD
   ========================================================== */

.hpp-commerce-card {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #d7ded8;
    border-radius: 11px;
    background: #fff;
}

.hpp-commerce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hpp-commerce-column {
    min-width: 0;
}

.hpp-commerce-delivery {
    padding-left: 28px;
    border-left: 1px solid #e2e7e3;
}

.hpp-label {
    display: block;
    margin-bottom: 5px;
    color: #68756b;
    font-size: 12px;
}

.hpp-seller-name {
    display: inline-block;
    color: #18281d;
    font-size: 19px;
    font-weight: 750;
    text-decoration: none;
}

a.hpp-seller-name:hover {
    text-decoration: underline;
}

.hpp-seller-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
}

.hpp-seller-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
}

.hpp-seller-rating .star-rating {
    margin: 0;
}

.hpp-commerce-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 11px;
    font-size: 14px;
}

.hpp-commerce-row:first-of-type {
    margin-top: 0;
}

.hpp-commerce-row small {
    font-size: 11px;
    font-weight: 400;
}

.hpp-inline-link {
    display: inline-block;
    margin-top: 15px;
    color: #1c3021;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}


/* ==========================================================
   PURCHASE / WOOCOMMERCE
   ========================================================== */

.hpp-purchase {
    margin-top: 22px;
}

/*
 * Hanteonin hook tulostaa tämän edelleen.
 * Piilotetaan vain duplicate-presentaatio.
 */
.hpp-cart .hsd-product-key-details {
    display: none !important;
}

.hpp-cart form.cart {
    margin: 0 !important;
}

.hpp-cart table.variations {
    width: 100%;
    margin: 0 0 18px;
}

.hpp-cart table.variations tr {
    display: block;
    margin-bottom: 15px;
}

.hpp-cart table.variations th,
.hpp-cart table.variations td {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
}

.hpp-cart table.variations th {
    margin-bottom: 6px;
}

.hpp-cart table.variations select {
    width: 100%;
    min-height: 44px;
}

.hpp-cart .reset_variations {
    display: inline-block;
    margin-top: 7px;
    font-size: 12px;
}

.hpp-cart .woocommerce-variation {
    margin: 14px 0;
}

.hpp-cart .woocommerce-variation-price {
    margin-bottom: 8px;
}

.hpp-cart .woocommerce-variation-price .price {
    font-size: 20px;
    font-weight: 700;
}

.hpp-cart .stock {
    margin: 0 0 12px;
}

.hpp-cart .quantity {
    margin-bottom: 12px;
}

.hpp-cart .single_add_to_cart_button {
    width: 100%;
    min-height: 50px;
    border-radius: 7px;
    font-weight: 750;
}

.hpp-cart .hsd-product-personalization {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dde4de;
    border-radius: 8px;
    background: #fafbf9;
}


/* CATEGORIES */

.hpp-categories {
    margin-top: 20px;
    color: #68736b;
    font-size: 13px;
}

.hpp-categories a {
    color: #354c3a;
}


/* ==========================================================
   TABS
   ========================================================== */

.hpp-details {
    margin-top: 64px;
    scroll-margin-top: 90px;
}

.hpp-tabs {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    border-bottom: 1px solid #d8dfd9;
    scrollbar-width: none;
}

.hpp-tabs::-webkit-scrollbar {
    display: none;
}

.hpp-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 15px;
    border: 0;
    background: transparent;
    color: #263429;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.hpp-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}

.hpp-tab.is-active::after {
    background: #1c3021;
}

.hpp-panel {
    padding-top: 30px;
}

.hpp-panel[hidden] {
    display: none !important;
}

.hpp-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr);
    gap: 28px;
}

.hpp-content-box {
    padding: 28px 30px;
    border: 1px solid #d9dfda;
    border-radius: 10px;
    background: #fff;
}

.hpp-content-box h2,
.hpp-content-box h3 {
    margin-top: 0;
}

.hpp-description {
    font-size: 15px;
    line-height: 1.72;
}

.hpp-single-panel {
    max-width: 820px;
}


/* ATTRIBUTES */

.hpp-attributes {
    margin: 0;
}

.hpp-attributes > div {
    display: grid;
    grid-template-columns: minmax(120px, .65fr) 1fr;
    gap: 22px;
    padding: 12px 0;
    border-top: 1px solid #edf0ed;
}

.hpp-attributes > div:first-child {
    border-top: 0;
}

.hpp-attributes dt {
    font-weight: 700;
}

.hpp-attributes dd {
    margin: 0;
}


/* ==========================================================
   REVIEWS
   ========================================================== */

.hpp-reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 28px;
    align-items: start;
}

.hpp-product-reviews #reviews {
    margin: 0;
}

.hpp-product-reviews .commentlist {
    margin-left: 0;
    padding-left: 0;
}

.hpp-product-reviews .commentlist > li {
    list-style: none;
}

.hpp-product-reviews #review_form_wrapper {
    margin-top: 28px;
}

.hpp-product-reviews #review_form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 650;
}

.hpp-product-reviews #review_form input[type="text"],
.hpp-product-reviews #review_form input[type="email"],
.hpp-product-reviews #review_form textarea {
    width: 100%;
}

.hpp-review-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 11px 0 20px;
}

.hpp-review-score .star-rating,
.hpp-review-item .star-rating {
    margin: 0;
}

.hpp-review-item {
    padding: 17px 0;
    border-top: 1px solid #e8ece9;
}

.hpp-review-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hpp-review-item small {
    color: #78827a;
}

.hpp-review-item p {
    margin: 9px 0 0;
    line-height: 1.55;
}


/* ==========================================================
   RELATED
   ========================================================== */

.hpp-related {
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid #d9dfda;
}

.hpp-related-head h2 {
    margin: 0 0 22px;
    font-size: 21px;
}

.hpp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hpp-related-card {
    min-width: 0;
}

.hpp-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #d9dfda;
    border-radius: 8px;
    background: #fff;
}

.hpp-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpp-related-content {
    padding-top: 11px;
}

.hpp-related-title {
    display: block;
    color: #1a2b1f;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.hpp-related-price {
    margin-top: 8px;
    font-weight: 700;
}

.hpp-related-categories {
    margin-top: 5px;
    color: #727d75;
    font-size: 12px;
    line-height: 1.4;
}

.hpp-related-rating {
    margin-top: 7px;
}

.hpp-related-rating .star-rating {
    margin: 0;
}

.hpp-related-action {
    margin-top: 10px;
}

.hpp-related-action .button {
    font-size: 12px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .hpp-page {
        width: min(720px, calc(100% - 32px));
    }

    .hpp-hero {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hpp-main-img,
    .hpp-main-image-wrap > img {
        max-height: none;
    }

    .hpp-panel-grid,
    .hpp-reviews-grid {
        grid-template-columns: 1fr;
    }

    .hpp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {

    .hpp-page {
        width: calc(100% - 28px);
        padding-top: 20px;
    }

    .hpp-title {
        font-size: 29px;
    }

    .hpp-price {
        font-size: 26px;
    }

    .hpp-thumbnails {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hpp-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .hpp-commerce-card {
        padding: 20px;
    }

    .hpp-commerce-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hpp-commerce-delivery {
        padding: 18px 0 0;
        border-top: 1px solid #e2e7e3;
        border-left: 0;
    }

    .hpp-tabs {
        gap: 28px;
    }

    .hpp-content-box {
        padding: 22px 20px;
    }

    .hpp-attributes > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hpp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}


/* ==========================================================
   HPP 0.7 — Gallery, typography & interaction polish
   ========================================================== */

.hpp-page {
    color: #303630;
}


/* Hanteon typography */

.hpp-title,
.hpp-price,
.hpp-content-box h2,
.hpp-content-box h3,
.hpp-related-head h2,
.hpp-seller-name {
    color: #1f3325;
}

.hpp-title {
    font-weight: 780;
}


/* Back */

.hpp-back a {
    color: #1f3325;
    font-weight: 700;
}


/* ----------------------------------------------------------
   Main gallery
   ---------------------------------------------------------- */

.hpp-main-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f4f2;
    text-align: left;
}

/*
 * Jokainen kuva täsmälleen samassa viewportissa.
 * Kuvavaihto ei muuta layoutin kokoa.
 */
.hpp-main-img,
.hpp-main-image-wrap > img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity .20s ease,
        transform .28s ease;
}

.hpp-main-img:hover {
    transform: scale(1.008);
}

.hpp-main-img.is-changing {
    opacity: 0;
}


/* thumbnail row aligned exactly with image left edge */

.hpp-thumbnails {
    justify-content: flex-start;
    margin-top: 14px;
}

.hpp-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 8px;
}

.hpp-thumb.is-active {
    border-color: #1f3325;
    box-shadow: 0 0 0 1px #1f3325;
}


/* ----------------------------------------------------------
   Zoom modal
   ---------------------------------------------------------- */

.hpp-no-scroll {
    overflow: hidden;
}

.hpp-image-modal[hidden] {
    display: none !important;
}

.hpp-image-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(15, 20, 16, .88);
}

.hpp-image-modal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    height: min(88vh, 900px);
}

.hpp-image-modal-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hpp-image-modal-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #1f3325;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}


/* ----------------------------------------------------------
   Better overall spacing
   ---------------------------------------------------------- */

.hpp-hero {
    align-items: start;
}

.hpp-summary {
    padding-top: 6px;
}

.hpp-short-description {
    color: #363d37;
}

.hpp-label,
.hpp-categories,
.hpp-related-categories {
    color: #68736b;
}

.hpp-commerce-card,
.hpp-content-box {
    border-color: #d8dfd9;
}


/* Product CTA stronger */

.hpp-cart .single_add_to_cart_button {
    background: #1f3325 !important;
    color: #fff !important;
    border-color: #1f3325 !important;
}

.hpp-cart .single_add_to_cart_button:hover {
    background: #17291d !important;
}


/* Mobile */

@media (max-width: 600px) {

    .hpp-main-image-wrap {
        aspect-ratio: 4 / 5;
    }

    .hpp-image-modal {
        padding: 18px;
    }
}

/* ==========================================================
   HPP RELATED PRODUCTS — use /tuotteet/ card design
   ========================================================== */

.hpp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hpp-related-grid .hcs-card {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.hpp-related-grid .hcs-card-link {
    height: 100%;
}

@media (max-width: 900px) {
    .hpp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hpp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}


/* ==========================================================
   HANTEON PRODUCT PAGE — PREMIUM POLISH
   ========================================================== */

.hpp-page {
    width: min(1220px, calc(100% - 48px));
    color: #343a35;
}


/* ----------------------------------------------------------
   HERO BALANCE
   ---------------------------------------------------------- */

.hpp-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr);
    gap: 72px;
}

.hpp-summary {
    padding-top: 4px;
}

.hpp-title {
    max-width: 440px;
    color: #1f3325;
    font-size: clamp(36px, 3.1vw, 48px);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.035em;
}

.hpp-price {
    margin-top: 16px;
    color: #1f3325;
    font-size: 29px;
    font-weight: 760;
    letter-spacing: -.02em;
}

.hpp-short-description {
    max-width: 48ch;
    margin-top: 20px;
    color: #3d453e;
    font-size: 15px;
    line-height: 1.72;
}


/* ----------------------------------------------------------
   SELLER / SHIPPING CARD
   ---------------------------------------------------------- */

.hpp-commerce-card {
    margin-top: 30px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e0da;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(25, 45, 30, .025),
        0 8px 26px rgba(25, 45, 30, .035);
}

.hpp-commerce-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.hpp-commerce-column {
    padding: 22px 24px;
}

.hpp-commerce-delivery {
    padding: 20px 24px 22px;
    border-top: 1px solid #e7ebe7;
    border-left: 0;
    background: #f8f9f6;
}

.hpp-label {
    margin-bottom: 7px;
    color: #768078;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hpp-seller-name {
    color: #1f3325;
    font-size: 19px;
    font-weight: 760;
    line-height: 1.25;
}

.hpp-seller-line {
    margin-top: 10px;
}

.hpp-seller-rating {
    font-size: 12px;
}

.hpp-inline-link {
    margin-top: 13px;
    border-bottom: 0;
    color: #2e5438;
    font-size: 12px;
    font-weight: 720;
}

.hpp-inline-link:hover {
    text-decoration: underline;
}

.hpp-commerce-delivery > .hpp-label {
    margin-bottom: 10px;
}

.hpp-commerce-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 18px;
    margin-top: 9px;
    font-size: 13px;
}

.hpp-commerce-row span {
    color: #69736b;
}

.hpp-commerce-row strong {
    color: #243329;
    font-weight: 700;
    text-align: right;
}

.hpp-commerce-row strong small {
    display: block;
    margin-top: 1px;
    color: #788179;
    font-weight: 500;
}


/* ----------------------------------------------------------
   BUYING AREA
   ---------------------------------------------------------- */

.hpp-purchase {
    margin-top: 26px;
}

.hpp-cart table.variations {
    margin-bottom: 20px;
}

.hpp-cart table.variations label {
    color: #29382e;
    font-size: 13px;
    font-weight: 700;
}

.hpp-cart table.variations select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d3dad4;
    border-radius: 8px;
    background: #fff;
    color: #29352d;
    font-size: 14px;
    box-shadow: none;
}

.hpp-cart table.variations select:focus {
    border-color: #496451;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(48, 82, 58, .08);
}

.hpp-cart .stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 15px;
    color: #31563b;
    font-size: 13px;
    font-weight: 650;
}

.hpp-cart .stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.hpp-cart .quantity {
    margin: 0 0 14px;
}

.hpp-cart .quantity input {
    min-height: 44px;
    border-radius: 7px;
}

.hpp-cart .single_add_to_cart_button {
    min-height: 54px;
    border: 0 !important;
    border-radius: 9px;
    background: #24442d !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: .01em;
    box-shadow: 0 5px 16px rgba(31, 60, 39, .14);
    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.hpp-cart .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    background: #1b3523 !important;
    box-shadow: 0 8px 20px rgba(31, 60, 39, .19);
}


/* ----------------------------------------------------------
   CATEGORY META
   ---------------------------------------------------------- */

.hpp-categories {
    margin-top: 17px;
    color: #828a83;
    font-size: 11px;
    line-height: 1.6;
}

.hpp-categories a {
    color: #526057;
    text-decoration: none;
}

.hpp-categories a:hover {
    color: #1f3325;
    text-decoration: underline;
}


/* ----------------------------------------------------------
   TABS
   ---------------------------------------------------------- */

.hpp-details {
    margin-top: 70px;
}

.hpp-tabs {
    gap: 38px;
    border-bottom: 1px solid #dfe4df;
}

.hpp-tab {
    padding-bottom: 17px;
    color: #667068;
    font-size: 14px;
    font-weight: 680;
    transition: color .15s ease;
}

.hpp-tab:hover {
    color: #1f3325;
}

.hpp-tab.is-active {
    color: #1f3325;
}

.hpp-tab::after {
    height: 2px;
    border-radius: 2px 2px 0 0;
}

.hpp-tab.is-active::after {
    background: #1f3325;
}


/* ----------------------------------------------------------
   DESCRIPTION / DETAILS
   ---------------------------------------------------------- */

.hpp-panel {
    padding-top: 34px;
}

.hpp-panel-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr);
    gap: 32px;
}

.hpp-content-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hpp-content-box h2 {
    margin: 0 0 20px;
    color: #1f3325;
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.025em;
}

.hpp-content-box h3 {
    color: #1f3325;
    font-size: 16px;
    font-weight: 740;
}

.hpp-description {
    max-width: 68ch;
    color: #404840;
    font-size: 15px;
    line-height: 1.8;
}

.hpp-details-box {
    align-self: start;
    padding: 22px 24px;
    border: 1px solid #dfe4df;
    border-radius: 12px;
    background: #f8f9f6;
}

.hpp-details-box h3 {
    margin-bottom: 14px;
}

.hpp-attributes > div {
    grid-template-columns: minmax(100px, .6fr) 1fr;
    gap: 20px;
    padding: 11px 0;
    border-color: #e5e9e5;
    font-size: 13px;
}

.hpp-attributes dt {
    color: #667068;
    font-weight: 650;
}

.hpp-attributes dd {
    color: #26352b;
    font-weight: 600;
}


/* Standalone tab panels */

.hpp-single-panel {
    max-width: 760px;
    padding: 26px 28px;
    border: 1px solid #dfe4df;
    border-radius: 12px;
    background: #fff;
}


/* ----------------------------------------------------------
   REVIEWS
   ---------------------------------------------------------- */

.hpp-reviews-grid {
    gap: 38px;
}

.hpp-product-reviews,
.hpp-seller-reviews {
    padding: 26px 28px;
    border: 1px solid #dfe4df;
    border-radius: 12px;
    background: #fff;
}

.hpp-seller-reviews {
    background: #f8f9f6;
}


/* ----------------------------------------------------------
   RELATED SECTION
   ---------------------------------------------------------- */

.hpp-related {
    margin-top: 72px;
    padding-top: 34px;
    border-top: 1px solid #dfe4df;
}

.hpp-related-head h2 {
    margin-bottom: 24px;
    color: #1f3325;
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -.02em;
}


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

@media (max-width: 900px) {

    .hpp-hero {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hpp-title {
        max-width: none;
    }

    .hpp-summary {
        padding-top: 0;
    }

    .hpp-panel-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .hpp-page {
        width: calc(100% - 28px);
    }

    .hpp-title {
        font-size: 33px;
    }

    .hpp-commerce-column,
    .hpp-commerce-delivery {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hpp-details {
        margin-top: 52px;
    }

    .hpp-content-box h2 {
        font-size: 24px;
    }
}

/* ==========================================================
   SELLER CARD CLARITY POLISH
   ========================================================== */

.hpp-commerce-card {
    border-radius: 14px;
}

.hpp-commerce-column {
    padding: 24px 26px;
}

.hpp-label {
    margin-bottom: 10px;
    color: #7a837c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hpp-seller-name {
    display: block;
    margin-bottom: 10px;
    color: #1f3325;
    font-size: 21px;
    font-weight: 760;
    line-height: 1.2;
}

.hpp-seller-line {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    margin-top: 0;
}

.hpp-seller-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.hpp-inline-link {
    margin-top: 14px;
    color: #31583b;
    font-size: 13px;
    font-weight: 700;
}

.hpp-commerce-delivery {
    padding: 22px 26px 24px;
    background: #fafbf9;
}

.hpp-commerce-delivery > .hpp-label {
    margin-bottom: 14px;
}

.hpp-commerce-row {
    grid-template-columns: 1fr auto;
    gap: 24px;
    margin-top: 10px;
    font-size: 13px;
}

.hpp-commerce-row span {
    color: #606a62;
}

.hpp-commerce-row strong {
    color: #243329;
    font-weight: 700;
}

.hpp-commerce-row strong small {
    margin-top: 3px;
    color: #7b847d;
    font-size: 10px;
    font-weight: 500;
}

/* Seller badge refinement */

.hpp-seller-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.hpp-seller-line .hsd-vendor-type-badge,
.hpp-seller-line [class*="vendor-type"],
.hpp-seller-line [class*="seller-type"] {
    padding: 3px 7px !important;
    border: 1px solid #cfd8d1 !important;
    border-radius: 5px !important;
    background: #f4f7f4 !important;
    color: #516057 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .045em;
    text-transform: uppercase;
    box-shadow: none !important;
}

.hpp-seller-rating {
    gap: 5px;
}

/* Seller name + type on one clean row */

.hpp-seller-heading-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.hpp-seller-heading-row .hpp-seller-name {
    display: inline-block;
    margin: 0;
}

.hpp-seller-heading-row .hsd-vendor-type-badge,
.hpp-seller-heading-row [class*="vendor-type"],
.hpp-seller-heading-row [class*="seller-type"] {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 3px 7px !important;
    border: 1px solid #d5ddd7 !important;
    border-radius: 4px !important;
    background: #f4f6f3 !important;
    color: #5f6962 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: none !important;
}

.hpp-seller-line {
    margin-top: 9px;
}

/* Seller type badge — lighter, closer to original */

.hpp-seller-heading-row .hsd-vendor-type-badge,
.hpp-seller-heading-row [class*="vendor-type"],
.hpp-seller-heading-row [class*="seller-type"] {
    margin: 0 !important;
    padding: 2px 6px !important;

    border: 1px solid #d9e0da !important;
    border-radius: 6px !important;

    background: #fafbf9 !important;
    color: #5e675f !important;

    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    letter-spacing: normal !important;
    text-transform: none !important;

    box-shadow: none !important;
}

/* ==========================================================
   WIDTH + SELLER BADGE CLEANUP
   ========================================================== */

/* Leveämpi kokonaisuus, lähempänä vanhaa tuotesivua */
.hpp-page {
    width: min(1380px, calc(100% - 56px));
}

/* Oikealle palstalle hieman enemmän tilaa */
.hpp-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    gap: 72px;
}


/* ----------------------------------------------------------
   Seller badge: remove outer box, keep only one subtle badge
   ---------------------------------------------------------- */

.hpp-seller-heading-row {
    overflow: visible;
}

/* Nollataan mahdollinen ulompi wrapper */
.hpp-seller-heading-row > span,
.hpp-seller-heading-row > div {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Varsinainen badge */
.hpp-seller-heading-row .hsd-vendor-type-badge,
.hpp-seller-heading-row [class*="vendor-type"],
.hpp-seller-heading-row [class*="seller-type"] {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;

    margin: 0 !important;
    padding: 2px 6px !important;

    border: 1px solid #d7ddd8 !important;
    border-radius: 5px !important;

    background: #fafbf9 !important;
    box-shadow: none !important;

    color: #5f6861 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    letter-spacing: normal !important;
    text-transform: none !important;
}


/* Tooltip saa levitä normaalisti */
.hpp-seller-heading-row [class*="tooltip"],
.hpp-seller-heading-row [role="tooltip"] {
    z-index: 9999 !important;
    width: max-content;
    max-width: 300px;
    white-space: normal;
}

/* Kortti ei saa leikata tooltipia */
.hpp-commerce-card,
.hpp-commerce-column {
    overflow: visible;
}

@media (max-width: 900px) {
    .hpp-page {
        width: min(760px, calc(100% - 32px));
    }

    .hpp-hero {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   SELLER TYPE — EXACT FIX
   ========================================================== */

/* Wrapper ei saa näyttää omalta laatikolta */
.hpp-seller-heading-row .hsd-vendor-type-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Vain varsinainen Yritys/Yksityinen badge */
.hpp-seller-heading-row .hsd-vendor-type {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 2px 7px !important;

    border: 1px solid rgba(49, 73, 50, .18) !important;
    border-radius: 999px !important;

    background: #f7faf6 !important;
    color: #314932 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
}

/* Yritys-version hyvin kevyt sävy */
.hpp-seller-heading-row .hsd-vendor-type--business {
    background: #f7f9f7 !important;
}

/* Kysymysmerkki alkuperäisen tyyliseksi */
.hpp-seller-heading-row .hsd-vendor-type > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 14px !important;
    height: 14px !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;

    background: rgba(49, 73, 50, .10) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

/* Tooltip PIILOON normaalisti */
.hpp-seller-heading-row .hsd-vendor-type-info {
    display: none !important;

    position: absolute !important;
    z-index: 99999 !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;

    width: 300px !important;
    max-width: min(300px, 80vw) !important;

    padding: 10px 12px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 10px !important;

    background: #fff !important;
    color: #243524 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;

    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    white-space: normal !important;
}

/* Näkyviin VAIN kun käyttäjä klikkaa badgea */
.hpp-seller-heading-row .hsd-vendor-type-wrap.is-open .hsd-vendor-type-info {
    display: block !important;
}


/* ==========================================================
   PRODUCT PAGE WIDTH
   ========================================================== */

/* Sama leveämpi linja kuin headerin/logoalueen sisällössä */
.hpp-page {
    width: min(1380px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* Oikealle palstalle kunnolla käyttötilaa */
.hpp-hero {
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(460px, .95fr);
    gap: 72px;
}

@media (max-width: 900px) {
    .hpp-page {
        width: min(760px, calc(100% - 32px));
    }

    .hpp-hero {
        grid-template-columns: 1fr;
    }
}

/* Mobile top spacing refinement */

@media (max-width: 600px) {

    .hpp-page {
        padding-top: 10px !important;
    }

    .hpp-back {
        margin-bottom: 18px !important;
    }
}

/* Mobile: tighter gallery -> product info spacing */
@media (max-width: 600px) {
    .hpp-hero {
        gap: 22px !important;
    }
}

/* Mobile: tighter seller section under seller type badge */
@media (max-width: 600px) {
    .hpp-commerce-column {
        padding-bottom: 18px !important;
    }
}

/* ==========================================================
   DEEPEST CATEGORY PILL
   ========================================================== */

.hpp-category-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin: 0 0 14px;
    padding: 5px 10px;

    border: 1px solid rgba(49, 73, 50, .18);
    border-radius: 999px;

    background: #f7f9f5;
    color: #536357;

    font-size: 12px;
    font-weight: 650;
    line-height: 1;

    text-decoration: none;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.hpp-category-pill:hover,
.hpp-category-pill:focus {
    background: #eef3ec;
    border-color: rgba(49, 73, 50, .32);
    color: #1f3325;
    text-decoration: none;
}

@media (max-width: 600px) {
    .hpp-category-pill {
        margin-bottom: 12px;
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Mobile: keep seller type tooltip fully inside viewport */
@media (max-width: 600px) {

    .hpp-seller-heading-row .hsd-vendor-type-info {
        left: auto !important;
        right: 0 !important;

        width: 280px !important;
        max-width: calc(100vw - 40px) !important;

        white-space: normal !important;
        overflow-wrap: break-word;
    }
}

/* Mobile seller tooltip — anchor to seller row, not badge */
@media (max-width: 600px) {

    .hpp-seller-heading-row {
        position: relative !important;
    }

    .hpp-seller-heading-row .hsd-vendor-type-wrap {
        position: static !important;
    }

    .hpp-seller-heading-row .hsd-vendor-type-info {
        position: absolute !important;

        left: 0 !important;
        right: auto !important;
        top: calc(100% + 10px) !important;

        width: min(300px, 100%) !important;
        max-width: 100% !important;

        transform: none !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* Read full description link */

.hpp-read-description {
    display: inline-block;
    margin-top: 9px;
    color: #314932;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hpp-read-description:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

#hpp-product-details {
    scroll-margin-top: 110px;
}

/* Product personalization / extra options — visual cleanup only */

.hpp-cart .hsd-personalization,
.hpp-cart [class*="personalization"],
.hpp-cart [class*="custom-order"] {
    border: 1px solid #dfe5df !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 18px !important;
}

.hpp-cart .hsd-personalization label,
.hpp-cart [class*="personalization"] label,
.hpp-cart [class*="custom-order"] label {
    display: block;
    margin-bottom: 8px !important;
    color: #445148 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.hpp-cart .hsd-personalization textarea,
.hpp-cart [class*="personalization"] textarea,
.hpp-cart [class*="custom-order"] textarea {
    width: 100% !important;
    min-height: 110px !important;
    padding: 12px 14px !important;

    border: 1px solid #d9e0da !important;
    border-radius: 10px !important;

    background: #fff !important;
    color: #2f3a32 !important;

    font: inherit !important;
    line-height: 1.5 !important;

    box-shadow: none !important;
    resize: vertical;
}

.hpp-cart .hsd-personalization textarea:focus,
.hpp-cart [class*="personalization"] textarea:focus,
.hpp-cart [class*="custom-order"] textarea:focus {
    outline: none !important;
    border-color: #7c917f !important;
    box-shadow: 0 0 0 3px rgba(49, 73, 50, .08) !important;
}

@media (max-width: 600px) {
    .hpp-cart .hsd-personalization,
    .hpp-cart [class*="personalization"],
    .hpp-cart [class*="custom-order"] {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .hpp-cart .hsd-personalization textarea,
    .hpp-cart [class*="personalization"] textarea,
    .hpp-cart [class*="custom-order"] textarea {
        min-height: 96px !important;
    }
}

/* ==========================================================
   MODERN VARIABLE PRODUCT UI
   ========================================================== */

.hpp-cart .variations_form .hpp-option-groups {
    display: grid;
    gap: 18px;
    margin: 6px 0 18px;
}

.hpp-cart .variations_form .hpp-option-group {
    display: grid;
    gap: 10px;
}

.hpp-cart .variations_form .hpp-option-label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: #314932;
    letter-spacing: .01em;
}

.hpp-cart .variations_form .hpp-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hpp-cart .variations_form .hpp-option-pill {
    appearance: none;
    border: 1px solid #d6ddd6;
    background: #fff;
    color: #26362d;
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: none;
}

.hpp-cart .variations_form .hpp-option-pill:hover {
    border-color: #b8c5b9;
    transform: translateY(-1px);
}

.hpp-cart .variations_form .hpp-option-pill.is-active {
    border-color: #314932;
    background: #f3f7f3;
    color: #243524;
    box-shadow: 0 0 0 3px rgba(49, 73, 50, .08);
}

.hpp-cart .variations_form .hpp-option-pill.is-disabled,
.hpp-cart .variations_form .hpp-option-pill:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.hpp-cart .variations_form .hpp-option-pill.is-color {
    padding-right: 15px;
    padding-left: 12px;
}

.hpp-cart .variations_form .hpp-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: 0 0 16px;
    border: 1px solid rgba(0,0,0,.10);
    display: inline-block;
}

.hpp-cart .variations_form .hpp-pill-text {
    white-space: nowrap;
}

/* Piilotetaan natiivi taulukko vasta kun custom UI on rakennettu */
.hpp-cart .variations_form.hpp-variation-ui-enhanced table.variations {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Clear/reset-linkki */
.hpp-cart .variations_form .reset_variations {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6b5b;
    text-decoration: none;
}

.hpp-cart .variations_form .reset_variations:hover {
    text-decoration: underline;
}

/* Variation price / availability area */
.hpp-cart .woocommerce-variation.single_variation {
    margin-top: 12px;
}

.hpp-cart .woocommerce-variation-add-to-cart {
    margin-top: 14px;
}

/* Mobile */
@media (max-width: 760px) {
    .hpp-cart .variations_form .hpp-option-groups {
        gap: 16px;
        margin-bottom: 16px;
    }

    .hpp-cart .variations_form .hpp-option-list {
        gap: 8px;
    }

    .hpp-cart .variations_form .hpp-option-pill {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 13px;
    }

    .hpp-cart .variations_form .hpp-option-pill.is-color {
        padding-left: 11px;
        padding-right: 14px;
    }
}

/* Variation stock status */

.hpp-cart .woocommerce-variation-availability {
    margin-top: 10px !important;
}

.hpp-cart .woocommerce-variation-availability .stock {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #355b3c !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
}

.hpp-cart .woocommerce-variation-availability .stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 7px;
}

.hpp-cart .woocommerce-variation-availability .stock.out-of-stock {
    color: #8a4a3f !important;
}

@media (max-width: 600px) {
    .hpp-cart .woocommerce-variation-availability {
        margin-top: 9px !important;
    }

    .hpp-cart .woocommerce-variation-availability .stock {
        font-size: 12px !important;
    }
}

/* Seller avatar final layout */

.hpp-commerce-card .hpp-seller-profile {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.hpp-commerce-card .hpp-seller-avatar {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid rgba(49, 73, 50, .14) !important;
    background: #f2f4f1 !important;
}

.hpp-commerce-card .hpp-seller-avatar img {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.hpp-commerce-card .hpp-seller-profile-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.hpp-commerce-card .hpp-seller-heading-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 !important;
}

.hpp-commerce-card .hpp-seller-line {
    margin-top: 3px !important;
}

@media (max-width: 600px) {
    .hpp-commerce-card .hpp-seller-avatar,
    .hpp-commerce-card .hpp-seller-avatar img {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .hpp-commerce-card .hpp-seller-avatar {
        flex-basis: 42px !important;
    }
}

/* Mobile product tabs — keep all labels visible */

@media (max-width: 600px) {

    .hpp-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hpp-tabs::-webkit-scrollbar {
        display: none;
    }

    .hpp-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;

        padding-left: 8px !important;
        padding-right: 8px !important;

        font-size: 12px !important;
    }
}

/* Mobile product tabs — slightly roomier */

@media (max-width: 600px) {
    .hpp-tab {
        padding-left: 11px !important;
        padding-right: 11px !important;
        font-size: 12.5px !important;
    }
}
