/* =========================================================
   WC WhatsApp After Checkout – CSS CLEAN (MOBILE FIX)
   ✅ Conserva clases y estructura
   ✅ Limpieza total de duplicados (V4+V5+V6+V7 unificados)
   ✅ FIX principal: GRID móvil (evita 4-6 columnas mini)
   ========================================================= */

/* =========================
   0) Variables
   ========================= */
:root {
    --wcwa-green: #25D366;
    --wcwa-green-dark: #128C7E;
    --wcwa-black: #111;
    --wcwa-gray: #6b7280;
    --wcwa-border: rgba(0, 0, 0, .08);
    --wcwa-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    --wcwa-shadow-strong: 0 18px 40px rgba(0, 0, 0, .12);
    --wcwa-radius: 14px;
    --wcwa-radius-sm: 10px;
    --wcwa-radius-xs: 8px;

    /* Layout slots (cards) */
    --qvix-pad: 14px;
    --qvix-gap: 8px;
    --qvix-img-h: 170px;
    --qvix-title-lines: 2;
    --qvix-title-fs: 14px;
    --qvix-price-fs: 15px;
    --qvix-btn-h: 44px;
    --qvix-btn-fs: 12px;
}

@media (max-width:768px) {
    :root {
        --qvix-pad: 12px;
        --qvix-gap: 8px;
        --qvix-img-h: 150px;
        --qvix-title-fs: 13px;
        --qvix-price-fs: 14px;
        --qvix-btn-h: 42px;
    }
}

/* =========================
   1) After checkout (Thank you)
   ========================= */
.wc-whatsapp-after-checkout-container {
    margin: 20px 0;
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--wcwa-border);
    border-radius: var(--wcwa-radius);
    clear: both;
    box-shadow: var(--wcwa-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wc-whatsapp-button {
    background-color: var(--wcwa-green) !important;
    color: #fff !important;
    font-weight: 800;
    padding: 12px 22px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    border-radius: 999px !important;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
    border: none !important;
    box-shadow: 0 10px 22px rgba(37, 211, 102, .18);
    line-height: 1 !important;
}

.wc-whatsapp-button:hover {
    background-color: var(--wcwa-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(18, 140, 126, .20);
}

.wc-whatsapp-text {
    margin-top: 10px;
    font-size: .92em;
    color: rgba(0, 0, 0, .55);
}

/* =========================
   2) Product page WhatsApp button
   ========================= */
.wc-whatsapp-product-container {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.wc-whatsapp-product-button {
    background-color: var(--wcwa-green) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 12px !important;
    width: 100% !important;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    line-height: 1.2 !important;
}

.wc-whatsapp-product-button:hover {
    background-color: var(--wcwa-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .10);
}

.wc-whatsapp-product-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* =========================
   3) Filter button (icon-btn)
   ========================= */
.wc-filter-btn.icon-btn {
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    background: rgba(0, 0, 0, .88) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10) !important;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.wc-filter-btn.icon-btn:hover {
    transform: translateY(-1px);
    background: #000 !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14) !important;
}

.wc-filter-btn.icon-btn .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    color: #fff;
}

/* =========================
   4) Filters Wrapper
   ========================= */
.wc-whatsapp-filters-wrapper {
    margin: 16px 0 22px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid var(--wcwa-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--wcwa-shadow) !important;
    position: relative;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wc-whatsapp-filters-modern {
    display: block;
    width: 100%;
}

/* Row 1 */
.wc-filter-top-row {
    width: 100%;
    margin: 0 0 10px 0 !important;
    position: relative;
}

.wc-search-container {
    position: relative;
    width: 100%;
}

.wc-search-container input[type="text"] {
    width: 100% !important;
    height: 42px !important;
    padding: 0 12px 0 40px !important;
    border: 1px solid var(--wcwa-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    font-size: 14px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: none !important;
    line-height: normal !important;
    margin: 0 !important;
}

.wc-search-container input[type="text"]:focus {
    border-color: rgba(37, 211, 102, .55) !important;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, .10) !important;
    outline: none !important;
}

.wc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, .40);
    font-size: 18px;
    pointer-events: none;
}

