/* PDP redesign (HOITOR-20) */
/* Tokens (--ht-*) are defined in css/ht.css, which this file depends on. */

/* VAT mode: markup carries both amounts, the html class picks one. */
[data-vat] { display: none; }
html.hoito-vat-incl [data-vat="incl"],
html.hoito-vat-excl [data-vat="excl"] { display: inline; }
html:not(.hoito-vat-incl):not(.hoito-vat-excl) [data-vat="excl"] { display: inline; }

/* ------------------------------------------------------------- shared */
.hoito-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--ht-radius-default);
    font: 600 16px/24px var(--ht-font);
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hoito-btn--primary { background: var(--ht-primary); color: #fff; }
.hoito-btn--primary:hover, .hoito-btn--primary:focus { background: var(--ht-primary-dark); color: #fff; }
.hoito-btn--outline { background: var(--ht-bg); color: var(--ht-primary); border-color: var(--ht-primary); }
.hoito-btn--outline:hover, .hoito-btn--outline:focus { background: var(--ht-primary); color: #fff; }
.hoito-btn.is-added { background: var(--ht-success); }

.hoito-rating { display: flex; align-items: center; gap: 6px; font: 400 14px/20px var(--ht-font); color: var(--ht-text); }
.hoito-rating__stars { position: relative; display: inline-flex; line-height: 0; color: var(--ht-border-strong); }
.hoito-rating__bg, .hoito-rating__fg { display: inline-flex; gap: 1px; }
.hoito-rating__fg { position: absolute; left: 0; top: 0; width: var(--hoito-rating, 0%); overflow: hidden; color: var(--ht-rating); white-space: nowrap; }
.hoito-rating__stars svg { width: 14px; height: 14px; flex: 0 0 14px; }
.hoito-rating__text a { color: inherit; text-decoration: underline; text-underline-position: from-font; }
.hoito-rating--empty a { color: var(--ht-muted); font-size: 14px; }

.hoito-price { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 8px; }
.hoito-price__current { font: 700 30px/36px var(--ht-font); letter-spacing: -0.3px; color: var(--ht-primary); }
.hoito-price__current .woocommerce-Price-amount,
.hoito-price__regular .woocommerce-Price-amount { font: inherit; color: inherit; }
.hoito-price__prefix { font: 400 16px/24px var(--ht-font); }
.hoito-price__regular { font: 400 16px/24px var(--ht-font); color: var(--ht-muted); text-decoration: line-through; }
.hoito-price__caption { flex-basis: 100%; font: 400 12px/19px var(--ht-font); color: var(--ht-text); }

.hoito-qty {
    display: inline-flex;
    align-items: center;
    height: 52px;
    border: 1.5px solid var(--ht-border-strong);
    border-radius: var(--ht-radius-default);
    background: var(--ht-bg);
    overflow: hidden;
    flex: 0 0 auto;
}
.hoito-qty__btn {
    width: 42px;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ht-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hoito-qty__btn--plus { color: var(--ht-text); }
.hoito-qty__btn:disabled { opacity: 0.35; cursor: default; }
.hoito-buy-box .quantity .qty:disabled,
.hoito-buy-box .quantity .qty[readonly] { color: var(--ht-muted); opacity: 1; }
.hoito-qty__btn svg { width: 18px; height: 18px; }
.hoito-qty__input,
.hoito-buy-box .quantity .qty {
    width: 51px;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    font: 600 16px/24px var(--ht-font);
    letter-spacing: 0.3px;
    color: var(--ht-text);
    -moz-appearance: textfield;
    appearance: textfield;
}
.hoito-qty__input::-webkit-outer-spin-button, .hoito-qty__input::-webkit-inner-spin-button,
.hoito-buy-box .quantity .qty::-webkit-outer-spin-button, .hoito-buy-box .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hoito-editor-notice { padding: 12px 16px; border: 1px dashed var(--ht-border-strong); color: var(--ht-muted); font: 400 14px/20px var(--ht-font); }

/* ------------------------------------------------------------ gallery */
.hoito-gallery { position: relative; --hoito-rail: 0px; --hoito-gallery-gap: 0px; --hoito-image-inset: 16px; --hoito-thumb: 82px; --hoito-rail-below: 0px; }
.hoito-gallery:has(.flex-control-thumbs), .hoito-gallery:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image) { --hoito-rail: 88px; --hoito-gallery-gap: 16px; }
.hoito-gallery .woocommerce-product-gallery {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
    width: 100% !important;
    padding-left: calc(var(--hoito-rail) + var(--hoito-gallery-gap));
    float: none !important;
    margin: 0 !important;
}
.hoito-gallery .woocommerce-product-gallery .flex-viewport,
.hoito-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { order: 2; flex: 1 1 auto; min-width: 0; border-radius: var(--ht-radius-default); }
.hoito-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image img { border-radius: var(--ht-radius-default); }
.hoito-gallery .woocommerce-product-gallery .flex-control-thumbs {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: var(--hoito-rail);
    flex: 0 0 var(--hoito-rail);
    margin: 0 !important;
    padding: 0;
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none;
}
@media (min-width: 768px) {
    .hoito-gallery .woocommerce-product-gallery .flex-control-thumbs { position: absolute; top: 0; left: 0; }
}
.hoito-gallery .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.woocommerce div.product .hoito-gallery .woocommerce-product-gallery .flex-control-thumbs li {
    width: var(--hoito-thumb) !important;
    height: var(--hoito-thumb);
    flex: 0 0 var(--hoito-thumb);
    float: none !important;
    margin: 0 !important;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-default);
    background: var(--ht-bg);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}
.woocommerce div.product .hoito-gallery .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { border-color: var(--ht-primary); }
.hoito-gallery .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1 !important;
    cursor: pointer;
    margin: 0;
}
/* Prev / next arrows (flexslider directionNav enabled in Hoitolatukku_PDP::carousel_options). */
.hoito-gallery .flex-direction-nav { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.hoito-gallery .flex-direction-nav a {
    position: absolute;
    pointer-events: auto;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--ht-bg);
    border: 1px solid var(--ht-border-strong);
    color: var(--ht-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}
.hoito-gallery .flex-direction-nav a:hover { background: var(--ht-cream); }
.hoito-gallery .flex-direction-nav a.flex-disabled { opacity: 0.35; cursor: default; }
.hoito-gallery .flex-direction-nav .flex-prev { left: calc(var(--hoito-rail) + var(--hoito-gallery-gap) + var(--hoito-image-inset)); }
.hoito-gallery .flex-direction-nav .flex-next { right: 16px; }
.hoito-gallery .flex-direction-nav a svg { width: 24px; height: 24px; }
/* Zoom / lightbox trigger added by wc-single-product.js. */
.hoito-gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    top: auto !important;
    /* The rail shares the gallery box, so on mobile it sits between the image and this edge. */
    bottom: calc(var(--hoito-rail-below) + var(--hoito-image-inset));
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid var(--ht-border-strong);
    border-radius: 50% !important;
    background: var(--ht-bg) !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ht-muted);
    text-indent: 0 !important;
    font-size: 0 !important;
    z-index: 3 !important;
}
.hoito-gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
.hoito-gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after { display: none !important; }
.hoito-gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger svg { width: 24px; height: 24px; }
.hoito-gallery__badges { position: absolute; left: calc(var(--hoito-rail) + var(--hoito-gallery-gap) + var(--hoito-image-inset)); top: var(--hoito-image-inset); z-index: 4; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hoito-gallery__wishlist { position: absolute; right: 16px; top: 16px; z-index: 4; --ht-heart: 26px; }

/* ------------------------------------------------------------ buy box */
.hoito-buy-box { display: flex; flex-direction: column; gap: 20px; font-family: var(--ht-font); color: var(--ht-text); }
.hoito-buy-box__header { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--ht-border); }
.hoito-buy-box__brand { font: 600 12px/19px var(--ht-font); letter-spacing: 0.48px; text-transform: uppercase; color: var(--ht-primary); text-decoration: none; }
.hoito-buy-box__brand:hover { color: var(--ht-primary-dark); }
.hoito-buy-box .hoito-buy-box__title { margin: 0; font: 700 20px/26px var(--ht-font); color: var(--ht-text); }
.hoito-buy-box__codes { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 14px/20px var(--ht-font); }
.hoito-buy-box__codes strong { font-weight: 600; }
.hoito-buy-box__usp { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font: 400 16px/24px var(--ht-font); }
.hoito-buy-box__usp li { position: relative; padding-left: 16px; }
.hoito-buy-box__usp li::before { content: "\2022"; position: absolute; left: 0; top: 0; }
.hoito-guest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hoito-buy-box form.cart .single_variation_wrap .hoito-guest-actions { margin-top: 20px; }
.hoito-buy-box .hoito-buy-box__login { flex: 1 1 auto; }
.hoito-buy-box--attention .hoito-price-panel { box-shadow: 0 0 0 2px var(--ht-primary); }

