/* ==========================================================
   KUMKANG PREMIUM PRODUCT PAGE v1.2.14
   Requested refinements:
   - gallery thumbnails on LEFT (desktop)
   - Wholesale WhatsApp action
   - SKIN1004-style Pair it well cards
   - Product Details / Texture / How to Use / Ingredients tabs
   ========================================================== */

:root {
    --kkb-ppp-blue: #0086B9;
    --kkb-ppp-dark: #005A7D;
    --kkb-ppp-deep: #00435E;
    --kkb-ppp-text: #191919;
    --kkb-ppp-muted: #737373;
    --kkb-ppp-line: #E5E8EA;
    --kkb-ppp-soft: #F4F8FA;
    --kkb-ppp-soft-blue: #EDF7FB;
    --kkb-ppp-soft-cream: #F5F1E8;
    --kkb-ppp-sale: #E63B2E;
}

body.single-product .site-content,
body.single-product .content-area,
body.single-product main.site-main {
    width: 100% !important;
    max-width: none !important;
}

.kkb-ppp {
    width: min(1540px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 18px 0 70px !important;
    color: var(--kkb-ppp-text);
    box-sizing: border-box;
}
.kkb-ppp * { box-sizing: border-box; }

.kkb-ppp-breadcrumb { margin: 0 0 24px; font-size: 12px; color: var(--kkb-ppp-muted); }
.kkb-ppp-breadcrumb .woocommerce-breadcrumb { margin: 0 !important; }

/* HERO */
.kkb-ppp-hero {
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(360px, 44%);
    gap: 44px;
    align-items: start;
}

/* ==========================================================
   GALLERY — LEFT THUMBNAILS ON DESKTOP
   ========================================================== */
.kkb-ppp-gallery { min-width: 0; }
.kkb-ppp-gallery-shell {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.kkb-ppp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 650px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 2px 0 0;
    scrollbar-width: thin;
}
.kkb-ppp-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--kkb-ppp-line);
    cursor: pointer;
}
.kkb-ppp-thumb.is-active {
    border-color: var(--kkb-ppp-blue);
    box-shadow: inset 0 0 0 1px var(--kkb-ppp-blue);
}
.kkb-ppp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kkb-ppp-main-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 580px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.kkb-ppp-main-media > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.kkb-ppp-sale-badge {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    background: var(--kkb-ppp-sale);
    color: #fff;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
}