/* Row 2 */
.wc-filter-bottom-row {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.2fr auto !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

.wc-filter-item {
    min-width: 0 !important;
    flex: initial !important;
}

.wc-filter-select,
.wc-price-group input {
    width: 100% !important;
    padding: 0 36px 0 12px !important;
    border: 1px solid var(--wcwa-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    height: 40px !important;
    font-size: 13px !important;
    color: rgba(0, 0, 0, .78) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    appearance: none !important;
    margin: 0 !important;
    display: block !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wc-filter-select:focus,
.wc-price-group input:focus {
    border-color: rgba(0, 0, 0, .20) !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .05) !important;
    outline: none !important;
}

.wc-filter-item select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 9px;
}

.wc-filter-item.wc-submit-group {
    display: flex !important;
    justify-content: flex-end !important;
}

/* =========================
   5) AJAX Search dropdown
   ========================= */
.wc-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--wcwa-shadow-strong);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    z-index: 99999;
    overflow: hidden;
    margin-top: 8px;
}

.wc-ajax-results-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-ajax-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: background .15s ease;
}

.wc-ajax-product:hover {
    background: rgba(0, 0, 0, .02);
}

.wc-ajax-product:last-child {
    border-bottom: none;
}

.wc-search-result-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    flex-grow: 1;
}

.wc-search-img img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-right: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
}

.wc-search-info {
    display: flex;
    flex-direction: column;
}

.wc-search-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(0, 0, 0, .80);
    margin-bottom: 4px;
}

.wc-search-price {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, .88) !important;
}

.wc-search-actions .button {
    background-color: var(--wcwa-black) !important;
    color: #fff !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    font-weight: 800 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
}

.wc-search-actions .button:hover {
    background-color: #2b2b2b !important;
}

.wc-search-view-all {
    display: block !important;
    text-align: center !important;
    padding: 12px !important;
    background: rgba(0, 0, 0, .02) !important;
    color: rgba(0, 0, 0, .65) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.wc-search-view-all:hover {
    background: rgba(0, 0, 0, .04) !important;
    color: #111 !important;
}

/* =========================
   6) Loop card base (slots) + Typography
   ========================= */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product *,
.woocommerce-page ul.products li.product * {
    box-sizing: border-box !important;
}

/* Card container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative;
    transition: transform .2s ease, box-shadow .25s ease;
}

/* Link wrapper as flex */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: var(--qvix-gap) !important;
    text-decoration: none !important;
    border: none !important;
}

/* Image slot (fixed height) */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    height: var(--qvix-img-h) !important;
    max-height: var(--qvix-img-h) !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 6px !important;
    display: block !important;
    background: transparent !important;
}

/* Title (2 lines no clip) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--qvix-title-fs) !important;
    font-weight: 800 !important;
    line-height: 1.30 !important;
    padding-bottom: 3px !important;
    margin: 0 !important;
    text-align: center !important;

    display: -webkit-box !important;
    -webkit-line-clamp: var(--qvix-title-lines) !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;

    min-height: calc(var(--qvix-title-lines) * 1.30em) !important;
    max-height: none !important;
    letter-spacing: .2px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a {
    display: inline !important;
    line-height: inherit !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #0b0b0b !important;
    font-weight: 900 !important;
    font-size: var(--qvix-price-fs) !important;
    display: block !important;
    margin: 2px 0 0 0 !important;
    text-align: center !important;
    line-height: 1.1 !important;
    min-height: 1.1em !important;
}

.woocommerce ul.products li.product .price del {
    color: rgba(0, 0, 0, .35) !important;
    font-weight: 500 !important;
    font-size: .92em !important;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 900 !important;
}

/* CTA wrapper */
.wc-whatsapp-loop-cart-btn-wrapper {
    margin-top: auto !important;
    padding: 0 !important;
    clear: none !important;
    display: block;
}

.wc-whatsapp-loop-cart-btn-wrapper .button.add_to_cart_button {
    display: block !important;
    width: 100% !important;
    height: var(--qvix-btn-h) !important;
    line-height: var(--qvix-btn-h) !important;
    padding: 0 14px !important;
    background-color: var(--wcwa-black) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: var(--qvix-btn-fs) !important;
    text-transform: uppercase !important;
    letter-spacing: .7px !important;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    border: 1px solid transparent !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    float: none !important;
    margin: 0 !important;
}

.wc-whatsapp-loop-cart-btn-wrapper .button.add_to_cart_button:hover {
    background-color: #1f1f1f !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .12) !important;
}

.wc-whatsapp-loop-cart-btn-wrapper .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: .86em;
    color: rgba(0, 0, 0, .55);
    font-weight: 600;
}

/* =========================
   7) Shortcode wrapper GRID (FIX MÓVIL)
   ========================= */
