/* =====================================================================
   KIMTEC POLISH LAYER — 2026-09-24 mobile conversion pass
   Loaded site-wide after style.css. Owns: fluid product-card grid,
   icon stepper, payment card, upsell carousel (mobile), mobile buy
   bar CTA, floating place-order bar (mobile checkout).
   ===================================================================== */

/* ---------- 1. Fluid product-card grid (stops squeezed cards) ----------
   Old: fixed repeat(4/3/2/1) breakpoints squeezed cards to 161px on
   phones. minmax(min(100%,160px),1fr) keeps two comfortable columns at
   390px (160*2 + 10px gap = 330 <= 336 container) and flows to 4-up on
   desktop. Selector note: style.css has fixed-width media rules with
   !important (e.g. ".shop-products ul.products"), so this rule outranks
   them by specificity (html ancestry) and wins the cascade everywhere. */
html ul.products {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)) !important;
    gap: clamp(10px, 2vw, 22px);
}

/* Desktop keeps an airy 4-up (auto-fill would add a 5th at 1440px). */
@media (min-width: 1025px) {
    html .shop-products ul.products,
    html ul.products.columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Cards keep the v2 language; scale type down gracefully in narrow columns */
ul.products li.product.kimtec-card .kimtec-card__body {
    padding: clamp(10px, 2.5vw, 14px) clamp(10px, 2.5vw, 16px) clamp(12px, 2.5vw, 16px);
}

ul.products li.product.kimtec-card .kimtec-card__title {
    font-size: clamp(13.5px, 3.4vw, 15px);
}

ul.products li.product.kimtec-card .kimtec-card__price {
    font-size: clamp(16px, 4vw, 19px);
}

/* ---------- 2. Icon stepper (cart + checkout pages) ----------
   Single row: icon circles with optional labels beneath. Replaces the
   pill "Cart / Checkout / Confirmation" steps. .kimtec-steps is the
   shared component; legacy .kimtec-cart-steps still renders on cart. */
.kimtec-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 46px;
    margin: 0;
    padding: 0;
    list-style: none;
    --steps-gap: 46px;
}

.kimtec-steps__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.kimtec-steps__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d7dee9;
    background: #fff;
    color: #94a3b8;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.kimtec-steps__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.kimtec-steps__label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
}

.kimtec-steps__step.is-active .kimtec-steps__icon {
    border-color: #ff6600;
    background: #ff6600;
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 102, 0, .30);
}

.kimtec-steps__step.is-active .kimtec-steps__label {
    color: #101827;
    font-weight: 700;
}

.kimtec-steps__step.is-done .kimtec-steps__icon {
    border-color: #c9f0dc;
    background: #e9fbf1;
    color: #0d9160;
}

/* Connector dots between steps */
.kimtec-steps__step + .kimtec-steps__step::before {
    content: none;
}

/* Labels hide only on the tightest screens — icons keep aria-labels */
@media (max-width: 420px) {
    .kimtec-steps__label { display: none; }
    .kimtec-steps { gap: 26px; --steps-gap: 26px; }
}

/* ---------- 3. Payment method card (checkout) ----------
   The single COD gateway becomes a tappable card with a clear title
   (filtered in inc/checkout.php) and an explanatory sub-line.
   The gateway's .payment_box ("Pay with Mpesa / Cash upon delivery." +
   its stray CSS arrow) duplicates that sub-line and made the card look
   unbalanced between the totals above and the place-order button below
   — hide it wherever the sub-line already carries the message. */
/* What-happens-next panel: the gateway description was replaced server-side
   with a 3-step mini-flow (inc/checkout.php) — style it as a calm checklist
   shown only on the SELECTED method. !important beats the inline
   display:block jQuery show() sets (but must be none for unselected). */
#payment .payment_methods .wc_payment_method .payment_box {
    display: block !important;
    margin: 12px 0 2px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    font-size: 13.5px;
}

#payment .payment_methods .wc_payment_method:not(:has(input[type="radio"]:checked)) .payment_box {
    display: none !important;
}

#payment .payment_box::before {
    display: none;
}

.kimtec-cod-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: codstep;
    display: grid;
    gap: 10px;
}

.kimtec-cod-steps li {
    counter-increment: codstep;
    position: relative;
    padding-left: 34px;
    color: #334155;
    line-height: 1.45;
}

.kimtec-cod-steps li::before {
    content: counter(codstep) !important; /* beats woo.css li::before blank */
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff6600;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kimtec-cod-steps li strong { color: #0f172a; }

.kimtec-cod-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #eefaf3;
    border: 1px solid #bfe3cd;
    border-radius: 10px;
    color: #14532d;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}
#payment .payment_methods {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

#payment ul.payment_methods {
    border: 0;
    border-radius: 0;
}

#payment .payment_methods .wc_payment_method {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#payment .payment_methods .wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .12);
}

#payment .payment_methods .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 700;
    color: #101827;
    cursor: pointer;
}

#payment .payment_methods .wc_payment_method input[type="radio"] {
    accent-color: #ff6600;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Explanatory sub-line (gateway title itself is filtered server-side) */
#payment .payment_methods .wc_payment_method > label::after {
    content: "M-PESA or cash, after you've seen the item";
    display: block;
    flex-basis: 100%;
    margin-left: 28px;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

/* ---------- 4. Upsells/related: horizontal carousel on mobile ---------- */
@media (max-width: 780px) {
    /* Specificity: out-ranks the fluid-grid rule above (html ul.products)
       and style.css's !important media rules on the same element. */
    html .product-upsells__grid ul.products {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 4px 14px;
        scrollbar-width: none;
        grid-template-columns: none !important;
    }

    .product-upsells__grid ul.products::-webkit-scrollbar {
        display: none;
    }

    html .product-upsells__grid ul.products li.product {
        flex: 0 0 72vw;
        max-width: 72vw;
        scroll-snap-align: center;
        margin: 0;
    }

    /* Peek hint: next card shows its edge */
    .product-upsells__grid ul.products li.product:first-child {
        scroll-margin-left: 4px;
    }
}

/* ---------- 5. Mobile buy bar: Buy now CTA, safe-area aware ---------- */
@media (max-width: 780px) {
    .mobile-buy-bar {
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-buy-bar__info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-buy-bar__cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 26px;
        border: 0;
        border-radius: 12px;
        background: #ff6600;
        color: #fff;
        font: 800 14px/1 inherit, sans-serif;
        letter-spacing: .02em;
        text-transform: none;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(255, 102, 0, .30);
        transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .mobile-buy-bar__cart:active {
        transform: scale(.98);
    }

    .mobile-buy-bar__cart.is-busy {
        opacity: .7;
        pointer-events: none;
    }

    /* Legacy anchor styling from style.css tail is fully overridden here */
}

/* ---------- 6. Floating place-order bar (mobile checkout) ----------
   Injected by checkout-simplify.js. Hidden while the real #place_order
   button is on screen (IntersectionObserver) so there's never a
   duplicate primary CTA. */
.kimtec-checkout-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .10);
    transition: transform .25s ease, opacity .25s ease;
}

.kimtec-checkout-bar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.kimtec-checkout-bar__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.kimtec-checkout-bar__total {
    font-weight: 800;
    font-size: 17px;
    color: #101827;
    line-height: 1.2;
}

.kimtec-checkout-bar__hint {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kimtec-checkout-bar__place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6600, #ff8b3d);
    color: #fff;
    font: 800 15px/1 inherit, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 102, 0, .30);
    transition: transform .15s ease, opacity .2s ease;
}

.kimtec-checkout-bar__place:active {
    transform: scale(.98);
}