/* WooCommerce form pieces replaced by the price panel. */
.hoito-buy-box__purchase > p.stock,
.hoito-buy-box .woocommerce-variation.single_variation,
.hoito-buy-box .woocommerce-variation-price,
.hoito-buy-box .woocommerce-variation-availability { display: none !important; }
.hoito-buy-box__purchase { display: flex; flex-direction: column; gap: 20px; }
.hoito-buy-box form.cart { margin: 0 !important; }
.hoito-buy-box form.cart:not(.variations_form):not(.bundle_form) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hoito-buy-box form.cart .hoito-price-panel { flex: 1 0 100%; width: 100%; }
.hoito-buy-box form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.hoito-buy-box form.cart .single_variation_wrap { margin-top: 20px; }
.hoito-buy-box .quantity {
    display: inline-flex;
    align-items: center;
    height: 52px;
    margin: 0;
    border: 1.5px solid var(--ht-border-strong);
    border-radius: var(--ht-radius-default);
    background: var(--ht-bg);
    overflow: hidden;
    float: none;
}
.hoito-buy-box .quantity .qty { width: 51px; }
.hoito-buy-box form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    min-height: 52px;
    margin: 0;
    padding: 14px 24px;
    border: 0;
    border-radius: var(--ht-radius-default);
    background: var(--ht-primary);
    color: #fff;
    font: 600 16px/24px var(--ht-font);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.hoito-buy-box form.cart .single_add_to_cart_button:hover { background: var(--ht-primary-dark); }
