/* ============================================
   IMPORTACIÓN DE FUENTES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    /* ===== OFICIAL ===== */
    --primary-green: #156764;
    --light-green: #A7DBB7;
    --cream: #f9f7f1;
    --text-dark: #2c3e50;
    --white: #ffffff;

    /* ===== ACEPTADOS ===== */
    --mustard: #B7C909;
    --violet: #58256B;
}


/* ============================================
   ESTILOS BASE - TIENDA
   ============================================ */

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
}

/* Hero de Tienda - ANCHO COMPLETO */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 80px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.2);
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.hero-section .container {
    max-width: 100% !important;
    padding-left: 50px;
    padding-right: 50px;
}

.hero-section h1 {
    font-family: 'GROBOLD', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtros Sidebar */
.filter-sidebar .card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-sidebar h6 {
    font-family: 'CARONI', serif;
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
}

.list-group-item-action {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    padding: 0.5rem 0 !important;
    color: var(--text-dark);
    border: none !important;
}

.list-group-item-action:hover,
.list-group-item-action.active {
    color: var(--violet) !important;
    background: none !important;
    font-weight: 600;
}

.form-check-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
}

#priceValue {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--violet);
}

#sortSelect,
#searchInput,
.form-select,
.form-control {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

#clearFilters {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
}

#resultsCount {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
}

#sortSelect {
    border: 1px solid var(--light-green);
    border-radius: 6px;
}

/* ============================================
   PRODUCTOS - CARD
   ============================================ */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(45, 80, 22, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.15);
}

.product-card img {
    transition: transform 0.3s ease;
    object-fit: cover;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.card-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.product-price {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.product-unit {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    color: #777;
}

.btn-view-product {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    padding: 0.4rem 0.8rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.btn-view-product:hover {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    transform: translateY(-2px);
}

/* ============================================
   PROMOCIONES
   ============================================ */

.promo-card {
    border: 2px solid var(--mustard) !important;
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    box-shadow: 0 4px 15px rgba(230, 184, 77, 0.2) !important;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(230, 184, 77, 0.35) !important;
}

.promo-ribbon {
    position: absolute;
    top: 10px;
    right: -35px;
    background: linear-gradient(135deg, var(--mustard), var(--violet));
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: center;
}

/* ============================================
   PAGINACIÓN / LOAD MORE
   ============================================ */

.pagination .page-link {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-green);
    border: 1px solid var(--light-green);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.pagination .page-link:hover {
    background-color: var(--light-green);
    color: white;
}

/* ============================================
   RESPONSIVE - PANTALLAS GRANDES
   ============================================ */

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        padding: 120px 0 70px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
        max-width: 800px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .hero-section {
        padding: 140px 0 80px;
    }
    .hero-section h1 {
        font-size: 3.2rem;
    }
    .hero-section .lead {
        font-size: 1.3rem;
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    .hero-section {
        padding: 160px 0 90px;
    }
    .hero-section h1 {
        font-size: 3.8rem;
    }
    .hero-section .lead {
        font-size: 1.5rem;
        max-width: 1000px;
    }
}

/* ============================================
   RESPONSIVE - TABLET (max 991px)
   ============================================ */

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 40px;
        margin-top: 70px;
        border-radius: 0 0 20px 20px;
    }
    .hero-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL (max 767px)
   ============================================ */

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 30px;
        margin-top: 65px;
        border-radius: 0 0 15px 15px;
    }
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }

    /* Imagen de card más chica */
    .product-card img {
        height: 140px !important;
    }

    .card-title {
        font-size: 0.9rem;
    }

    /* ── BOTONES DE ACCIÓN ── */

    /* Precio compacto para dejar espacio a los botones */
    .product-card .product-price {
        font-size: 0.88rem !important;
    }
    .product-card .product-unit {
        font-size: 0.65rem !important;
    }

    /* El contenedor precio+botones no rompe línea */
    .product-card .d-flex.justify-content-between {
        gap: 4px;
        flex-wrap: nowrap;
        align-items: center;
    }

    /* El grupo de botones no se encoge */
    .product-card .d-flex.gap-1 {
        flex-shrink: 0;
    }

    /* Botones: cuadrado 28×28, solo ícono */
    .product-card .btn-sm {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL CHICO (max 575px)
   ============================================ */

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    /* Imagen aún más chica en pantallas muy pequeñas */
    .product-card img {
        height: 120px !important;
    }

    /* Botones ligeramente más chicos */
    .product-card .btn-sm {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 0.65rem;
    }

    .product-card .product-price {
        font-size: 0.82rem !important;
    }
}