.kimtec-checkout-bar__place.is-busy {
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 780px) {
    .kimtec-checkout-bar {
        display: flex;
    }

    /* Reserve space so the bar never covers the payment box content */
    body.woocommerce-checkout {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

/* ---------- 7. Checkout form: aligned, equal-width fields ---------- */
/* All billing fields stack full-width in one aligned column on mobile;
   first/last name stay a tidy 2-up on ≥400px where they fit. */
@media (max-width: 780px) {
    .woocommerce-checkout .form-row {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
    }

    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea {
        width: 100%;
    }
}

@media (min-width: 400px) and (max-width: 780px) {
    .woocommerce-checkout .form-row-first:not(:only-child),
    .woocommerce-checkout .form-row-last:not(:only-child) {
        width: calc(50% - 5px);
        display: inline-block;
        vertical-align: top;
    }

    .woocommerce-checkout .form-row-first { margin-right: 10px; }
    .woocommerce-checkout .form-row-first + .form-row-last { margin-right: 0; }
}

/* =====================================================================
   2026-09-25 — proportion audit pass: undersized displays fixed
   ===================================================================== */

/* ---------- 8. Static-page wrapper: fluid padding (was hard 40px) ----------
   page.php previously wrapped every page in style="padding:40px", which
   stole 80px from every screen: cart/checkout content sat at 310px on a
   390px phone. A class keeps the hook without the fixed inline value. */
.kimtec-page-wrap {
    padding: 20px clamp(14px, 4vw, 40px);
}

@media (min-width: 1025px) {
    .kimtec-page-wrap { padding: 40px; }
}

/* Account pages render their own container styles — keep them flush */
.kimtec-page-wrap--flush { padding: 0; }

/* ---------- 9. Checkout field proportions (fixes 120px name inputs) ----------
   The 2-up name split produced 120px inputs at 390px. Single-column
   everywhere below 560px; from 560px up the pair re-splits comfortably. */
@media (max-width: 780px) {
    .woocommerce-checkout .form-row-first:not(:only-child),
    .woocommerce-checkout .form-row-last:not(:only-child) {
        width: 100%;
    }
}

@media (min-width: 560px) and (max-width: 780px) {
    .woocommerce-checkout .form-row-first:not(:only-child),
    .woocommerce-checkout .form-row-last:not(:only-child) {
        width: calc(50% - 5px);
    }
}

/* Larger touch targets for checkout inputs (52px is the rest of the theme) */
@media (max-width: 780px) {
    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea,
    .woocommerce-checkout .select2-container .select2-selection--single {
        min-height: 52px;
        font-size: 16px;
    }

    /* Select2's inner render must fill the control or text looks clipped */
    .woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 50px;
    }

    .woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
        height: 50px;
    }
}

/* ---------- 10. Buy-card buttons: flex-basis must not become height ----------
   style.css gives these buttons flex-basis 160px/220px for a ROW layout,
   then flips form.cart to flex-direction:column below 480px — where basis
   sizes the main (vertical) axis, stretching the buttons 160-220px TALL. */
@media (max-width: 780px) {
    .single-product .buy-card__actions form.cart button.single_add_to_cart_button,
    .single-product .buy-card__actions form.cart .kimtec-buy-now-btn {
        flex: 1 1 auto;
        width: 100%;
        min-height: 52px;
        max-height: 56px;
    }
}

/* ---------- 11. My Account: login/register forms at usable sizes ----------
   style.css's generic form styling leaves these inputs at ~30px tall and
   the submit button collapsed. */
.woocommerce-account .woocommerce-form-login input.input-text,
.woocommerce-account .woocommerce-form-register input.input-text,
.woocommerce-account .woocommerce-form-login input[type="text"],
.woocommerce-account .woocommerce-form-login input[type="password"],
.woocommerce-account .woocommerce-form-register input[type="text"],
.woocommerce-account .woocommerce-form-register input[type="password"] {
    min-height: 52px;
    padding: 0 16px;
    font-size: 16px;
}

.woocommerce-account .woocommerce-form-login button.button,
.woocommerce-account .woocommerce-form-register button.button,
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register .woocommerce-Button {
    min-height: 52px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 780px) {
    /* u-columns stacks side-by-side and gets crushed on phones */
    .woocommerce-account .u-columns.col2-set {
        display: block;
    }

    .woocommerce-account .u-columns.col2-set .u-column1,
    .woocommerce-account .u-columns.col2-set .u-column2 {
        width: 100%;
        float: none;
        margin-bottom: 28px;
    }
}

/* ---------- 12. Cart table breathes on phones (undo the 40px squeeze) ----------
   With the wrapper fixed this is insurance: keep the table within its
   card and let price/subtotal columns shrink instead of overflowing. */
@media (max-width: 780px) {
    .kimtec-cart-main .shop_table {
        max-width: 100%;
    }

    .kimtec-cart-main .shop_table td,
    .kimtec-cart-main .shop_table th {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ---------- 13. Required-flag repair: kill the "(optional)" tag ----------
   FCF config drift stripped validate-required off the phone field again;
   checkout.php re-adds it at render time. This is belt-and-braces for the
   visible label: never print WooCommerce's "(optional)" suffix anywhere. */
.woocommerce-checkout .form-row .optional {
    display: none !important;
}

/* =====================================================================
   2026-09-25 (2) — UX pass: connectors, decluttered shop, thank-you,
   search, qty steppers, homepage conversion, icon library, scrollers
   ===================================================================== */

/* ---------- 14. Icon library defaults (matches stepper SVGs) ---------- */
.kimtec-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
}

/* ---------- 15. Stepper connectors: solid = done, dotted = pending ----------
   Steps are stretched to equal widths so icon centers sit at the middle of
   each third; every connector is then a simple two-point segment from one
   icon center to the next (--steps-gap = the flex gap between steps). */
.kimtec-steps {
    --steps-gap: 46px;
}

.kimtec-steps__step {
    flex: 1 1 0;
    align-items: center;
}

/* Dotted baseline across the icon row (the "not earned yet" state) */
.kimtec-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(16.6667% + 22px);
    right: calc(16.6667% + 22px);
    border-top: 2px dotted #c3cddd;
    z-index: 0;
}

/* Icons and their circles must cover the line */
.kimtec-steps {
    position: relative;
}

.kimtec-steps__step {
    position: relative;
    z-index: 1;
}

.kimtec-steps__step .kimtec-steps__icon {
    background: #fff;
}

/* Solid green segment after every COMPLETED step (center of that step to
   center of the next one). Painted as a 5px bar so it fully COVERS the
   dotted baseline behind it — a thin 2px overlay let the dotted grey line
   peek out below the green one. */
.kimtec-steps__step.is-done:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    height: 6px;
    left: calc(50% + 22px);
    right: calc(-50% - var(--steps-gap) + 22px);
    background: #0d9160;
    border-radius: 99px;
    z-index: 1;
}

@media (max-width: 420px) {
    .kimtec-steps {
        --steps-gap: 26px;
    }

    .kimtec-steps::before {
        top: 19px;
    }

    .kimtec-steps__step.is-done:not(:last-child)::after {
        top: 17px;
    }
}

/* ---------- 16. Quantity stepper (+ / -) ---------- */
.kimtec-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #d6deea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.kimtec-qty .qty {
    width: 52px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #101827;
    -moz-appearance: textfield;
    appearance: textfield;
}

.kimtec-qty .qty::-webkit-outer-spin-button,
.kimtec-qty .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kimtec-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border: 0;
    background: #f1f5f9;
    color: #101827;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.kimtec-qty__btn:hover {
    background: #ff6600;
    color: #fff;
}

