/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.4.3
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   BestBargains.lk - Shoptimizer Child CSS
   ======================================== */

/* --- Top Bar Fix (constrain SVG icons) --- */
.top-bar .col-full {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.top-bar .textwidget {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.top-bar svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.top-bar .widget_text {
    display: inline-flex;
    align-items: center;
}
@media (max-width: 768px) {
    .top-bar .col-full {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* --- Footer SVG Fix --- */
.contact svg,
footer.site-footer svg,
.reach-us svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.contact > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    column-gap: 10px;
}
.contact > div:not(:last-child) {
    padding-bottom: 10px;
}
.bestb-copyright svg {
    width: 24px !important;
    height: 24px !important;
}
footer .bestb-copyright .custom-html-widget {
    display: flex;
    gap: 12px;
    align-items: center;
}
div#bbcopyright p {
    font-size: 13px !important;
}
div#bbcopyright a {
    font-size: 13px !important;
}

/* --- Hero Banner --- */
.bb-hero-banner {
    overflow: hidden;
    background: linear-gradient(135deg, #003564 0%, #0058a3 50%, #0170b9 100%) !important;
}
.bb-hero-banner .wp-block-cover__background {
    background: transparent !important;
    opacity: 0 !important;
}
.bb-hero-banner .wp-block-cover__inner-container {
    max-width: 600px;
}
@media (max-width: 768px) {
    .bb-hero-banner {
        min-height: 300px !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }
    .bb-hero-banner h1 {
        font-size: 28px !important;
    }
    .bb-hero-banner p {
        font-size: 15px !important;
    }
}

/* --- Trust Bar --- */
.bb-trust-bar .wp-block-columns {
    margin-bottom: 0;
}
.bb-trust-bar .wp-block-column p {
    margin-bottom: 0;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .bb-trust-bar .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .bb-trust-bar .wp-block-column {
        flex-basis: 50% !important;
        margin-bottom: 8px;
    }
    .bb-trust-bar .wp-block-column p {
        font-size: 12px !important;
        white-space: normal;
    }
}

/* --- Category Section --- */
.bb-categories-section ul.products li.product {
    padding-bottom: 0 !important;
}
.bb-categories-section .cat-image-wrapper {
    padding: 10px;
    background: #f8f8f8;
    border-radius: 50% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bb-categories-section .cat-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.bb-categories-section .cat-image-wrapper img {
    mix-blend-mode: darken;
    scale: 0.9;
}
.bb-categories-section ul.products li.product.product-category .cat-image-wrapper {
    border-radius: 50% !important;
}

/* --- Product Grids --- */
.bb-featured-products ul.products li.product,
.bb-popular-products ul.products li.product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bb-featured-products ul.products li.product:hover,
.bb-popular-products ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
ul.products li.product .price {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.3px !important;
}
ul.products li.product .price ins {
    font-weight: 600;
}
ul.products li.product .woocommerce-LoopProduct-link {
    color: #484848;
}

/* --- Promo Banner --- */
@media (max-width: 768px) {
    .bb-promo-banner h2 {
        font-size: 20px !important;
    }
    .bb-promo-banner p {
        font-size: 14px !important;
    }
}

/* --- Reviews Section --- */
.bb-reviews-section {
    border-radius: 0;
}

/* --- Buttons --- */
.button, button, input[type=button], input[type=reset], input[type=submit] {
    border-radius: 25px !important;
}

/* --- Global Product Styles --- */
li.outofstock {
    filter: grayscale(100) opacity(70%);
}

/* --- Single Product --- */
.koko {
    color: #353434 !important;
    font-size: 13px !important;
    width: 100%;
    letter-spacing: -0.1px !important;
    font-weight: 400 !important;
    margin-bottom: 20px;
    margin-top: -12px;
}
div#commercekit-timer {
}

.single-product .summary .onsale {
    font-size: 14px;
    font-weight: 600;
    color: #e00751;
    width: fit-content !important;
    padding: 0px;
    margin-bottom: 10px;
}
.summary h1 {
    width: 100%;
    padding-right: 0px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e3e3e3;
}
.product p.price {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    padding: 5px 0;
    float: none;
}
.product p.price.price ins {
    font-weight: 700;
}
.woocommerce-product-details__short-description {
    border-top: 1px solid #e3e3e3;
    width: 100%;
    padding-top: 20px;
    border-bottom: 1px solid #e3e3e3;
}
.single-product div.product .summary form.cart {
}
.product-widget {
}
.single-product p.stock {
    display: inline-block;
    padding: 0px;
    border: 0px;
    margin: 0 0 10px 0;
}
div.product .woocommerce-product-rating {
    width: 100%;
    margin-bottom: 12px;
    margin-top: -0.3em;
}
.single-product div.product .woocommerce-product-gallery img {
    /* aspect-ratio: 1/1; */
    /* object-fit: contain; */
    width: 100%;
}

/* --- Header --- */
.site-header .secondary-navigation svg {
    width: 25px;
    display: block;
    margin: auto;
    color: #111;
}
.site-header-cart .cart-contents span.woocommerce-Price-amount.amount {
    background: #f2f2f2;
    border-radius: 25px;
    padding: 5px 10px;
    color: #111;
    font-size: 13px;
}
#secondary input[type=search], .site-search form input[type=search] {
    border-radius: 25px;
}

/* --- Search --- */
.woocommerce-breadcrumb {
    font-size: 12px;
    color: #111;
    padding-top: 0;
    padding-bottom: 30px;
}

/* --- Sidebar --- */
#secondary .widget {
    background: #f5f5f5;
    border-bottom: 0;
    padding: 25px;
    border-radius: 10px;
}
#secondary .widget .wc-block-product-categories-list.wc-block-product-categories-list--depth-1 li,
#secondary .widget_product_categories ul ul.children li,
#secondary .widget ol li,
#secondary .widget ul li {
    font-size: 13px;
}