.wc-qvix-shortcode-wrapper ul.products {
    display: grid !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    align-items: stretch !important;

    /* Desktop default */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

/* Desktop: respeta columns-* */
@media (min-width:769px) {
    .wc-qvix-shortcode-wrapper.columns-1 ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .wc-qvix-shortcode-wrapper.columns-2 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .wc-qvix-shortcode-wrapper.columns-3 ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .wc-qvix-shortcode-wrapper.columns-4 ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .wc-qvix-shortcode-wrapper.columns-5 ul.products {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .wc-qvix-shortcode-wrapper.columns-6 ul.products {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* ✅ MOBILE FIX: evita 4-6 columnas mini */
/* @media (max-width:768px) {
    .wc-qvix-shortcode-wrapper ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        
        gap: 14px !important;
    }

    
    .wc-qvix-shortcode-wrapper.columns-1 ul.products {
        grid-template-columns: 1fr !important;
    }
}*/

@media (max-width:768px) {
    .wc-qvix-shortcode-wrapper ul.products {
        grid-template-columns: 1fr !important;
        /* ✅ 1 columna en celular */
        gap: 14px !important;
    }
}

/* Tablet (opcional): 3 columnas si cabe */
@media (min-width:769px) and (max-width:992px) {
    .wc-qvix-shortcode-wrapper ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

.wc-qvix-shortcode-wrapper ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.wc-qvix-shortcode-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Pagination */
.wc-qvix-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 30px !important;
    clear: both !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.wc-qvix-pagination ul {
    display: flex !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
}

.wc-qvix-pagination ul li {
    display: inline-block !important;
    float: none !important;
    border: none !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.wc-qvix-pagination ul li a,
.wc-qvix-pagination ul li span {
    display: block !important;
    padding: 10px 14px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    color: #111 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-width: 40px !important;
    text-align: center !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.wc-qvix-pagination ul li a:hover,
.wc-qvix-pagination ul li span.current {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    transform: translateY(-1px);
}

@media (max-width:768px) {

    .wc-qvix-pagination ul li a,
    .wc-qvix-pagination ul li span {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* =========================
   8) Price Slider (Dual Handle)
   ========================= */
.wc-price-slider-container {
    width: 100%;
    min-width: 160px;
    height: 46px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin: 0 !important;
}

.wc-slider-track {
    width: 100%;
    height: 3px !important;
    background: rgba(0, 0, 0, .12);
    border-radius: 999px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin: 0;
}

.wc-slider-range {
    position: absolute;
    height: 3px !important;
    background: rgba(0, 0, 0, .55);
    border-radius: 999px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.wc-slider-thumb {
    width: 12px !important;
    height: 12px !important;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .55);
    border-radius: 50%;
    position: absolute;
    top: 50% !important;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.wc-slider-thumb:hover,
.wc-slider-thumb.active {
    border-color: rgba(0, 0, 0, .90);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .07);
}

.wc-slider-tooltip {
    position: absolute;
    top: 28px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .86);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
    z-index: 20;
    line-height: normal;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.wc-slider-tooltip::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, .86) transparent;
}

/* =========================
   9) 8 PRODUCT DESIGNS (se conserva tu estética)
   ========================= */

/* Design 1 */
li.product.wc-qvix-design-1 {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
    padding: var(--qvix-pad) !important;
    border: 1px solid rgba(0, 0, 0, .06);
}

li.product.wc-qvix-design-1:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .10);
}

/* Design 2: FAB bottom-right (sin precio absoluto) */
li.product.wc-qvix-design-2 {
    background: #fff;
    padding: var(--qvix-pad) !important;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    position: relative !important;
    overflow: hidden;
    padding-bottom: calc(var(--qvix-btn-h) + 18px) !important;
}

li.product.wc-qvix-design-2:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .10);
}

li.product.wc-qvix-design-2 .price {
    position: static !important;
    text-align: center !important;
    margin-top: 2px !important;
}

li.product.wc-qvix-design-2 .wc-whatsapp-loop-cart-btn-wrapper {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5 !important;
}

li.product.wc-qvix-design-2 .wc-whatsapp-loop-cart-btn-wrapper .button.add_to_cart_button {
    width: var(--qvix-btn-h) !important;
    min-width: var(--qvix-btn-h) !important;
    height: var(--qvix-btn-h) !important;
    line-height: var(--qvix-btn-h) !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: var(--wcwa-green) !important;
    box-shadow: 0 12px 24px rgba(37, 211, 102, .22) !important;
    border: none !important;
    font-size: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

li.product.wc-qvix-design-2 .wc-whatsapp-loop-cart-btn-wrapper .button.add_to_cart_button:hover {
    transform: scale(1.05);
    background: var(--wcwa-green-dark) !important;
}

li.product.wc-qvix-design-2 .wc-whatsapp-loop-cart-btn-wrapper .button.add_to_cart_button::before {
    content: "\f174";
    font-family: dashicons;
    font-size: 20px !important;
    color: #fff !important;
    line-height: 1 !important;
}

/* Design 3 */
li.product.wc-qvix-design-3 {
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: var(--qvix-pad) !important;
    overflow: hidden;
}

li.product.wc-qvix-design-3:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
}

li.product.wc-qvix-design-3 img {
    transition: transform .45s ease;
}

li.product.wc-qvix-design-3:hover img {
    transform: scale(1.06);
}

li.product.wc-qvix-design-3 .wc-whatsapp-loop-cart-btn-wrapper {
    opacity: 1;
    transform: none;
}

li.product.wc-qvix-design-3 .wc-whatsapp-loop-cart-btn-wrapper .button {
    background: transparent !important;
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, .45) !important;
    border-radius: 999px !important;
    text-transform: uppercase;
    font-size: 11px !important;
    letter-spacing: 1.6px !important;
}

li.product.wc-qvix-design-3 .wc-whatsapp-loop-cart-btn-wrapper .button:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* Design 4 */
li.product.wc-qvix-design-4 {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 18px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

li.product.wc-qvix-design-4:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
}

li.product.wc-qvix-design-4 a.woocommerce-LoopProduct-link {
    padding: var(--qvix-pad) !important;
}

li.product.wc-qvix-design-4 .wc-whatsapp-loop-cart-btn-wrapper {
    padding: 0 var(--qvix-pad) var(--qvix-pad) !important;
}

li.product.wc-qvix-design-4 .wc-whatsapp-loop-cart-btn-wrapper .button {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #111 0%, #2b2b2b 100%) !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .12) !important;
}

/* Design 5 */
li.product.wc-qvix-design-5 {
    background: #e6ebf2;
    border-radius: 22px;
    padding: var(--qvix-pad) !important;
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 10px 10px 18px rgba(163, 177, 198, .45), -10px -10px 18px rgba(255, 255, 255, .70);
}

li.product.wc-qvix-design-5:hover {
    transform: translateY(-2px) !important;
}

li.product.wc-qvix-design-5 img {
    border-radius: 12px;
    mix-blend-mode: multiply;
}

li.product.wc-qvix-design-5 .wc-whatsapp-loop-cart-btn-wrapper .button {
    border-radius: 999px !important;
    background: #e6ebf2 !important;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, .55), -6px -6px 12px rgba(255, 255, 255, .75);
    color: #3c4450 !important;
    border: none !important;
}

/* Design 6 */
li.product.wc-qvix-design-6 {
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .06);
    padding: var(--qvix-pad) !important;
}