.kimtec-qty__btn svg {
    width: 16px;
    height: 16px;
}

/* Product-page buy row + cart table get the larger touch size */
.single-product .buy-card__actions .kimtec-qty {
    width: 100%;
    justify-content: space-between;
}

.single-product .buy-card__actions .kimtec-qty .qty {
    flex: 1;
    min-height: 52px;
}

.single-product .buy-card__actions .kimtec-qty__btn {
    width: 52px;
    min-height: 52px;
}

/* ---------- 17. Horizontal scroll rows (listings) + arrows ---------- */
.kimtec-scroll-row {
    position: relative;
}

.kimtec-scroll-row ul.products {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 4px;
    grid-template-columns: none !important;
    padding: 4px 4px 14px;
    scrollbar-width: none;
}

.kimtec-scroll-row ul.products::-webkit-scrollbar {
    display: none;
}

.kimtec-scroll-row ul.products li.product {
    flex: 0 0 clamp(168px, 44vw, 250px);
    max-width: clamp(168px, 44vw, 250px);
    scroll-snap-align: start;
    margin: 0;
}

.kimtec-scroll-row__nav {
    position: absolute;
    top: 34%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #101827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease, color .15s ease;
}

.kimtec-scroll-row__nav:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

.kimtec-scroll-row__nav svg {
    width: 18px;
    height: 18px;
}

.kimtec-scroll-row__nav--prev { left: -8px; }
.kimtec-scroll-row__nav--next { right: -8px; }

.kimtec-scroll-row__nav.is-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Arrows only on pointer devices; touch users just swipe */
@media (hover: none) {
    .kimtec-scroll-row__nav { display: none; }
}

/* ---------- 18. Category chip rail (replaces the 800px rail stack) ---------- */
.kimtec-cat-chips {
    margin: 18px 0 22px;
}

.kimtec-cat-chips__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kimtec-cat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.kimtec-cat-chip:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.kimtec-cat-chip.is-active {
    background: #101827;
    border-color: #101827;
    color: #fff;
}

.kimtec-cat-chip--sub {
    border-style: dashed;
    font-weight: 500;
    color: #64748b;
}

.kimtec-cat-chip--sub.is-active {
    border-style: solid;
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

/* Compact shop heading (replaces the two giant hero panels) */
.shop-archive-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin: 8px 0 4px;
}

.shop-archive-head h1 {
    margin: 0;
    font-size: clamp(24px, 4.5vw, 34px);
    letter-spacing: -0.02em;
}

.shop-archive-head__meta {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.shop-archive-head__desc {
    flex-basis: 100%;
    margin: 2px 0 0;
    max-width: 70ch;
    font-size: 14.5px;
    color: #64748b;
}

/* Sidebar removed from markup — neutralize legacy layout rules */
.shop-layout { display: block !important; }
.shop-sidebar { display: none !important; }

/* ---------- 19. Homepage conversion pass ---------- */
/* The hero sits on a dark gradient — scope the light-on-dark text there */
.hero {
    color: #e2e8f0;
}

.hero .hero__trust { color: #94a3b8; }

.hero__sub {
    max-width: 46ch;
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.55;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.hero__cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 34px;
    border-radius: 14px;
    background: #ff6600;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 102, 0, .32);
    transition: transform .15s ease, box-shadow .15s ease;
}

.hero__cta-primary:hover { transform: translateY(-1px); }

.hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.hero__cta-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Match the primary CTA's width so the pair reads as one block */
@media (max-width: 480px) {
    .hero__cta-primary,
    .hero__cta-secondary {
        flex: 1 1 100%;
    }

    .hero__cta-secondary {
        justify-content: center;
    }
}

.hero__trust {
    margin-top: 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

/* Category tiles: compact image cards in a scroller */
.kimtec-cat-tiles {
    margin-top: 16px;
}

.kimtec-cat-tiles.kimtec-scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 4px 12px;
    scrollbar-width: none;
}

.kimtec-cat-tiles.kimtec-scroll-row::-webkit-scrollbar { display: none; }

.kimtec-cat-tile {
    flex: 0 0 clamp(132px, 34vw, 180px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    min-height: 150px;
    padding: 14px;
    border-radius: 16px;
    background-color: #17213a;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .15s ease, box-shadow .15s ease;
}

.kimtec-cat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .22);
}

.kimtec-cat-tile__name {
    font-size: 15.5px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(15, 23, 42, .55);
}

.kimtec-cat-tile__count {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ---------- 20. Mobile buy bar ----------
   The floating WhatsApp bubble is gone, so there is no longer a widget to
   keep clear of: the strip owns its full width, notch to notch. */
.mobile-buy-bar {
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
}

.mobile-buy-bar__wa {
    display: none !important; /* slot retired with the floating WhatsApp button */
}

.mobile-buy-bar__price del,
.mobile-buy-bar__price .screen-reader-text {
    display: none !important; /* show only the live price in the bar */
}

.mobile-buy-bar__price ins {
    text-decoration: none;
}

@media (max-width: 480px) {
    .mobile-buy-bar__name { display: none; }
    .mobile-buy-bar__cart { padding: 0 18px; }
}

/* No floating WA bubble any more — the place-order bar spans the width. */
body.woocommerce-checkout .kimtec-checkout-bar {
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
}

/* ---------- 21. Order-received (thank you) page ---------- */
.kimtec-thanks {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 40px) 0 60px;
}

.kimtec-thanks__head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kimtec-thanks__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e9fbf1;
    color: #0d9160;
    box-shadow: 0 10px 26px rgba(13, 145, 96, .22);
}

.kimtec-thanks__badge svg {
    width: 30px;
    height: 30px;
}

.kimtec-thanks__kicker {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
}

.kimtec-thanks__title {
    margin: 0;
    font-size: clamp(26px, 5vw, 40px);
    letter-spacing: -0.02em;
}

.kimtec-thanks__lead {
    margin: 0;
    max-width: 52ch;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.kimtec-thanks__summary {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    margin-top: clamp(22px, 4vw, 34px);
}

.kimtec-thanks__facts,
.kimtec-thanks__next {
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 20px 22px;
}

.kimtec-thanks__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-content: start;
}

.kimtec-thanks__fact dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.kimtec-thanks__fact dd {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #101827;
}

.kimtec-thanks__next h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.kimtec-thanks__next ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kimtec-thanks__next li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
}

.kimtec-thanks__next-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: #fff3e8;
    color: #ff6600;
    font-size: 13px;
    font-weight: 800;
}

.kimtec-thanks__address {
    margin-top: 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 18px 22px;
}

.kimtec-thanks__address h2 {
    margin: 0 0 6px;
    font-size: 15px;
}

.kimtec-thanks__address address {
    font-style: normal;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
}

.kimtec-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(22px, 4vw, 32px);
}

.kimtec-thanks__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1.5px solid #cbd5e1;
    border-radius: 13px;
    color: #101827;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.kimtec-thanks__btn:hover { border-color: #ff6600; color: #ff6600; }

.kimtec-thanks__btn--primary {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 102, 0, .30);
}

.kimtec-thanks__btn--primary:hover { color: #fff; }

@media (max-width: 700px) {
    .kimtec-thanks__summary { grid-template-columns: 1fr; }
    .kimtec-thanks__facts { padding: 16px 18px; }
}

/* ---------- 22. Search form + search results ---------- */
.kimtec-searchform {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 620px;
    border: 1.5px solid #d6deea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kimtec-searchform:focus-within {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .14);
}

.kimtec-searchform__icon {
    display: inline-flex;
    align-items: center;
    padding: 0 4px 0 14px;
    color: #94a3b8;
}

.kimtec-searchform__icon svg {
    width: 19px;
    height: 19px;
}

.kimtec-searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 0 12px;
    border: 0;
    font-size: 16px;
    color: #101827;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
}