/* --- Footer --- */
footer.site-footer li, footer.site-footer p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.7em;
    letter-spacing: -0.1px;
}
footer.site-footer li, footer.site-footer a {
    font-size: 13px;
}
.site-footer .widget.widget_block h2, footer .widget .widget-title {
    font-size: 16px;
}
footer.copyright {
    padding: 7px;
    background: #fff !important;
}

/* --- Category Archives --- */
.site header.woocommerce-products-header .term-description {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 1em;
}
.term-description a {
    text-decoration: none;
}
h1.woocommerce-products-header__title.page-title {
    font-size: 36px;
    margin-top: 11px;
    padding-bottom: 10px;
}
.below-content {
    border-top: 0;
}

/* --- Variation Swatches --- */
.woo-variation-swatches .variable-items-wrapper .variable-item .variable-item-contents {
    font-size: 14px;
}
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
    box-shadow: none;
    border: 1px solid #dfdfdf;
    background: #f5f5f5;
}

/* --- WooCommerce Tabs --- */
body .woocommerce-tabs .panel h2 {
    font-size: 18px;
}
body .woocommerce-tabs .panel h3 {
    font-size: 16px;
}

/* --- Payment Methods --- */
.payment-method-discounts {
    font-size: 13px;
    display: grid;
    gap: 8px;
    margin-block: 10px 30px;
    grid-template-columns: repeat(auto-fit,minmax(min(300px,100%),1fr));
    width: 100%;
}
.grouped-methods {
    padding: 12px;
    border: 1px solid #ddd;
    display: grid;
    gap: 8px;
}