li.product.wc-qvix-design-6:hover {
    transform: translateY(-2px) !important;
}

li.product.wc-qvix-design-6 .wc-whatsapp-loop-cart-btn-wrapper .button {
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    color: #111 !important;
}

/* Design 7 */
li.product.wc-qvix-design-7 {
    background: #0f0f10;
    border-radius: 10px;
    padding: var(--qvix-pad) !important;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
}

li.product.wc-qvix-design-7:hover {
    transform: translateY(-2px) !important;
}

li.product.wc-qvix-design-7 .woocommerce-loop-product__title {
    color: #d4af37 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

li.product.wc-qvix-design-7 .price {
    color: rgba(255, 255, 255, .90) !important;
}

/* Design 8 */
li.product.wc-qvix-design-8 {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    padding: 0 !important;
    padding-bottom: var(--qvix-pad) !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
}

li.product.wc-qvix-design-8:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .14);
}

li.product.wc-qvix-design-8 a.woocommerce-LoopProduct-link {
    padding: var(--qvix-pad) var(--qvix-pad) 0 var(--qvix-pad) !important;
}

li.product.wc-qvix-design-8 .wc-whatsapp-loop-cart-btn-wrapper {
    padding: 0 var(--qvix-pad) var(--qvix-pad) !important;
    margin-top: auto !important;
}

/* =========================
   10) Floating WhatsApp Widget
   ========================= */
.wc-wa-floating-container {
    position: fixed !important;
    bottom: 30px !important;
    z-index: 2147483647 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: block !important;
    height: auto !important;
    width: auto !important;
}

.wc-wa-floating-container.position-right {
    right: 30px !important;
    left: auto !important;
}

.wc-wa-floating-container.position-left {
    left: 30px !important;
    right: auto !important;
}

.wc-wa-btn-round {
    background-color: var(--wcwa-green) !important;
    color: #fff !important;
    border: none !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .18) !important;
    cursor: pointer !important;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    position: relative !important;
    margin-top: 15px !important;
}