.kimtec-searchform__btn {
    border: 0;
    padding: 0 20px;
    background: #101827;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.kimtec-searchform__btn:hover { background: #ff6600; }

.kimtec-archive-head {
    margin: 8px 0 22px;
}

.kimtec-archive-head__kicker {
    margin: 0 0 4px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ff6600;
}

.kimtec-archive-head__title {
    margin: 0;
    font-size: clamp(24px, 4.5vw, 34px);
    letter-spacing: -0.02em;
}

.kimtec-archive-head__meta {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.kimtec-no-results {
    border: 1.5px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
    padding: clamp(20px, 4vw, 36px);
    text-align: center;
}

.kimtec-no-results h2 { margin: 0 0 6px; font-size: 20px; }
.kimtec-no-results p { margin: 0 0 16px; color: #64748b; }

.kimtec-no-results .kimtec-searchform { margin: 0 auto 18px; }

.kimtec-no-results__cats .kimtec-cat-chips { margin: 0; }
.kimtec-no-results__cats .kimtec-cat-chips__items { justify-content: center; }

/* ---------- 23. Footer + misc icon alignment ---------- */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact .kimtec-icon {
    margin-top: 3px;
    color: #ff6600;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

/* Gallery nav buttons keep proportions now that they hold SVGs */
.gallery-nav-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* =====================================================================
   2026-09-30 — UX audit pass: product page hierarchy + cart qty overlap
   ===================================================================== */

/* ---------- 24. Product page info hierarchy ----------
   Description becomes a proper sibling of the buy decision (its own
   section, numbered heading, same visual language as the details card). */

/* Let the hero grid give the buy column room for the assurance chips.
   DESKTOP ONLY: an unconditional rule here would tie with (and, being later,
   beat) the ≤480px rule that stacks the hero to one column. */
@media (min-width: 781px) {
    .single-product .product-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

/* Description: its own card, not an orphan inside the details card */
.single-product .details-card > .woocommerce-tabs {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eceef2;
}

.single-product .details-card > .woocommerce-tabs ul.wc-tabs {
    border-bottom: 1px solid #eceef2;
    margin-bottom: 18px;
}

.single-product .details-card > .woocommerce-tabs ul.wc-tabs li {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin: 0 0 -1px 0;
}

.single-product .details-card > .woocommerce-tabs ul.wc-tabs li.active,
.single-product .details-card > .woocommerce-tabs ul.wc-tabs li[aria-selected="true"] {
    border-bottom-color: #ff6600;
}

.single-product .details-card > .woocommerce-tabs ul.wc-tabs li a {
    font-weight: 700;
    color: #64748b;
}

.single-product .details-card > .woocommerce-tabs ul.wc-tabs li.active a,
.single-product .details-card > .woocommerce-tabs ul.wc-tabs li[aria-selected="true"] a {
    color: #0f172a;
}

/* Confidence chips inside the buy card: quiet cards, 2-up grid */
.single-product .buy-card__usps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.single-product .buy-card__usp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

.single-product .buy-card__usp-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

/* Single column once the buy card gets narrow (its own breakpoints) */
@media (max-width: 1120px) {
    .single-product .buy-card__usps { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .single-product .buy-card__usps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .single-product .buy-card__usps { grid-template-columns: 1fr; }
}

/* Old scatter blocks stay styled for safety (any cached/template variants) */
.single-product .product-usps,
.single-product .trust-strip { display: none !important; }

/* ---------- 25. Cart & checkout quantity stepper (desktop overlap fix) ----------
   style.css pills the legacy .quantity wrapper; our JS re-wraps the input in
   .kimtec-qty -> double chrome (172px) in a 122px cell -> overlaps the
   subtotal column. Make the cell wide enough and let the stepper own the
   input styling; hide the duplicated legacy border layer. */

/* Quantity column gets room for [−][input][+] at desktop sizes.
   The table only spares ~140px for this column (subtotal needs the rest),
   so the stepper itself must stay compact — see sizes below. */
.woocommerce-cart .woocommerce-cart-form__cart-item td.product-quantity {
    width: 150px;
    min-width: 150px;
    padding-left: 0 !important;
}

/* At ≤1120px the totals sidebar squeezes the table further: stack the
   price/qty/subtotal row labels-aside instead of letting columns overlap. */
@media (max-width: 1120px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-quantity {
        width: auto;
        min-width: 0;
    }
}

/* Checkout: an empty shipping-fields container (no fields configured for
   the Nairobi-zone flow) still renders its card chrome — hide it ONLY when
   it has no content so real shipping fields are unaffected. */
.woocommerce-checkout .woocommerce-shipping-fields:empty,
.woocommerce-checkout .woocommerce-shipping-fields:not(:has(*)) {
    display: none;
}

/* Scroller nav arrows must never poke past the viewport (they added an 8px
   horizontal scroll on phones) */
.kimtec-scroll-row__nav--next {
    right: 4px;
}

.kimtec-scroll-row__nav--prev {
    left: 4px;
}

/* Mobile cart readability: the legacy card layout right-aligns the item
   name (crowding the remove ×) and the shipping block (radios detached
   from labels, destination floating right). Read both left-to-right. */
@media (max-width: 780px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-name {
        text-align: left !important;
    }

    .woocommerce-cart .cart_totals .woocommerce-shipping-totals td,
    .woocommerce-cart .cart_totals td.shipping,
    .woocommerce-cart .cart_totals .woocommerce-shipping-destination {
        text-align: left;
    }

    .woocommerce-cart #shipping_method li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    .woocommerce-cart #shipping_method input[type="radio"] {
        flex: 0 0 auto;
        margin: 5px 0 0;
    }
}

/* Style.css pills .quantity (border+radius+padding); with our stepper inside
   that renders TWO boxes. .quantity is just a wrapper around .kimtec-qty now. */
.woocommerce-cart .woocommerce-cart-form__cart-item .quantity {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    display: block !important;
}

/* Stepper inside the cart table: COMPACT so [−][input][+] fits the ~140px
   column: 34 + 52 + 34 + 2px border = 122px wide, centered in the cell. */
.woocommerce-cart .woocommerce-cart-form__cart-item .kimtec-qty {
    display: inline-flex;
    width: fit-content;
    margin: 0;
}

.woocommerce-cart .woocommerce-cart-form__cart-item .kimtec-qty .qty {
    width: 52px;
    min-height: 42px;
    height: 42px;
    font-size: 15px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item .kimtec-qty__btn {
    width: 34px;
    min-height: 42px;
    height: 42px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item .kimtec-qty__btn svg {
    width: 14px;
    height: 14px;
}

/* ---------- 26. Cart item card hierarchy ----------
   style.css drops PRICE/QUANTITY/SUBTOTAL data-titles into a left label +
   right value layout with no vertical rhythm: labels sit on the opposite
   edge from their values, the price row is huge and disconnected, and on
   desktop all four cells left-align into one flat grey line. Rebuild both
   layouts around one idea: label sits ABOVE its value, every row starts at
   the same left edge; item line = name + price, totals line = qty + subtotal. */

/* --- Shared: kill the legacy left-label/right-value split --- */
.woocommerce-cart .woocommerce-cart-form__cart-item .product-price::before,
.woocommerce-cart .woocommerce-cart-form__cart-item .product-quantity::before,
.woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal::before {
    float: none;
    width: auto;
    text-align: left;
}

/* Price belongs with the item name, not on its own oversized row */
.woocommerce-cart .woocommerce-cart-form__cart-item .product-price .amount {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.woocommerce-cart .woocommerce-cart-form__cart-item .product-price del .amount {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* --- Mobile: label stacked ABOVE its value, rows at a shared left edge --- */
@media (max-width: 780px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item td[data-title]::before {
        margin-bottom: 2px;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-price,
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal .amount {
        font-size: 15px;
        font-weight: 700;
        color: #101827;
    }

    /* Price row: label above value, compact — value must LEFT-align under
       its label like every other row (woo-smallscreen right-aligns tds) */
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-price {
        margin-top: 4px;
        text-align: left !important;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-price::before {
        text-align: left;
    }

    /* Bottom row: quantity and line subtotal side by side, shared baseline */
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-quantity,
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal {
        text-align: right;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal::before {
        text-align: right;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal .amount {
        font-size: 17px;
    }
}

/* --- Desktop: name+price | stepper | line total, one shared baseline --- */
@media (min-width: 781px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-name {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-price::before {
        margin-bottom: 4px;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-price .amount {
        font-size: 15px;
    }

    /* style.css sets text-align:left !important on every cart td — match its
       importance or the numbers-column alignment below never applies. */
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-quantity,
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-subtotal {
        text-align: right !important;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-quantity::before,
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal::before {
        text-align: right !important;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-quantity {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal .amount {
        font-size: 17px;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item .product-remove {
        align-self: center;
    }
}

/* Checkout order-review shipment row: the label is a TH and the methods sit
   in the narrow right table cell (3-line wrapping). Stack the whole row:
   label on its own line, methods full-width beneath. MOBILE ONLY — desktop
   keeps the label-left / methods-right two-column row. Subtotal/total rows
   keep the label-left/value-right look at every width. */
@media (max-width: 780px) {
    .woocommerce-checkout #order_review tr.woocommerce-shipping-totals th,
    .woocommerce-checkout #order_review tr.woocommerce-shipping-totals td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .woocommerce-checkout #order_review tr.woocommerce-shipping-totals td {
        padding-top: 4px;
    }
}

.woocommerce-checkout #order_review #shipping_method li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.woocommerce-checkout #order_review #shipping_method input[type="radio"] {
    flex: 0 0 auto;
    margin: 5px 0 0;
}

/* ---------- 27. Order-details (review-order) container ----------
   The table-in-a-card look fought itself: grey thead band + heavy row
   rules + a boxed totals column + boxed #payment below = four competing
   containers in one panel. Flatten to one calm card: no thead band, hairline
   separators only, totals aligned with the rows, payment section seamless. */
.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout-review-order-table tbody tr td {
    border-bottom: 0;
    padding: 8px 24px;
}

.woocommerce-checkout-review-order-table tbody tr td.product-name {
    color: #334155;
}

.woocommerce-checkout-review-order-table tbody tr td.product-total {
    font-size: 15px;
}

.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
    border-top: 1px dashed #e2e8f0;
    padding: 9px 24px;
    font-size: 14.5px;
}

.woocommerce-checkout-review-order-table tfoot tr:first-child th,
.woocommerce-checkout #order_review tfoot tr:first-child td {
    padding-top: 16px;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 19px;
    padding-top: 14px;
    padding-bottom: 16px;
}

/* Payment section reads as part of the same card, not another box */
.woocommerce-checkout #order_review #payment {
    padding-top: 16px;
    background: #f8fafc;
    margin-top: 4px;
}

.woocommerce-checkout #order_review .product-quantity .woocommerce-Price-amount {
    display: none;
}

/* Place-order button on desktop: full width of the sidebar, not squeezed */
@media (min-width: 781px) {
    .woocommerce-checkout #payment #place_order {
        width: 100%;
    }

    /* Desktop form balance: style.css lays checkout fields out on a 2-column
       GRID (field-wrapper). WooCommerce's legacy width:47%/float:left on
       .form-row-first/.form-row-last resolves INSIDE each ~419px grid cell,
       halving the half -> 200px name inputs. Neutralize width/float and let
       the grid tracks do the layout; inputs fill their track.
       Specificity note: `.woocommerce-checkout form.checkout .form-row`
       (0,3,1) outranks woo-layout's `.woocommerce form .form-row-first`
       (0,2,1) — plain `.woocommerce-checkout .form-row` (0,2,0) loses. */
    .woocommerce-checkout form.checkout .form-row {
        width: auto;
        float: none;
        margin-right: 0;
        margin-left: 0;
    }

    .woocommerce-checkout form.checkout .form-row input.input-text,
    .woocommerce-checkout form.checkout .form-row select,
    .woocommerce-checkout form.checkout .form-row textarea {
        width: 100%;
    }
}


/* =====================================================================
   2026-09-30 (PM) — conversion polish: header cart badge, shipping
   de-noise, cart qty/subtotal alignment
   ===================================================================== */

/* ---------- 28. Header cart: badge instead of emoji+number ---------- */
.kimtec-header-cart {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 8px;
    color: #fff;
    text-decoration: none;
}

.kimtec-header-cart__icon {
    display: inline-flex;
}

.kimtec-header-cart__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.kimtec-header-cart__count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff6600;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

/* ---------- 29. Cart totals: calm shipment block ----------
   "Flat rate: KSh 300 / Pickup location: Superior Arcade…" wrapped in
   jargon + addresses. Present two clean choices instead. */
.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
.woocommerce-cart .cart_totals #shipping_method {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.woocommerce-cart .cart_totals #shipping_method li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.woocommerce-cart .cart_totals #shipping_method li:has(input:checked) {
    border-color: #ff6600;
    background: #fff8f3;
}

.woocommerce-cart .cart_totals #shipping_method input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #ff6600;
}

.woocommerce-cart .cart_totals #shipping_method label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #101827;
    cursor: pointer;
}

.woocommerce-cart .cart_totals #shipping_method label .amount {
    margin-left: auto;
    font-weight: 800;
}

/* Kill the raw method names + destination noise (the pickup address already
   appears in the order review; repeating it here just adds clutter) */
.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
    display: none;
}

.woocommerce-cart .cart_totals #shipping_method li label::after {
    content: none;
}

/* ---------- 30. Pickup address inside the method card ---------- */
#shipping_method .pickup_address {
    display: block;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

/* ---------- 31. Mobile cart: qty + subtotal cells align horizontally ---------- */
@media (max-width: 780px) {
    /* Same height, values pinned to the same bottom baseline: label stacks on
       top, value row sits at the bottom of each cell. Needs !important —
       style.css's card reset sets `td { display:block !important }`, which
       otherwise beats the flex column and the cells lose their baseline. */
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-quantity,
    .woocommerce-cart .woocommerce-cart-form__cart-item td.product-subtotal {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
    }
}

/* ---------- 32. Header mini-cart panel (hover / tap) ---------- */
.cart {
    position: relative; /* anchor for the panel */
}

.site-header {
    z-index: 9999; /* panel must sit above hero banners, sticky buy bar, admin bar */
}

.kimtec-minicart {
    position: absolute;
    top: calc(100% + 14px);
    right: -8px;
    width: 332px;
    background: #fff;
    color: #111;
    border: 1px solid #eceff3;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
    padding: 14px 16px 16px;
    z-index: 60;
}

.kimtec-minicart::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 26px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid #eceff3;
    border-top: 1px solid #eceff3;
    transform: rotate(45deg);
}

.kimtec-minicart:not([hidden]) {
    animation: kimtec-minicart-in 0.16s ease both;
}

/* Opacity only: the fill-mode would freeze any animated transform, which
   would clobber the JS viewport-clamp translateX. */
@keyframes kimtec-minicart-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.kimtec-minicart__head {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.kimtec-minicart__items {
    max-height: 262px;
    overflow-y: auto;
}

.kimtec-minicart__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid #f1f3f6;
}

.kimtec-minicart__item:first-child {
    border-top: 0;
}

.kimtec-minicart__thumb img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    display: block;
}

.kimtec-minicart__meta {
    min-width: 0;
}

.kimtec-minicart__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    text-decoration: none;
}

.kimtec-minicart__qty {
    font-size: 12.5px;
    color: #6b7280;
    margin: 3px 0 0;
}

.kimtec-minicart__remove {
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kimtec-minicart__price {
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    text-align: right;
}

.kimtec-minicart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px dashed #e5e7eb;
    margin: 6px 0 0;
    padding: 12px 0 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
}

.kimtec-minicart__subtotal span:first-child {
    color: #475569;
    font-weight: 600;
}

.kimtec-minicart__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 13px;
}

.kimtec-minicart__btn {
    display: block;
    text-align: center;
    padding: 11px 8px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.kimtec-minicart__btn--ghost {
    border: 1.5px solid #e2e5ea;
    color: #111;
}

.kimtec-minicart__btn--ghost:hover {
    border-color: #111;
}

.kimtec-minicart__btn--solid {
    background: linear-gradient(135deg, #ff6600, #ff8b3d);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 102, 0, 0.32);
}

.kimtec-minicart__btn--solid:hover {
    transform: translateY(-1px);
}

.kimtec-minicart__empty {
    font-size: 13.5px;
    color: #475569;
    padding: 16px 2px 6px;
    margin: 0;
}

.kimtec-minicart__empty a {
    color: #ff6600;
    font-weight: 700;
}

@media (max-width: 560px) {
    .kimtec-minicart {
        width: min(320px, calc(100vw - 24px));
        right: -4px;
    }
}

/* ---------- 33. Variation selectors: chips instead of dropdowns ----------
   WooCommerce's default select rows read like a settings form. The JS in
   kimtec-ui.js builds chip groups beside the (kept, hidden) selects — the
   selects still drive the variation engine, the chips are just the face. */
form.variations_form table.variations tr.kimtec-has-chips > th.label {
    display: none; /* the chip head carries the attribute name */
}

form.variations_form table.variations tr.kimtec-has-chips > td.value {
    display: block;
    width: 100%;
}

form.variations_form table.variations tr.kimtec-has-chips select {
    display: none !important; /* hidden but functional — Woo's JS still reads it */
}

.kimtec-chips {
    padding: 14px 0 4px;
}

.kimtec-chips + .kimtec-chips,
tr.kimtec-has-chips + tr.kimtec-has-chips .kimtec-chips {
    border-top: 1px solid #f1f3f6;
}

.kimtec-chips__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px;
}

.kimtec-chips__name {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.kimtec-chips__value {
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
}

.kimtec-chips__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kimtec-chip {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #e2e5ea;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 42px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.kimtec-chip:hover {
    border-color: #111;
}

.kimtec-chip:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

.kimtec-chip.is-selected {
    border-color: #ff6600;
    background: #fff4ec;
    color: #c2520a;
    box-shadow: 0 0 0 1px #ff6600 inset;
}

.kimtec-chip.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Small screens: justify chip rows so solo chips become full-width
   blocks and multi-chip rows share the width evenly — no ragged dead
   space on the right. Desktop keeps natural widths. */
@media (max-width: 560px) {
    .kimtec-chip {
        flex: 1 1 auto;
    }
}

/* Reset link Woo prints after the last select: quiet but reachable. */
tr.kimtec-has-chips a.reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

tr.kimtec-has-chips a.reset_variations:hover {
    color: #111;
}

/* When nothing matches, Woo's availability message sits under the form. */
form.variations_form .woocommerce-variation-availability {
    margin-top: 10px;
}

/* The table itself should not fight the chip layout. */
form.variations_form table.variations,
form.variations_form table.variations tbody {
    display: block;
    width: 100%;
}

form.variations_form table.variations tr.kimtec-has-chips {
    display: block;
    width: 100%;
}

/* ---------- 34. Sticky mobile bar: qty + variation readout ---------- */
.mobile-buy-bar__nameline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.mobile-buy-bar__variation {
    font-size: 11.5px;
    font-weight: 700;
    color: #c2520a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.mobile-buy-bar__qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e2e5ea;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.mobile-buy-bar__qtybtn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.mobile-buy-bar__qtybtn:active {
    background: #f5f6f8;
}

.mobile-buy-bar__qtybtn svg {
    width: 15px;
    height: 15px;
}

.mobile-buy-bar__qtyval {
    min-width: 26px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
    color: #111;
    font-variant-numeric: tabular-nums;
}

.mobile-buy-bar__qty.is-min .mobile-buy-bar__qtybtn[data-kimtec-barqty="minus"] {
    color: #c3c9d2;
    cursor: default;
}

/* Selection nudge: brief highlight ring on the chips when the shopper taps
   Buy now before choosing a variation. */
form.variations_form.kimtec-chips-nudge table.variations {
    animation: kimtec-nudge 1.5s ease;
}

@keyframes kimtec-nudge {
    0%, 100% { box-shadow: none; }
    15%, 60% { box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.35); }
}

/* Bar layout with the qty group present: keep everything on one row. */
@media (max-width: 780px) {
    .single-product .mobile-buy-bar {
        gap: 8px;
        padding: 10px calc(12px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
    }

    .single-product .mobile-buy-bar__info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .single-product .mobile-buy-bar__cart {
        flex: 1 1 auto;
        min-width: 148px;
        max-width: 260px;
        padding: 0 16px;
        font-size: 13.5px;
    }

    .single-product .mobile-buy-bar__qty {
        height: 46px;
    }
}

/* ---------- 35. Gallery variation pill + image pulse ---------- */
.kimtec-var-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    margin: 0;
    padding: 6px 12px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kimtec-img-pulse {
    animation: kimtec-pulse 0.55s ease;
}

@keyframes kimtec-pulse {
    0% { opacity: 1; }
    35% { opacity: 0.55; }
    100% { opacity: 1; }
}

/* ---------- 36. Product tabs: moderate pills + inset panel card ----------
   style.css arms its tab rules with !important (li flattened, anchors as
   52px/150px/18px-radius gradient pills, panel border:none). We mirror the
   same selectors with !important — polish.css loads last, ties go to us.
   Result: slimmer 44px tabs, moderate 10px radius (theme vocabulary),
   brand-orange active pill, and the open panel as a quiet inset card. */

.single-product .woocommerce-tabs ul.tabs {
    gap: 8px !important;
    margin: 0 0 16px !important;
}

.single-product .woocommerce-tabs ul.tabs li:not(.active) a,
.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
    min-height: 44px;
    min-width: 0 !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li.active a:hover {
    min-height: 44px;
    min-width: 0 !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    background: #ff6600 !important;
    background-image: none !important;
    border-color: #ff6600 !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, .25) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
}

/* The open panel: quiet inset card inside the white tab wrapper */
.single-product .woocommerce-tabs .panel {
    padding: 20px 22px !important;
    border: 1px solid #eceef2 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    background-image: none !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
}

.single-product .woocommerce-tabs .panel > *:first-child {
    margin-top: 0;
}

/* Reviews read as white cards on the inset; avatars round, stars on-brand */
.single-product .woocommerce-tabs .panel .commentlist {
    list-style: none;
}

.single-product .woocommerce-tabs .panel .commentlist .review {
    border: 1px solid #eceef2;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    margin: 0 0 12px;
}

.single-product .woocommerce-tabs .panel .commentlist .avatar {
    border-radius: 50%;
}

.single-product .woocommerce-tabs .panel .star-rating::before,
.single-product .woocommerce-tabs .panel .star-rating span::before {
    color: #f5a623;
}

/* Attribute tables (Additional information) need contrast on the inset */
.single-product .woocommerce-tabs .panel table th {
    background: #eef2f7 !important;
}

/* ---------- 37. Buttons & selectors: comfortable padding, calm radii ----------
   Harmonizes the remaining Woo controls (cart/checkout/account buttons,
   selects, quantity fallbacks) to the theme's 10-12px radius and 48-52px
   heights. Compact contexts (account forms sec 11, checkout mobile sec 9)
   keep their own larger sizes via higher-specificity selectors. */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    border-radius: 12px;
    padding: 12px 22px;
    min-height: 48px;
    line-height: 1.2;
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce #respond input#submit:focus-visible,
.single-product .buy-card__actions form.cart button:focus-visible,
.single-product .buy-card__actions form.cart .kimtec-buy-now-btn:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Primary CTAs get a touch more presence (not more than 14px radius) */
.single-product .buy-card__actions form.cart button.single_add_to_cart_button,
.single-product .buy-card__actions form.cart .kimtec-buy-now-btn {
    border-radius: 12px;
    padding: 14px 26px;
}

/* Native selects and text inputs share the control look (variations use
   chips; this covers legacy selects, coupon fields, checkout fallbacks).
   .qty inputs are excluded — they live inside the fixed-width stepper. */
.woocommerce .input-text:not(.qty),
.woocommerce select,
.woocommerce textarea {
    border-radius: 10px;
    padding: 10px 14px;
}

.select2-container .select2-selection--single {
    border-radius: 10px;
}

.select2-dropdown {
    border-radius: 10px;
}

.woocommerce .input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: #ff6600;
}

/* Notices: buttons inside Woo messages follow the same shape */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px;
}

/* ---------- 38. Desktop balance: header search + product-card widths ----------
   The header grid gave the nav 2fr and search 1fr — the nav only needs
   ~340px of its 655px track, so search sat at 328px inside a 620px-max
   form. Rebalance at ≥1200px. Product cards were hard-capped at 260px
   (!important) inside a 1281px grid, leaving dead space; stretch them
   like the ≤1024px rules already do. */

@media (min-width: 1200px) {
    .header-inner {
        grid-template-columns: 200px minmax(380px, 1.35fr) minmax(0, 1fr) auto;
    }
}

/* Search input fills the track it is given; button keeps its size */
.kimtec-searchform input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0 16px;
    border-radius: 10px;
}

.kimtec-searchform button {
    border-radius: 10px;
}

/* Cards stretch to fill the grid track on wide screens (shop/archive).
   Scroll-row cards (homepage featured) are restored right after — the
   base stretch uses !important and must not leak into the flex scroller. */
@media (min-width: 1025px) {
    ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
    }

    .kimtec-scroll-row ul.products li.product {
        flex: 0 0 clamp(240px, 20.5vw, 290px);
        max-width: clamp(240px, 20.5vw, 290px) !important;
    }
}