/* --- WhatsApp Button --- */
.productwhatsapp:before {
    content: '';
    background-image: url(https://bestbargains.lk/wp-content/uploads/2023/08/whatsapp.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    margin-right: 10px;
}
.productwhatsapp {
    display: inline-flex;
    margin-top: 10px;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 100px;
    justify-content: center !important;
    width: 100%;
    align-items: center;
    border: 1px solid #405b41;
    box-shadow: inset 0px 0px 10px -9px #6b8d6c;
    position: relative;
}
.productwhatsapp a:after {
    position: absolute;
    inset: 0;
    content: '';
}
.productwhatsapp a {
    color: #3e4d3f !important;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* --- Warranty Widget --- */
.warranty-widget {
    height: fit-content;
    color: #111;
    display: inline-block;
    padding: 4px 10px;
    margin-top: 5px;
    border-radius: 5px;
    background: #f5f5f5;
}

/* --- Stock --- */
.stock.out-of-stock, .stock.in-stock {
    font-size: 13px;
    font-weight: 600;
}
p.stock {
    border-top: 1px solid #dfdfdf;
    padding: 5px 0;
    font-size: 14px !important;
    font-weight: 600;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .summary h1.entry-title {
        font-size: 18px !important;
    }
    .product p.price {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.3px;
        padding: 5px 0;
        float: none;
    }
    footer:last-child:not(:only-of-type) {
        margin-top: 0;
    }
}

/* --- Subcategories --- */
ul.subcategories {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -20px 0px 40px 0px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e3e3;
}
ul.subcategories li.product-category {
    width: fit-content;
}
ul.subcategories li.product-category :is(mark,img) {
    display: none;
}
ul.subcategories h2 {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    color: #383737e6;
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 4px;
}
@media (max-width: 600px) {
    ul.subcategories {
        flex-wrap: nowrap !important;
        overflow-x: scroll;
    }
    ul.subcategories li {
        min-width: 35% !important;
        max-width: 35% !important;
    }
}

/* --- Below Product Trust --- */
.below-product-trust {
    text-align: center;
    display: inline-block;
    width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px;
    font-weight: 500;
    font-size: 13px;
    column-count: 3;
}
.below-product-trust svg:not(:root) {
    width: 30px;
    margin: auto;
    display: block;
    padding: 5px 0 0 0;
    color: #036fb4;
}

/* --- Product Details --- */
.product-details-wrapper .product-label {
    display: none;
}
.woocommerce-card__header .wcwl_elements.bound {
    display: none;
}

/* --- Below Woo Category --- */
.below-woocommerce-category {
    font-size: 14px;
    border-radius: 10px;
}

/* --- Elementor Toggle --- */
.elementor-toggle .elementor-tab-content {
    padding: 10px 20px !important;
    border-bottom: 0px !important;
    background: #f5f5f5;
    border-radius: 10px;
}

/* --- Bulk Offer --- */
span.bulk-offer {
    background: #ffff00 !important;
    padding: 10px;
    border-radius: 10px;
    display: block;
    text-align: center;
    border: 1px dashed #ffe000;
}

/* --- Lowest Discounted Price --- */
.lowest-discounted-price small {
    display: flex;
    font-weight: 400;
    letter-spacing: 0.025em;
    color: #555;
}
.lowest-discounted-price {
    font-weight: 600;
    line-height: 1.4;
    padding-block: 0.5em;
}
.woocommerce-card__header:has(.lowest-discounted-price) span.price {
    display: none !important;
}

/* --- Map Button --- */
.map-button svg {
    width: 20px;
    vertical-align: middle;
    margin-right: 5px;
    color: #fff;
}
.map-button {
    background: #000;
    border-radius: 25px;
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
}
.map-button a {
    color: #fff !important;
    font-weight: 500;
    font-size: 13px;
}



/* ===== DEMO MATCH: Secondary Nav Icons ===== */
@media (min-width: 993px) {
    .secondary-navigation .menu li:not(.ri) a {
        padding-top: 35px !important;
        font-size: 13px !important;
        position: relative !important;
    }
    .secondary-navigation .icon-wrapper {
        position: absolute !important;
        top: 0px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 28px !important;
        height: 28px !important;
    }
    .secondary-navigation .icon-wrapper svg {
        width: 28px !important;
        height: 28px !important;
        stroke: #333 !important;
        color: #333 !important;
        stroke-width: 1.5px !important;
        overflow: visible !important;
        display: block !important;
    }
    .secondary-navigation .menu a {
        color: #333 !important;
    }
}

/* ===== DEMO MATCH: Top Bar ===== */
.top-bar, .top-bar a {
    color: #333 !important;
}

/* ===== DEMO MATCH: Nav Bar Dark + Cart ===== */
.col-full-nav {
    background-color: #2c2d33 !important;
}
.shoptimizer-cart a.cart-contents,
.shoptimizer-cart .cart-contents,
.shoptimizer-cart-icon i {
    color: #fff !important;
}
.shoptimizer-cart a.cart-contents .count,
.shoptimizer-cart a.cart-contents .count:after {
    border-color: #fff !important;
}
.shoptimizer-cart a.cart-contents .shoptimizer-cart-icon .mini-count {
    background-color: #fff !important;
    color: #2c2d33 !important;
    border-color: #2c2d33 !important;
}

/* ===== DEMO MATCH: Banner Full Width ===== */
.bb-hero,
.page-template-template-fullwidth-no-heading .bb-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    border-radius: 0 !important;
}












/* ===== DEMO MATCH: Mega Menu Dropdown ===== */
@media (min-width: 993px) {
    .main-navigation ul li.full-width > .sub-menu-wrapper {
        background: #fff !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
        border-top: 1px solid #eee !important;
    }
    .main-navigation ul li.full-width > .sub-menu-wrapper > .container > ul.sub-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 25px 40px !important;
    }
    .main-navigation ul li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li {
        width: 25% !important;
        padding: 6px 15px !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    .main-navigation ul.menu .sub-menu-wrapper a.cg-menu-link,
    .main-navigation ul li.full-width > .sub-menu-wrapper li a {
        color: #444 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 4px 0 !important;
        display: block !important;
    }
    .main-navigation ul.menu .sub-menu-wrapper a.cg-menu-link:hover,
    .main-navigation ul li.full-width > .sub-menu-wrapper li a:hover {
        color: #0058a3 !important;
    }
}

/* ===== DEMO MATCH: Product Cards Clean Layout ===== */

/* Product image - clean gray background, consistent ratio */
ul.products li.product .woocommerce-image__wrapper {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
ul.products li.product img {
    /* object-fit: contain; */
    /* mix-blend-mode: multiply !important; */
    /* aspect-ratio: 1/1; */
    /* padding: 10px !important; */
}

/* Category label - small uppercase gray */
ul.products li.product p.product__categories {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #888 !important;
    margin-bottom: 4px !important;
    margin-top: 12px !important;
}

/* Product title - clean */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
}

/* Price - clean and simple */
ul.products li.product .price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 5px !important;
}
ul.products li.product .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}
ul.products li.product .price ins {
    font-weight: 600 !important;
    color: #e00751 !important;
    text-decoration: none !important;
}

