/* ============================================
   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 - DETALLE DE PRODUCTO
   ======================================== */

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
}

/* Hero section con margen para separación del header */
section.py-3.py-md-5 {
    margin-top: 76px;
}

/* Botón volver */
.btn-outline-secondary {
    font-family: 'Quicksand', sans-serif;
    border-color: var(--light-green);
    color: var(--text-dark);
}

.btn-outline-secondary:hover {
    background-color: var(--light-green);
    color: white;
    border-color: var(--light-green);
}

/* Imagen del producto */
#productImage {
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: cover !important;
}

/* Badges del producto */
#productBadges .badge {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
}

.badge.bg-success {
    background-color: var(--light-green) !important;
    color: var(--primary-green) !important;
}

.badge.bg-warning {
    background-color: var(--mustard) !important;
    color: white !important;
}

/* Categoría */
#productCategory {
    font-family: 'CARONI', serif;
    background-color: var(--cream) !important;
    color: var(--primary-green) !important;
    font-weight: normal;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
}

/* Nombre del producto */
#productName {
    font-family: 'GROBOLD', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Precio y unidad */
#productPrice {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

#productUnit {
    font-family: 'Quicksand', sans-serif;
    color: #6c757d;
}

/* Descripción */
#productDescription {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #555;
}

/* Disponibilidad */
#productStock {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--primary-green);
}

/* Botón agregar al carrito */
.add-to-cart, .add-to-cart-detail {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.add-to-cart:hover, .add-to-cart-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.add-to-cart:active, .add-to-cart-detail:active {
    transform: translateY(0);
}

/* Información adicional */
.card.bg-light {
    background-color: var(--cream) !important;
    border: 1px solid rgba(45, 90, 39, 0.1);
    border-radius: 12px;
}

.card.bg-light h6 {
    font-family: 'CARONI', serif;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.card.bg-light ul {
    font-family: 'Quicksand', sans-serif;
}

.card.bg-light li {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card.bg-light i {
    color: var(--primary-green);
}

/* Productos relacionados */
#relatedProductsSection h3 {
    font-family: 'CARONI', serif;
    color: var(--primary-green);
    font-size: 1.5rem;
}

#relatedCount {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--light-green) !important;
    color: var(--primary-green) !important;
}

/* Tarjetas de productos relacionados */
#productosRelacionados .card {
    border: 1px solid rgba(45, 90, 39, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

#productosRelacionados .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.15);
    border-color: var(--light-green);
}

#productosRelacionados .card-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

#productosRelacionados .product-price {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1rem;
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */

/* Animación de pulso para botón agregado */
.btn-added {
    animation: pulse 0.6s ease;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green)) !important;
    border: none !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animación agregar al carrito */
.add-to-cart-animation {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    overflow: hidden;
    width: 50px;
    height: 50px;
}

.add-to-cart-animation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Notificación toast */
.cart-notification {
    position: fixed;
    top: 80px;
    right: -300px;
    background: var(--primary-green);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: right 0.3s ease-in-out;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    max-width: 300px;
}

.cart-notification.show {
    right: 20px;
}

/* Badge del carrito */
#cartCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--mustard);
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    transition: all 0.2s ease;
}

#cartCount.pulse {
    animation: cartPulse 0.3s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    #productImage {
        height: 320px !important;
    }
    
    #productName {
        font-size: 1.6rem;
    }
    
    #productPrice {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    section.py-3.py-md-5 {
        margin-top: 65px;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    #productImage {
        height: 240px !important;
    }
    
    #productName {
        font-size: 1.4rem;
    }
    
    #productPrice {
        font-size: 1.4rem;
    }
    
    #productDescription {
        font-size: 0.95rem;
    }
    
    .btn-outline-secondary {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    #productosRelacionados .card-title {
        font-size: 0.9rem;
    }
    
    #productosRelacionados img {
        height: 140px !important;
    }
}

@media (max-width: 575px) {
    #productImage {
        height: 200px !important;
    }
    
    #productName {
        font-size: 1.3rem;
    }
    
    #productPrice {
        font-size: 1.3rem;
    }
    
    #productosRelacionados img {
        height: 120px !important;
    }
    
    #productosRelacionados .card-title {
        font-size: 0.85rem;
    }
}