/* Tabs panels: a touch more reading width on phones */
@media (max-width: 480px) {
    .single-product .woocommerce-tabs .panel {
        padding: 16px !important;
    }
}

/* ---------- 39. Hero: one centered axis ----------
   The heading and trust line were centered, but the subtitle box sat left
   (max-width block, auto margins never set) and the CTA pair hugged the
   left edge — three different alignments in one hero. Put everything on
   the heading's centered axis; no-ops on phones where the sub is full
   width and the CTAs stack. */

.hero__sub {
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    justify-content: center;
}

/* ---------- 40. Product cards: Jumia-style full-bleed media ----------
   The gallery image carried a 14px white frame, so the photo floated in
   the middle of the media block. Marketplace pattern instead: the image
   fills the whole top of the card edge-to-edge (white field so white-
   background product photos blend seamlessly), compact uniform body.
   Mobile (≤640px) additionally: one-line 38px button, stock line only
   when it matters (out of stock), tighter type. */

/* All breakpoints: kill the frame, image covers the media block */
ul.products li.product.kimtec-card .kimtec-card__media {
    background: #fff;
}

ul.products li.product.kimtec-card .product-gallery-image {
    padding: 0;
    background: transparent;
}

@media (max-width: 640px) {
    ul.products {
        gap: 14px 10px;
    }

    /* Square media (Jumia proportion): 163px-wide card gets a 163px-tall image */
    ul.products li.product.kimtec-card .kimtec-card__media {
        aspect-ratio: 1 / 1;
    }

    ul.products li.product.kimtec-card .onsale {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Body: uniform 10-12px rhythm under the full-bleed image */
    ul.products li.product.kimtec-card .kimtec-card__body {
        gap: 5px;
        padding: 10px 12px 12px;
    }

    ul.products li.product.kimtec-card .kimtec-card__title {
        font-size: 13px !important;
        line-height: 1.3;
    }

    ul.products li.product.kimtec-card .kimtec-card__price {
        font-size: 16.5px !important;
        line-height: 1.25;
    }

    ul.products li.product.kimtec-card .kimtec-card__price del {
        font-size: 12px;
    }

    /* "\2713 In stock" repeats on every card \u2014 noise on phones.
        Keep it visible when it matters (out of stock). */
    ul.products li.product.kimtec-card .kimtec-card__meta {
        display: none;
    }

    ul.products li.product.kimtec-card .kimtec-card__meta:has(.is-out) {
        display: block;
    }

    /* Button: one line, compact pill \u2014 no more 65px wrapped towers */
    ul.products li.product.kimtec-card .kimtec-card__actions {
        padding-top: 8px;
    }

    ul.products li.product.kimtec-card .kimtec-card__actions .button,
    ul.products li.product.kimtec-card .kimtec-card__actions a.button {
        min-height: 38px;
        line-height: 38px;
        font-size: 13px;
        padding: 0 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Post-AJAX link duplicates the button's job; mini-cart + badge give feedback */
    ul.products li.product.kimtec-card .kimtec-card__actions a.added_to_cart {
        display: none;
    }
}

/* ---------- 41. Reviews tab: review FORM (existing WooCommerce form) ----------
   UI/UX pass over the native #tab-reviews review form. CSS ONLY — no markup or
   JS changes, so WooCommerce's comment POST flow (wp-comments-post.php) and the
   Reply relocation keep working. Fixes the live form's defaults: browser-native
   Name/Email inputs (2px inset, radius 0), star widget rendering in default
   link-blue, washed-out grey Submit, flat text hierarchy, cramped spacing.
   Scoped to #tab-reviews (not #review_form) so the Reply form — which WC
   relocates inside .commentlist — keeps the same treatment. */

/* ---- Hierarchy: empty state -> heading -> notes read top-down ---- */
.single-product .woocommerce-tabs #tab-reviews .woocommerce-noreviews {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 15px;
}

.single-product .woocommerce-tabs #tab-reviews .comment-reply-title {
    display: block;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.single-product .woocommerce-tabs #tab-reviews .comment-reply-title small {
    font-size: 13px;
    font-weight: 400;
}