/* Hide Starting from text */
ul.products li.product .price .woocommerce-price-suffix,
ul.products li.product .price small:not(.woocommerce-price-suffix) {
    display: none !important;
}

/* Hide Available stock text on catalog */
ul.products li.product .stock,
ul.products li.product p.stock {
    display: none !important;
}

/* Hide payment discount badges (CASH 25% OFF, KOKO 10% OFF) on catalog */
/* ul.products li.product .payment-method-discounts, */
/* ul.products li.product .lowest-discounted-price, */
/* ul.products li.product .grouped-methods, */
ul.products li.product .below-product-trust {
    display: none !important;
}

/* Clean hover effect */
ul.products li.product {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
ul.products li.product:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
}

/* Add to cart button - show on hover only */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}
ul.products li.product:hover .button,
ul.products li.product:hover .add_to_cart_button {
    opacity: 1 !important;
}

/* Star ratings */
ul.products li.product .star-rating {
    margin-bottom: 5px !important;
    font-size: 0.85em !important;
}

/* Out of stock - subtle gray */
ul.products li.product.outofstock {
    filter: grayscale(0.8) opacity(0.6) !important;
}

/* ===== FIX: Add to cart - hover only ===== */
@media (min-width: 993px) {
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.added_to_cart,
    .woocommerce ul.products li.product .add_to_cart_button {
        opacity: 0 !important;
        transition: opacity 0.2s ease !important;
    }
    .woocommerce ul.products li.product:hover .button,
    .woocommerce ul.products li.product:hover a.added_to_cart,
    .woocommerce ul.products li.product:hover .add_to_cart_button {
        opacity: 1 !important;
    }
}