.hoito-buy-box form.cart .single_add_to_cart_button.disabled,
.hoito-buy-box form.cart .single_add_to_cart_button:disabled { opacity: 0.5; }
.hoito-buy-box form.cart .single_add_to_cart_button .hoito-atc-price { white-space: nowrap; }

/* Variation table → stacked option groups with swatches. */
.hoito-buy-box table.variations { display: block; margin: 0; border: 0; width: auto; }
.hoito-buy-box table.variations tbody { display: flex; flex-direction: column; gap: 16px; }
.hoito-buy-box table.variations tr { display: flex; flex-direction: column; gap: 8px; }
.hoito-buy-box table.variations tr,
.hoito-buy-box table.variations th,
.hoito-buy-box table.variations td { display: block; padding: 0; border: 0; background: transparent; line-height: inherit; text-align: left; }
.hoito-buy-box table.variations th.label label { font: 600 14px/20px var(--ht-font); color: var(--ht-text); }
.hoito-buy-box table.variations th.label .hoito-swatch-current { font-weight: 400; color: var(--ht-muted); }
.hoito-buy-box table.variations td.value { display: flex; flex-direction: column; gap: 8px; }
.hoito-buy-box table.variations select { max-width: 100%; }
.hoito-buy-box table.variations select:has(+ .hoito-swatches) { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.hoito-buy-box table.variations .reset_variations { font: 400 12px/19px var(--ht-font); color: var(--ht-muted); }
.hoito-buy-box .reset_variations_alert { display: none; }
.hoito-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.hoito-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 2px;
    border: 2px solid var(--ht-border-strong);
    border-radius: 2px;
    background: var(--ht-bg);
    color: var(--ht-text);
    font: 400 14px/20px var(--ht-font);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.hoito-swatch--text { padding: 2px 8px; }
.hoito-swatch:hover { border-color: var(--ht-muted); }
.hoito-swatch.is-selected { border-color: var(--ht-primary-dark); }
.hoito-swatch__color { display: block; width: 24px; height: 24px; background: var(--hoito-swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.hoito-swatch__img { display: block; width: 24px; height: 24px; object-fit: cover; }
.hoito-swatch.is-disabled { border-color: var(--ht-border); color: var(--ht-border); cursor: not-allowed; }
.hoito-swatch.is-disabled .hoito-swatch__color, .hoito-swatch.is-disabled .hoito-swatch__img { opacity: 0.35; }
.hoito-swatch.is-disabled::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: var(--ht-border-strong); transform: rotate(-18deg); }

/* Price panel */
.hoito-price-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-default);
    background: var(--ht-cream);
    box-sizing: border-box;
}
.hoito-price-panel--bare { padding: 0; border: 0; background: transparent; }
.hoito-price-panel__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hoito-price-panel__row + .hoito-price-panel__hint,
.hoito-price-panel__row + .hoito-price-panel__hint[hidden] + .ht-stock { border-top: 1px solid var(--ht-border); padding-top: 8px; }
.hoito-price-panel__hint { margin: 0; font: 600 14px/20px var(--ht-font); color: var(--ht-primary-dark); }
.hoito-price-panel .ht-stock { padding-top: 0; }
.hoito-vat-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ht-cream); }
.hoito-vat-toggle__btn {
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: transparent;
    color: var(--ht-muted);
    font: 600 12px/19px var(--ht-font);
    text-transform: uppercase;
    cursor: pointer;
}
html.hoito-vat-incl .hoito-vat-toggle__btn[data-hoito-vat="incl"],
html.hoito-vat-excl .hoito-vat-toggle__btn[data-hoito-vat="excl"] { background: var(--ht-bg); color: var(--ht-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }

/* Bundles keep their own price + button; align them with the panel. */
.hoito-buy-box .bundle_form .bundle_price { font: 700 30px/36px var(--ht-font); color: var(--ht-primary); }
.hoito-buy-box .bundle_form .bundle_button { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Share row */
.hoito-share { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--ht-border); font: 600 14px/20px var(--ht-font); }
.hoito-share__link { display: inline-flex; width: 24px; height: 24px; color: var(--ht-text); border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hoito-share__link svg { width: 24px; height: 24px; }
.hoito-share__link:hover { color: var(--ht-primary); }
.hoito-share__copy.is-copied::after { content: attr(data-hoito-tooltip); position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--ht-radius-default); background: var(--ht-text); color: #fff; font: 400 12px/16px var(--ht-font); white-space: nowrap; }

/* Trust bar */
.hoito-trust-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding: 8px 20px 16px; border-bottom: 1px solid var(--ht-border); font-family: var(--ht-font); }
.hoito-trust-item { display: flex; align-items: flex-start; gap: 16px; flex: 1 1 240px; }
.hoito-trust-item__icon { width: 32px; height: 32px; flex: 0 0 32px; color: var(--ht-primary); }
.hoito-trust-item__body { display: flex; flex-direction: column; gap: 4px; }
.hoito-trust-item__title { margin: 0; font: 600 14px/20px var(--ht-font); color: var(--ht-primary); }
.hoito-trust-item__text { margin: 0; font: 400 14px/20px var(--ht-font); color: var(--ht-muted); }

/* --------------------------------------------------------------- tabs */
.woocommerce div.product .hoito-tabs { font-family: var(--ht-font); color: var(--ht-text); }
.woocommerce div.product .hoito-tabs ul.tabs {
    display: flex;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    /* The rule is a background, not a border: the active tab underlines over it,
       and anything crossing the border edge is cut by the horizontal scroll. */
    background: linear-gradient(var(--ht-border), var(--ht-border)) 0 100% / 100% 1px no-repeat;
    overflow-x: auto;
    scrollbar-width: none;
}
.woocommerce div.product .hoito-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce div.product .hoito-tabs ul.tabs::before,
.woocommerce div.product .hoito-tabs ul.tabs::after,
.woocommerce div.product .hoito-tabs ul.tabs li::before,
.woocommerce div.product .hoito-tabs ul.tabs li::after { display: none !important; content: none !important; }
/* The class beats the Customizer's legacy `ul.tabs li` padding below 767px. */
.woocommerce div.product .hoito-tabs ul.tabs li.hoito-tabs__item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    flex: 0 0 auto;
}
.woocommerce div.product .hoito-tabs ul.tabs li a {
    display: block;
    padding: 16px 20px;
    border-bottom: 2px solid transparent;
    font: 600 16px/24px var(--ht-font);
    color: var(--ht-muted);
    text-decoration: none;
    white-space: nowrap;
}
.woocommerce div.product .hoito-tabs ul.tabs li a:hover { color: var(--ht-text); }
.woocommerce div.product .hoito-tabs ul.tabs li.active a { color: var(--ht-text); border-bottom-color: var(--ht-primary); }
.woocommerce div.product .hoito-tabs .hoito-tabs__panel { padding-top: 24px; margin: 0; }
.woocommerce div.product .hoito-tabs .hoito-tabs__panel > h2:first-child,
.woocommerce div.product .hoito-tabs .hoito-tabs__box > h2:first-child,
.woocommerce div.product .hoito-tabs .hoito-tabs__description > h2:first-child { display: none; }
.hoito-tabs__description { font: 400 16px/24px var(--ht-font); }
.hoito-tabs__description p:last-child { margin-bottom: 0; }
.hoito-tabs__box { border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); padding: 16px; font: 400 16px/24px var(--ht-font); }
.hoito-tabs__box > *:last-child { margin-bottom: 0; }
.hoito-tabs__box .hoito-tabs__body > *:last-child { margin-bottom: 0; }
.hoito-tabs__box .hoito-tabs__eyebrow { margin: 0 0 8px; font: 600 14px/20px var(--ht-font); color: var(--ht-primary); text-transform: uppercase; }
.hoito-subsections { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.hoito-subsection { border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); padding: 16px; }
.hoito-subsection__title { margin: 0 0 6px; font: 600 14px/20px var(--ht-font); color: var(--ht-primary); text-transform: uppercase; }
.hoito-subsection__body { font: 400 16px/24px var(--ht-font); }
.hoito-subsection__body p { margin: 0; }
.hoito-clamp__toggle { display: none; }