.single-product .woocommerce-tabs #tab-reviews #review_form_wrapper {
    margin-top: 18px;
}

.single-product .woocommerce-tabs #tab-reviews .comment-notes,
.single-product .woocommerce-tabs #tab-reviews .logged-in-as {
    margin: 0;
    font-size: 13.5px;
    color: #94a3b8;
}

/* ---- Form rhythm: Name + Email share a row, everything else spans ---- */
.single-product .woocommerce-tabs #tab-reviews .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 18px;
    margin-top: 18px;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form > * {
    grid-column: 1 / -1;
    margin: 0;
    min-width: 0;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form .comment-form-author,
.single-product .woocommerce-tabs #tab-reviews .comment-form .comment-form-email {
    grid-column: auto;
}

/* ---- Labels read as labels: bold, dark, stacked over their field ---- */
.single-product .woocommerce-tabs #tab-reviews .comment-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form label .required {
    color: #e64a00;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form-rating label {
    margin-bottom: 4px;
}

/* ---- One field treatment everywhere (matches the theme's inputs) ---- */
.single-product .woocommerce-tabs #tab-reviews .comment-form input[type="text"],
.single-product .woocommerce-tabs #tab-reviews .comment-form input[type="email"],
.single-product .woocommerce-tabs #tab-reviews .comment-form textarea {
    display: block;
    width: 100%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
    min-height: 48px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form input[type="text"]:focus,