/* BUY PANEL */
.kkb-ppp-buy-panel { position: sticky; top: 24px; padding: 4px 0 0; }
.kkb-ppp-brand { margin: 0 0 8px; color: var(--kkb-ppp-muted); font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kkb-ppp-title { margin: 0 0 11px !important; padding: 0 !important; color: var(--kkb-ppp-text) !important; font-size: clamp(28px, 2.3vw, 42px) !important; line-height: 1.08 !important; font-weight: 650 !important; letter-spacing: -.025em; }
.kkb-ppp-rating { display: inline-flex; align-items: center; gap: 10px; color: var(--kkb-ppp-muted); text-decoration: none; font-size: 12px; margin-bottom: 14px; }
.kkb-ppp-rating .star-rating { margin: 0 !important; float: none !important; }
.kkb-ppp-promise { margin: 0 0 15px; color: #555; font-size: 15px; line-height: 1.6; }
.kkb-ppp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.kkb-ppp-chips span { display: inline-flex; align-items: center; padding: 7px 10px; background: var(--kkb-ppp-soft-blue); color: var(--kkb-ppp-dark); border-radius: 999px; font-size: 11px; line-height: 1; font-weight: 700; }
.kkb-ppp-price-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--kkb-ppp-line); padding: 18px 0 7px; }
.kkb-ppp-price, .kkb-ppp-price .price, .kkb-ppp-price * { color: #111 !important; font-size: 22px !important; line-height: 1.2 !important; font-weight: 750 !important; }
.kkb-ppp-price del, .kkb-ppp-price del * { color: #9B9B9B !important; font-weight: 500 !important; }
.kkb-ppp-price ins { text-decoration: none !important; }
.kkb-ppp-discount { display: inline-flex; padding: 5px 7px; background: var(--kkb-ppp-sale); color: #fff; font-size: 10px; line-height: 1; font-weight: 800; }
.kkb-ppp-stock { font-size: 12px; margin-bottom: 14px; font-weight: 700; }
.kkb-ppp-stock.is-in-stock { color: #2F7A4B; }
.kkb-ppp-stock.is-out-of-stock { color: var(--kkb-ppp-sale); }


/* MANUAL TOP-RIGHT PRODUCT SUMMARY ABOVE QUANTITY + ADD TO CART */
.kkb-ppp-purchase-details {
    margin: 4px 0 16px;
    padding: 14px 16px 12px;
    border: 1.5px solid var(--kkb-ppp-blue);
    border-radius: 12px;
    background: #fff;
}
.kkb-ppp-purchase-details-title {
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom: 5px;
    color: #111;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .035em;
}
.kkb-ppp-purchase-details-title span{color:var(--kkb-ppp-blue);font-size:12px}
.kkb-ppp-purchase-detail-row {
    display:grid;
    grid-template-columns: 30px minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding: 12px 0;
    border-top:1px solid #e9eef0;
}
.kkb-ppp-purchase-detail-row:first-of-type{border-top:0}
.kkb-ppp-detail-icon{
    display:grid;
    place-items:center;
    width:26px;
    height:26px;
    margin-top:1px;
    border-radius:50%;
    background:var(--kkb-ppp-soft-blue);
    color:var(--kkb-ppp-blue);
    font-size:12px;
    font-weight:900;
}
.kkb-ppp-purchase-detail-row span {
    display:block;
    margin-bottom:4px;
    color:#222;
    font-size:11px;
    line-height:1.35;
    font-weight:800;
}
.kkb-ppp-purchase-detail-row p{
    margin:0;
    color:#555;
    font-size:11px;
    line-height:1.5;
}
.kkb-ppp-purchase-detail-row ul{
    margin:0;
    padding:0;
    list-style:none;
}
.kkb-ppp-purchase-detail-row li{
    position:relative;
    margin:0 0 3px;
    padding-left:14px;
    color:#555;
    font-size:11px;
    line-height:1.45;
}
.kkb-ppp-purchase-detail-row li:before{
    content:'✓';
    position:absolute;
    left:0;
    top:0;
    color:#2f8f63;
    font-weight:900;
}

/* ADD TO CART */
.kkb-ppp-cart-wrap form.cart { display: flex !important; align-items: stretch !important; gap: 10px !important; margin: 0 0 15px !important; }
.kkb-ppp-cart-wrap .quantity { flex: 0 0 112px; margin: 0 !important; }
.kkb-ppp-cart-wrap .quantity input.qty { width: 100% !important; height: 48px !important; border: 1px solid #111 !important; border-radius: 0 !important; background: #fff !important; color: #111 !important; text-align: center !important; }
.kkb-ppp-cart-wrap button.single_add_to_cart_button,
.kkb-ppp-cart-wrap .single_add_to_cart_button { flex: 1 1 auto !important; min-height: 48px !important; margin: 0 !important; padding: 12px 18px !important; background: var(--kkb-ppp-dark) !important; border: 1px solid var(--kkb-ppp-dark) !important; border-radius: 0 !important; color: #fff !important; font-size: 13px !important; font-weight: 800 !important; text-transform: uppercase; }
.kkb-ppp-cart-wrap button.single_add_to_cart_button:hover { background: var(--kkb-ppp-deep) !important; }
.kkb-ppp-cart-wrap table.variations { width: 100%; margin-bottom: 12px; }
.kkb-ppp-cart-wrap .variations_form.cart { display: block !important; }
.kkb-ppp-cart-wrap .variations_button { display: flex !important; gap: 10px; align-items: stretch; }

.kkb-ppp-trust-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 0 15px; }
.kkb-ppp-trust-row > div { display: grid; grid-template-columns: 22px 1fr; gap: 0 6px; align-items: start; padding: 10px; background: var(--kkb-ppp-soft); }
.kkb-ppp-trust-row span { grid-row: 1 / span 2; color: var(--kkb-ppp-blue); font-weight: 900; }
.kkb-ppp-trust-row strong { font-size: 10px; line-height: 1.25; color: #222; }
.kkb-ppp-trust-row small { font-size: 9px; line-height: 1.35; color: #777; }

/* AVAILABLE OPTIONS + WHOLESALE WHATSAPP */
.kkb-ppp-offers { padding: 14px; background: var(--kkb-ppp-soft-blue); margin-bottom: 16px; }
.kkb-ppp-offers h3 { margin: 0 0 10px !important; font-size: 13px !important; color: #111 !important; }
.kkb-ppp-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kkb-ppp-offer-card { display: block; background: #fff; padding: 11px; text-decoration: none !important; border: 1px solid transparent; }
.kkb-ppp-offer-card strong { display: block; font-size: 11px; color: var(--kkb-ppp-dark); margin-bottom: 3px; }
.kkb-ppp-offer-card span { display: block; font-size: 10px; color: #777; line-height: 1.35; }
.kkb-ppp-offer-card b { display: block; margin-top: 6px; color: var(--kkb-ppp-dark); font-size: 10px; font-weight: 800; }
.kkb-ppp-wholesale-card { border-color: rgba(0,134,185,.25); }
.kkb-ppp-wholesale-card:hover { border-color: var(--kkb-ppp-blue); background: #fff; }

/* ACCORDIONS */
.kkb-ppp-accordions { border-top: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-accordion { border-bottom: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-accordion-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; color: #111; font-size: 13px; font-weight: 750; text-align: left; cursor: pointer; }
.kkb-ppp-plus { font-size: 18px; font-weight: 400; transition: transform .2s ease; }
.kkb-ppp-accordion.is-open .kkb-ppp-plus { transform: rotate(45deg); }
.kkb-ppp-accordion-content { padding: 0 0 16px; color: #555; font-size: 13px; line-height: 1.65; }
.kkb-ppp-accordion-content > :first-child { margin-top: 0; }
.kkb-ppp-accordion-content > :last-child { margin-bottom: 0; }

/* GENERAL SECTIONS */
.kkb-ppp-section { padding: 70px 0; border-top: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-section-heading { margin-bottom: 26px; }
.kkb-ppp-section-heading > span { color: var(--kkb-ppp-blue); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.kkb-ppp-section-heading h2 { margin: 5px 0 0 !important; color: #111 !important; font-size: clamp(26px, 2.4vw, 38px) !important; line-height: 1.12 !important; font-weight: 650 !important; }

.kkb-ppp-glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--kkb-ppp-line); border-left: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-glance-item { min-height: 120px; padding: 20px; border-right: 1px solid var(--kkb-ppp-line); border-bottom: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-glance-item span { display: block; margin-bottom: 10px; color: var(--kkb-ppp-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kkb-ppp-glance-item strong { display: block; color: #222; font-size: 14px; line-height: 1.45; font-weight: 650; }

.kkb-ppp-howto-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.kkb-ppp-howto-copy { color: #444; font-size: 15px; line-height: 1.8; }
.kkb-ppp-routine-step { padding: 28px; background: var(--kkb-ppp-soft-blue); }
.kkb-ppp-routine-step small { display: block; color: var(--kkb-ppp-blue); font-size: 10px; letter-spacing: .12em; font-weight: 800; margin-bottom: 8px; }
.kkb-ppp-routine-step strong { display: block; color: #111; font-size: 23px; line-height: 1.25; margin-bottom: 10px; }
.kkb-ppp-routine-step p { margin: 0; color: #667; font-size: 13px; line-height: 1.6; }

.kkb-ppp-ingredient-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.kkb-ppp-ingredient-card { min-height: 150px; padding: 22px; background: var(--kkb-ppp-soft); border-top: 3px solid var(--kkb-ppp-blue); }
.kkb-ppp-ingredient-card span { display: block; color: #8B8B8B; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; }
.kkb-ppp-ingredient-card strong { display: block; color: #222; font-size: 17px; line-height: 1.35; }

/* ==========================================================
   PAIR IT WELL — SKIN1004-STYLE HORIZONTAL RECOMMENDATIONS
   ========================================================== */
.kkb-ppp-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}
.kkb-ppp-pair-card {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #E2E3E5;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.kkb-ppp-pair-image { display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; text-decoration: none; }
.kkb-ppp-pair-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0 !important; }
.kkb-ppp-pair-brand { color: #858585; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.kkb-ppp-pair-card h3 { margin: 0 0 5px !important; font-size: 18px !important; line-height: 1.3 !important; }
.kkb-ppp-pair-card h3 a { color: #222 !important; text-decoration: none !important; }
.kkb-ppp-pair-card p { margin: 0 0 7px; color: #777; font-size: 12px; line-height: 1.45; }
.kkb-ppp-pair-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: #777; font-size: 11px; }
.kkb-ppp-pair-rating .star-rating { margin: 0 !important; float: none !important; }
.kkb-ppp-pair-price, .kkb-ppp-pair-price * { color: #111 !important; font-size: 14px !important; font-weight: 700 !important; }
.kkb-ppp-pair-price del, .kkb-ppp-pair-price del * { color: #B0B0B0 !important; font-weight: 500 !important; }
.kkb-ppp-pair-price ins { text-decoration: none !important; }
.kkb-ppp-pair-save { margin-left: 7px; color: var(--kkb-ppp-sale) !important; font-size: 11px !important; font-weight: 700 !important; }

/* ==========================================================
   PRODUCT DETAILS / TEXTURE / HOW TO USE / INGREDIENTS TABS
   ========================================================== */
.kkb-ppp-product-tabs-section { padding-top: 40px; }
.kkb-ppp-product-tabs-card {
    padding: 34px 42px 40px;
    background:
        radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 9%, transparent), transparent 34%),
        var(--kkb-tabs-bg, #F2F9FC);
    color: var(--kkb-tabs-text, #163643);
    border: 1px solid color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 16%, transparent);
    transition: background-color .25s ease, border-color .25s ease;
}
.kkb-ppp-tab-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-bottom: 1px solid color-mix(in srgb, var(--kkb-tabs-text, #163643) 65%, transparent);
    margin-bottom: 26px;
}
.kkb-ppp-tab-button {
    min-height: 54px;
    padding: 0 12px 15px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--kkb-tabs-text, #163643);
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.25;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .025em;
    cursor: pointer;
}
.kkb-ppp-tab-button.is-active { border-bottom-color: var(--kkb-tabs-accent, #0193CF); color: var(--kkb-tabs-text, #163643); font-weight: 750; }
.kkb-ppp-tab-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 42px;
    align-items: center;
    min-height: 360px;
}

/* TAB VISIBILITY FIX
   The theme/plugin grid rule must never override the HTML hidden state. */
.kkb-ppp-tab-panel[hidden] {
    display: none !important;
}
.kkb-ppp-tab-panel.is-active {
    display: grid;
}

.kkb-ppp-tab-copy { color: var(--kkb-tabs-text, #163643); font-size: 14px; line-height: 1.75; }
.kkb-ppp-tab-copy > :first-child { margin-top: 0; }
.kkb-ppp-tab-copy > :last-child { margin-bottom: 0; }
.kkb-ppp-tab-copy h1, .kkb-ppp-tab-copy h2, .kkb-ppp-tab-copy h3, .kkb-ppp-tab-copy h4 { color: var(--kkb-tabs-text, #163643); }
.kkb-ppp-tab-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: color-mix(in srgb, var(--kkb-tabs-bg, #F2F9FC) 58%, #fff);
    border: 1px solid color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 22%, transparent);
}
.kkb-ppp-tab-image img { width: 100%; max-width: 500px; aspect-ratio: 1 / 1; object-fit: contain; display: block; }

/* RELATED / YOU MAY ALSO LIKE */
.kkb-ppp-product-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; }
.kkb-ppp-related-card { padding: 0 16px; border-right: 1px solid var(--kkb-ppp-line); min-width: 0; }
.kkb-ppp-related-card:last-child { border-right: 0; }
.kkb-ppp-related-image { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; margin-bottom: 12px; }
.kkb-ppp-related-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0 !important; }
.kkb-ppp-related-brand { color: var(--kkb-ppp-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.kkb-ppp-related-card h3 { margin: 0 0 8px !important; font-size: 13px !important; line-height: 1.4 !important; min-height: 37px; }
.kkb-ppp-related-card h3 a { color: var(--kkb-ppp-dark) !important; text-decoration: none !important; }
.kkb-ppp-related-price, .kkb-ppp-related-price * { color: #111 !important; font-size: 13px !important; font-weight: 700 !important; }
.kkb-ppp-related-price del, .kkb-ppp-related-price del * { color: #999 !important; font-weight: 500 !important; }
.kkb-ppp-related-price ins { text-decoration: none !important; }

/* REVIEWS & FOOTER TRUST */
.kkb-ppp-reviews { overflow: hidden; }
.kkb-ppp-review-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.kkb-ppp-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 210px;
    padding: 17px;
    border: 1px solid var(--kkb-ppp-line);
    border-radius: 12px;
    background: #fff;
}
.kkb-ppp-review-stars {
    min-height: 22px;
    margin-bottom: 10px;
}
.kkb-ppp-review-stars .star-rating {
    float: none !important;
    margin: 0 !important;
    font-size: 13px !important;
}
.kkb-ppp-review-no-rating {
    color: var(--kkb-ppp-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.kkb-ppp-review-copy {
    flex: 1;
    color: #444;
    font-size: 11px;
    line-height: 1.65;
}
.kkb-ppp-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid var(--kkb-ppp-line);
}
.kkb-ppp-review-meta strong {
    color: #111;
    font-size: 10px;
}
.kkb-ppp-review-meta small {
    width: 100%;
    color: var(--kkb-ppp-muted);
    font-size: 9px;
}
.kkb-ppp-verified {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #edf8fb;
    color: var(--kkb-ppp-dark);
    font-size: 8px;
    font-weight: 700;
}
.kkb-ppp-no-reviews {
    margin: 0 0 22px;
    color: var(--kkb-ppp-muted);
    font-size: 12px;
}
.kkb-ppp-review-form-shell {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--kkb-ppp-line);
}
/* comments_template() is kept for the WooCommerce review form only.
   Hide its duplicate built-in review list/title because the custom grid above
   already displays the approved reviews. */
.kkb-ppp-review-form-shell.has-kkb-review-grid .woocommerce-Reviews-title,
.kkb-ppp-review-form-shell.has-kkb-review-grid #comments,
.kkb-ppp-review-form-shell.has-kkb-review-grid .commentlist {
    display: none !important;
}
.kkb-ppp-review-form-shell #reviews {
    margin: 0 !important;
}
.kkb-ppp-review-form-shell #review_form_wrapper,
.kkb-ppp-review-form-shell #review_form {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.kkb-ppp-footer-trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--kkb-ppp-line); border-bottom: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-footer-trust > div { padding: 28px; border-right: 1px solid var(--kkb-ppp-line); }
.kkb-ppp-footer-trust > div:last-child { border-right: 0; }
.kkb-ppp-footer-trust strong { display: block; margin-bottom: 6px; color: #111; font-size: 13px; }
.kkb-ppp-footer-trust span { display: block; color: #777; font-size: 11px; line-height: 1.5; }

@media (max-width: 1100px) {
    .kkb-ppp { width: min(100% - 30px, 1200px) !important; }
    .kkb-ppp-hero { grid-template-columns: minmax(0, 52%) minmax(340px, 48%); gap: 28px; }
    .kkb-ppp-main-media { min-height: 470px; }
    .kkb-ppp-glance-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .kkb-ppp-pair-grid { grid-template-columns: 1fr; }
    .kkb-ppp-tab-panel { grid-template-columns: 1fr; }
    .kkb-ppp-product-row { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 28px; }
    .kkb-ppp-review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .kkb-ppp { width: calc(100% - 20px) !important; padding-top: 8px !important; }
    .kkb-ppp-breadcrumb { margin-bottom: 12px; }
    .kkb-ppp-hero { grid-template-columns: 1fr; gap: 22px; }

    /* Mobile: thumbnails go beneath the main image for usability. */
    .kkb-ppp-gallery-shell { grid-template-columns: 1fr; }
    .kkb-ppp-main-media { min-height: 0; aspect-ratio: 1 / 1; }
    .kkb-ppp-thumbnails { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 10px 0 2px; }

    .kkb-ppp-buy-panel { position: static; }
    .kkb-ppp-title { font-size: 28px !important; }
    .kkb-ppp-cart-wrap form.cart { gap: 7px !important; }
    .kkb-ppp-cart-wrap .quantity { flex-basis: 88px; }
    .kkb-ppp-trust-row { grid-template-columns: 1fr; }
    .kkb-ppp-offer-grid { grid-template-columns: 1fr; }
    .kkb-ppp-section { padding: 48px 0; }
    .kkb-ppp-glance-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .kkb-ppp-glance-item { min-height: 100px; padding: 15px; }
    .kkb-ppp-howto-layout { grid-template-columns: 1fr; }
    .kkb-ppp-ingredient-grid { grid-template-columns: 1fr; }

    .kkb-ppp-pair-card { grid-template-columns: 76px minmax(0,1fr); gap: 13px; padding: 15px; }
    .kkb-ppp-pair-image { width: 76px; height: 76px; }
    .kkb-ppp-pair-card h3 { font-size: 15px !important; }

    .kkb-ppp-product-tabs-card { padding: 20px 14px 24px; }
    .kkb-ppp-tab-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .kkb-ppp-tab-button { min-height: 46px; font-size: 12px; padding: 0 5px 10px; }
    .kkb-ppp-tab-panel { min-height: 0; gap: 20px; }
    .kkb-ppp-tab-copy { font-size: 13px; }

    .kkb-ppp-product-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .kkb-ppp-related-card { padding: 0 9px; }
    .kkb-ppp-footer-trust { grid-template-columns: 1fr 1fr; }
    .kkb-ppp-footer-trust > div:nth-child(2n) { border-right: 0; }
    .kkb-ppp-footer-trust > div { padding: 18px; border-bottom: 1px solid var(--kkb-ppp-line); }
}

@media (max-width: 767px) {
    .kkb-ppp-purchase-details{padding:12px 14px}
    .kkb-ppp-purchase-detail-row{grid-template-columns:28px minmax(0,1fr);gap:9px;padding:10px 0}
}

@media (max-width: 767px) { .kkb-ppp-review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

@media (max-width: 480px) {
    .kkb-ppp-review-grid { grid-template-columns: 1fr; }
    .kkb-ppp-review-card { min-height: 0; }
}


/* v1.2.9 — native WooCommerce review fallback */
.kkb-ppp-review-form-shell:not(.has-kkb-review-grid) #comments {
    display: block !important;
    width: 100% !important;
}
.kkb-ppp-review-form-shell:not(.has-kkb-review-grid) .commentlist {
    display: block !important;
}


/* v1.2.10 — compact review eligibility / form area */
.kkb-ppp-review-note-shell{
    margin-top:10px!important;
    padding-top:0!important;
    border-top:0!important;
    background:transparent!important;
}

.kkb-ppp-review-note-shell #review_form_wrapper,
.kkb-ppp-review-note-shell #review_form,
.kkb-ppp-review-note-shell #respond{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}

.kkb-ppp-review-note-shell .woocommerce-verification-required,
.kkb-ppp-review-note-shell .comment-notes,
.kkb-ppp-review-note-shell .must-log-in{
    display:inline-flex;
    align-items:center;
    width:auto;
    max-width:100%;
    margin:0!important;
    padding:7px 10px!important;
    border:1px solid var(--kkb-ppp-line);
    border-radius:8px;
    background:#f8fbfc;
    color:#5f6a70;
    font-size:10px!important;
    line-height:1.35!important;
}

.kkb-ppp-review-note-shell .woocommerce-verification-required a,
.kkb-ppp-review-note-shell .must-log-in a{
    font-weight:700;
}

.kkb-ppp-review-note-shell .comment-reply-title{
    margin:0 0 8px!important;
    font-size:14px!important;
    line-height:1.3!important;
}

.kkb-ppp-review-note-shell form.comment-form{
    margin-top:8px!important;
}

/* Avoid the theme giving the review-form area a full-width "row" treatment. */
.kkb-ppp-review-note-shell .woocommerce-Reviews,
.kkb-ppp-review-note-shell .woocommerce-Reviews #review_form_wrapper{
    min-height:0!important;
    height:auto!important;
}

/* Keep Customer Reviews section tight before Pair it well. */
.kkb-ppp-reviews{
    padding-bottom:28px!important;
}
.kkb-ppp-reviews + .kkb-ppp-pair-section{
    margin-top:0!important;
}


/* v1.2.11 — external/manual customer review source */
.kkb-ppp-review-source{
    display:inline-flex;
    align-items:center;
    min-height:19px;
    padding:2px 6px;
    border-radius:999px;
    background:#f3f5f6;
    color:#657077;
    font-size:8px;
    font-weight:700;
}


/* v1.2.12 — per-product Product Tabs colour styling */
@supports not (color: color-mix(in srgb, white 50%, black)) {
    .kkb-ppp-product-tabs-card {
        background: var(--kkb-tabs-bg, #F2F9FC);
        border-color: rgba(1,147,207,.15);
    }
    .kkb-ppp-tab-nav {
        border-bottom-color: rgba(22,54,67,.55);
    }
    .kkb-ppp-tab-image {
        background:#fff;
        border-color:rgba(1,147,207,.20);
    }
}

.kkb-ppp-product-tabs-card[data-kkb-tabs-color-mode="kumkang"] {
    --kkb-tabs-bg:#F2F9FC !important;
    --kkb-tabs-accent:#0193CF !important;
    --kkb-tabs-text:#163643 !important;
}


/* v1.2.14 — stronger product-image accent propagation */
.kkb-ppp-product-tabs-card.is-auto-colour-ready .kkb-ppp-tab-button.is-active {
    border-bottom-color: var(--kkb-tabs-accent, #0193CF) !important;
}

.kkb-ppp-product-tabs-card.is-auto-colour-ready .kkb-ppp-tab-image {
    border-color: color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 38%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 9%, transparent);
}

.kkb-ppp-product-tabs-card.is-auto-colour-ready {
    background:
        radial-gradient(
            circle at 84% 8%,
            color-mix(in srgb, var(--kkb-tabs-accent, #0193CF) 16%, transparent),
            transparent 32%
        ),
        var(--kkb-tabs-bg, #F2F9FC);
}
