/**
 * Product detail — split hero (image | buy), ATC under tiers, details, exclusive strip.
 */

body.kf-pdp-page {
    background: #f3f4f2 !important;
}

.kf-pdp {
    --pdp-ink: #0f172a;
    --pdp-muted: #526071;
    --pdp-green: #166534;
    --pdp-green-soft: #e8f5ec;
    --pdp-line: #d5dbd2;
    --pdp-surface: #ffffff;
    position: relative;
    padding: 8px 0 calc(24px + var(--ca-lnav-dock, 66px) + env(safe-area-inset-bottom, 0px));
    max-width: min(100%, var(--kf-app-shell-max, 430px));
    margin: 0 auto;
    color: var(--pdp-ink);
}

.kf-pdp__block {
    margin: 0 10px;
    border: 1px solid var(--pdp-line);
    background: var(--pdp-surface);
    box-sizing: border-box;
}

.kf-pdp__crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 8px 10px;
    background: #e8f5ec;
    border-bottom: 1px solid var(--pdp-line);
    font-family: var(--kf-app-font-family, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.3;
}

.kf-pdp__back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #bbd7c4;
    border-radius: 0;
    background: #ffffff;
    color: #14532d;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kf-pdp__back:active {
    background: #dcefe2;
}

.kf-pdp__back:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

.kf-pdp__crumb-cat {
    color: #14532d !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 750;
}

.kf-pdp__crumb-cat:active {
    opacity: 0.8;
}

.kf-pdp__crumb-sep {
    color: #4d7c57;
    font-weight: 700;
}

.kf-pdp__crumb-product {
    color: var(--pdp-ink) !important;
    font-weight: 800;
}

.kf-pdp__crumb-h1 {
    display: inline;
    margin: 0;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.kf-pdp__lang-toggle {
    border-bottom: 1px solid var(--pdp-line);
}

.kf-pdp__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 210px;
    margin: 0;
    background: var(--pdp-surface);
    border: 0;
    box-sizing: border-box;
}

.kf-pdp__split--hero {
    grid-template-columns: 1fr;
    min-height: 0;
}

.kf-pdp__visual {
    position: relative;
    background: #e9eee8;
    border-right: 1px solid var(--pdp-line);
    min-height: 210px;
    overflow: hidden;
}

.kf-pdp__visual--hero {
    border-right: 0;
    border-bottom: 1px solid var(--pdp-line);
    min-height: 240px;
    aspect-ratio: 4 / 3;
    max-height: min(52vh, 360px);
}

.kf-pdp__slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 210px;
}

.kf-pdp__visual--hero .kf-pdp__slides {
    min-height: 100%;
    height: 100%;
}

.kf-pdp__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #e9eee8;
}

.kf-pdp__slide.is-active {
    display: flex;
}

.kf-pdp__slide img,
.kf-pdp__slide .kf-pdp__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.kf-pdp__slide--video .kf-pdp__video {
    object-fit: contain;
}

.kf-pdp__slide--empty span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pdp-muted);
}

.kf-pdp__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.kf-pdp__nav--prev {
    left: 6px;
}

.kf-pdp__nav--next {
    right: 6px;
}

.kf-pdp__nav:active {
    background: #fff;
}

.kf-pdp__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.kf-pdp__dot {
    pointer-events: auto;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.kf-pdp__dot.is-active {
    background: var(--pdp-green);
    width: 14px;
}

.kf-pdp__dot--video {
    border-radius: 50%;
    width: 7px;
    height: 7px;
}

.kf-pdp__dot--video.is-active {
    width: 7px;
    background: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.35);
}

.kf-pdp__buy {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 10px 12px;
    min-width: 0;
    background: var(--pdp-surface);
}

.kf-pdp__locked {
    margin: 0 0 8px;
    padding: 6px 8px;
    border: 1px solid #fdba74;
    border-left: 3px solid #ea580c;
    border-radius: 0;
    background: #fff7ed;
    color: #9a3412 !important;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.3;
}

.kf-pdp__select-label {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 750;
    color: var(--pdp-ink) !important;
}

.kf-pdp__tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 10px;
}

.kf-pdp__tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 8px 9px;
    border: 1.5px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kf-pdp__tier.is-selected,
.kf-pdp__tier:has(input:checked) {
    border-color: var(--pdp-green);
    background: var(--pdp-green-soft);
}

.kf-pdp__tier input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kf-pdp__tier-name-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.kf-pdp__tier-name {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--pdp-ink) !important;
    line-height: 1.2;
}

.kf-pdp__tier .bh-tier-info {
    position: relative;
    z-index: 2;
}

.kf-pdp__tier:has(.bh-tier-info--open) {
    z-index: 20;
}

.kf-pdp__tier-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--pdp-green) !important;
    line-height: 1.2;
}

.kf-pdp__qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

.kf-pdp__qty-row .kf-pdp__select-label {
    margin: 0;
}

.kf-pdp__qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #94a3b8;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.kf-pdp__qty-btn {
    width: 32px;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: #f1f5f1;
    font-size: 1rem;
    font-weight: 750;
    color: var(--pdp-ink) !important;
    cursor: pointer;
}

.kf-pdp__qty-btn:active {
    background: #dce6dd;
}

.kf-pdp__qty-val {
    min-width: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #94a3b8;
    border-right: 1px solid #94a3b8;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--pdp-ink) !important;
}

.kf-pdp__add {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: #166534 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-family: var(--kf-app-font-family, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.kf-pdp__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.kf-pdp__add.is-busy {
    opacity: 0.75;
}

.kf-pdp__add:not(:disabled):active {
    background: #14532d !important;
}

.kf-pdp__live-price {
    margin: 6px 0 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pdp-green) !important;
}

.kf-pdp__details-card {
    margin: 14px 10px 0;
    padding: 12px;
    background: var(--pdp-surface);
    border: 1px solid var(--pdp-line);
    box-sizing: border-box;
}

.kf-pdp__details-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pdp-ink) !important;
}

.kf-pdp__details {
    margin: 0;
    color: #334155 !important;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.55;
}

.kf-pdp__details p {
    margin: 0 0 0.65em;
}

.kf-pdp__details p:last-child {
    margin-bottom: 0;
}

.kf-pdp__details ul,
.kf-pdp__details ol {
    margin: 0 0 0.65em;
    padding-left: 1.25em;
}

.kf-pdp__details li {
    margin: 0 0 0.25em;
}

.kf-pdp__details a {
    color: var(--pdp-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Exclusive strip spacing on PDP — match details outer inset */
.kf-pdp .mh-home-products {
    margin-top: 4px;
}

.kf-pdp .mh-home-product,
.kf-pdp .mh-home-product__add,
.kf-pdp .mh-home-product__step-btn {
    border-radius: 0 !important;
}

@media (min-width: 400px) {
    .kf-pdp__visual:not(.kf-pdp__visual--hero),
    .kf-pdp__visual:not(.kf-pdp__visual--hero) .kf-pdp__slides {
        min-height: 230px;
    }

    .kf-pdp__visual--hero {
        min-height: 260px;
    }
}
