
/* ═══════════════════════════════════════════
   KPK SINGLE PRODUCT v4.0 — PREMIUM
═══════════════════════════════════════════ */
:root {
    --red:       var(--kpk-primary,#e31f2b);
    --red-dark:  var(--kpk-primary-hover,#b91c1c);
    --red-soft:  color-mix(in srgb,var(--red),#fff 92%);
    --navy:      #111827;
    --navy2:     #1f2937;
    --ink:       #1f2937;
    --ink2:      #4b5563;
    --muted:     #9ca3af;
    --line:      #f3f4f6;
    --line2:     #e5e7eb;
    --bg:        #f9fafb;
    --white:     #ffffff;
    --green:     #059669;
    --green-bg:  #ecfdf5;
    --amber:     #d97706;
    --amber-bg:  #fffbeb;
    --wa:        #25d366;
    --r:         14px;
    --r2:        10px;
    --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.10);
}

.kpk-page *, .kpk-page *::before, .kpk-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.kpk-page a { text-decoration: none; color: inherit; }
.kpk-page img { display: block; max-width: 100%; }

/* ── Page ── */
.kpk-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 100px; }

/* ── Breadcrumb ── */
.kpk-crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 12.5px; color: var(--muted); margin-bottom: 20px;
    animation: fadeDown .4s ease both;
}
.kpk-crumb a { color: var(--ink2); transition: color .15s; }
.kpk-crumb a:hover { color: var(--red); }
.kpk-crumb i { font-size: 10px; }

/* ── Grid ── */
.kpk-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 36px;
    margin-bottom: 40px;
    align-items: start;
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
.kpk-gallery { position: sticky; top: 20px; }

.kpk-main-img-wrap {
    background: var(--white);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    box-shadow: var(--shadow);
    animation: fadeUp .5s ease .05s both;
}
.kpk-main-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 28px;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94), opacity .2s;
}
.kpk-main-img-wrap:hover img { transform: none; }
.kpk-main-img-wrap.swapping img { opacity: 0; transform: none; }

.kpk-sale-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--red); color: #fff;
    font-size: 12.5px; font-weight: 800;
    padding: 5px 12px; border-radius: 20px;
    animation: badgeFade .3s ease .2s both;
    z-index: 2;
}
@keyframes badgeFade { from{opacity:0;} to{opacity:1;} }

.kpk-gallery-dots {
    display: flex; justify-content: center; gap: 7px; margin-top: 12px;
}
.kpk-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--line2); transition: all .25s; cursor: pointer;
}
.kpk-dot.active { background: var(--red); transform: none; }

