﻿/* =========================================================
   WOW QUE BARATO — Public Styles
   Author: Rhadys Reinoso
   ========================================================= */

/* ── CSS Reset / Base ──────────────────────────────────── */
.wqb-wrap *, .wqb-wrap *::before, .wqb-wrap *::after { box-sizing: border-box; }
.wqb-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif; color: #1d2327; }
.wqb-wrap a { text-decoration: none; color: inherit; }

/* ── Buttons ────────────────────────────────────────────── */
.wqb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.wqb-btn:hover { opacity: .9; transform: translateY(-1px); }
.wqb-btn:active { transform: translateY(0); }

.wqb-btn-primary  { background: #e53935; color: #fff; border-color: #e53935; }
.wqb-btn-primary:hover  { background: #c62828; border-color: #c62828; color: #fff; }

.wqb-btn-secondary{ background: #1d2327; color: #fff; border-color: #1d2327; }
.wqb-btn-secondary:hover { background: #3a3f44; color: #fff; }

.wqb-btn-buy      { background: linear-gradient(135deg,#e53935,#b71c1c); color: #fff; border-color: transparent; }
.wqb-btn-buy:hover { background: linear-gradient(135deg,#c62828,#7f0000); color: #fff; }

.wqb-btn-outline  { background: transparent; border-color: currentColor; }
.wqb-btn-outline:hover { background: #f5f5f5; }

.wqb-btn-block    { width: 100%; display: flex; }
.wqb-btn-sm       { padding: 6px 12px; font-size: 12px; }
.wqb-btn-lg       { padding: 14px 28px; font-size: 16px; }
.wqb-btn-icon     { padding: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e4e7; background: #fff; color: #646970; }
.wqb-btn-icon:hover { background: #fee; color: #e53935; border-color: #e53935; }
.wqb-btn-fav-active { color: #e53935 !important; border-color: #e53935 !important; }

/* ── Notices ─────────────────────────────────────────────── */
.wqb-notice { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.wqb-notice-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.wqb-notice-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.wqb-notice-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.wqb-notice-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ── Badges ─────────────────────────────────────────────── */
.wqb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.wqb-badge-oferta   { background: #e53935; color: #fff; }
.wqb-badge-featured { background: #ff9800; color: #fff; }
.wqb-badge-liq      { background: linear-gradient(90deg,#ff6f00,#e53935); color: #fff; }
.wqb-badge-new      { background: #43a047; color: #fff; }

/* ── Store layout ───────────────────────────────────────── */
.wqb-store-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 768px) {
    .wqb-store-layout { grid-template-columns: 1fr; }
    .wqb-store-sidebar { display: none; }
    .wqb-store-sidebar.is-open { display: block; }
}

/* Sidebar */
.wqb-store-sidebar { position: sticky; top: 20px; }

.wqb-filter-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.wqb-filter-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.wqb-filter-body { padding: 14px 16px; }

.wqb-filter-list { list-style: none; margin: 0; padding: 0; }
.wqb-filter-list li { margin-bottom: 8px; }
.wqb-filter-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a4a4a;
    padding: 4px 6px;
    border-radius: 4px;
    transition: .15s;
}
.wqb-filter-list a:hover,
.wqb-filter-list a.active { background: #fee; color: #e53935; }
.wqb-filter-list .count { margin-left: auto; font-size: 11px; background: #f0f0f1; padding: 1px 6px; border-radius: 10px; }

/* Search bar */
.wqb-store-search { margin-bottom: 20px; }
.wqb-store-search-inner { display: flex; gap: 8px; }
.wqb-store-search input { flex: 1; padding: 10px 14px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 14px; }
.wqb-store-search button { padding: 10px 16px; border: none; background: #e53935; color: #fff; border-radius: 6px; cursor: pointer; }

/* Toolbar */
.wqb-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.wqb-store-count { font-size: 13px; color: #646970; }
.wqb-store-sort select { padding: 7px 10px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 13px; }

/* Product grid */
.wqb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
@media (max-width: 600px) { .wqb-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 360px) { .wqb-products-grid { grid-template-columns: 1fr; } }

/* Product card */
.wqb-product-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.wqb-product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); transform: translateY(-2px); }

.wqb-product-thumb {
    position: relative;
    padding-top: 80%;
    overflow: hidden;
    background: #f8f8f8;
}
.wqb-product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s;
}
.wqb-product-card:hover .wqb-product-thumb img { transform: scale(1.05); }

.wqb-product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.wqb-product-fav-btn { position: absolute; top: 8px; right: 8px; }

.wqb-product-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.wqb-product-brand { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.wqb-product-name { font-size: 14px; font-weight: 600; color: #1d2327; margin-bottom: 8px; line-height: 1.4; flex: 1; }
.wqb-product-name a:hover { color: #e53935; }

.wqb-product-pricing { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.wqb-price-current { font-size: 18px; font-weight: 700; color: #e53935; }
.wqb-price-original { font-size: 13px; text-decoration: line-through; color: #9e9e9e; }
.wqb-price-savings { font-size: 11px; background: #e8f5e9; color: #2e7d32; padding: 1px 6px; border-radius: 10px; font-weight: 600; }

.wqb-product-actions { display: flex; gap: 6px; }
.wqb-product-actions .wqb-btn { flex: 1; padding: 8px 4px; font-size: 12px; }

/* ── Product page ────────────────────────────────────────── */
.wqb-product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .wqb-product-page { grid-template-columns: 1fr; gap: 24px; } }

/* Gallery */
.wqb-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.wqb-gallery-main {
    position: relative;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    padding-top: 100%;
}
.wqb-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.wqb-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.wqb-gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f8f8;
    transition: border-color .15s;
}
.wqb-gallery-thumb.active,
.wqb-gallery-thumb:hover { border-color: #e53935; }
.wqb-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Product info */
.wqb-product-info-panel {}
.wqb-product-brand-link { font-size: 12px; color: #e53935; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.wqb-product-title { font-size: 26px; font-weight: 700; margin: 8px 0 16px; line-height: 1.3; }
.wqb-product-price-box { margin-bottom: 20px; }
.wqb-product-price-main { font-size: 34px; font-weight: 700; color: #e53935; }
.wqb-product-price-compare { font-size: 18px; text-decoration: line-through; color: #9e9e9e; margin-left: 8px; }
.wqb-product-price-savings-pill { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-top: 6px; }

.wqb-product-meta { font-size: 13px; color: #646970; margin-bottom: 20px; }
.wqb-product-meta span { margin-right: 16px; }

.wqb-product-offer-badge { display: inline-block; background: linear-gradient(90deg,#ff6f00,#e53935); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }

/* Qty + CTA */
.wqb-add-to-cart-box { margin-bottom: 20px; }
.wqb-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wqb-qty-control { display: flex; align-items: center; border: 1px solid #c3c4c7; border-radius: 6px; overflow: hidden; }
.wqb-qty-control button { width: 36px; height: 36px; border: none; background: #f6f7f7; cursor: pointer; font-size: 16px; }
.wqb-qty-control button:hover { background: #e2e4e7; }
.wqb-qty-control input { width: 52px; height: 36px; border: none; border-left: 1px solid #c3c4c7; border-right: 1px solid #c3c4c7; text-align: center; font-size: 14px; font-weight: 600; }
input.wqb-qty-input::-webkit-inner-spin-button { display: none; }

.wqb-product-cta { display: flex; flex-direction: column; gap: 10px; }
.wqb-product-cta .wqb-btn { font-size: 15px; padding: 13px; }

/* Payment logos strip */
.wqb-payment-logos-strip { margin: 20px 0; }
.wqb-payment-logos-strip p { font-size: 12px; color: #646970; margin-bottom: 8px; }
.wqb-payment-logos-strip .logos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wqb-payment-logos-strip img { height: 24px; filter: grayscale(40%); }

/* Shipping calculator */
.wqb-shipping-calculator { background: #f9f9fa; border: 1px solid #e2e4e7; border-radius: 8px; padding: 16px; margin: 20px 0; }
.wqb-shipping-calculator h4 { margin: 0 0 12px; font-size: 14px; }
.wqb-ship-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.wqb-ship-field { flex: 1; min-width: 120px; position: relative; }
.wqb-ship-field input { width: 100%; padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 13px; }

/* Autocomplete dropdown */
.wqb-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.wqb-autocomplete-list li { list-style: none; margin: 0; }
.wqb-autocomplete-list li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
}
.wqb-autocomplete-list li a:hover { background: #fee; color: #e53935; }

.wqb-shipping-result { font-size: 13px; margin-top: 8px; color: #155724; }
.wqb-shipping-result.unavailable { color: #721c24; }

/* Returns accordion */
.wqb-returns-section { margin: 20px 0; }
.wqb-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f9f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}
.wqb-accordion-toggle .arrow { transition: transform .2s; }
.wqb-accordion-toggle.open .arrow { transform: rotate(180deg); }
.wqb-accordion-body {
    border: 1px solid #e2e4e7;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    display: none;
}

/* Similar products */
.wqb-similar-section { margin-top: 48px; }
.wqb-similar-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ── Cart page ───────────────────────────────────────────── */
.wqb-cart-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.wqb-cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* Items list */
.wqb-cart-items {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}

.wqb-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
    transition: background .15s;
}
.wqb-cart-item:last-child { border-bottom: none; }
.wqb-cart-item:hover { background: #fafafa; }

/* Image */
.wqb-cart-item-img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wqb-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* Info */
.wqb-cart-item-info {
    flex: 1;
    min-width: 0;
}
.wqb-cart-item-info h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.wqb-cart-item-info h3 a {
    color: #1d2327;
    text-decoration: none;
}
.wqb-cart-item-info h3 a:hover { color: #e53935; }
.wqb-cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wqb-cart-item-price del {
    font-size: 12px;
    color: #adb5bd;
}
.wqb-cart-item-price strong {
    font-size: 15px;
    color: #e53935;
    font-weight: 700;
}

/* Qty control */
.wqb-cart-item-qty { flex: 0 0 auto; }
.wqb-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
}
.wqb-qty-minus,
.wqb-qty-plus {
    width: 32px;
    height: 100%;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.wqb-qty-minus:hover,
.wqb-qty-plus:hover { background: #e9ecef; }
.wqb-cart-qty-input {
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}
.wqb-cart-qty-input::-webkit-inner-spin-button,
.wqb-cart-qty-input::-webkit-outer-spin-button { appearance: none; }

/* Line total */
.wqb-cart-item-total {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    min-width: 70px;
    text-align: right;
}

/* Remove */
.wqb-cart-remove {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all .15s;
}
.wqb-cart-remove:hover { background: #fee; color: #c62828; }

/* Summary sidebar */
.wqb-cart-summary { position: sticky; top: 20px; }
.wqb-cart-summary-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 24px;
}
.wqb-cart-summary-box h2 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f5;
}
.wqb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
    color: #495057;
}
.wqb-summary-total {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    padding: 14px 0 0;
    margin-top: 8px;
    border-top: 2px solid #f0f2f5;
}
.wqb-summary-total strong:last-child { color: #e53935; }

/* Empty cart */
.wqb-empty-cart {
    text-align: center;
    padding: 72px 24px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
}
.wqb-empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: .35;
    filter: grayscale(1);
}
.wqb-empty-cart h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #1d2327; }
.wqb-empty-cart p  { font-size: 14px; color: #6c757d; margin: 0 0 24px; }

/* Responsive */
@media (max-width: 768px) {
    .wqb-cart-page { padding: 16px 16px 48px; }
    .wqb-cart-layout { grid-template-columns: 1fr; }
    .wqb-cart-item { gap: 12px; padding: 14px 16px; }
    .wqb-cart-item-img { flex: 0 0 64px; width: 64px; height: 64px; }
    .wqb-cart-item-total { display: none; }
    .wqb-cart-item-info h3 { font-size: 13px; }
}
@media (max-width: 480px) {
    .wqb-cart-item-info h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
}

/* ── Checkout page ───────────────────────────────────────── */
.wqb-checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 768px) { .wqb-checkout-layout { grid-template-columns: 1fr; } }

.wqb-checkout-section { margin-bottom: 28px; }
.wqb-checkout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e53935; }

.wqb-input { width: 100%; padding: 10px 12px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 14px; color: #1d2327; transition: border-color .15s; }
.wqb-input:focus { border-color: #e53935; outline: none; box-shadow: 0 0 0 3px rgba(229,57,53,.1); }

.wqb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .wqb-form-row { grid-template-columns: 1fr; } }

.wqb-field-wrap { position: relative; }
.wqb-field-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }

/* Payment methods */
.wqb-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    cursor: pointer;
    transition: .15s;
    margin-bottom: 10px;
}
.wqb-payment-option:has(input:checked),
.wqb-payment-option.selected { border-color: #e53935; background: #fff5f5; }
.wqb-payment-option input[type="radio"] { margin: 0; }
.wqb-payment-option img { height: 28px; border-radius: 4px; }
.wqb-payment-option .name { font-weight: 600; font-size: 13px; }
.wqb-payment-option .desc { font-size: 12px; color: #646970; }

/* Order summary sidebar */
.wqb-checkout-summary { background: #fafafa; border: 1px solid #e2e4e7; border-radius: 10px; padding: 20px; position: sticky; top: 20px; }
.wqb-checkout-summary h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; }
.wqb-checkout-items { margin-bottom: 16px; }
.wqb-checkout-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; }
.wqb-checkout-item:last-child { border-bottom: none; }
.wqb-checkout-item img { width: 48px; height: 48px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; padding: 2px; }
.wqb-checkout-item .item-name { font-size: 13px; font-weight: 600; }
.wqb-checkout-item .item-meta { font-size: 12px; color: #646970; }
.wqb-checkout-item .item-price { margin-left: auto; font-size: 13px; font-weight: 700; color: #e53935; white-space: nowrap; }

.wqb-checkout-totals { border-top: 2px solid #e2e4e7; padding-top: 12px; }
.wqb-checkout-total-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.wqb-checkout-total-row.grand { font-size: 16px; font-weight: 700; border-top: 1px solid #eee; margin-top: 6px; padding-top: 10px; }
.wqb-checkout-total-row.grand .amount { color: #e53935; }

/* ── Favorites page ─────────────────────────────────────── */
.wqb-favorites-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.wqb-favorites-header h2 { font-size: 22px; font-weight: 700; margin: 0; }
.wqb-favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

/* ── My orders page ─────────────────────────────────────── */
.wqb-orders-header { margin-bottom: 24px; }
.wqb-orders-header h2 { font-size: 22px; font-weight: 700; margin: 0; }

.wqb-order-card { background: #fff; border: 1px solid #e2e4e7; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.wqb-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fafafa;
    cursor: pointer;
    gap: 12px;
    flex-wrap: wrap;
}
.wqb-order-card-header:hover { background: #f0f0f1; }
.wqb-order-id { font-weight: 700; font-size: 14px; }
.wqb-order-date { font-size: 13px; color: #646970; }
.wqb-order-total { font-weight: 700; color: #e53935; }
.wqb-order-toggle { margin-left: auto; font-size: 18px; transition: transform .2s; }
.wqb-order-card.open .wqb-order-toggle { transform: rotate(180deg); }

.wqb-order-body { padding: 16px 18px; border-top: 1px solid #eee; display: none; }
.wqb-order-card.open .wqb-order-body { display: block; }

.wqb-order-items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wqb-order-items-table th { padding: 6px 10px; text-align: left; color: #646970; border-bottom: 1px solid #eee; }
.wqb-order-items-table td { padding: 8px 10px; border-bottom: 1px solid #f5f5f5; }
.wqb-order-items-table tr:last-child td { border-bottom: none; }

/* ── Auth pages ─────────────────────────────────────────── */
.wqb-auth-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.wqb-auth-card { background: #fff; border: 1px solid #e2e4e7; border-radius: 14px; padding: 36px 40px; width: 100%; max-width: 440px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.wqb-auth-logo { text-align: center; margin-bottom: 20px; }
.wqb-auth-logo img { max-height: 60px; }
.wqb-auth-title { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 24px; }
.wqb-auth-form { display: flex; flex-direction: column; gap: 16px; }
.wqb-auth-form .wqb-form-group { display: flex; flex-direction: column; gap: 5px; }
.wqb-auth-form label { font-size: 13px; font-weight: 600; }
.wqb-auth-links { text-align: center; margin-top: 20px; font-size: 13px; color: #646970; }
.wqb-auth-links a { color: #e53935; font-weight: 600; }
.wqb-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Account Dashboard — estilos en public/css/account.css ── */

/* ── Empty state ─────────────────────────────────────────── */
.wqb-empty { text-align: center; padding: 60px 20px; color: #646970; }
.wqb-empty p { font-size: 15px; margin-bottom: 20px; }


/* ── Pagination ──────────────────────────────────────────── */
.wqb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.wqb-pagination a,
.wqb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2327;
    transition: .15s;
}
.wqb-pagination span.current { background: #e53935; color: #fff; border-color: #e53935; }
.wqb-pagination a:hover { border-color: #e53935; color: #e53935; }

/* ── Loading overlay ─────────────────────────────────────── */
.wqb-loading { position: relative; pointer-events: none; opacity: .6; }
.wqb-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: wqb-spin .6s linear infinite; }
@keyframes wqb-spin { to { transform: rotate(360deg); } }

/* ── Cart count badge ────────────────────────────────────── */
.wqb-cart-count-badge { display: inline-flex; align-items: center; justify-content: center; background: #e53935; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 3px; }

/* ═══════════════════════════════════════════════════════════
   WQB STORE / ACCOUNT — force full width (neutralize WP/Gutenberg wrappers)
   ═══════════════════════════════════════════════════════════ */
.wqb-store-page .wqb-main > *,
.wqb-store-page .wqb-main .wp-block-group,
.wqb-store-page .wqb-main .wp-block-group__inner-container,
.wqb-store-page .wqb-main .is-layout-constrained,
.wqb-store-page .wqb-main .is-layout-flow,
.wqb-store-page .wqb-main .entry-content,
.wqb-store-page .wqb-main .wp-block-freeform,
.wqb-account-page .wqb-main > *,
.wqb-account-page .wqb-main .wp-block-group,
.wqb-account-page .wqb-main .wp-block-group__inner-container,
.wqb-account-page .wqb-main .is-layout-constrained,
.wqb-account-page .wqb-main .is-layout-flow,
.wqb-account-page .wqb-main .entry-content,
.wqb-account-page .wqb-main .wp-block-freeform {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   WQB STORE — eBay-inspired design
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────── */
.wqb-store {
    width: 100%;
    min-height: 100vh;
    padding: 0 0 64px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #191919;
    background: #f0f2f5;
}

/* ── Search hero ─────────────────────────────────────────── */
.wqb-store-searchbar {
    margin: 0;
    padding: 14px 20px;
    background: #f3f4f6;
    border-bottom: 1px solid #e2e4e7;
}
.wqb-store-searchbar-title {
    display: none;
}
.wqb-store-searchform {
    display: flex;
    align-items: stretch;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e53935;
    border-radius: 50px;
    overflow: hidden;
    height: 46px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: box-shadow .2s;
}
.wqb-store-searchform:focus-within {
    box-shadow: 0 4px 20px rgba(229,57,53,.18);
}
.wqb-store-search-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #1d2327;
    min-width: 0;
}
.wqb-store-search-input::placeholder { color: #adb5bd; }
.wqb-store-search-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    background: #e53935;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s;
}
.wqb-store-search-btn:hover { filter: brightness(1.1); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.wqb-store-breadcrumb {
    font-size: 13px;
    color: #777;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 32px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}
.wqb-store-breadcrumb a { color: #e53935; text-decoration: none; }
.wqb-store-breadcrumb a:hover { text-decoration: underline; }
.wqb-store-breadcrumb .sep { color: #ccc; margin: 0 2px; }

/* ── Layout ──────────────────────────────────────────────── */
.wqb-store-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 32px;
}
@media (max-width: 960px) { .wqb-store-layout { grid-template-columns: 1fr; padding: 16px; } }

/* ── Sidebar ─────────────────────────────────────────────── */
.wqb-store-sidebar { position: sticky; top: 12px; }

.wqb-store-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #191919;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
@media (max-width: 960px) {
    .wqb-store-filter-toggle { display: flex; }
    .wqb-store-sidebar-inner { display: none; }
    .wqb-store-sidebar-inner.is-open { display: block; }
}
.wqb-store-filter-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e53935;
    flex-shrink: 0;
}

/* Sidebar inner */
.wqb-store-sidebar-inner {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.wqb-store-clear-all {
    display: block;
    padding: 9px 16px;
    background: #fff5f5;
    border-bottom: 1px solid #fcc;
    font-size: 13px;
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}
.wqb-store-clear-all:hover { background: #fee; }

/* Each filter section */
.wqb-store-filter-box {
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
}
.wqb-store-filter-box:last-child { border-bottom: none; }

.wqb-store-filter-heading {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    padding: 14px 16px 6px;
    margin: 0;
    border-bottom: none;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.wqb-store-filter-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}
.wqb-store-filter-list li { margin: 0; }

/* ── Checkbox-style filter links ─────────────────────────── */
.wqb-store-cblink {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 5px 16px;
    text-decoration: none;
    transition: color .12s;
    line-height: 1.4;
}
.wqb-store-cblink:hover { color: #e53935; }
.wqb-store-cblink.wqb-store-active { color: #e53935; font-weight: 600; }

.wqb-store-cb {
    width: 15px;
    height: 15px;
    border: 1px solid #aaa;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    transition: background .12s, border-color .12s;
}
.wqb-store-cblink:hover .wqb-store-cb { border-color: #e53935; }
.wqb-store-cblink.wqb-store-active .wqb-store-cb {
    background: #e53935;
    border-color: #e53935;
}
.wqb-store-cblink.wqb-store-active .wqb-store-cb::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Price range custom form ─────────────────────────────── */
.wqb-store-price-form { padding: 8px 16px 12px; border-top: 1px solid #f0f0f0; }
.wqb-store-price-row { display: flex; align-items: center; gap: 6px; }
.wqb-store-price-field {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    flex: 1;
}
.wqb-store-price-field span {
    padding: 0 6px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-right: 1px solid #ccc;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.wqb-store-price-input {
    border: none;
    outline: none;
    padding: 7px 6px;
    font-size: 13px;
    width: 100%;
    min-width: 0;
    background: transparent;
}
.wqb-store-price-sep { font-size: 12px; color: #888; white-space: nowrap; }
.wqb-store-price-go {
    padding: 7px 10px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
    flex-shrink: 0;
}
.wqb-store-price-go:hover { background: #c62828; }

/* ── Toolbar ─────────────────────────────────────────────── */
.wqb-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.wqb-store-result-count { font-size: 14px; color: #555; flex: 1; }
.wqb-store-result-count strong { font-size: 16px; color: #191919; }
.wqb-store-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wqb-store-sort-form { display: flex; align-items: center; gap: 6px; }
.wqb-store-sort-label { font-size: 13px; color: #555; white-space: nowrap; }
.wqb-store-sort-select {
    padding: 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #fafafa;
    cursor: pointer;
    color: #191919;
    transition: border-color .15s;
}
.wqb-store-sort-select:focus { border-color: #e53935; outline: none; }
.wqb-store-view-toggle {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}
.wqb-store-view-btn {
    padding: 7px 11px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    transition: background .12s, color .12s;
}
.wqb-store-view-btn + .wqb-store-view-btn { border-left: 1px solid #e0e0e0; }
.wqb-store-view-btn.active { background: #e53935; color: #fff; }
.wqb-store-view-btn:hover:not(.active) { background: #f5f5f5; color: #e53935; }

/* ── Active filter chips ─────────────────────────────────── */
.wqb-store-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.wqb-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff5f5;
    border: 1px solid #fcc;
    color: #c62828;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.wqb-store-chip a { color: #c62828; text-decoration: none; font-weight: 700; margin-left: 2px; opacity: .7; }
.wqb-store-chip a:hover { opacity: 1; }
.wqb-store-chip-clear { font-size: 12px; color: #c62828; text-decoration: underline; cursor: pointer; }

/* ── Popular Filters row ─────────────────────────────────── */
.wqb-store-pop {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}
.wqb-store-pop-lbl {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}
.wqb-store-pop-chip {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    color: #191919;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, color .15s, background .15s;
}
.wqb-store-pop-chip:hover {
    border-color: #e53935;
    color: #e53935;
    background: #fff5f5;
}

/* ── Products grid ───────────────────────────────────────── */
.wqb-store-products.wqb-store-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) { .wqb-store-products.wqb-store-view-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.wqb-store-products.wqb-store-view-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Product card — shared ───────────────────────────────── */
.wqb-pcard {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wqb-pcard:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    transform: translateY(-3px);
}

/* ── Card image — GRID ───────────────────────────────────── */
.wqb-pcard__img-wrap {
    position: relative;
    display: block;
    padding-top: 85%;
    background: #f8f8f8;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}
.wqb-pcard__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .3s;
}
.wqb-pcard:hover .wqb-pcard__img { transform: scale(1.03); }

/* ── Card body — GRID ────────────────────────────────────── */
.wqb-pcard__body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wqb-pcard__brand {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.wqb-pcard__name {
    font-size: 13px;
    font-weight: 600;
    color: #191919;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    flex: 1;
}
.wqb-pcard__name:hover { color: #e53935; }

.wqb-pcard__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.wqb-pcard__price {
    font-size: 18px;
    font-weight: 800;
    color: #e53935;
}
.wqb-pcard__old {
    font-size: 12px;
    text-decoration: line-through;
    color: #999;
}
.wqb-pcard__pct {
    font-size: 11px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.wqb-pcard__stock { font-size: 12px; font-weight: 500; margin-top: 2px; }
.wqb-pcard__stock.in  { color: #2e7d32; }
.wqb-pcard__stock.out { color: #c62828; }

/* "Ver producto" link — hidden in grid, visible in list */
.wqb-pcard__view { display: none; }

/* ── Add-to-cart button ──────────────────────────────────── */
.wqb-pcard__add-cart {
    margin-top: 10px;
    padding: 10px 10px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .15s, box-shadow .15s;
    text-align: center;
    letter-spacing: .2px;
}
.wqb-pcard__add-cart:hover { background: #c62828; box-shadow: 0 4px 12px rgba(229,57,53,.35); }
.wqb-pcard__add-cart--disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    text-decoration: none;
    display: block;
    cursor: default;
    box-shadow: none !important;
}

/* ── Badge ───────────────────────────────────────────────── */
.wqb-pcard__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e53935;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(229,57,53,.4);
}

/* ── Fav button ──────────────────────────────────────────── */
.wqb-pcard__fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: rgba(255,255,255,.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    padding: 0;
    transition: border-color .15s, color .15s;
    z-index: 2;
}
.wqb-pcard__fav:hover,
.wqb-pcard__fav.active { border-color: #e53935; color: #e53935; }
.wqb-pcard__fav.active svg { fill: #e53935; }

/* ══════════════════════════════════════════════════════════
   LIST VIEW
   ══════════════════════════════════════════════════════════ */
.wqb-store-view-list .wqb-pcard {
    flex-direction: row;
    align-items: stretch;
    min-height: 170px;
    border-radius: 14px;
}
.wqb-store-view-list .wqb-pcard:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Image in list view */
.wqb-store-view-list .wqb-pcard__img-wrap {
    padding-top: 0;
    width: 210px;
    flex-shrink: 0;
    min-height: 170px;
    background: #f8f8f8;
    border-right: 1px solid #f0f0f0;
    border-radius: 14px 0 0 14px;
}
@media (max-width: 560px) { .wqb-store-view-list .wqb-pcard__img-wrap { width: 110px; min-height: 130px; } }
.wqb-store-view-list .wqb-pcard__img {
    padding: 16px;
}
.wqb-store-view-list .wqb-pcard:hover .wqb-pcard__img { transform: none; }

/* Body in list view */
.wqb-store-view-list .wqb-pcard__body {
    flex: 1;
    padding: 16px 20px;
    gap: 5px;
    position: relative;
}
.wqb-store-view-list .wqb-pcard__name {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    flex: 0;
    line-height: 1.3;
}
.wqb-store-view-list .wqb-pcard__price {
    font-size: 24px;
    font-weight: 800;
    color: #e53935;
}
.wqb-store-view-list .wqb-pcard__pricing {
    margin-top: 6px;
}
.wqb-store-view-list .wqb-pcard__add-cart {
    width: auto;
    max-width: 240px;
    display: inline-block;
    margin-top: 12px;
    padding: 11px 28px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
}
/* View link — shown in list mode */
.wqb-store-view-list .wqb-pcard__view {
    display: inline-block;
    font-size: 13px;
    color: #e53935;
    text-decoration: none;
    margin-top: 4px;
}
.wqb-store-view-list .wqb-pcard__view:hover { text-decoration: underline; }
/* Fav in list mode — absolute top-right of body */
.wqb-store-view-list .wqb-pcard__fav {
    top: 14px;
    right: 14px;
    background: #fff;
    border: 1px solid #ddd;
}

/* ── Empty state ─────────────────────────────────────────── */
.wqb-store-empty {
    text-align: center;
    padding: 72px 20px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    color: #888;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.wqb-store-empty h3 { font-size: 20px; color: #191919; margin: 0 0 8px; font-weight: 700; }
.wqb-store-empty p  { font-size: 14px; margin: 0 0 20px; }
.wqb-store-empty-btn {
    display: inline-block;
    padding: 11px 28px;
    background: #e53935;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s;
}
.wqb-store-empty-btn:hover { background: #c62828; color: #fff !important; }

/* ── Pagination ──────────────────────────────────────────── */
.wqb-store-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.wqb-store-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: .15s;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.wqb-store-page-btn:hover { border-color: #e53935; color: #e53935; background: #fff5f5; box-shadow: 0 2px 8px rgba(229,57,53,.12); }
.wqb-store-page-btn.active { background: #e53935; color: #fff; border-color: #e53935; font-weight: 700; box-shadow: 0 3px 10px rgba(229,57,53,.3); }
.wqb-store-page-dots { padding: 0 4px; color: #bbb; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   STORE — Responsive / Mobile
   ═══════════════════════════════════════════════════════════ */

/* ── Tablets (≤960px) ────────────────────────────────────── */
@media (max-width: 960px) {
    /* Hero search */
    .wqb-store-searchbar { padding: 12px 16px; }
    .wqb-store-searchform { height: 46px; }
    .wqb-store-search-btn { padding: 0 18px; font-size: 13px; }

    /* Breadcrumb */
    .wqb-store-breadcrumb { padding: 10px 16px; }

    /* Toolbar */
    .wqb-store-toolbar { padding: 10px 12px; gap: 8px; }
    .wqb-store-result-count { font-size: 13px; }

    /* Popular filters */
    .wqb-store-pop { padding: 8px 0 10px; gap: 6px; }
    .wqb-store-pop-chip { padding: 4px 10px; font-size: 12px; }
}

/* ── Mobile (≤640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
    /* Hero search */
    .wqb-store-searchbar { padding: 10px 14px; }
    .wqb-store-searchform { height: 44px; border-radius: 10px; }
    .wqb-store-search-btn { padding: 0 16px; font-size: 13px; border-radius: 0 10px 10px 0; }
    .wqb-store-search-input { padding: 0 14px; font-size: 14px; }
    .wqb-store-search-btn { padding: 0 14px; font-size: 13px; border-radius: 0 10px 10px 0; }
    .wqb-store-search-btn span { display: none; } /* hide "Buscar" text, keep icon */

    /* Chips */
    .wqb-store-chips { gap: 5px; }
    .wqb-store-chip { font-size: 11px; padding: 3px 8px; }

    /* Popular filters: scroll horizontal */
    .wqb-store-pop { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; gap: 6px; }
    .wqb-store-pop::-webkit-scrollbar { display: none; }
    .wqb-store-pop-lbl { white-space: nowrap; flex-shrink: 0; }
    .wqb-store-pop-chip { flex-shrink: 0; }

    /* Toolbar: fila 1 = contador + view toggle, fila 2 = sort ancho completo */
    .wqb-store-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px;
        gap: 0;
        row-gap: 8px;
    }
    .wqb-store-result-count {
        flex: 1;
        font-size: 13px;
        min-width: 0;
    }
    .wqb-store-result-count strong { font-size: 14px; }
    .wqb-store-view-toggle { flex-shrink: 0; }
    .wqb-store-sort-form {
        width: 100%;
        gap: 6px;
    }
    .wqb-store-sort-label { display: none; }
    .wqb-store-sort-select {
        flex: 1;
        font-size: 13px;
        padding: 7px 10px;
    }

    /* Cards grid: 2 columns */
    .wqb-store-products.wqb-store-view-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .wqb-pcard__add-cart { font-size: 12px; padding: 8px 6px; }
    .wqb-pcard__price { font-size: 15px; }
    .wqb-pcard__name { font-size: 12px; }

    /* List view: tighter on mobile */
    .wqb-store-view-list .wqb-pcard__img-wrap { width: 120px; min-height: 140px; }
    .wqb-store-view-list .wqb-pcard__price { font-size: 18px; }
    .wqb-store-view-list .wqb-pcard__add-cart { padding: 9px 16px; max-width: none; width: 100%; }

    /* Pagination */
    .wqb-store-pagination { gap: 4px; margin-top: 20px; }
    .wqb-store-page-btn { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ── Small phones (≤400px) ───────────────────────────────── */
@media (max-width: 400px) {
    .wqb-store-products.wqb-store-view-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wqb-pcard__body { padding: 8px 8px; }
    .wqb-pcard__name { font-size: 11px; }
    .wqb-pcard__price { font-size: 14px; }
    .wqb-pcard__add-cart { font-size: 11px; padding: 7px 4px; }
}