/* ===== FIX: Remove ALL gray backgrounds from product cards ===== */
.woocommerce ul.products li.product .woocommerce-image__wrapper,
ul.products li.product .woocommerce-image__wrapper,
li.product .woocommerce-image__wrapper {
    background: transparent !important;
    border-radius: 0 !important;
}
.woocommerce ul.products li.product img,
ul.products li.product img {
    background: transparent !important;
}

/* Hide Starting from text */
ul.products li.product .price .woocommerce-Price-label,
ul.products li.product .price > small {
    display: none !important;
}


/* ===== DEMO MATCH: Shop by Category Grid ===== */
.woocommerce ul.products.columns-6 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px 15px !important;
}
.woocommerce ul.products.columns-6 li.product-category {
    width: calc(16.66% - 15px) !important;
    min-width: 130px !important;
    text-align: center !important;
    padding: 10px !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce ul.products.columns-6 li.product-category a img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 10px !important;
    display: block !important;
    mix-blend-mode: multiply !important;
}
.woocommerce ul.products.columns-6 li.product-category h2,
.woocommerce ul.products.columns-6 li.product-category .woocommerce-loop-category__title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
.woocommerce ul.products.columns-6 li.product-category h2 mark,
.woocommerce ul.products.columns-6 li.product-category .count {
    display: none !important;
}
@media (max-width: 768px) {
    .woocommerce ul.products.columns-6 li.product-category {
        width: calc(33.33% - 15px) !important;
        min-width: 100px !important;
    }
}


/* ===== CLEAN: Single Product Page ===== */
.single-product div.product .summary h1.product_title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111 !important;
}
.single-product .summary .price {
    font-size: 22px !important;
    font-weight: 700 !important;
}
.single-product .summary .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}
.single-product .summary .single_add_to_cart_button {
    background-color: #0058a3 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 30px !important;
}
.single-product .summary .single_add_to_cart_button:hover {
    background-color: #004080 !important;
}
.single-product .woocommerce-product-gallery img {
    border-radius: 6px !important;
}
.single-product .payment-method-discounts {
    font-size: 13px !important;
}
.single-product .payment-method-discounts img {
    max-width: 40px !important;
    max-height: 25px !important;
    object-fit: contain !important;
}
.single-product .payment-method-discounts .grouped-methods {
    padding: 10px 12px !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
}
.woocommerce-tabs ul.tabs li a {
    font-size: 15px !important;
    font-weight: 600 !important;
}
.related.products > h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