.kpk-thumbs {
    display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap;
    animation: fadeUp .5s ease .1s both;
}
.kpk-thumb {
    width: 68px; height: 68px;
    border-radius: var(--r2); border: 1.5px solid var(--line2);
    overflow: hidden; cursor: pointer;
    background: var(--white); flex-shrink: 0;
    transition: border-color .2s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.kpk-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.kpk-thumb:hover { transform: none; border-color: var(--red); }
.kpk-thumb.active {
    border-color: var(--red); transform: none;
    box-shadow: 0 0 0 3px rgba(227,30,36,.15);
}

/* ══════════════════════════════════════════
   INFO COLUMN
══════════════════════════════════════════ */
.kpk-info { display: flex; flex-direction: column; gap: 0; }

.kpk-brand {
    font-size: 11.5px; font-weight: 800; color: var(--muted);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 8px;
    animation: fadeDown .4s ease .1s both;
}

.kpk-title {
    font-size: 24px; font-weight: 900; line-height: 1.3;
    color: var(--navy); letter-spacing: -.3px;
    margin-bottom: 14px;
    animation: fadeDown .45s ease .15s both;
}

/* Rating */
.kpk-rating {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px; font-size: 13.5px;
    animation: fadeDown .45s ease .18s both;
}
.kpk-stars { color: var(--red); font-size: 13px; letter-spacing: 1px; }
.kpk-rating-num { font-weight: 700; color: var(--ink); }
.kpk-rating-cnt { color: var(--muted); cursor: pointer; border:0; padding:2px; background:transparent; font:inherit; }
.kpk-rating-cnt:hover { color: var(--red); }

/* Price Card */
.kpk-price-card {
    background: var(--red-soft);
    border: 1px solid rgba(227,30,36,.12);
    border-radius: var(--r); padding: 18px 20px;
    margin-bottom: 18px;
    animation: fadeUp .45s ease .2s both;
}
.kpk-price-now {
    font-size: 32px; font-weight: 900;
    color: var(--red); line-height: 1;
    animation: priceReveal .5s cubic-bezier(.34,1.56,.64,1) .3s both;
}
@keyframes priceReveal { from{transform:translateX(-10px);opacity:0;} to{transform:translateX(0);opacity:1;} }
.kpk-price-meta {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; flex-wrap: wrap;
}
.kpk-price-old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.kpk-price-badge {
    background: var(--red); color: #fff;
    font-size: 11.5px; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
}
.kpk-price-save { font-size: 13px; color: var(--green); font-weight: 700; }

/* Highlights strip */
.kpk-highlights {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 18px;
    animation: fadeUp .45s ease .22s both;
}
.kpk-hl-item {
    background: var(--white); border: 1px solid var(--line2);
    border-radius: var(--r2); padding: 13px 14px;
    display: flex; align-items: center; gap: 11px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.kpk-hl-item:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227,30,36,.1);
}
.kpk-hl-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--red-soft); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.kpk-hl-icon i { color: var(--red); font-size: 16px; }
.kpk-hl-text { flex: 1; min-width: 0; }
.kpk-hl-val { font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.kpk-hl-lbl { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Stock badge */
.kpk-stock {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; margin-bottom: 18px;
    animation: fadeUp .4s ease .25s both;
}
.kpk-stock .dot { width: 7px; height: 7px; border-radius: 50%; animation: dotPulse 2s ease infinite; }
.kpk-stock.in  { background: var(--green-bg); color: var(--green); }
.kpk-stock.in .dot { background: var(--green); }
.kpk-stock.low { background: var(--amber-bg); color: var(--amber); }
.kpk-stock.low .dot { background: var(--amber); }
.kpk-stock.out { background: #fef2f2; color: var(--red-dark); }
.kpk-stock.out .dot { background: var(--red); animation: none; }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(5,150,105,.4);} 50%{box-shadow:0 0 0 6px rgba(5,150,105,0);} }

/* Short desc */
.kpk-short-desc {
    font-size: 14px; line-height: 1.7; color: var(--ink2);
    margin-bottom: 20px;
    animation: fadeUp .45s ease .27s both;
}

/* Qty + Actions */
.kpk-actions-wrap {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 20px;
    animation: fadeUp .45s ease .3s both;
}
.kpk-qty-row { display: flex; align-items: center; gap: 12px; }
.kpk-qty-box {
    display: flex; align-items: center;
    border: 1.5px solid var(--line2); border-radius: var(--r2);
    background: var(--white); overflow: hidden;
}
.kpk-qty-btn {
    width: 38px; height: 44px; border: none; background: transparent;
    cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .12s;
}
.kpk-qty-btn:hover { background: var(--bg); }
.kpk-qty-btn:active { transform: none; }
.kpk-qty-num {
    width: 44px; text-align: center; font-size: 15px;
    font-weight: 800; color: var(--ink); border: none;
    border-left: 1px solid var(--line2); border-right: 1px solid var(--line2);
    height: 44px; background: transparent; outline: none;
}
.kpk-wish-btn {
    width: 44px; height: 44px; border: 1.5px solid var(--line2);
    border-radius: var(--r2); background: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.kpk-wish-btn:hover { border-color: var(--red); color: var(--red); transform: none; }
.kpk-wish-btn i { font-size: 16px; color: var(--muted); transition: color .2s; }
.kpk-wish-btn:hover i { color: var(--red); }

/* Buttons */
.kpk-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 20px; border-radius: var(--r);
    font-size: 14.5px; font-weight: 800; cursor: pointer;
    border: none; font-family: 'Inter', sans-serif;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .15s;
    position: relative; overflow: hidden;
    text-decoration: none; width: 100%;
    justify-content: center;
}
.kpk-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
    pointer-events: none;
}
.kpk-btn:active { transform: none !important; }
.kpk-btn i { font-size: 15px; }