.wc-wa-btn-round .dashicons {
    font-size: 36px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    color: #fff !important;
    margin: 0 !important;
}

.wc-wa-btn-round:hover {
    transform: scale(1.06);
    background-color: #20BA5A !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .22) !important;
}

/* Pill */
.wc-wa-btn-pill {
    display: inline-flex !important;
    align-items: center !important;
    background-color: var(--wcwa-green) !important;
    color: #fff !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease !important;
    border: none !important;
    cursor: pointer !important;
    width: auto !important;
    white-space: nowrap !important;
    margin-top: 15px !important;
}

.wc-wa-btn-pill .dashicons {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin-right: 10px !important;
    color: #fff !important;
    line-height: 24px !important;
}

.wc-wa-btn-pill:hover {
    transform: translateY(-2px);
    background-color: #20BA5A !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .20) !important;
}

/* Widget box */
.wc-wa-widget-box {
    display: none;
    flex-direction: column;
    width: 350px;
    max-width: 90vw;
    background: #111827;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    bottom: 80px;
    opacity: 0;
    transform: scale(.96) translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.wc-wa-floating-container.position-right .wc-wa-widget-box {
    right: 0;
}

.wc-wa-floating-container.position-left .wc-wa-widget-box {
    left: 0;
}

.wc-wa-widget-box.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.wc-wa-widget-header {
    background: #075E54;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-wa-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-wa-header-content h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.wc-wa-close {
    background: rgba(0, 0, 0, .22);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    transition: background .2s ease;
}

.wc-wa-close:hover {
    background: rgba(0, 0, 0, .36);
}

.wc-wa-widget-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.wc-wa-message-bubble {
    background: #1f2937;
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    max-width: 98%;
    align-self: flex-start;
    line-height: 1.45;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.wc-wa-btn-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--wcwa-green);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: background-color .2s ease, transform .15s ease;
    align-self: flex-start;
}

.wc-wa-btn-chat:hover {
    background: #1EBE57;
    transform: translateY(-1px);
}

/* =========================
   11) Admin preview isolation
   ========================= */
.wc-design-preview-container .woocommerce {
    max-width: 280px !important;
    margin: 0 auto !important;
}

.wc-design-preview-container .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wc-design-preview-container .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
}

/* =========================
   12) Theme override: hide duplicate theme loop buttons
   ========================= */
.woocommerce ul.products li.product>.button.add_to_cart_button:not(.wc-whatsapp-loop-cart-btn-wrapper .button) {
    display: none !important;
}

/* =========================
   13) Responsive filters
   ========================= */
@media (max-width:992px) {
    .wc-filter-bottom-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .wc-filter-item.wc-submit-group {
        grid-column: 1 / -1 !important;
        justify-content: flex-end !important;
    }
}

@media (max-width:768px) {
    .wc-filter-bottom-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .wc-filter-item.wc-submit-group {
        justify-content: stretch !important;
    }

    .wc-filter-btn.icon-btn {
        width: 100% !important;
        flex: 1 1 auto !important;
    }
}

/* Safety: remove margins inside wrapper */
.wc-whatsapp-filters-wrapper select,
.wc-whatsapp-filters-wrapper input {
    margin: 0 !important;
}

/* Hide unwanted theme meta on search pages */
.search-results .product .entry-summary,
.search-results .product .entry-meta,
.post-type-archive-product .product .entry-meta {
    display: none !important;
}
/* =========================
   14) Layout Fixes for Shop/Archive (Force Full Width & Hide Sidebars)
   ========================= */

/* Generic Sidebar Hiding for WooCommerce Pages */
.woocommerce-page #secondary, 
.woocommerce-page #sidebar, 
.woocommerce-page .widget-area, 
.woocommerce-page .sidebar {
    display: none !important;
}

/* Force Content to Full Width */
.woocommerce-page #primary, 
.woocommerce-page #content, 
.woocommerce-page .content-area, 
.woocommerce-page .site-content,
.woocommerce-page .site-main,
.post-type-archive-product .site-main,
.search-results .site-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Remove potential dividers or pseudo-elements causing lines */
.woocommerce-page #primary::after,
.woocommerce-page #primary::before,
.woocommerce-page .col-full::after,
.woocommerce-page .col-full::before {
    display: none !important;
    border: none !important;
}

/* Ensure container is centered and max-width logic behaves if theme uses .col-full or .container */
.woocommerce-page .col-full, 
.woocommerce-page .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Fix grid if theme was relying on sidebar width */
.woocommerce-page ul.products {
    width: 100% !important;
}

