.shop-grid-page { background: #ffffff; }
.shop-grid-page .container { max-width: 1380px; }
.shop-grid-page .site-breadcrumb .container { padding-left: 28px !important; padding-right: 28px !important; }
.shop-area.bg { background: #ffffff; }
.shop-grid-page .shop-area.py-90 { padding-top: 0 !important; }
.shop-grid-filters { margin: 26px 0 12px; padding: 16px; border: 1px solid #E2EAE6; border-radius: 12px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.04); }
.shop-sidebar { gap: 18px; margin-left: -24px; padding-left: 0; }
.shop-widget {
    border: 1px solid #E2EAE6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 28, 25, 0.08);
    padding: 18px;
}
.shop-grid-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: #ffffff; padding: 20px; border-radius: 8px; }
@media (max-width: 1200px) {
    .shop-grid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .shop-grid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .shop-grid-grid { grid-template-columns: 1fr; }
    .shop-grid-page .site-breadcrumb .container { padding-left: 18px !important; padding-right: 18px !important; }
}
.home-ac-card {
    border: 1px solid #E2EAE6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 28, 25, 0.10);
    display: flex;
    flex-direction: column;
    position: relative;
}
.home-ac-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 10px;
    background: #fff;
    overflow: hidden;
}
.home-ac-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.home-ac-actions a {
    box-shadow: 0 6px 14px rgba(20, 28, 25, 0.18);
    transition: transform .15s ease, background .15s ease;
}
.home-ac-actions a:hover {
    background: #000;
    transform: translateY(-2px);
}
.home-ac-status { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; }
.home-ac-status.live { background: #00674F; }
.home-ac-countdown { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; }
.home-ac-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.home-ac-title {
    font-size: 15px;
    margin: 0;
    color: var(--color-dark, #141C19);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-ac-title a { color: inherit; text-decoration: none; }
.home-ac-footer { display: flex; justify-content: space-between; align-items: center; }
.home-ac-price small { display: block; color: #8A9E97; font-size: 12px; }
.home-ac-price strong { font-size: 18px; color: #141C19; }
.home-ac-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 8px; background: #000000; color: #fff; text-decoration: none; font-weight: 700; transition: background .15s ease; }
.home-ac-btn i { display: none; }
.home-ac-btn .btn-text { display: inline; }
.home-ac-btn:hover { background: #141C19; }
.shop-grid-empty { border: 1px dashed #E2EAE6; border-radius: 12px; padding: 28px; background: #E8F2EE; }
.shop-sort { background: #ffffff; padding: 16px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #E2EAE6; box-shadow: 0 8px 22px rgba(20, 28, 25, 0.08); }
.price-range-modern {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 22px 22px 20px;
}
.price-range-modern .shop-widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.01em;
}
.price-range-modern .price-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.price-range-modern .price-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.price-range-modern .price-label span {
    font-size: 10.5px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.price-range-modern .price-label strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
}
.price-range-modern .price-separator {
    width: 16px;
    height: 1px;
    background: #ddd;
    margin-top: 10px;
}
.price-range-modern .slider-wrap {
    position: relative;
    height: 4px;
    background: #ebebeb;
    border-radius: 4px;
    margin: 4px 8px 20px;
}
.price-range-modern .slider-range {
    position: absolute;
    height: 100%;
    background: #111;
    border-radius: 4px;
    left: 0;
    right: 0;
}
.price-range-modern .slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    cursor: grab;
    transition: border-color .15s, box-shadow .15s;
    z-index: 2;
}
.price-range-modern .slider-handle:active { cursor: grabbing; }
.price-range-modern .slider-handle:hover,
.price-range-modern .slider-handle:focus {
    box-shadow: 0 0 0 4px rgba(0,0,0,.07);
    outline: none;
}
.price-range-modern .price-apply {
    width: 100%;
    padding: 9px 0;
    background: #1A4A38;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s, transform .1s;
}
.price-range-modern .price-apply:hover { background: #143a2d; }
.price-range-modern .price-apply:active { transform: scale(.98); }

/* RESPONSIVE ADICIONAL */
@media (max-width: 992px) {
    .shop-sidebar {
        margin-left: 0;
        padding-left: 15px;
    }
    .shop-grid-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .shop-grid-filters {
        margin: 20px 0 10px;
        padding: 12px;
    }
    .shop-widget {
        padding: 15px;
    }
    .price-range-modern {
        padding: 16px;
    }
    .home-ac-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .shop-grid-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .shop-sidebar {
        margin-bottom: 20px;
    }
    .shop-grid-grid {
        gap: 15px;
    }
    .shop-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .shop-pagination a,
    .shop-pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .shop-grid-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .shop-grid-filters {
        padding: 10px;
    }
    .home-ac-card {
        border-radius: 8px;
    }
    .home-ac-info {
        padding: 12px;
    }
}

/* Borde verde para navegación principal solo en shop-grid */
.shop-grid-page .main-navigation {
    border-bottom: 3px solid #ffffff;
}

/* HEART BTN (desktop: hidden) */
.card-heart-btn { display: none; }

/* OCULTAR ELEMENTOS MOVILES EN ESCRITORIO */
.mobile-nav-bar,
.mobile-cat-row,
.mobile-results-bar,
.mobile-filter-overlay,
.mobile-filter-drawer {
    display: none;
}

/* DISEN0 MOVIL COMPLETO (max-width: 991px) */
@media all and (max-width: 991px) {

    /* RESET GENERAL */
    .shop-grid-page .main-navigation,
    .shop-grid-page .breadcrumb-area {
        display: none !important;
    }
    .shop-grid-page .shop-area {
        background: #ffffff !important;
        padding: 0 !important;
    }
    .shop-grid-page .container { max-width: 100% !important; padding: 0 !important; }
    .shop-grid-page .row { margin: 0 !important; }
    .shop-grid-page .col-lg-3,
    .shop-grid-page .col-lg-9 { padding: 0 !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .shop-grid-page .shop-sidebar { display: none !important; }
    .shop-grid-page .shop-sort { display: none !important; }

    /* MOBILE NAV BAR */
    .mobile-nav-bar {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 10px 33px 22px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .mobile-nav-search {
        flex: 1;
        display: flex; align-items: center; gap: 8px;
        background: #f5f5f3;
        border: 1.5px solid #e5e7eb;
        border-radius: 9px; padding: 6px 20px;
    }
    .mobile-nav-submit,
    .mobile-nav-clear {
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #adb5bd;
        line-height: 1;
    }
    .mobile-nav-submit svg,
    .mobile-nav-clear svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
    .mobile-nav-submit { cursor: pointer; }
    .mobile-nav-clear { cursor: pointer; text-decoration: none; }
    .mobile-nav-submit:hover,
    .mobile-nav-clear:hover { color: #111; }
    .mobile-nav-search input { border: none; background: none; outline: none; font-size: 13px; color: #111; width: 100%; font-family: inherit; }
    .mobile-nav-search input::placeholder { color: #adb5bd; }
    .mobile-filter-btn {
        width: 38px; height: 38px; flex-shrink: 0;
        background: #fff; border: 1.5px solid #e5e7eb;
        border-radius: 9px; display: flex; align-items: center; justify-content: center;
        cursor: pointer; position: relative;
    }
    .mobile-filter-btn svg { width: 15px; height: 15px; stroke: #111; fill: none; stroke-width: 2; stroke-linecap: round; }
    .mobile-filter-dot {
        position: absolute; top: 6px; right: 6px;
        width: 6px; height: 6px; border-radius: 50%;
        background: #1a6b3c; border: 1.5px solid #fff;
    }

    /* CAT PILLS (tab style) */
    .mobile-cat-row {
        display: flex !important;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        padding: 0 12px;
        overflow-x: auto; scrollbar-width: none;
        gap: 0;
    }
    .mobile-cat-row::-webkit-scrollbar { display: none; }
    .mobile-cat-chip {
        padding: 11px 14px;
        margin-bottom: -1px;
        font-size: 12.5px; font-weight: 600; color: #6b7280;
        background: transparent; cursor: pointer;
        white-space: nowrap; flex-shrink: 0;
        text-decoration: none; display: flex; align-items: center; gap: 6px;
        transition: all 0.12s;
        position: relative;
    }
    .mobile-cat-chip::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: #111;
        opacity: 0;
    }
    .mobile-cat-chip.active { color: #111; }
    .mobile-cat-chip.active::after { opacity: 1; }
    .mobile-cat-chip .cnt {
        font-size: 10px; font-weight: 700;
        background: #f3f4f6; color: #adb5bd;
        padding: 1px 6px; border-radius: 10px;
    }
    .mobile-cat-chip.active .cnt { background: #111; color: #fff; }

    /* RESULTS BAR */
    .mobile-results-bar {
        display: flex !important;
        padding: 10px 14px;
        align-items: center; justify-content: space-between;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-results-count { font-size: 12px; color: #6b7280; font-weight: 500; }
    .mobile-results-count strong { color: #111; font-weight: 700; }
    .mobile-sort-btn {
        display: flex; align-items: center; gap: 5px;
        font-size: 12.5px; font-weight: 600; color: #111;
        background: none; border: none; cursor: pointer; font-family: inherit;
    }
    .mobile-sort-btn svg { width: 12px; height: 12px; stroke: #111; fill: none; stroke-width: 2; stroke-linecap: round; }

    /* GRID */
    .shop-grid-grid {
        padding: 10px 12px 24px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        background: #ffffff;
    }

    /* PRODUCT CARD MOVIL */
    .shop-grid-grid .home-ac-card {
        background: #fff !important;
        border: 1px solid #ebebeb !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
    }
    .shop-grid-grid .home-ac-img {
        width: 100% !important; aspect-ratio: 1/1 !important;
        background: #f5f5f5 !important; overflow: hidden !important;
        padding: 0 !important; position: relative !important;
        display: block !important;
    }
    .shop-grid-grid .home-ac-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
    .shop-grid-grid .home-ac-status {
        position: absolute; left: 7px; top: 7px;
        display: flex !important; align-items: center; gap: 4px;
        background: rgba(255,255,255,0.93) !important;
        border-radius: 20px; padding: 3px 8px;
        font-size: 9px !important; font-weight: 700 !important; color: #111 !important;
    }
    .shop-grid-grid .home-ac-status::before {
        content: '';
        width: 5px; height: 5px; border-radius: 50%; background: #1a6b3c;
        display: inline-block; flex-shrink: 0;
        animation: sgBlink 1.4s infinite;
    }
    @keyframes sgBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }
    /* hide the bullet inside the span since we use ::before */
    .shop-grid-grid .home-ac-status.live { background: rgba(255,255,255,0.93) !important; }

    .shop-grid-grid .home-ac-body {
        padding: 10px 10px 10px !important;
        display: flex !important; flex-direction: column !important; gap: 5px !important; flex: 1 !important;
    }
    .shop-grid-grid .home-ac-title {
        font-size: 12.5px !important; font-weight: 700 !important; color: #111 !important;
        line-height: 1.3 !important; margin: 0 !important;
        display: -webkit-box !important; -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
    }
    .shop-grid-grid .home-ac-title a { color: #111 !important; text-decoration: none !important; }
    .shop-grid-grid .home-ac-footer {
        display: flex !important; align-items: flex-end !important;
        justify-content: space-between !important; margin-top: auto !important;
    }
    .shop-grid-grid .home-ac-price small {
        display: block !important; font-size: 9.5px !important; color: #adb5bd !important;
        text-transform: uppercase !important; letter-spacing: 0.04em !important; margin-bottom: 1px !important;
    }
    .shop-grid-grid .home-ac-price strong {
        font-size: 14.5px !important; font-weight: 700 !important; color: #111 !important; letter-spacing: -0.02em !important;
    }
    /* Hide bid button on mobile */
    .shop-grid-grid .home-ac-btn { display: none !important; }
    /* Show heart button on mobile */
    .shop-grid-grid .card-heart-btn {
        display: flex !important; align-items: center; justify-content: center;
        width: 30px; height: 30px; flex-shrink: 0;
        background: #ffffff; border: 1px solid #e5e7eb;
        border-radius: 8px; cursor: pointer; padding: 0; margin: 0;
        transition: all 0.15s;
    }
    .shop-grid-grid .card-heart-btn svg { width: 13px; height: 13px; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: all 0.15s; }
    .shop-grid-grid .card-heart-btn.on svg { fill: #ef4444; stroke: #ef4444; }
    .shop-grid-grid .card-heart-btn:active { transform: scale(0.9); }

    /* EMPTY STATE */
    .shop-grid-page .shop-grid-empty { margin: 20px 18px !important; border-radius: 12px !important; padding: 28px !important; text-align: center !important; }

    /* PAGINATION MOVIL */
    .shop-grid-page .pagination-area { background: #ffffff !important; padding: 10px 18px 30px !important; margin: 0 !important; }
    .shop-grid-page .pagination-area .pagination { justify-content: center !important; gap: 4px !important; flex-wrap: wrap !important; }
    .shop-grid-page .pagination-area .page-item { margin: 0 !important; }
    .shop-grid-page .pagination-area .page-link { min-width: 35px !important; height: 35px !important; font-size: 13px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 7px !important; border: 1px solid #e8e8e8 !important; background: #fff !important; color: #666 !important; margin: 0 2px !important; }
    .shop-grid-page .pagination-area .page-item.active .page-link { background: #111 !important; border-color: #111 !important; color: #fff !important; }

    /* FILTER DRAWER */
    .mobile-filter-overlay {
        display: block !important;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1050;
        opacity: 0; pointer-events: none;
        transition: opacity 0.25s;
    }
    .mobile-filter-overlay.show { opacity: 1; pointer-events: all; }
    .mobile-filter-drawer {
        display: block !important;
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        z-index: 1051;
        transform: translateY(110%);
        transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
        max-height: 88vh; overflow-y: auto; scrollbar-width: none;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .mobile-filter-drawer::-webkit-scrollbar { display: none; }
    .mobile-filter-drawer.open { transform: translateY(0); }
    .drawer-handle { width: 36px; height: 4px; background: #e5e7eb; border-radius: 2px; margin: 12px auto 0; }
    .drawer-top { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
    .drawer-title { font-size: 15px; font-weight: 700; color: #111; }
    .drawer-clear-btn { font-size: 12px; font-weight: 600; color: #6b7280; background: none; border: none; cursor: pointer; font-family: inherit; }
    .drawer-section { padding: 18px 20px; border-bottom: 1px solid #f0f0f0; }
    .drawer-section:last-of-type { border-bottom: none; }
    .drawer-section-label { font-size: 10.5px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
    .drawer-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
    .drawer-cat-item:last-child { border-bottom: none; }
    .drawer-cat-left { display: flex; align-items: center; gap: 10px; }
    .drawer-cat-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #e5e7eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.12s; }
    .drawer-cat-check.checked { background: #111; border-color: #111; }
    .drawer-cat-check svg { width: 10px; height: 10px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; }
    .drawer-cat-name { font-size: 13.5px; font-weight: 500; color: #111; }
    .drawer-cat-count { font-size: 11px; color: #adb5bd; }
    .drawer-price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
    .drawer-price-box { flex: 1; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 6px; }
    .drawer-price-box input { border: none; outline: none; background: none; font-size: 14px; color: #111; width: 100%; font-family: inherit; }
    .drawer-price-sep { font-size: 14px; color: #adb5bd; flex-shrink: 0; }
    .drawer-pi-sym { font-size: 13px; color: #6b7280; }
    .drawer-apply-btn { display: block; margin: 16px 20px 0; width: calc(100% - 40px); padding: 13px; background: #1a6b3c; color: #fff; border: none; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
}

/* ──────────────────────────────────────────────────────────────
   Badge de estado sobre la imagen + Botón "Ver" si finalizada
   + Dots de color en el filtro lateral
────────────────────────────────────────────────────────────── */

.home-ac-img { position: relative; }

.home-ac-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(20, 28, 25, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    backdrop-filter: blur(2px);
    pointer-events: none;
    white-space: nowrap;
}
.home-ac-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}
.home-ac-badge.badge-live     { background: rgba(232, 113, 22, 0.92); color: #fff; }   /* naranja: activa */
.home-ac-badge.badge-upcoming { background: rgba(26, 122, 72, 0.92); color: #fff; }    /* verde: próxima */
.home-ac-badge.badge-finished { background: rgba(95, 102, 112, 0.85); color: #fff; }   /* gris: finalizada */

/* Tarjeta con auction finalizada: foto algo apagada */
.home-ac-card.is-ended .home-ac-img img { opacity: .7; filter: grayscale(0.25); }
.home-ac-btn.is-ended { background: #6b727a; }
.home-ac-btn.is-ended:hover { background: #4f555c; }

/* Dots de color en el filtro lateral "Estado de subasta" */
.shop-category-list .state-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.shop-category-list .dot-live     { background: #e87116; }
.shop-category-list .dot-upcoming { background: #1a7a48; }
.shop-category-list .dot-finished { background: #5f6670; }