.kpk-btn-add {
    background: var(--red); color: #fff;
    box-shadow: 0 6px 20px rgba(227,30,36,.3);
}
.kpk-btn-add:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,30,36,.4); }

.kpk-btn-buy {
    background: var(--navy); color: #fff;
    box-shadow: 0 4px 16px rgba(17,24,39,.25);
}
.kpk-btn-buy:hover { background: var(--navy2); transform: translateY(-2px); }

.kpk-btn-wa {
    background: var(--wa); color: #fff;
    animation: waPulse 2.5s ease infinite;
    box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.kpk-btn-wa:hover { filter: brightness(.93); animation: none; }
@keyframes waPulse { 0%,100%{box-shadow:0 4px 16px rgba(37,211,102,.3);} 50%{box-shadow:0 4px 20px rgba(37,211,102,.55);} }

.kpk-btn-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Ripple effect on buttons */
.kpk-ripple { display: none; }

/* Trust strip */
.kpk-trust {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 8px; margin-bottom: 20px;
    animation: fadeUp .45s ease .32s both;
}
.kpk-trust-item {
    background: var(--white); border: 1px solid var(--line2);
    border-radius: var(--r2); padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.kpk-trust-item:hover {
    border-color: var(--red); transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(227,30,36,.1);
}
.kpk-trust-item i { color: var(--red); font-size: 18px; }
.kpk-trust-item strong { font-size: 11.5px; font-weight: 800; color: var(--ink); }
.kpk-trust-item span { font-size: 10px; color: var(--muted); }

/* Delivery check */
.kpk-delivery {
    background: var(--white); border: 1px solid var(--line2);
    border-radius: var(--r); padding: 16px;
    animation: fadeUp .45s ease .35s both;
}
.kpk-delivery-title {
    font-size: 13px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.kpk-delivery-title i { color: var(--red); }
.kpk-delivery-row { display: flex; gap: 8px; }
.kpk-delivery-input {
    flex: 1; padding: 9px 12px; border: 1.5px solid var(--line2);
    border-radius: var(--r2); font-size: 13px;
    font-family: 'Inter', sans-serif; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.kpk-delivery-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,36,.1); }
.kpk-delivery-btn {
    padding: 9px 16px; background: var(--red); color: #fff;
    border: none; border-radius: var(--r2);
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif; transition: background .2s;
}
.kpk-delivery-btn:hover { background: var(--red-dark); }
.kpk-delivery-result {
    display: none; margin-top: 10px;
    font-size: 13px; font-weight: 600; color: var(--green);
}

/* Variations */
.kpk-variations { margin-bottom: 18px; animation: fadeUp .45s ease .22s both; }
.kpk-vgroup { margin-bottom: 14px; }
.kpk-vlabel { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.kpk-vlabel span { color: var(--red); font-weight: 500; }
.kpk-voptions { display: flex; flex-wrap: wrap; gap: 8px; }
.kpk-vbtn {
    padding: 8px 16px; border-radius: var(--r2);
    border: 1.5px solid var(--line2); background: var(--white);
    font-size: 13.5px; font-weight: 600; color: var(--ink);
    cursor: pointer;
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.kpk-vbtn:hover { border-color: var(--red); }
.kpk-vbtn.selected { border-color: var(--red); background: var(--red); color: #fff; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.kpk-tabs {
    background: var(--white); border: 1px solid var(--line2);
    border-radius: var(--r); overflow: hidden; margin-bottom: 36px;
    animation: fadeUp .5s ease .4s both;
    box-shadow: var(--shadow);
}
.kpk-tabnav {
    display: flex; border-bottom: 1px solid var(--line2);
    overflow-x: auto; position: relative;
    scrollbar-width: none;
}
.kpk-tabnav::-webkit-scrollbar { display: none; }
.kpk-tabbtn {
    padding: 16px 22px; font-size: 13.5px; font-weight: 700;
    color: var(--muted); background: none; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    white-space: nowrap; font-family: 'Inter', sans-serif;
    transition: color .2s;
}
.kpk-tabbtn.active { color: var(--red); }
.kpk-tab-indicator {
    position: absolute; bottom: -1px; height: 2px;
    background: var(--red); border-radius: 2px;
    transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.kpk-tabpanel {
    padding: 26px; display: none;
    font-size: 14px; line-height: 1.8; color: var(--ink2);
}
.kpk-tabpanel.active {
    display: block;
    animation: tabIn .35s cubic-bezier(.16,1,.3,1) both;
}
@keyframes tabIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

/* Description layout inside tab */
.kpk-desc-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}
.kpk-desc-col h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.kpk-check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.kpk-check-list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13.5px; color: var(--ink2);
}
.kpk-check-list li::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%;
    background: var(--red); flex-shrink: 0; margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.kpk-benefit-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kpk-benefit-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--r2);
    background: var(--bg); border: 1px solid var(--line2);
    font-size: 13px; font-weight: 600; color: var(--ink);
    transition: border-color .2s, transform .2s;
}
.kpk-benefit-item:hover { border-color: var(--red); transform: translateX(4px); }
.kpk-benefit-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--red-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kpk-benefit-icon i { color: var(--red); font-size: 14px; }

.kpk-nutrition-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kpk-nutrition-table td { padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.kpk-nutrition-table tr:nth-child(even) td { background: var(--bg); }
.kpk-nutrition-table td:first-child { color: var(--ink2); }
.kpk-nutrition-table td:last-child { font-weight: 700; color: var(--ink); text-align: right; }
.kpk-ntr-note {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; font-size: 12px; color: var(--muted);
    padding: 10px 12px; background: var(--bg); border-radius: var(--r2);
}

/* Spec table */
.kpk-spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kpk-spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line2); }
.kpk-spec-table tr:nth-child(even) td { background: var(--bg); }
.kpk-spec-table td:first-child { font-weight: 700; color: var(--ink); width: 38%; }