/* Reviews (WooCommerce single-product-reviews.php) */
.hoito-tabs #reviews .woocommerce-Reviews-title { display: none; }
.hoito-tabs #reviews #comments ol.commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hoito-tabs #reviews #comments ol.commentlist li { margin: 0; padding: 0; }
.hoito-tabs #reviews #comments ol.commentlist li .comment_container { border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); padding: 16px; }
.hoito-tabs #reviews #comments ol.commentlist li img.avatar { display: none; }
.hoito-tabs #reviews #comments ol.commentlist li .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 8px; }
/* Woo prints the rating above the meta; the design puts the author line first. */
.hoito-tabs #reviews #comments ol.commentlist li .comment-text .meta { order: -1; margin: 0; font: 400 14px/20px var(--ht-font); color: var(--ht-muted); }
.hoito-tabs #reviews #comments ol.commentlist li .comment-text .meta strong { font-weight: 400; }
.hoito-tabs #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; font: 400 16px/24px var(--ht-font); }
.hoito-tabs #reviews .star-rating { color: var(--ht-rating); }
.hoito-tabs #review_form_wrapper { margin-top: 24px; }
.hoito-tabs #review_form .comment-reply-title { display: block; margin-bottom: 16px; font: 700 20px/26px var(--ht-font); }
.hoito-tabs #review_form .comment-form-rating label,
.hoito-tabs #review_form .comment-form-comment label { display: block; margin-bottom: 8px; font: 600 16px/24px var(--ht-font); }
.hoito-tabs #review_form .required { color: var(--ht-danger); font-size: 12px; line-height: 1; vertical-align: super; text-decoration: none; border: 0; }
.hoito-tabs #review_form p.stars a { color: var(--ht-border-strong); }
.hoito-tabs #review_form p.stars a::before { content: "\e020"; }
.hoito-tabs #review_form p.stars:hover a, .hoito-tabs #review_form p.stars.selected a.active, .hoito-tabs #review_form p.stars.selected a:not(.active) { color: var(--ht-rating); }
.hoito-tabs #review_form p.stars.selected a.active ~ a { color: var(--ht-border-strong); }
.hoito-tabs #review_form p.stars a:hover ~ a { color: var(--ht-border-strong); }
.hoito-tabs #review_form textarea { width: 100%; min-height: 104px; padding: 12px 16px; border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); font: 400 14px/20px var(--ht-font); }
.hoito-tabs #review_form input[type="text"], .hoito-tabs #review_form input[type="email"] { padding: 12px 16px; border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); font: 400 14px/20px var(--ht-font); }
.hoito-tabs #review_form #respond .form-submit input#submit {
    background: var(--ht-bg);
    color: var(--ht-primary);
    border: 1.5px solid var(--ht-primary);
    border-radius: var(--ht-radius-default);
    padding: 12px 20px;
    font: 600 16px/24px var(--ht-font);
    cursor: pointer;
}
.hoito-tabs #review_form #respond .form-submit input#submit:hover { background: var(--ht-primary); color: #fff; }

