/*
Theme Name: Eldiehy Theme
Theme URI: https://abdulrahmaneldiehy.com/
Description: قالب احترافي متجاوب وسريع لصفحات الهبوط والمتاجر، مبني على Blocksy مع لوحة تحكم سهلة بدون كود. تصميم وتطوير المبرمج عبدالرحمن الديهي — Abdulrahman Eldiehy. للتواصل واتساب: 01099864648
Author: Abdulrahman Eldiehy
Author URI: https://abdulrahmaneldiehy.com/
Template: blocksy
Version: 2.0.0
Text Domain: eldiehy-theme
*/

/* Custom CSS for the child theme goes here. */

html body,
html body *:not(i):not(svg):not(path):not(.star-rating):not(.star-rating *):not([class*="fa-"]):not([class*="eicon"]) {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* =====================================================================
 * KB CUSTOM TWEAKS — added via child theme (safe, reversible)
 * Selectors are boosted with html/body prefixes so they win over the
 * existing inline Elementor Custom Code (which uses !important).
 * ===================================================================== */

/* ---------------------------------------------------------------
 * 1) My-Account buttons (downloads / orders / etc.)
 *    "تصفح المنتجات" and similar buttons had invisible text
 *    (no contrast). Give a solid brand fill + clear hover state.
 * --------------------------------------------------------------- */
html body.woocommerce-account .woocommerce-MyAccount-content a.button,
html body.woocommerce-account .woocommerce-MyAccount-content button,
html body.woocommerce-account .woocommerce-MyAccount-content input.button,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
html body.woocommerce-account a.woocommerce-Button.button,
html body.woocommerce-account .woocommerce-info a.button {
    background: #E8652E !important;
    color: #ffffff !important;
    border: 1px solid #E8652E !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease !important;
}
html body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
html body.woocommerce-account .woocommerce-MyAccount-content button:hover,
html body.woocommerce-account .woocommerce-MyAccount-content input.button:hover,
html body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
html body.woocommerce-account a.woocommerce-Button.button:hover,
html body.woocommerce-account .woocommerce-info a.button:hover {
    background: #ffffff !important;
    color: #E8652E !important;
    border: 1px solid #E8652E !important;
}

/* ---------------------------------------------------------------
 * 2) Related-products cards (single product page)
 *    Five cards per row, centered content, shorter cards.
 * --------------------------------------------------------------- */
/* The widget's own column is only ~616px wide, so a hard `flex: 0 0 20%`
 * produced 106px-wide, 544px-tall slivers. Let the section span the row
 * first, then lay the cards out on a real 5-track grid: tracks size
 * themselves, so 2 products stay readable instead of being squeezed. */
/* The <section class="related products"> wrapper is itself laid out as a
 * 5-column grid, which parked the whole <ul> inside a single 234px cell.
 * Making the wrapper a plain block hands the full row back to the list, so
 * the grid below actually has room to divide. */
html body.single-product section.related.products,
html body.single-product .kb-related {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
html body.single-product .related-products-section .products,
html body.single-product .kb-related .products,
html body.single-product .related.products ul.products,
html body.single-product ul.products.elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}
html body.single-product .related-products-section .product-card,
html body.single-product .kb-related li.product,
html body.single-product ul.products.elementor-grid li.product {
    /* grid tracks own the width now — clear the old flex sizing */
    flex: initial !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    padding-bottom: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
html body.single-product .kb-related li.product img {
    height: 150px !important;
    padding: 12px !important;
}
html body.single-product .kb-related .woocommerce-loop-product__title {
    min-height: 44px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 12px 2px !important;
    text-align: center !important;
}
html body.single-product .kb-related .woocommerce-loop-product__link:after {
    text-align: center !important;
    padding: 0 12px 6px !important;
}
html body.single-product .kb-related .price {
    text-align: center !important;
    padding: 0 12px !important;
    font-size: 16px !important;
}
html body.single-product .kb-related .button {
    margin: 10px 12px 0 !important;
}
/* Keep them at 5 per row down to tablets, 2 per row on phones */
@media (max-width: 1024px) and (min-width: 768px) {
    html body.single-product .related-products-section .products,
    html body.single-product .kb-related .products,
    html body.single-product .related.products ul.products,
    html body.single-product ul.products.elementor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767px) {
    html body.single-product .related-products-section .products,
    html body.single-product .kb-related .products,
    html body.single-product .related.products ul.products,
    html body.single-product ul.products.elementor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

html body.woocommerce-checkout #billing_full_name_field,
html body.woocommerce-checkout #billing_phone_field,
html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_country_field,
html body.woocommerce-checkout #billing_city_field,
html body.woocommerce-checkout #billing_address_1_field {
    width: calc(50% - 10px) !important;
    clear: none !important;
}

html body.woocommerce-checkout #billing_full_name_field,
html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_city_field {
    float: right !important;
    margin-left: 20px !important;
}

html body.woocommerce-checkout #billing_phone_field,
html body.woocommerce-checkout #billing_country_field,
html body.woocommerce-checkout #billing_address_1_field {
    float: left !important;
    margin-left: 0 !important;
}

html body.woocommerce-checkout #order_comments_field {
    width: 100% !important;
    clear: both !important;
}

@media (max-width: 767px) {
    html body.woocommerce-checkout #billing_full_name_field,
    html body.woocommerce-checkout #billing_phone_field,
    html body.woocommerce-checkout #billing_email_field,
    html body.woocommerce-checkout #billing_country_field,
    html body.woocommerce-checkout #billing_city_field,
    html body.woocommerce-checkout #billing_address_1_field {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        clear: both !important;
    }
}

/* ---------------------------------------------------------------
 * 3) Review cards — center the card contents vertically
 * --------------------------------------------------------------- */
html body.single-product .kb-native-tabs #reviews ol.commentlist li {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
html body.single-product .kb-native-tabs #reviews ol.commentlist li .comment_container {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* ---------------------------------------------------------------
 * 2b) Box-feature rows — keep each on a single line
 *     "QR Codes للوصول إلى الصوت والفيديو" is the longest label and was
 *     wrapping to two lines, making that tile taller than its neighbours.
 *     Scaling the label with the tile keeps every row to one line without
 *     hard-coding a font size that would break on other products.
 * --------------------------------------------------------------- */
html body.single-product .kb-feature .elementor-widget-text-editor,
html body.single-product .feature-item .elementor-widget-text-editor {
    white-space: nowrap !important;
    font-size: clamp(11px, 1.02vw, 14px) !important;
    line-height: 1.7 !important;
    overflow: visible !important;
}
html body.single-product .kb-feature,
html body.single-product .feature-item {
    min-width: 0 !important;
}

/* ---------------------------------------------------------------
 * 3a) Native WooCommerce review list — centre the cards
 * --------------------------------------------------------------- */
