/* Regla global para envío gratis - aplicar a todos los tamaños */
.mobile-shipping-text {
    color: #FF5207 !important;
    font-weight: bold !important;
    font-style: italic !important;
}

/* Regla global para badges sin redondeo */
.mobile-badge {
    border-radius: 0 !important;
    /* Bordes rectos para todos los tamaños */
}

/* Espaciado general mejorado */
.mobile-product-col {
    padding: 2px;
    margin-bottom: 5px;
    /* Aumentado de 15px a 25px */
}

/* Estilos para móvil */
@media (max-width: 767.98px) {
    .mobile-badge {
        font-size: 12px;
        padding: 2px 6px;
    }

    .mobile-product-col {
        padding: 2px;
        margin-bottom: 5px;
    }

    .mobile-product-card {
        min-height: 240px;
        border: 1px solid #e0e0e0;
        margin: 0 2px;
    }

    .mobile-product-image {
        height: 160px;
        object-fit: contain;
        padding: 10px;
    }

    .mobile-card-body {
        padding: 6px 10px 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .mobile-badge-container {
        margin-bottom: 4px;
    }

    .mobile-price-container {
        flex-wrap: wrap;
        margin-bottom: 5px;
    }

    .mobile-main-price {
        font-size: 20px !important;
        font-weight: bold;
    }

    .mobile-discount {
        font-size: 16px !important;
        font-weight: normal;
    }

    .mobile-discount-amount span {
        font-size: 16px !important;
    }

    .mobile-spacer {
        height: 10px;
    }

    .mobile-shipping {
        margin-top: 2px;
    }

    .mobile-shipping-text {
        font-size: 14px !important;
    }

    /* Ocultar filtros en móvil */
    .filters {
        display: none;
    }

    /* Ajustar header en móvil */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Estilos para tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .mobile-product-col {
        padding: 2px;
        margin-bottom: 5px;
    }

    .mobile-product-card {
        min-height: 300px;
        /* Reducido de 350px */
    }

    .mobile-product-image {
        height: 200px;
        /* Reducido de 200px */
    }

    .mobile-shipping-text {
        font-size: 14px !important;
    }
}

/* Estilos desktop */
@media (min-width: 992px) {
    .mobile-badge {
        font-size: 14px;
        padding: 4px 10px;
    }

    .mobile-product-col {
        padding: 2px;
        /* Incrementado de 2px a 3px para más espacio lateral */
        margin-bottom: 5px;
        /* Incrementado de 25px a 35px para más espacio abajo */
    }

    .mobile-product-card {
        min-height: 320px;
        border: 1px solid #e0e0e0;
        margin: 0 2px;
    }

    .mobile-product-image {
        height: 300px;
        object-fit: contain;
    }

    .mobile-main-price {
        font-size: 25px !important;
    }

    .mobile-discount {
        font-size: 18px !important;
    }

    .mobile-discount-amount span {
        font-size: 18px !important;
    }

    .mobile-shipping-text {
        font-size: 1rem !important;
    }
}


/* Estilos para móvil */
@media (max-width: 767.98px) {

    /* Estilos de filtros móviles */
    .mobile-filters-container {
        margin: 0 10px;
    }

    .mobile-filters-panel {
        border: 1px solid #dee2e6;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background: white;
        border-radius: 8px;
        padding: 16px;
    }

    .mobile-categories-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mobile-price-form .form-control-sm {
        font-size: 13px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }

    /* Botón de filtros */
    .btn-outline-dark:hover {
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }

    /* Espaciado de filtros */
    .form-check-label {
        color: #555;
    }

    .btn-outline-secondary {
        border-color: #dee2e6;
        color: #555;
        border-radius: 4px;
    }

    .btn-outline-secondary:hover {
        background-color: #e9ecef;
        border-color: #dee2e6;
        color: #333;
    }
}

/* Nuevo estilo para sección de ofertas tipo marketplace */
.best-offers-grid {
    margin-left: 0;
    margin-right: 0;
}

.offer-card-link {
    text-decoration: none;
    color: inherit;
}

.offer-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: box-shadow 0.2s;
    min-height: 340px;
    padding: 0;
}

.offer-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.offer-img-wrap {
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    overflow: hidden;
}

.offer-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.2s;
}

.offer-card:hover .offer-img {
    transform: scale(1.05);
}

.offer-info {
    padding: 16px 14px 10px 14px;
}

.offer-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    min-height: 2.2em;
    max-height: 2.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offer-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.offer-old-price {
    color: #888;
    font-size: 15px;
    text-decoration: line-through;
}

.offer-new-price {
    color: #000;
    font-size: 22px;
    font-weight: bold;
}

.offer-discount-badge {
    color: #FF5207;
    font-size: 15px;
    font-weight: bold;
    font-style: italic;
}

.offer-discount {
    margin-bottom: 2px;
}

.offer-saved {
    color: #888;
    font-size: 13px;
}

.offer-shipping {
    color: #FF5207;
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
}

.offer-badge {
    margin-top: 8px;
}

.offer-badge span {
    background: #0d6efd;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.offer-see-all-link {
    color: #0d6efd;
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .offer-card {
        min-height: 260px;
    }

    .offer-img-wrap {
        height: 120px;
    }

    .offer-img {
        max-height: 90px;
    }

    .offer-info {
        padding: 10px 8px 8px 8px;
    }

    .offer-title {
        font-size: 13px;
        min-height: 2em;
        max-height: 2em;
    }

    .offer-new-price {
        font-size: 18px;
    }

    .offer-old-price {
        font-size: 12px;
    }

    .offer-discount-badge {
        font-size: 13px;
    }

    .offer-saved {
        font-size: 12px;
    }

    .offer-shipping {
        font-size: 12px;
    }

    .offer-badge span {
        font-size: 10px;
        padding: 2px 7px;
    }
}

@media (max-width: 1400px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 1200px) {

    .col-lg-2-4,
    .col-md-4 {
        flex: 0 0 33.3333%;
        max-width:
            33.3333%;
    }
}

@media (max-width: 992px) {

    .col-lg-2-4,
    .col-md-4,
    .col-sm-6 {
        flex: 0 0 50%;
        max-width:
            50%;
    }
}

@media (max-width: 768px) {

    .col-lg-2-4,
    .col-md-4,
    .col-sm-6 {
        flex: 0 0 100%;
        max-width:
            100%;
    }
}