/* Reviews */
.kpk-rsummary { display: flex; gap: 24px; align-items: center; padding: 18px; background: var(--bg); border-radius: var(--r2); margin-bottom: 20px; flex-wrap: wrap; }
.kpk-rbig .num { font-size: 44px; font-weight: 900; color: var(--navy); line-height: 1; }
.kpk-rbig .stars { color: var(--red); font-size: 16px; margin: 4px 0; }
.kpk-rbig .cnt { font-size: 12px; color: var(--muted); }
.kpk-rbars { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 5px; }
.kpk-brow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.kpk-bwrap { flex: 1; height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; }
.kpk-bfill { height: 100%; background: var(--red); border-radius: 3px; transition: width .45s ease; }
.kpk-review { background: var(--bg); border-radius: var(--r2); padding: 16px; margin-bottom: 10px; border: 1px solid var(--line2); }
.kpk-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.kpk-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.kpk-verified { font-size: 11px; color: var(--green); font-weight: 700; }
.kpk-review-date { font-size: 12px; color: var(--muted); margin-left: auto; }
.kpk-no-reviews { text-align: center; padding: 40px 0; color: var(--muted); }

/* ══════════════════════════════════════════
   RELATED PRODUCTS
══════════════════════════════════════════ */
.kpk-section-title {
    font-size: 18px; font-weight: 900; color: var(--navy);
    margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
    animation: fadeUp .4s ease both;
}
.kpk-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line2); }