html body.single-product #reviews ol.commentlist,
html body #reviews ol.commentlist {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;   /* horizontal centring of the cards */
    gap: 14px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    max-width: 900px !important;
}
html body #reviews ol.commentlist li {
    width: 100% !important;
    max-width: 820px !important;
    float: none !important;
    margin: 0 !important;
    text-align: center !important;
}
html body #reviews ol.commentlist li .comment_container,
html body #reviews ol.commentlist li .comment-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}
html body #reviews ol.commentlist li img.avatar {
    position: static !important;
    margin: 0 auto 10px !important;
    float: none !important;
}
html body #reviews ol.commentlist li .star-rating { margin: 0 auto 6px !important; float: none !important; }
html body #reviews ol.commentlist li .meta { text-align: center !important; }

/* ---------------------------------------------------------------
 * 3b) Student testimonials ([kb_testimonials])
 *     Presented as testimonials, deliberately separate from the
 *     WooCommerce review widget and its star-rating markup.
 * --------------------------------------------------------------- */
html body .kb-testimonials { margin: 32px 0; }
html body .kb-testimonials__title {
    text-align: center;
    font: 700 22px/1.6 'IBM Plex Sans Arabic', sans-serif;
    margin-bottom: 18px;
}
html body .kb-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
html body .kb-testimonial {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical centring (task 5) */
    text-align: center;
    gap: 10px;
    margin: 0;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}