.single-product .woocommerce-tabs #tab-reviews .comment-form input[type="email"]:focus,
.single-product .woocommerce-tabs #tab-reviews .comment-form textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .10);
}

.single-product .woocommerce-tabs #tab-reviews .comment-form ::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form .woocommerce-invalid input[type="text"],
.single-product .woocommerce-tabs #tab-reviews .comment-form .woocommerce-invalid input[type="email"] {
    border-color: #dc2626;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form .woocommerce-invalid input[type="text"]:focus,
.single-product .woocommerce-tabs #tab-reviews .comment-form .woocommerce-invalid input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

/* ---- Rating widget: take over the glyph so it can never render link-blue.
   Grey ★ baseline; brand orange for the rating up to the chosen star
   (WooCommerce only marks the chosen one — :has() fills the rest). ---- */
.single-product .woocommerce-tabs #tab-reviews p.stars {
    margin: 4px 0 0;
}

.single-product .woocommerce-tabs #tab-reviews p.stars span {
    display: inline-block;
    vertical-align: middle;
}

.single-product .woocommerce-tabs #tab-reviews p.stars a {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    font-size: 0; /* collapses WC's visually-hidden "1 of 5 stars" label */
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    color: #cbd5e1;
    transition: color .15s ease, transform .15s ease;
}