/* ------------------------------------------------------------ sliders */
.hoito-slider { position: relative; font-family: var(--ht-font); color: var(--ht-text); --hoito-cols: 4; --hoito-gap: 16px; }
.hoito-slider[hidden] { display: none; }
.hoito-slider__header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.hoito-slider .hoito-slider__title { margin: 0; font: 700 30px/36px var(--ht-font); letter-spacing: -0.3px; color: var(--ht-text); }
.hoito-slider__subtitle { margin: 0; max-width: 700px; font: 400 16px/25px var(--ht-font); color: var(--ht-muted); }
.hoito-slider__stage { position: relative; }
.hoito-slider__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 8px; }
.hoito-slider__viewport::-webkit-scrollbar { display: none; }
.hoito-slider__track { display: flex; gap: var(--hoito-gap); margin: 0; padding: 0; list-style: none; }
.hoito-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ht-border-strong);
    background: var(--ht-bg);
    color: var(--ht-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: opacity 0.15s ease;
}
.hoito-slider__nav svg { width: 24px; height: 24px; }
.hoito-slider__nav:hover { background: var(--ht-cream); }
.hoito-slider__nav:disabled { opacity: 0.35; cursor: default; }
.hoito-slider__nav--prev { left: -56px; }
.hoito-slider__nav--next { right: -56px; }
.hoito-slider.is-single .hoito-slider__nav { display: none; }
.hoito-slider .ht-slider__dots { margin-top: 24px; }