.kpk-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}
.kpk-rel-card {
    background: var(--white); border: 1px solid var(--line2);
    border-radius: var(--r); overflow: hidden; cursor: pointer;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .2s;
    animation: fadeUp .5s ease both;
}
.kpk-rel-card:hover { transform: none; box-shadow: var(--shadow-lg); border-color: var(--red); }
.kpk-rel-card:active { transform: none; }
.kpk-rel-img { aspect-ratio: 1/1; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 14px; position: relative; overflow: hidden; }
.kpk-rel-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.kpk-rel-card:hover .kpk-rel-img img { transform: none; }
.kpk-rel-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 12px; font-size: 9.5px; font-weight: 800; }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-amber { background: var(--amber); color: #fff; }
.kpk-rel-info { padding: 12px; }
.kpk-rel-brand { font-size: 9.5px; font-weight: 800; color: var(--muted); letter-spacing: .5px; margin-bottom: 3px; }
.kpk-rel-name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpk-rel-price { font-size: 14px; font-weight: 900; color: var(--red); }
.kpk-rel-price sub { font-size: 10px; color: var(--muted); text-decoration: line-through; margin-left: 4px; font-weight: 400; vertical-align: middle; }
.kpk-rel-rating { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.kpk-rel-rating .stars { color: var(--red); font-size: 10px; }
.kpk-rel-rating span { font-size: 11px; color: var(--muted); font-weight: 600; }
.kpk-rel-cart-btn {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--ink); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.kpk-rel-cart-btn:hover { background: var(--red); transform: none; }
.kpk-rel-footer { display: flex; align-items: center; justify-content: space-between; }

/* Sticky mobile bar */
.kpk-sticky {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    background: var(--white); border-top: 1px solid var(--line2);
    padding: 10px 16px; gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    animation: slideUp .35s ease both;
}
@keyframes slideUp { from{transform:translateY(100%);} to{transform:translateY(0);} }
.kpk-sticky-price { font-size: 15px; font-weight: 900; color: var(--red); white-space: nowrap; align-self: center; }
.kpk-sticky .kpk-btn { padding: 12px 16px; font-size: 13px; border-radius: var(--r2); flex: 1; }

/* Lightbox */
.kpk-lightbox { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.kpk-lightbox.open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from{opacity:0;} to{opacity:1;} }
.kpk-lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.kpk-lb-close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.kpk-lb-close:hover { background: rgba(255,255,255,.3); }
.kpk-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.kpk-lb-nav:hover { background: rgba(255,255,255,.3); }
.kpk-lb-prev { left: 18px; }
.kpk-lb-next { right: 18px; }

/* Hidden native WC form */
.kpk-native-cart { display: none; }
.kpk-native-cart--visible { display:block; margin:20px 0; padding:18px; border:1px solid var(--line2); border-radius:var(--r2); background:#fff; }

/* Animations */
@keyframes fadeDown { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(14px);}  to{opacity:1;transform:translateY(0);} }

/* ── Responsive ── */
@media (max-width: 900px) {
    .kpk-grid { grid-template-columns: 1fr; gap: 20px; }
    .kpk-gallery { position: static; }
    .kpk-title { font-size: 19px; }
    .kpk-price-now { font-size: 26px; }
    .kpk-trust { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .kpk-trust-item { padding: 10px 6px; }
    .kpk-trust-item strong { font-size: 10.5px; }
    .kpk-desc-grid { grid-template-columns: 1fr; gap: 20px; }
    .kpk-sticky { display: flex; }
}
@media (max-width: 480px) {
    .kpk-trust { grid-template-columns: repeat(2, 1fr); }
    .kpk-highlights { grid-template-columns: 1fr 1fr; }
}