.single-product .woocommerce-tabs #tab-reviews p.stars a::before {
    content: "\2605" !important; /* ★ */
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 40px;
    text-indent: 0;
    color: inherit !important;
}

.single-product .woocommerce-tabs #tab-reviews p.stars a:hover {
    transform: scale(1.12);
}

.single-product .woocommerce-tabs #tab-reviews p.stars a:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

/* Selected rating — and every star before it — fills brand orange. */
.single-product .woocommerce-tabs #tab-reviews p.stars .star-1.active,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-2.active) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-3.active) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-3.active) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4.active) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4.active) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4.active) .star-3,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5.active) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5.active) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5.active) .star-3,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5.active) .star-4,
.single-product .woocommerce-tabs #tab-reviews p.stars a.active {
    color: #ff6600 !important;
}

/* Hover preview fills the same way. */
.single-product .woocommerce-tabs #tab-reviews p.stars a:hover,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-2:hover) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-3:hover) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-3:hover) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4:hover) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4:hover) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-4:hover) .star-3,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5:hover) .star-1,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5:hover) .star-2,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5:hover) .star-3,
.single-product .woocommerce-tabs #tab-reviews p.stars:has(.star-5:hover) .star-4 {
    color: #ff6600 !important;
}

/* ---- Consent row ---- */
.single-product .woocommerce-tabs #tab-reviews .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    border: 1.5px solid #cbd5e1;
    accent-color: #ff6600;
    flex-shrink: 0;
    cursor: pointer;
}

.single-product .woocommerce-tabs #tab-reviews .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #475569;
}

/* ---- Submit: brand CTA instead of the washed-out grey pill ---- */
.single-product .woocommerce-tabs #tab-reviews .form-submit input[type="submit"] {
    background: linear-gradient(135deg, #ff6600 0%, #ff8b3d 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 34px !important;
    min-height: 52px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(255, 102, 0, .28);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.single-product .woocommerce-tabs #tab-reviews .form-submit input[type="submit"]:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(255, 102, 0, .34);
}

.single-product .woocommerce-tabs #tab-reviews .form-submit input[type="submit"]:active {
    transform: translateY(0);
}

.single-product .woocommerce-tabs #tab-reviews .form-submit input[type="submit"]:focus-visible {
    outline: 2px solid #0f172a !important;
    outline-offset: 2px;
}

/* ---- Display stars (existing reviews) share the widget's brand orange ---- */
.single-product .woocommerce-tabs #tab-reviews .star-rating::before,
.single-product .woocommerce-tabs #tab-reviews .star-rating span::before {
    color: #ff6600 !important;
}

/* ---- Mobile: single column, compact stars ---- */
@media (max-width: 640px) {
    .single-product .woocommerce-tabs #tab-reviews .comment-form {
        grid-template-columns: 1fr;
    }

    .single-product .woocommerce-tabs #tab-reviews .comment-form .comment-form-author,
    .single-product .woocommerce-tabs #tab-reviews .comment-form .comment-form-email {
        grid-column: 1 / -1;
    }

    .single-product .woocommerce-tabs #tab-reviews .comment-reply-title {
        font-size: 17px;
    }

    .single-product .woocommerce-tabs #tab-reviews p.stars a {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .single-product .woocommerce-tabs #tab-reviews p.stars a::before {
        font-size: 27px;
        line-height: 36px;
    }
}

/* ---------- 36. Product image viewer: obvious click-to-enlarge ----------
   WooCommerce's hover magnifier was removed (see inc/setup.php): product
   images here are ~740px wide, so it only magnified ~1.2x and read as a
   blurry, cursor-chasing glitch in the Clarity recordings. The full-screen
   PhotoSwipe viewer is the close-up tool now, so the image advertises it:
   zoom-in cursor, a soft focus ring on hover, a "Click to enlarge" chip and
   a slightly larger, better-shadowed trigger button (the chip is hover-only
   so touch layouts stay clean — tap the image or the magnifier). */
.woocommerce-product-gallery__image > a {
    cursor: zoom-in;
}

.woocommerce-product-gallery__image > a > img {
    transition: filter .18s ease, transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .woocommerce-product-gallery__image:hover > a > img {
        filter: brightness(1.03);
    }

    .woocommerce-product-gallery__image::after {
        content: "\1f50d  Click to enlarge";
        position: absolute;
        right: 10px;
        bottom: 10px;
        z-index: 3;
        padding: 6px 11px;
        border-radius: 999px;
        background: rgba(15, 23, 42, .82);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .01em;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity .18s ease, transform .18s ease;
        pointer-events: none;
    }

    .woocommerce-product-gallery__image:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-product-gallery__trigger {
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.woocommerce-product-gallery__trigger:hover,
.woocommerce-product-gallery__trigger:focus-visible {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .24);
}

.woocommerce-product-gallery__trigger img.emoji {
    width: 22px;
    height: 22px;
}

/* Touch: no hover affordance, so keep a permanent, unmistakable tap hint. */
@media (hover: none) {
    .woocommerce-product-gallery__trigger {
        width: 50px;
        height: 50px;
        opacity: 1;
    }

    .woocommerce-product-gallery__image::after {
        content: "\1f50d  Tap to enlarge";
        position: absolute;
        right: 10px;
        bottom: 10px;
        z-index: 3;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(15, 23, 42, .78);
        color: #fff;
        font-size: 11.5px;
        font-weight: 700;
        pointer-events: none;
    }
}