html body .kb-testimonial__stars { color: #ff9b22; font-size: 14px; letter-spacing: 2px; }
html body .kb-testimonial__avatar {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto 4px !important;
}
html body .kb-testimonial__text {
    margin: 0;
    font: 400 14.5px/1.9 'IBM Plex Sans Arabic', sans-serif;
    color: #444;
    text-align: center !important;
}
html body .kb-testimonial__meta { display: flex; flex-direction: column; gap: 2px; text-align: center !important; }
html body .kb-testimonial__name { font: 700 14px/1.6 'IBM Plex Sans Arabic', sans-serif; color: #171717; }
html body .kb-testimonial__date { font-size: 12px; color: #999; }
html body .kb-testimonial__stars {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    text-align: center !important;
}
html body .kb-testimonial__stars i {
    color: #ff9b22 !important;
    line-height: 1 !important;
}
html body.single-product .woocommerce-tabs #reviews #comments > h2,
html body.single-product .woocommerce-tabs #reviews .woocommerce-Reviews-title,
html body.single-product .woocommerce-tabs #tab-description > h2,
html body.single-product .woocommerce-tabs #tab-description > h3,
html body.single-product .woocommerce-tabs #tab-description .elementor-heading-title,
html body.single-product .woocommerce-tabs #tab-reviews > h2,
html body.single-product .woocommerce-tabs #tab-reviews > h3,
html body.single-product .woocommerce-tabs #tab-reviews .elementor-heading-title {
    display: none !important;
}
html body.single-product .woocommerce-tabs .tabs a {
    white-space: nowrap !important;
}

/* ---------------------------------------------------------------
 * 4) Header search box
 *    a) Remove the thick bottom border/underline (~#F1F2F3).
 *    b) Rich live-search results: product image + price.
 *       (base container styled site-wide since the legacy CSS only
 *        styled it on single-product pages)
 * --------------------------------------------------------------- */
/* (a) Remove the grey band under/around the header search field.
 *
 * It was never a border. Elementor Pro's search-form stylesheet
 * (widget-search-form-rtl.min.css) ships:
 *     .elementor-search-form__container:not(.elementor-search-form--full-screen)
 *         { background:#f1f2f3 }
 * This header uses skin-classic, so the rule applies and the container's grey
 * fill shows through beneath the white input — reading as a thick underline.
 * Neutralising the background is what actually removes it; the border/shadow
 * resets below are kept as belt-and-braces. */
html body .kb-header-search .elementor-search-form__container,
html body .kb-header-search .elementor-search-form__container:not(.elementor-search-form--full-screen) {
    background: transparent !important;
    background-color: transparent !important;
}
html body .kb-header-search .elementor-search-form__input,
html body .kb-header-search input[type="search"],
html body .kb-header-search .elementor-search-form,
html body .kb-header-search .elementor-search-form__container {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* (a2) Stop the search box overrunning the main menu.
 *
 * The header CSS gives .kb-header-search `flex: 1 1 auto` with no upper bound
 * and its input a `min-width: 180px`, so the widget grew past its own icons
 * container (measured 352px wide inside a 397px parent) and its right edge
 * landed 35px on top of the nav. Capping the widget and letting the input
 * shrink keeps everything inside the row. */
html body .kb-header-search {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    /* narrow enough that the 5 menu labels keep their full text at 1440px,
     * but still wide enough to type in; scales down on smaller screens */
    max-width: clamp(170px, 14vw, 215px) !important;
}
/* the nav labels must never be clipped mid-word */
html body .kb-header-nav,
html body .kb-header-nav > .e-con-inner,
html body .kb-header-nav .elementor-nav-menu,
html body .kb-header-nav .elementor-nav-menu li,
html body .kb-header-nav .elementor-nav-menu a {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}
html body .kb-header-search .elementor-search-form,
html body .kb-header-search .elementor-search-form__container {
    max-width: 100% !important;
    min-width: 0 !important;
}
html body .kb-header-search .elementor-search-form__input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
/* breathing room between the nav block and the icons/search block */
html body .kb-header-icons > .e-con-inner { gap: 14px !important; }
html body .kb-header-nav { margin-inline-start: 18px !important; }

/* (b) results dropdown — base container (works on every header) */
html body .kb-header-search { position: relative !important; }
html body .kb-search-results {
    position: absolute;
    z-index: 1002;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .14);
    padding: 6px;
    display: none;
    max-height: 380px;
    overflow: auto;
}
html body .kb-search-results.is-open { display: block; }
html body .kb-search-empty {
    padding: 12px;
    color: #888;
    font-size: 13px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
/* rich rows: image + name + price */
html body .kb-search-results--rich a {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #171717 !important;
    direction: rtl;
    text-align: right;
}
html body .kb-search-results--rich a:hover { background: #fff0e9; }
html body .kb-search-results--rich .kb-sr-img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    background: #f6f6f6;
    border-radius: 7px;
    display: block;
}
html body .kb-search-results--rich .kb-sr-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
html body .kb-search-results--rich .kb-sr-name {
    font: 600 13.5px/1.5 'IBM Plex Sans Arabic', sans-serif;
    color: #171717;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html body .kb-search-results--rich .kb-sr-price {
    font: 700 13px/1 'IBM Plex Sans Arabic', sans-serif;
    color: #E8652E;
}

/* ---------------------------------------------------------------
 * 5) My-Account nav icons
 *
 * WooCommerce already prints an icon into `a::before` using its own "woo"
 * icon font. Rather than adding a second element next to it, we re-point that
 * same pseudo-element at the matching Font Awesome 5 glyph — so "تفاصيل
 * الحساب" now uses fa-user-circle, identical to the header account icon.
 * Codepoints below are taken from Elementor's bundled all.min.css.
 * --------------------------------------------------------------- */
html body .woocommerce-MyAccount-navigation-link > a {
    display: flex;
    align-items: center;
    gap: 9px;
}
/* WooCommerce sets its own `content` here from the "woo" font, and its rule
 * outranks a plain override — the glyph must be forced, not just the family,
 * or the browser draws a woo codepoint using the Font Awesome face (= blank). */
html body .woocommerce-MyAccount-navigation-link > a::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;      /* solid face */
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-block !important;
    width: 1.15em;
    text-align: center;
    flex: 0 0 auto;
    line-height: 1;
}
html body .woocommerce-MyAccount-navigation-link--dashboard       > a::before { content: "\f3fd" !important; } /* tachometer-alt */
html body .woocommerce-MyAccount-navigation-link--orders          > a::before { content: "\f290" !important; } /* shopping-bag   */
html body .woocommerce-MyAccount-navigation-link--downloads       > a::before { content: "\f019" !important; } /* download       */
html body .woocommerce-MyAccount-navigation-link--edit-address    > a::before { content: "\f3c5" !important; } /* map-marker-alt */
html body .woocommerce-MyAccount-navigation-link--customer-logout > a::before { content: "\f2f5" !important; } /* sign-out-alt   */
/* Account details: the regular (outline) face, matching the header glyph. */
html body .woocommerce-MyAccount-navigation-link--edit-account > a::before {
    content: "\f2bd" !important;      /* user-circle */
    font-weight: 400 !important;      /* regular face */
}

/* ---------------------------------------------------------------
 * 5b) Product-template footer block (.kb-product-footer): white + full width
 *
 * This block is NOT the global footer template (29038) — it lives inside the
 * single-product template (29642), which is why the earlier .elementor-29038
 * overrides never touched it. It was authored for a dark background: the logo
 * is force-whitened with `filter: brightness(0) invert(1)` and every label is
 * near-white, so simply lightening the background would have made the whole
 * block disappear. Each of those has to be reverted alongside it.
 * --------------------------------------------------------------- */
/* Full-bleed: the block sits inside a boxed .e-con-inner capped at 1290px, so
 * `width:100%` alone can only ever be 1290px wide. This breaks it out to the
 * full viewport without unboxing the rest of the product page. Widths use
 * 100cqw/100vw with a scrollbar-safe fallback so no horizontal scroll appears. */
html body .kb-product-footer {
    background-color: #ffffff !important;
    background-image: none !important;
    border-top: 1px solid #ececec !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline-start: calc(50% - 50vw) !important;
    margin-inline-end: calc(50% - 50vw) !important;
    padding-inline: clamp(16px, 5vw, 90px) !important;
    box-sizing: border-box !important;
}
html body .kb-product-footer > .e-con-inner {
    background-color: transparent !important;
    background-image: none !important;
    width: 100% !important;
    max-width: 1290px !important;   /* content stays readable, band goes edge-to-edge */
    margin-inline: auto !important;
}
/* the breakout must never introduce a sideways scrollbar */
html body.single-product { overflow-x: hidden !important; }
html body .kb-product-footer::before {
    background-color: transparent !important;
    opacity: 0 !important;
}
/* logo: drop the invert filter so the colour original shows on white */
html body .kb-product-footer .kb-footer-logo img,
html body .kb-footer-logo img {
    filter: none !important;
    -webkit-filter: none !important;
}
/* text back to the dark brand colours */
html body .kb-product-footer .kb-footer-tagline .elementor-heading-title,
html body .kb-footer-tagline .elementor-heading-title {
    color: #171717 !important;
}
html body .kb-product-footer .kb-footer-links a,
html body .kb-footer-links a {
    color: #2b2b2b !important;
}
html body .kb-product-footer .kb-footer-links a:hover,
html body .kb-footer-links a:hover {
    color: #E8652E !important;
}
html body .kb-product-footer .kb-footer-copy,
html body .kb-product-footer .kb-footer-copy p,
html body .kb-footer-copy,
html body .kb-footer-copy p {
    color: #666 !important;
}
html body .kb-product-footer .elementor-divider-separator {
    border-color: #e6e6e6 !important;
}

/* ---------------------------------------------------------------
 * 6) Global footer (Elementor template 29038): white + full-width
 *    Overrides the dark background/overlay and recolours the content.
 *    NOTE: if the footer logo is a white image it may need swapping in
 *    Elementor; CSS below un-inverts a filtered (CSS-whitened) logo.
 * --------------------------------------------------------------- */
html body .elementor-29038 .elementor-element.elementor-element-41934f8,
html body .elementor-29038 .elementor-element.elementor-element-41934f8 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
    background-color: #ffffff !important;
}
html body .elementor-29038 .elementor-element.elementor-element-41934f8::before {
    background-color: transparent !important;
    --background-overlay: none !important;
    opacity: 0 !important;
}
/* full width: drop the boxed max-width on the footer section + inner */
html body .elementor-29038 > .e-con,
html body .elementor-29038 .elementor-element.elementor-element-41934f8,
html body .elementor-29038 .elementor-element.elementor-element-41934f8 > .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
}
/* dark, readable text on the now-white footer */
html body .elementor-29038 :is(h1, h2, h3, h4, h5, h6, p, span, li, label, div.elementor-heading-title),
html body .elementor-29038 .elementor-widget-text-editor,
html body .elementor-29038 a {
    color: #2b2b2b !important;
}
html body .elementor-29038 a:hover { color: #E8652E !important; }
html body .elementor-29038 .elementor-divider-separator { border-color: #e6e6e6 !important; }
/* un-invert a CSS-whitened logo so it stays visible on white */
html body .elementor-29038 .elementor-widget-image img,
html body .elementor-29038 .elementor-widget-theme-site-logo img {
    filter: none !important;
}
/* keep a subtle top separation now that the dark block is gone */
html body .elementor-29038 { border-top: 1px solid #ececec; }

/* ---------------------------------------------------------------
 * 7) Offer cards ([kb_product_cards])
 *    Card count comes from the catalogue, so the grid must reflow for
 *    any number of products rather than assume three.
 * --------------------------------------------------------------- */
html body .kb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    align-items: stretch;
    direction: rtl;
    margin: 28px 0;
}
html body .kb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 20px;
    background: #fff;
    border: 1px solid #f0e6de;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
html body .kb-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 30px;
}
html body .kb-card__badge {
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
html body .kb-card__fav { color: var(--kb-accent, #E8652E); font-size: 19px; opacity: .85; }
html body .kb-card__media { display: block; }
html body .kb-card__media img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    display: block;
}
html body .kb-card__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
html body .kb-card__title a { color: #171717; text-decoration: none; }
html body .kb-card__desc { margin: 0; font-size: 13.5px; line-height: 1.9; color: #6d6d6d; }

/* chips: wrap to as many rows as needed instead of overflowing */
html body .kb-card__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}
html body .kb-card__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1 1 88px;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid #f0e6de;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.6;
    color: #4a4a4a;
}
html body .kb-card__chip i { color: var(--kb-accent, #E8652E); font-size: 17px; }

html body .kb-card__rating { margin: 0; font-size: 14px; color: #333; }
html body .kb-card__rating i { color: #ff9b22; }
html body .kb-card__rating span { color: #8a8a8a; font-size: 13px; }

html body .kb-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
}
html body .kb-card__now { font-size: 25px; font-weight: 700; color: #171717; }
html body .kb-card__now .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
html body .kb-card__was { color: #a0a0a0; font-size: 15px; text-decoration: line-through; }
html body .kb-card__save {
    background: #fdeee5;
    color: #d1541f;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
}
html body .kb-card__save .woocommerce-Price-amount { font-size: inherit; }

/* actions pinned to the bottom so uneven card content still lines up */
html body .kb-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}
html body .kb-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 10px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter .18s ease, background .18s ease, color .18s ease;
}
html body .kb-card__btn--ghost {
    background: #fff;
    color: #d1541f !important;
    border: 1.5px solid #f0c3aa;
}
html body .kb-card__btn--ghost:hover { background: #fff5ef; }
html body .kb-card__btn--solid {
    background: var(--kb-accent, #E8652E);
    color: #fff !important;
    border: 1.5px solid var(--kb-accent, #E8652E);
}
html body .kb-card__btn--solid:hover { filter: brightness(.93); }

@media (max-width: 640px) {
    html body .kb-cards { grid-template-columns: 1fr; }
    html body .kb-card__actions { grid-template-columns: 1fr; }
}

/* =====================================================================
 * 8) Design-match pass — cards, header, reviews, product-page footer
 *    These come last on purpose: same specificity as the blocks above,
 *    so the later rule wins without another !important escalation.
 * ===================================================================== */

/* ---- 8.1 Offer cards: match the approved comp ---- */
html body .kb-cards {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}
html body .kb-card {
    gap: 14px;
    padding: 20px 20px 22px;
    border: 1px solid #f6ece4;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(180, 130, 100, .10);
}
html body .kb-card__top { min-height: 34px; align-items: center; }
html body .kb-card__badge { font-size: 13px; padding: 7px 16px; }
html body .kb-card__fav { font-size: 22px; color: #e9a882; }
html body .kb-card__media img { height: 232px; }
html body .kb-card__title { font-size: 22px; line-height: 1.45; }
html body .kb-card__desc { font-size: 14px; line-height: 1.95; color: #7a7069; }

/* three chips across, icon stacked over label */
html body .kb-card__chips { gap: 10px; margin-top: 4px; }
html body .kb-card__chip {
    flex: 1 1 0;
    gap: 7px;
    padding: 12px 6px;
    border: 1px solid #f3e7dd;
    border-radius: 14px;
    font-size: 11.5px;
    line-height: 1.55;
    color: #5c534d;
}
html body .kb-card__chip i { font-size: 18px; }

html body .kb-card__rating { font-size: 15px; }
html body .kb-card__rating strong { font-weight: 700; }
html body .kb-card__rating span { font-size: 13.5px; }

html body .kb-card__price { gap: 10px; margin-top: 2px; }
html body .kb-card__now { font-size: 27px; }
html body .kb-card__was { font-size: 15px; }
html body .kb-card__save { font-size: 12.5px; padding: 6px 12px; }

html body .kb-card__actions { gap: 12px; padding-top: 6px; }
html body .kb-card__btn {
    padding: 15px 10px;
    border-radius: 14px;
    font-size: 15px;
}
html body .kb-card__btn--ghost { border-color: #f2cdb6; }

/* ---- 8.3 Native reviews: 3 across on desktop, avatar centred ---- */
html body #reviews ol.commentlist {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    max-width: 1180px !important;
}
html body #reviews ol.commentlist li {
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 22px 18px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 14px !important;
}
/* avatar centred in the card, above the text */
html body #reviews ol.commentlist li img.avatar {
    display: block !important;
    margin: 0 auto 12px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    position: static !important;
    float: none !important;
}
html body #reviews ol.commentlist li .comment_container,
html body #reviews ol.commentlist li .comment-text {
    align-items: center !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (max-width: 1024px) {
    html body #reviews ol.commentlist { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
    html body #reviews ol.commentlist { grid-template-columns: 1fr !important; }
}

/* ---- 8.4 Product-page footer block: spacing + rhythm ---- */
html body .kb-product-footer { padding-block: 40px 26px !important; }
html body .kb-product-footer > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: center !important;
}
html body .kb-product-footer .kb-footer-logo img { max-height: 54px !important; width: auto !important; }
html body .kb-product-footer .kb-footer-tagline .elementor-heading-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
html body .kb-product-footer .kb-footer-links > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 26px !important;
}
html body .kb-product-footer .kb-footer-links a {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
}
html body .kb-product-footer .kb-footer-copy,
html body .kb-product-footer .kb-footer-copy p {
    font-size: 13px !important;
    color: #8a8a8a !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    width: 100% !important;
    margin-top: 6px !important;
}


/* ---- 8.2 Header: modest search bump + even border (layout untouched) ----
 * Earlier attempts to make .kb-header-nav flexible collapsed the menu onto
 * the logo, because the nav and the icons block are not siblings in one
 * flex row the way that assumed. Leaving the existing layout alone. */
html body .kb-header-search { max-width: clamp(180px, 15vw, 238px) !important; }
html body .kb-header-search .elementor-search-form__container {
    border: 1px solid #e6e6e6 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}
html body .kb-header-search .elementor-search-form__input {
    height: 40px !important;
    border: 0 !important;
    background: transparent !important;
}
html body .kb-header-search .elementor-search-form__submit {
    height: 40px !important;
    width: 48px !important;
    min-width: 48px !important;
    border-radius: 0 !important;
    border: 1px solid #E8652E !important;
    box-shadow: inset 0 -1px 0 #E8652E !important;
}



/* ---- 8.6 Offer cards: final comp match ---- */
html body .kb-card {
    background: #fff;
    border: 1px solid #f5e6da;
    border-radius: 24px;
    padding: 18px 18px 20px;
    gap: 13px;
}
html body .kb-card__top { min-height: 32px; }
html body .kb-card__badge {
    font-size: 13px; font-weight: 700; color: #fff;
    padding: 8px 18px; border-radius: 999px; line-height: 1;
}
html body .kb-card__fav { font-size: 23px; color: #e9a87c; line-height: 1; }
html body .kb-card__media img { height: 228px; object-fit: contain; }
html body .kb-card__title { font-size: 23px; font-weight: 700; line-height: 1.45; }
html body .kb-card__title a { color: #1a1a1a; }
html body .kb-card__desc { font-size: 14px; color: #857b73; line-height: 1.9; }
html body .kb-card__chip {
    border: 1px solid #f3e7dd; border-radius: 14px;
    padding: 11px 6px; gap: 6px; font-size: 11.5px; line-height: 1.55; color: #5c534d;
}
html body .kb-card__chip i { font-size: 18px; color: var(--kb-accent, #E8652E); }
html body .kb-card__rating { font-size: 15px; color: #2b2b2b; }
html body .kb-card__rating i { color: #ffb800; font-size: 16px; }
html body .kb-card__rating span { color: #9a9a9a; font-size: 14px; }
html body .kb-card__save {
    background: #fdeee5; color: #d1541f; font-size: 12.5px; font-weight: 700;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
html body .kb-card__now { font-size: 28px; font-weight: 700; color: #1a1a1a; }
html body .kb-card__was { font-size: 15px; color: #a8a8a8; }
html body .kb-card__btn { padding: 15px 8px; border-radius: 14px; font-size: 15px; font-weight: 600; }
html body .kb-card__btn--ghost { background: #fff; color: #d1541f !important; border: 1.5px solid #f2cdb6; }
html body .kb-card__btn--solid { background: var(--kb-accent, #E8652E); color: #fff !important; border: 1.5px solid var(--kb-accent, #E8652E); }
/* when only one button is shown it should span the row */
html body .kb-card__actions.is-single { grid-template-columns: 1fr; }

/* ---- 8.7 Offer cards: compact, five to a row ---- */
html body .kb-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
html body .kb-card {
    padding: 12px 12px 14px;
    gap: 9px;
    border-radius: 18px;
}
html body .kb-card__top { min-height: 26px; }
html body .kb-card__badge { font-size: 10.5px; padding: 5px 11px; }
html body .kb-card__fav { font-size: 17px; }
html body .kb-card__media img { height: 132px; }
html body .kb-card__title { font-size: 15px; line-height: 1.4; }
html body .kb-card__desc {
    font-size: 11.5px;
    line-height: 1.75;
    /* keep every card the same height regardless of copy length */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html body .kb-card__chips { gap: 6px; }
html body .kb-card__chip {
    padding: 7px 3px;
    gap: 4px;
    font-size: 9px;
    line-height: 1.45;
    border-radius: 10px;
}
html body .kb-card__chip i { font-size: 13px; }
html body .kb-card__rating { font-size: 12px; }
html body .kb-card__rating i { font-size: 12px; }
html body .kb-card__rating span { font-size: 11px; }

/* price on the right, the saving pill on the left */
html body .kb-card__price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
html body .kb-card__now  { order: 1; font-size: 17px; }
html body .kb-card__was  { order: 2; font-size: 11px; }
html body .kb-card__save { order: 3; font-size: 9.5px; padding: 4px 8px; }

html body .kb-card__actions { gap: 7px; padding-top: 2px; }
html body .kb-card__btn {
    padding: 9px 4px;
    border-radius: 10px;
    font-size: 11.5px;
    gap: 5px;
}
html body .kb-card__btn i { font-size: 11px; }

/* WooCommerce appends a "عرض السلة" link after an AJAX add — the mini-cart
 * panel covers that, so the extra button is redundant here. */
html body .kb-card .added_to_cart,
html body .kb-cards .added_to_cart,
html body .kb-cards .wc-forward.added_to_cart,
html body .added_to_cart.wc-forward,
html body a.added_to_cart {
    display: none !important;
}

@media (max-width: 1200px) { html body .kb-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px)  { html body .kb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { html body .kb-cards { grid-template-columns: 1fr; } }

/* ---- 8.8 Cards: four per row, red sale price, tighter buttons ---- */
html body .kb-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { html body .kb-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px)  { html body .kb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { html body .kb-cards { grid-template-columns: 1fr; } }

/* the discounted price is the one the customer pays — make it read as the offer */
html body .kb-card__now,
html body .kb-card__now .woocommerce-Price-amount,
html body .kb-card__now .woocommerce-Price-currencySymbol { color: #e02b1d !important; }

/* shorter buttons: trim the vertical padding only, keep the hit area usable */
html body .kb-card__btn { padding: 7px 6px !important; line-height: 1.5; }

/* one accent for every card, whatever each product stores */
html body .kb-card__btn--solid {
    background: #E8652E !important;
    border-color: #E8652E !important;
    color: #fff !important;
}
html body .kb-card__badge { background: #E8652E !important; }

/* ---- 8.9 Header: sticky, in a white rounded bar ----
 * The rounded white bar used to come from the product template's own CSS.
 * Now that the header is a site-wide template that styling has to live here,
 * otherwise it renders as a bare full-width strip on every page. */
html body .elementor-location-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 16px 0;
    background: transparent;
}
html body .elementor-location-header .kb-product-header,
html body .elementor-location-header > .elementor-element > .e-con-inner {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
}
html body .elementor-location-header .kb-product-header {
    max-width: 1320px;
    margin-inline: auto;
    padding-block: 6px;
}
/* the sticky bar must sit above Elementor overlays but below the cart panel */
html body .elementor-menu-cart__container { z-index: 100000; }

/* ---- 8.10 Wishlist heart ---- */
html body .kb-card__fav {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    color: #e9a87c;
    transition: transform .15s ease, color .15s ease;
}
html body .kb-card__fav:hover { transform: scale(1.12); color: #e02b1d; }
html body .kb-card__fav.is-active { color: #e02b1d; }
html body .kb-card__fav[data-busy] { opacity: .5; }
/* wishlist tab icon in My Account */
html body .woocommerce-MyAccount-navigation-link--wishlist > a::before {
    content: "\f004" !important;   /* heart */
    font-weight: 400 !important;
}

/* ---- 9.0 Cards: three per row, larger type ---- */
html body .kb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { html body .kb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { html body .kb-cards { grid-template-columns: 1fr; } }

html body .kb-card { padding: 16px 16px 18px; gap: 11px; }
html body .kb-card__media img { height: 172px; }
html body .kb-card__title { font-size: 19px; }
html body .kb-card__desc  { font-size: 13.5px; line-height: 1.85; }
html body .kb-card__badge { font-size: 12px; padding: 6px 14px; }
html body .kb-card__fav   { font-size: 20px; }

/* chips: two lines of text under the icon, evenly sized across the row */
html body .kb-card__chip {
    font-size: 11.5px;
    line-height: 1.5;
    padding: 10px 5px;
    gap: 5px;
    min-height: 74px;
    justify-content: center;
}
html body .kb-card__chip span {
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* exactly two lines, then ellipsis */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html body .kb-card__chip i { font-size: 16px; }

html body .kb-card__now  { font-size: 21px; }
html body .kb-card__was  { font-size: 13px; }
/* trim the vertical space around the saving pill */
html body .kb-card__save { font-size: 11px; padding: 3px 10px; line-height: 1.5; }
html body .kb-card__price { gap: 8px; margin: 2px 0; }

html body .kb-card__btn { font-size: 13px; padding: 9px 8px !important; }
html body .kb-card__btn i { font-size: 12.5px; }

/* ---- 9.1 Heart: calmer hover ----
 * The scale-up made the whole card jump; a soft tinted disc reads better. */
html body .kb-card__fav {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .18s ease, color .18s ease;
    transform: none !important;
}
html body .kb-card__fav:hover { background: #fdeee5; color: #e02b1d; }
html body .kb-card__fav.is-active { color: #e02b1d; }
html body .kb-card__fav:focus-visible { outline: 2px solid #E8652E; outline-offset: 2px; }

/* ---- 9.2 Header: one white bar, one search border ----
 * Both the extracted template CSS and the sticky rule were painting a white
 * box, so two stacked rounded panels showed. Only the inner row keeps it. */
html body .elementor-location-header { background: transparent !important; }
html body .elementor-location-header > .elementor-element > .e-con-inner {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
html body .elementor-location-header .kb-product-header {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .07) !important;
}
/* the field had a border from the widget CSS *and* from ours — keep one */
html body .kb-header-search .elementor-search-form,
html body .kb-header-search .elementor-search-form__input {
    border: 0 !important;
    box-shadow: none !important;
}
html body .kb-header-search .elementor-search-form__container {
    border: 1px solid #e6e6e6 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* ---- 9.3 Card copy: fixed two-line blocks ----
 * Descriptions and chip labels vary in length between products; clamping both
 * keeps every card in the row the same height instead of the tallest one
 * stretching the grid. */
html body .kb-card__desc {
    -webkit-line-clamp: 2 !important;
    min-height: calc(2 * 1.85em);
}
html body .kb-card__chip span {
    -webkit-line-clamp: 2 !important;
    min-height: calc(2 * 1.5em);
}

/* ---- 9.4 Search field: border on all four sides ---- */
html body .kb-header-search .elementor-search-form__container {
    border: 1px solid #e6e6e6 !important;
    border-block-end: 1px solid #e6e6e6 !important;   /* the missing bottom edge */
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* ---- 9.5 Checkout: product thumbnail in the order review ---- */
html body .kb-co-item { display: flex; align-items: center; gap: 10px; }
html body .kb-co-item img.kb-co-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    flex: 0 0 52px;
}
html body .kb-co-name { flex: 1 1 auto; min-width: 0; }
/* street address gets the whole row */
html body .woocommerce-checkout #billing_address_1_field,
html body .woocommerce-checkout #billing_full_name_field { width: 100% !important; float: none !important; clear: both !important; }

/* ---- 9.6 Mobile header: hamburger pinned to the far left ---- */
@media (max-width: 1024px) {
    html body .kb-header-nav { display: block !important; }
    html body .kb-header-nav .elementor-nav-menu--dropdown { text-align: right; }
    /* the toggle sits at the start of the row (left edge in RTL) */
    html body .elementor-location-header .kb-product-header > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    html body .kb-header-nav {
        order: -1 !important;
        flex: 0 0 auto !important;
        margin-inline-end: auto !important;
    }
    html body .kb-header-nav .elementor-menu-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: #171717;
        font-size: 22px;
    }
    /* dropdown spans the bar when opened */
    html body .kb-header-nav .elementor-nav-menu--dropdown {
        position: absolute !important;
        inset-inline: 0 !important;
        top: 100% !important;
        background: #fff !important;
        border-radius: 0 0 18px 18px !important;
        box-shadow: 0 12px 26px rgba(0,0,0,.12) !important;
        z-index: 9999 !important;
    }
    html body .elementor-location-header .kb-product-header { position: relative !important; }
    html body .kb-header-search { max-width: 150px !important; }
}

/* =====================================================================
 * 10) Blog archive + single post
 * ===================================================================== */

/* ---- 10.1 Archive hero ---- */
html body .kb-blog { max-width: 1320px; margin-inline: auto; padding: 0 20px 60px; }
html body .kb-blog__hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 260px;
    padding: 30px 40px;
    margin: 24px 0 26px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(120deg, #fdf3ea 0%, #f8e4d2 100%);
}
html body .kb-blog__hero-media { flex: 0 0 260px; }
html body .kb-blog__hero-media img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 34px rgba(0,0,0,.12); }
html body .kb-blog__hero-text { flex: 1 1 auto; text-align: right; z-index: 1; }
html body .kb-blog__kicker { display: inline-block; color: #E8652E; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
html body .kb-blog__hero-text h1 { font-size: 30px; font-weight: 700; margin: 0 0 10px; color: #171717; }
html body .kb-blog__hero-text p { font-size: 14.5px; line-height: 1.9; color: #6c6c6c; max-width: 620px; margin: 0; }

/* ---- 10.2 Filter pills ---- */
html body .kb-blog__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
html body .kb-blog__pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: #fff; border: 1px solid #eee; color: #4a4a4a; text-decoration: none !important;
}
html body .kb-blog__pill:hover { border-color: #f0c3aa; color: #E8652E; }
html body .kb-blog__pill.is-active { background: #E8652E; border-color: #E8652E; color: #fff !important; }

/* ---- 10.3 Post grid ---- */
html body .kb-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 1024px) { html body .kb-blog__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { html body .kb-blog__grid { grid-template-columns: 1fr; } }

html body .kb-post-card { background: #fff; border: 1px solid #f0eee9; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
html body .kb-post-card__media { position: relative; display: block; }
html body .kb-post-card__media img { width: 100%; height: 168px; object-fit: cover; display: block; }
html body .kb-post-card__cat {
    position: absolute; top: 12px; left: 12px; background: #fff; color: #4a4a4a;
    font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
html body .kb-post-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
html body .kb-post-card__title { margin: 0; font-size: 16.5px; line-height: 1.5; }
html body .kb-post-card__title a { color: #171717; text-decoration: none; }
html body .kb-post-card__excerpt {
    margin: 0; font-size: 13px; line-height: 1.85; color: #7a7069;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body .kb-post-card__meta { display: flex; gap: 14px; font-size: 11.5px; color: #9a9a9a; margin-top: auto; }
html body .kb-post-card__meta i { color: #E8652E; margin-inline-end: 3px; }
html body .kb-post-card__link { color: #E8652E; font-weight: 700; font-size: 13px; text-decoration: none !important; }
html body .kb-post-card__link i { font-size: 11px; }

/* pagination */
html body .kb-blog__pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0 10px; }
html body .kb-blog__pagination span, html body .kb-blog__pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
    background: #fff; border: 1px solid #eee; color: #4a4a4a; text-decoration: none;
}
html body .kb-blog__pagination .current { background: #E8652E; border-color: #E8652E; color: #fff; }
html body .kb-blog__pagination a:hover { border-color: #f0c3aa; color: #E8652E; }

/* bottom CTA */
html body .kb-blog__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 40px; padding: 30px 36px; border-radius: 22px;
    background: linear-gradient(120deg, #E8652E 0%, #f0a527 100%); color: #fff;
}
html body .kb-blog__cta-text h3 { margin: 0 0 8px; font-size: 21px; }
html body .kb-blog__cta-text p { margin: 0 0 16px; font-size: 13.5px; opacity: .92; max-width: 480px; }
html body .kb-blog__cta-actions { display: flex; gap: 12px; }
html body .kb-blog__cta .kb-card__btn { padding: 12px 18px !important; font-size: 13.5px; }
html body .kb-blog__cta .kb-card__btn--ghost { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.55) !important; }
html body .kb-blog__cta .kb-card__btn--solid { background: #fff !important; color: #E8652E !important; border-color: #fff !important; }
html body .kb-blog__cta-media img { max-height: 150px; width: auto; border-radius: 10px; }
@media (max-width: 860px) { html body .kb-blog__cta, html body .kb-blog__hero { flex-direction: column; text-align: center; } html body .kb-blog__hero-text { text-align: center; } }

/* save / share icon buttons shared between grid + single */
html body .kb-save-btn {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); border: 0; border-radius: 50%; color: #e9a87c; cursor: pointer;
}
html body .kb-save-btn:hover, html body .kb-save-btn.is-active { color: #e02b1d; }

/* ---- 10.4 Single post ---- */
html body .kb-single { max-width: 1180px; margin-inline: auto; padding: 22px 20px 60px; }
html body .kb-single__crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9a9a9a; margin-bottom: 18px; flex-wrap: wrap; }
html body .kb-single__crumbs a { color: #9a9a9a; text-decoration: none; }
html body .kb-single__crumbs a:hover { color: #E8652E; }
html body .kb-single__crumbs i { font-size: 9px; }
html body .kb-single__crumbs span { color: #4a4a4a; }

html body .kb-single__layout { display: grid; grid-template-columns: 56px minmax(0,1fr) 300px; gap: 30px; align-items: start; }
@media (max-width: 960px) { html body .kb-single__layout { grid-template-columns: 1fr; } html body .kb-single__rail { display: flex; flex-direction: row; justify-content: center; gap: 20px; } }

html body .kb-single__rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
/* .kb-save-btn is shared with the floating card heart, which sets
 * position:absolute — reset it here or the sidebar button overlaps its
 * siblings instead of sitting in the flex column. */
html body .kb-single__rail button {
    position: static !important; inset: auto !important;
    background: none; border: 1px solid #eee; border-radius: 12px; width: 52px; height: 52px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #6c6c6c; cursor: pointer;
}
html body .kb-single__rail button span { font-size: 9.5px; }
html body .kb-single__rail button:hover, html body .kb-single__rail button.is-active { color: #E8652E; border-color: #f0c3aa; }

/* ---- 12) Checkout + product search fixes ---- */
html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
html body.woocommerce-checkout #payment #place_order,
html body.woocommerce-checkout button#place_order,
html body.woocommerce-cart .return-to-shop a.button,
html body.woocommerce-cart a.wc-backward {
    background: #E8652E !important;
    color: #fff !important;
    border: 1px solid #E8652E !important;
    border-radius: 10px !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-weight: 700 !important;
}

html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
html body.woocommerce-checkout #payment #place_order:hover,
html body.woocommerce-checkout button#place_order:hover,
html body.woocommerce-cart .return-to-shop a.button:hover,
html body.woocommerce-cart a.wc-backward:hover {
    background: #d9531f !important;
    border-color: #d9531f !important;
    color: #fff !important;
}

html body.woocommerce-checkout .woocommerce-error,
html body.woocommerce-checkout .woocommerce-error li,
html body.woocommerce-checkout .woocommerce-error a {
    color: #fff !important;
}

html body.woocommerce-checkout .woocommerce-error a {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

html body.woocommerce-checkout form.checkout .form-row-first,
html body.woocommerce-checkout form.checkout .form-row-last,
html body.woocommerce-checkout #billing_full_name_field,
html body.woocommerce-checkout #billing_address_1_field {
    width: calc(50% - 10px) !important;
    float: right !important;
    clear: none !important;
}

html body.woocommerce-checkout form.checkout .form-row-first {
    margin-left: 20px !important;
}

html body.woocommerce-checkout form.checkout .form-row-last {
    margin-left: 0 !important;
}

html body.woocommerce-checkout form.checkout .form-row-wide,
html body.woocommerce-checkout #order_comments_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

html body.woocommerce-checkout #billing_country_display {
    background: #f7f3ee !important;
    color: #241E19 !important;
    cursor: not-allowed !important;
}

html body.woocommerce-checkout .woocommerce-privacy-policy-text {
    color: #5f5650 !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
}

html body.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #E8652E !important;
    font-weight: 700 !important;
}

html body.search.search-results .site-main,
html body.search.search-no-results .site-main {
    direction: rtl;
}

@media (max-width: 767px) {
    html body.woocommerce-checkout form.checkout .form-row-first,
    html body.woocommerce-checkout form.checkout .form-row-last,
    html body.woocommerce-checkout #billing_full_name_field,
    html body.woocommerce-checkout #billing_address_1_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-left: 0 !important;
    }
}

/* ---- 13) Product gallery, benefits and star-rating fixes ---- */
html body.single-product .kb-product-page .kb-gallery {
    padding-inline: 0 !important;
}

html body.single-product .kb-product-page .kb-gallery .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    opacity: 1 !important;
}

html body.single-product .kb-product-page .kb-gallery .woocommerce-product-gallery__image img {
    margin-inline: auto !important;
}

html body.single-product .kb-product-page .kb-gallery .flex-control-thumbs {
    width: 100% !important;
    margin-inline: 0 !important;
    gap: 16px !important;
    justify-content: center !important;
}

html body.single-product .kb-product-page .kb-benefits {
    padding-inline: 0 !important;
    overflow: hidden !important;
    max-width: 92% !important;
    margin-inline: auto !important;
}

html body.single-product .kb-product-page .kb-benefits > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    padding: 0 !important;
}

html body.single-product .kb-product-page .kb-benefits .benefit-item {
    --width: auto !important;
    border: 0 !important;
    border-inline-start: 1px dashed #ddd !important;
    border-inline-end: 0 !important;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    border-radius: 0 !important;
    flex: 1 1 0 !important;
    width: auto !important;
}

html body.single-product .kb-product-page .kb-benefits .benefit-item:last-child {
    border-inline-start: 0 !important;
}

html body .star-rating,
html body .star-rating:before,
html body .star-rating span,
html body .star-rating span:before,
html body .woocommerce .star-rating,
html body .woocommerce .star-rating:before,
html body .woocommerce .star-rating span:before {
    font-family: star !important;
}

html body .star-rating:before,
html body .star-rating span:before,
html body .woocommerce .star-rating:before,
html body .woocommerce .star-rating span:before {
    letter-spacing: 0 !important;
    color: #ff9b22 !important;
}

@media (max-width: 767px) {
    html body.single-product .kb-product-page,
    html body.single-product .kb-product-page .e-con,
    html body.single-product .kb-product-page .e-con-inner,
    html body.single-product .kb-product-page .elementor-widget,
    html body.single-product .kb-product-page .elementor-widget-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body.single-product .kb-product-page {
        overflow-x: hidden !important;
    }

    html body.single-product .kb-product-page .kb-summary > .kb-gallery {
        width: 100% !important;
        max-width: 100% !important;
        order: 3 !important;
        margin-block: 12px 4px !important;
        padding-inline: 0 !important;
        overflow: hidden !important;
    }

    html body.single-product .kb-product-page .kb-summary > .kb-gallery .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    html body.single-product .kb-product-page .kb-summary > .kb-gallery .woocommerce-product-gallery__image {
        min-height: auto !important;
        text-align: center !important;
    }

    html body.single-product .kb-product-page .kb-summary > .kb-gallery .woocommerce-product-gallery__image img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    html body.single-product .kb-product-page .kb-gallery .flex-control-thumbs {
        gap: 8px !important;
        justify-content: center !important;
    }

    html body.single-product .kb-product-page .kb-benefits {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    html body.single-product .kb-product-page .kb-benefits > .e-con-inner {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item {
        --width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        min-height: 104px !important;
        width: 100% !important;
        max-width: 100% !important;
        inline-size: 100% !important;
        padding: 10px 6px !important;
        border: 1px solid #eee !important;
        border-radius: 10px !important;
        background: #fff !important;
        text-align: center !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item > .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        padding: 0 !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item .elementor-icon,
    html body.single-product .kb-product-page .kb-benefits .benefit-item i,
    html body.single-product .kb-product-page .kb-benefits .benefit-item svg {
        margin: 0 auto !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item .elementor-heading-title {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
        line-height: 1.35 !important;
        font-size: 11.5px !important;
    }
}

html body .kb-single__cat { display: inline-block; color: #E8652E; background: #fdeee5; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
html body .kb-single__title { font-size: 30px; line-height: 1.4; margin: 0 0 14px; color: #171717; }

/* ---- 14) Product page follow-up fixes ---- */
html body .kb-testimonial__text {
    border: 0 !important;
    border-inline: 0 !important;
    padding-inline: 0 !important;
}

html body .kb-header-search .elementor-search-form__submit {
    border: 1px solid #E8652E !important;
    box-sizing: border-box !important;
}

html body .kb-card__now,
html body .kb-card__old,
html body .kb-saving,
html body .kb-shop-loop-grid .woocommerce-Price-amount,
html body .kb-shop-loop-grid .woocommerce-Price-currencySymbol,
html body .kb-cards .woocommerce-Price-amount,
html body .kb-cards .woocommerce-Price-currencySymbol {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

@media (max-width: 767px) {
    html body.single-product .kb-product-page .box-features-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    html body.single-product .kb-product-page .box-features-grid > .e-con-inner {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.single-product .kb-product-page .box-features-grid .kb-feature,
    html body.single-product .kb-product-page .box-features-grid .feature-item {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 112px !important;
        padding: 12px 8px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    html body.single-product .kb-product-page .box-features-grid .kb-feature > .e-con-inner,
    html body.single-product .kb-product-page .box-features-grid .feature-item > .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    html body.single-product .kb-product-page .box-features-grid .kb-feature .elementor-widget-icon,
    html body.single-product .kb-product-page .box-features-grid .feature-item .elementor-widget-icon,
    html body.single-product .kb-product-page .box-features-grid .kb-feature .elementor-icon,
    html body.single-product .kb-product-page .box-features-grid .feature-item .elementor-icon {
        margin-inline: auto !important;
        text-align: center !important;
        align-self: center !important;
    }

    html body.single-product .kb-product-page .box-features-grid .kb-feature .elementor-widget-heading,
    html body.single-product .kb-product-page .box-features-grid .feature-item .elementor-widget-heading,
    html body.single-product .kb-product-page .box-features-grid .kb-feature .elementor-widget-text-editor,
    html body.single-product .kb-product-page .box-features-grid .feature-item .elementor-widget-text-editor {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    html body.single-product .kb-product-page .box-features-grid .kb-feature .elementor-widget-text-editor,
    html body.single-product .kb-product-page .box-features-grid .feature-item .elementor-widget-text-editor {
        white-space: normal !important;
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    html body.single-product .kb-product-page .kb-benefits {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        margin-inline: auto !important;
        overflow: visible !important;
    }

    html body.single-product .kb-product-page .kb-benefits > .e-con-inner {
        gap: 6px !important;
        overflow: visible !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item {
        min-height: 82px !important;
        padding: 8px 5px !important;
        border: 1px solid #eee !important;
        border-inline: 1px solid #eee !important;
        border-left: 1px solid #eee !important;
        border-right: 1px solid #eee !important;
        border-radius: 10px !important;
        overflow: visible !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item.benefit-item.benefit-item {
        border-left-width: 1px !important;
        border-right-width: 1px !important;
        border-inline-start-width: 1px !important;
        border-inline-end-width: 1px !important;
        border-left-style: solid !important;
        border-right-style: solid !important;
        border-inline-start-style: solid !important;
        border-inline-end-style: solid !important;
        border-left-color: #eee !important;
        border-right-color: #eee !important;
        border-inline-start-color: #eee !important;
        border-inline-end-color: #eee !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item > .e-con-inner {
        gap: 7px !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item .elementor-icon,
    html body.single-product .kb-product-page .kb-benefits .benefit-item i {
        font-size: 22px !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item svg {
        width: 22px !important;
        height: 22px !important;
    }

    html body.single-product .kb-product-page .kb-benefits .benefit-item .elementor-heading-title {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
    }
}
html body .kb-single__meta { display: flex; gap: 18px; font-size: 13px; color: #9a9a9a; margin-bottom: 22px; }
html body .kb-single__meta i { color: #E8652E; margin-inline-end: 4px; }
html body .kb-single__image img { width: 100%; border-radius: 16px; margin-bottom: 26px; }
html body .kb-single__content { font-size: 15.5px; line-height: 2; color: #333; }
html body .kb-single__content h2 { font-size: 19px; margin: 26px 0 12px; color: #171717; }
html body .kb-single__content p { margin: 0 0 14px; }

html body .kb-single__tip {
    display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 20px 22px;
    background: #fff8ee; border: 1px solid #f6e8cf; border-radius: 14px;
}
html body .kb-single__tip i { color: #f0a527; font-size: 20px; margin-top: 3px; }
html body .kb-single__tip strong { display: block; margin-bottom: 4px; }
html body .kb-single__tip p { margin: 0; font-size: 13.5px; color: #6c6c6c; line-height: 1.85; }

html body .kb-single__side { display: flex; flex-direction: column; gap: 20px; }
html body .kb-single__promo { background: linear-gradient(160deg,#E8652E,#f0a527); border-radius: 18px; padding: 20px; color: #fff; text-align: center; }
html body .kb-single__promo img { max-width: 100%; border-radius: 10px; margin-bottom: 12px; }
html body .kb-single__promo h4 { margin: 0 0 8px; font-size: 16px; }
html body .kb-single__promo p { margin: 0 0 14px; font-size: 12.5px; opacity: .92; }
html body .kb-single__promo .kb-card__btn--solid { width: 100%; background: #fff !important; color: #E8652E !important; border-color: #fff !important; margin-bottom: 10px; }
html body .kb-single__promo-link { color: #fff; font-size: 12.5px; text-decoration: underline; }

html body .kb-single__related { background: #fff; border: 1px solid #f0eee9; border-radius: 18px; padding: 18px; }
html body .kb-single__related h4 { margin: 0 0 12px; font-size: 15px; }
html body .kb-single__related-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f4f4f4; text-decoration: none !important; }
html body .kb-single__related-item:last-of-type { border-bottom: 0; }
html body .kb-single__related-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 54px; }
html body .kb-single__related-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .kb-single__related-item em { font-style: normal; color: #E8652E; font-size: 10.5px; font-weight: 700; }
html body .kb-single__related-item strong { color: #171717; font-size: 13px; line-height: 1.4; font-weight: 600; }
html body .kb-single__related-item small { color: #b0b0b0; font-size: 11px; }
html body .kb-single__related-all { display: inline-flex; gap: 6px; color: #E8652E; font-size: 13px; font-weight: 700; text-decoration: none !important; margin-top: 8px; }

/* full-width wrapper for both blog Elementor documents */
html body .elementor-29597,
html body .elementor-29645 { max-width: 100%; }
