.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; pointer-events: none; }
.home-ac-status.live { background: #00674F; }
.home-ac-status.finished { background: #6b7280; }
.home-ac-status.upcoming { background: #d97706; }
.home-ac-btn-ended { background: #6b7280 !important; }
.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 #2d5016;
}

/* ── OCULTAR ELEMENTOS MÓVILES EN ESCRITORIO ── */
.mobile-filter-row,
.mobile-cat-row,
.mobile-results-bar {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   DISEÑO MÓVIL COMPLETO (max-width: 991px)
   Solo para dispositivos móviles - Escritorio queda igual
   ═══════════════════════════════════════════════════════════════ */

@media all and (max-width: 991px) {
    /* ── RESET GENERAL PARA MÓVIL ── */
    .shop-grid-page .shop-area {
        background: #f5f5f3 !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;
    }

    /* ── OCULTAR SIDEBAR EN MÓVIL ── */
    .shop-grid-page .shop-sidebar {
        display: none !important;
    }

    /* ── BREADCRUMB MÓVIL ── */
    .shop-grid-page .breadcrumb-area {
        padding: 10px 18px !important;
        font-size: 11.5px !important;
        color: #bbb !important;
        background: #fff !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin: 0 !important;
    }

    .shop-grid-page .breadcrumb-area .breadcrumb-item {
        font-size: 11.5px !important;
    }

    .shop-grid-page .breadcrumb-area .breadcrumb-item.active {
        color: #1a6b3a !important;
        font-weight: 500 !important;
    }

    /* ── OCULTAR SHOP-SORT DESKTOP ── */
    .shop-grid-page .shop-sort {
        display: none !important;
    }

    /* ── FILTER ROW MÓVIL ── */
    .mobile-filter-row {
        display: flex !important;
        background: #fff;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        padding: 0 18px;
        align-items: center;
        gap: 0;
    }

    .mobile-filter-pill {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 12px 14px 12px 0;
        font-size: 13px;
        color: #666;
        font-weight: 500;
        cursor: pointer;
        border: none;
        background: none;
        border-right: 1px solid #f0f0f0;
        margin-right: 14px;
        white-space: nowrap;
        transition: color 0.15s;
    }

    .mobile-filter-pill:last-child {
        border-right: none;
        margin-right: 0;
    }

    .mobile-filter-pill i {
        font-size: 11px;
        color: #bbb;
    }

    .mobile-filter-pill:hover {
        color: #111;
    }

    .mobile-filter-pill.active {
        color: #111;
        font-weight: 650;
    }

    .mobile-filter-pill.active i {
        color: #1a6b3a;
    }

    /* ── CATEGORY CHIPS ROW ── */
    .mobile-cat-row {
        display: flex !important;
        padding: 10px 18px;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-cat-row::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-chip {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 5px 12px;
        border-radius: 20px;
        border: 1px solid #e8e8e8;
        background: #fff;
        font-size: 12px;
        color: #555;
        white-space: nowrap;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.15s;
        flex-shrink: 0;
        text-decoration: none;
    }

    .mobile-cat-chip .cnt {
        font-size: 10.5px;
        color: #ccc;
    }

    .mobile-cat-chip.active {
        background: #111;
        border-color: #111;
        color: #fff;
    }

    .mobile-cat-chip.active .cnt {
        color: rgba(255, 255, 255, 0.5);
    }

    /* ── RESULTS BAR ── */
    .mobile-results-bar {
        display: flex !important;
        padding: 10px 18px;
        align-items: center;
        justify-content: space-between;
        background: #f5f5f3;
    }

    .mobile-results-count {
        font-size: 12px;
        color: #bbb;
    }

    .mobile-view-toggle {
        display: flex;
        gap: 4px;
    }

    .mobile-view-btn {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        border: 1px solid #e8e8e8;
        background: #fff;
        color: #ccc;
        font-size: 11px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
    }

    .mobile-view-btn.active {
        background: #111;
        border-color: #111;
        color: #fff;
    }

    /* ── GRID MÓVIL ── */
    .shop-grid-grid {
        padding: 4px 12px 24px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        background: #f5f5f3;
    }

    /* ── PRODUCT CARD MÓVIL ── */
    .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: #f0f0f0 !important;
        overflow: hidden !important;
        padding: 0 !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-body {
        padding: 10px 11px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        flex: 1 !important;
    }

    .shop-grid-grid .home-ac-title {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #111 !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !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: 10px !important;
        color: #bbb !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 1px !important;
    }

    .shop-grid-grid .home-ac-price strong {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111 !important;
        letter-spacing: -0.02em !important;
    }

    .shop-grid-grid .home-ac-btn {
        width: 32px !important;
        height: 32px !important;
        background: #111 !important;
        color: #fff !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        transition: background 0.15s !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    .shop-grid-grid .home-ac-btn i {
        display: inline !important;
        margin: 0 !important;
    }

    .shop-grid-grid .home-ac-btn .btn-text {
        display: none !important;
    }

    .shop-grid-grid .home-ac-btn:hover {
        background: #1a6b3a !important;
    }

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

    /* ── PAGINATION MÓVIL ── */
    .shop-grid-page .pagination-area {
        background: #f5f5f3 !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;
    }
}