/* Slider item: the shared .ht-card (css/ht.css) inside the scroll-snap track */
.hoito-slider__item {
    flex: 0 0 calc((100% - (var(--hoito-cols) - 1) * var(--hoito-gap)) / var(--hoito-cols));
    /* Without this a card whose image 404s takes its min-content width and stretches the whole track. */
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
.hoito-slider__item > .ht-card { width: 100%; }

/* --------------------------------------------------------- sticky bar */
.hoito-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 96px;
    background: var(--ht-bg);
    border-top: 1px solid var(--ht-border);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
    font-family: var(--ht-font);
    color: var(--ht-text);
}
.hoito-sticky-bar[hidden] { display: none; }
body.hoito-sticky-visible { padding-bottom: 96px; }
.hoito-sticky-bar__product { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hoito-sticky-bar__thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--ht-border); border-radius: var(--ht-radius-default); background: var(--ht-bg); flex: 0 0 64px; }
.hoito-sticky-bar__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hoito-sticky-bar__title { margin: 0; font: 700 16px/20px var(--ht-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoito-sticky-bar__meta { margin: 0; font: 400 16px/24px var(--ht-font); color: var(--ht-muted); }
.hoito-sticky-bar__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.hoito-sticky-bar__price .hoito-price { align-items: center; }
.hoito-sticky-bar__price .hoito-price__current { font: 700 16px/20px var(--ht-font); letter-spacing: 0; }
.hoito-sticky-bar__price .hoito-price__prefix { font-size: 14px; }
.hoito-sticky-bar__price .hoito-price__regular { font-size: 12px; line-height: 16px; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1400px) {
    .hoito-slider__nav--prev { left: 8px; }
    .hoito-slider__nav--next { right: 8px; }
}

@media (max-width: 1024px) {
    .hoito-slider { --hoito-cols: 3; }
    .hoito-sticky-bar { padding: 16px 24px; }
}

@media (max-width: 767px) {
    .hoito-gallery, .hoito-gallery:has(.flex-control-thumbs), .hoito-gallery:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image) { --hoito-rail: 0px; --hoito-gallery-gap: 0px; }
    .hoito-gallery:has(.flex-control-thumbs) { --hoito-rail-below: calc(var(--hoito-thumb) + 16px); }
    .hoito-gallery .woocommerce-product-gallery { flex-direction: column; }
    .hoito-gallery .woocommerce-product-gallery .flex-viewport,
    .hoito-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { order: 1; width: 100%; }
    .hoito-gallery .woocommerce-product-gallery .flex-control-thumbs { order: 2; flex-direction: row; width: 100%; flex-basis: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
    /* The thumb row (82px + 16px gap) moves below the image, so the centre shifts up by half of it. */
    .hoito-gallery .flex-direction-nav a { top: calc(50% - 49px); }

    .hoito-buy-box form.cart .single_add_to_cart_button,
    .hoito-buy-box .hoito-buy-box__login { flex: 1 1 100%; }
    .hoito-trust-bar { padding: 16px 0; }
    .hoito-trust-item { flex-basis: 100%; }

    /* three lines with an ellipsis, then the toggle 16px below. */
    .hoito-clamp:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .hoito-clamp__toggle[hidden] { display: none; }
    .hoito-clamp__toggle { display: inline-block; margin-top: 16px; padding: 0; border: 0; background: none; font: 400 14px/20px var(--ht-font); color: var(--ht-primary); text-decoration: underline; cursor: pointer; }

    .hoito-slider { --hoito-cols: 1; }
    .hoito-slider__item { flex-basis: 78%; }
    .hoito-slider__nav { display: none; }
    .hoito-slider .hoito-slider__title { font-size: 24px; line-height: 30px; }

    .hoito-sticky-bar { padding: 16px; }
    .hoito-sticky-bar__product { display: none; }
    .hoito-sticky-bar__actions { flex: 1 1 auto; }
    .hoito-sticky-bar__button { flex: 1 1 auto; }
    body.hoito-sticky-visible { padding-bottom: 76px; }
}

/* ---------------------------------------------- Elementor kit overrides */
/* The kit styles every <button> (primary background, 1rem/1.8em, white text); win on specificity. */
.hoito-qty button.hoito-qty__btn,
.hoito-buy-box .quantity button.hoito-qty__btn { background: transparent; color: var(--ht-muted); font-size: 0; line-height: 1; padding: 0; border-radius: 0; }
.hoito-qty button.hoito-qty__btn--plus,
.hoito-buy-box .quantity button.hoito-qty__btn--plus { color: var(--ht-text); }
.hoito-qty button.hoito-qty__btn:hover,
.hoito-buy-box .quantity button.hoito-qty__btn:hover { background: var(--ht-cream); color: var(--ht-text); }
.hoito-buy-box .quantity input.qty { border: 0; border-radius: 0; box-shadow: none; font-size: 16px; color: var(--ht-text); background: transparent; }
.hoito-buy-box .quantity input.qty:focus { box-shadow: none; outline: 2px solid var(--ht-border-strong); outline-offset: -2px; }
.hoito-swatches button.hoito-swatch { background: var(--ht-bg); color: var(--ht-text); font-size: 14px; line-height: 20px; border-radius: 2px; }
.hoito-swatches button.hoito-swatch:hover { background: var(--ht-bg); color: var(--ht-text); }
.hoito-swatches button.hoito-swatch.is-disabled { color: var(--ht-border); }
.hoito-vat-toggle button.hoito-vat-toggle__btn { background: transparent; color: var(--ht-muted); font-size: 12px; line-height: 19px; }
.hoito-vat-toggle button.hoito-vat-toggle__btn:hover { background: transparent; color: var(--ht-text); }
html.hoito-vat-incl .hoito-vat-toggle button.hoito-vat-toggle__btn[data-hoito-vat="incl"],
html.hoito-vat-excl .hoito-vat-toggle button.hoito-vat-toggle__btn[data-hoito-vat="excl"] { background: var(--ht-bg); color: var(--ht-text); }
.hoito-share button.hoito-share__link { background: none; color: var(--ht-text); font-size: 0; line-height: 1; padding: 0; }
.hoito-share button.hoito-share__link:hover { background: none; color: var(--ht-primary); }
.hoito-slider button.hoito-slider__nav { background: var(--ht-bg); color: var(--ht-muted); font-size: 0; line-height: 1; padding: 0; }
.hoito-slider button.hoito-slider__nav:hover { background: var(--ht-cream); color: var(--ht-text); }
.hoito-slider button.ht-slider__dot { background: var(--ht-border-strong); font-size: 0; line-height: 0; }
.hoito-slider button.ht-slider__dot.is-active { background: var(--ht-primary); }
button.hoito-btn, a.hoito-btn { font-size: 16px; line-height: 24px; }
button.hoito-btn--outline { background: var(--ht-bg); color: var(--ht-primary); }
.hoito-tabs button.hoito-clamp__toggle { background: none; color: var(--ht-primary); font-weight: 400; font-size: 14px; line-height: 20px; padding: 0; }

/* Product Bundles prints its own availability; the price panel already shows the stock line. */
.hoito-buy-box .bundle_form .bundle_availability { display: none; }

/* The Customizer's legacy additional CSS frames every .panel with an !important border; out-specify it. */
.woocommerce div.product .hoito-tabs .panel,
.woocommerce div.product.elementor .hoito-tabs.woocommerce-tabs .panel { border: 0 !important; box-shadow: none !important; margin: 0; padding: 24px 0 0; }