/* ===== CLEAN: Product Trust Bar (compact) ===== */
.product-trust-bar {
    display: flex !important;
    justify-content: space-between !important;
    background: #f8f8f8 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    gap: 10px !important;
}
.product-trust-bar .trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #333 !important;
}
.product-trust-bar .trust-item svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    color: #0058a3 !important;
}
@media (max-width: 768px) {
    .product-trust-bar {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* Hide old below-product-trust if any remnants */
.below-product-trust {
    display: none !important;
}

/* ===== FIX: Product page cleanup ===== */

/* Hide Koko installment text via CSS (backup) */
.single-product .koko,
.koko,
.single-product .summary .darazbnpl-widget,
.single-product .summary > p:first-of-type:has(.koko-logo),
.single-product .woocommerce-before-add-to-cart-form .darazbnpl {
    display: none !important;
}

/* Price - clean black, no underline */
.single-product .summary .price {
    color: #111 !important;
    text-decoration: none !important;
}
.single-product .summary .price > span {
    text-decoration: none !important;
}

/* Payment breakdown - icons in a row */
.single-product .payment-method-discounts .grouped-methods {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Hide Join WhatsApp Channel - keep only Chat */
.single-product .productwhatsapp:last-of-type {
    display: inline-flex !important;
}

/* Stock - subtle green */
.single-product p.stock.in-stock,
.single-product .summary .stock {
    color: #3bb54a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* ===== FIX: WhatsApp buttons side by side ===== */
.summary .productwhatsapp {
    width: 48% !important;
    display: inline-flex !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    margin-top: 8px !important;
    margin-right: 2% !important;
    box-sizing: border-box !important;
}
.summary .productwhatsapp:last-of-type {
    margin-right: 0 !important;
}

/* ===== FIX: Remove excess separators on product page ===== */
.single-product .summary h1.product_title {
    border: none !important;
    padding-bottom: 5px !important;
}
.single-product .summary .price {
    border: none !important;
    padding: 0 !important;
}
.single-product .summary p.stock {
    border: none !important;
    padding: 5px 0 !important;
}
.single-product .summary .woocommerce-product-details__short-description {
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 5px !important;
}
.single-product .summary .woocommerce-product-rating {
    border: none !important;
    margin-bottom: 10px !important;
}
.single-product .summary hr,
.single-product .summary > hr {
    display: none !important;
}

/* ===== FIX: Payment breakdown cards side by side ===== */
.single-product .payment-method-discounts {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 10px 0 !important;
}
.single-product .payment-method-discounts .grouped-methods {
    padding: 10px !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}
.single-product .payment-method-discounts .grouped-methods img {
    max-height: 20px !important;
    width: auto !important;
}
@media (max-width: 768px) {
    .single-product .payment-method-discounts {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FIX: Payment logos inline in one row ===== */
.single-product .payment-method-discounts .grouped-methods .logos {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}
.single-product .payment-method-discounts .grouped-methods .logos img {
    max-height: 18px !important;
    max-width: 35px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.single-product .payment-method-discounts .grouped-methods {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* ===== FIX: Payment cards - logos top, text below ===== */
.single-product .payment-method-discounts .grouped-methods {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px !important;
    gap: 6px !important;
}
.single-product .payment-method-discounts .grouped-methods .logos {
    margin-right: 0 !important;
    margin-bottom: 4px !important;
}

/* ===== FIX: Payment logos bigger ===== */
.single-product .payment-method-discounts .grouped-methods .logos img {
    max-height: 30px !important;
    max-width: 55px !important;
}

/* ===== FIX: Buy Now button centered ===== */
.single-product .summary .single_add_to_cart_button {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===== FIX: Sticky ATC button - change text via CSS and style ===== */
.commercekit-sticky-atc .single_add_to_cart_button,
.commercekit-pdp-sticky-inner .single_add_to_cart_button {
    font-size: 0 !important;
    background-color: #0058a3 !important;
    border-radius: 25px !important;
}
.commercekit-sticky-atc .single_add_to_cart_button::after,
.commercekit-pdp-sticky-inner .single_add_to_cart_button::after {
    content: 'Buy Now' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ===== DEMO MATCH: Checkout Page ===== */

/* Progress bar colors */
.checkout-bar li.active::after,
ul.checkout-bar::before,
ul.checkout-bar li.visited::after {
    background-color: #0058a3 !important;
}

/* Place order button - green like demo */
#place_order,
.woocommerce #payment #place_order {
    background-color: #3bb54a !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 16px 30px !important;
    width: 100% !important;
    border: none !important;
}
#place_order:hover {
    background-color: #2ea33d !important;
}

/* Checkout form fields */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

/* Section headings */
.woocommerce-checkout h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Order review */
.woocommerce-checkout-review-order {
    border-radius: 8px !important;
}

/* Countdown timer on checkout */
.commercekit-timer-checkout {
    background: #fff8e1 !important;
    border: 1px solid #ffe082 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
}

/* ===== FIX: Mobile top bar text wrapping ===== */
@media (max-width: 768px) {
    .top-bar .col-full {
        font-size: 11px !important;
    }
    .top-bar-left,
    .top-bar-center,
    .top-bar-right {
        white-space: nowrap !important;
        font-size: 11px !important;
    }
    .top-bar-left {
        display: none !important;
    }
    .top-bar-center {
        text-align: center !important;
        flex: 1 !important;
    }
    .top-bar-right {
        display: none !important;
    }
}

/* ===== FIX: Mobile 2-column product grid ===== */
@media (max-width: 768px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}
