/* ==========================================
   FEATURED PRODUCTS CAROUSEL
   ========================================== */
.featured-section {
    padding: 25px 5%;
    background: linear-gradient(135deg, #fffdf0 0%, #fff8e1 100%);
    border-bottom: 2px solid #ffe082;
}
.featured-title {
    color: #f57f17;
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.featured-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
    min-width: 220px;
    max-width: 240px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.15);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #ffd54f;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 127, 23, 0.25);
    border-color: #ffb300;
}
.featured-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #5d4037;
    font-size: 0.65em;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
    white-space: nowrap;
}
.featured-card .product-img-container {
    height: 180px;
    position: relative;
}
.featured-card .product-info {
    padding: 12px;
}
.featured-card .product-name {
    height: auto;
    min-height: 20px;
    font-size: 0.9em;
    margin-bottom: 6px;
}
.featured-price {
    color: #28a745;
    font-weight: 800;
    font-size: 1.1em;
    margin-bottom: 4px;
}
.featured-price-bs {
    color: #888;
    font-size: 0.75em;
    font-weight: 600;
}

/* ==========================================
   PRODUCT CARD ENHANCEMENTS
   ========================================== */
.card-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}
.badge-new {
    background: #dc3545;
    color: white;
    font-size: 0.6em;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.4);
}
.card-actions {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}
.card-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}
.card-action-btn:hover {
    transform: scale(1.15);
    background: white;
}
.card-action-btn.fav-btn.is-favorite {
    background: #dc3545;
    color: white;
}
.card-action-btn.fav-btn.is-favorite i {
    color: white;
}
.card-action-btn.share-btn {
    color: #128C7E;
}
.card-action-btn.fav-btn i {
    color: #dc3545;
    font-size: 0.85em;
}
.card-action-btn.fav-btn.is-favorite i {
    color: white;
}
.product-price-card {
    color: #28a745;
    font-weight: 800;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 2px;
}
.product-price-bs-card {
    color: #999;
    font-size: 0.7em;
    text-align: center;
    font-weight: 600;
}

/* ==========================================
   PRICE RANGE FILTER
   ========================================== */
.price-range-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.price-input-wrap {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 10px;
    transition: border-color 0.3s;
    flex: 1;
    min-width: 100px;
    max-width: 150px;
}
.price-input-wrap:focus-within { border-color: var(--azul); }
.price-input-wrap span {
    color: #999;
    font-weight: 700;
    font-size: 0.9em;
    margin-right: 4px;
}
.price-input-wrap input {
    border: none;
    outline: none;
    padding: 8px 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    background: transparent;
}

/* ==========================================
   MODAL ENHANCEMENT - FULL PRODUCT LINK
   ========================================== */
.btn-full-product {
    display: block;
    text-align: center;
    color: var(--azul);
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    padding: 10px;
    border: 2px solid var(--azul);
    border-radius: 25px;
    transition: all 0.3s;
    margin-bottom: 8px;
}
.btn-full-product:hover {
    background-color: var(--azul);
    color: white;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
    padding: 15px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--azul);
    padding: 0 10px;
}
.pagination a:hover {
    background: var(--azul);
    color: white;
    border-color: var(--azul);
}
.pagination span.current {
    background: var(--azul);
    color: white;
    border-color: var(--azul);
}
.pagination span.disabled {
    color: #ccc;
    border-color: #eee;
    background: #f9f9f9;
}

/* ==========================================
   PRODUCT COUNT INFO
   ========================================== */
.products-count {
    text-align: center;
    color: #888;
    font-size: 0.85em;
    margin-top: 10px;
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE - FEATURED & NEW STYLES
   ========================================== */
@media (max-width: 768px) {
    .featured-section { padding: 20px 4%; }
    .featured-title { font-size: 1.1em; text-align: left; justify-content: flex-start; }
    .featured-card { min-width: 180px; max-width: 200px; }
    .featured-card .product-img-container { height: 150px; }
    .featured-card .product-name { font-size: 0.82em; }
    .featured-price { font-size: 1em; }
    .card-action-btn { width: 26px; height: 26px; font-size: 0.75em; }
    .price-input-wrap { max-width: 120px; }
    .btn-full-product { font-size: 0.85em; padding: 8px; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 0.85em; }
}
@media (max-width: 380px) {
    .featured-card { min-width: 160px; max-width: 180px; }
    .featured-card .product-img-container { height: 130px; }
    .card-action-btn { width: 24px; height: 24px; font-size: 0.7em; }
}
