*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Contenedor Global para alineación */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ESTILOS DE LA PÁGINA DE DETALLE
   ========================================= */
.product-page-container {
    padding: 60px 0 100px 0; /* Espacio para el footer pegajoso */
    /* Fondo con textura de papel y color crema sutil */
    background-color: var(--bg-light); 
    background-image: url("images/paper-back.png");
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr; /* Columna de info un poco más ancha */
    gap: 50px;
    align-items: start;
}

/* --- Columna de Imagen --- */
.product-image-column {
    display: flex;
    justify-content: center;
}

.product-image-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: -10px 10px 25px rgba(0,0,0,0.06); /* Sombra negativa */
    position: relative;
    max-width: 450px;
}

.main-product-img {
    width: 100%;
    height: auto;
    display: block;
}

.weight-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: var(--font-rounded-book);
    font-size: 14px;
    color: #666;
}

/* --- Columna de Información --- */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cabecera */
.product-title {
    font-family: var(--font-rounded-bold);
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.product-tagline {
    font-family: var(--font-rounded-book);
    font-size: 16px;
    color: #666;
}

/* Precio */
.price-container {
    font-family: var(--font-rounded-bold);
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.currency { font-size: 18px; }
.price { font-size: 36px; }

/* Botones de Acción */
.action-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-add-cart {
    /* El degradado solicitado */
    background: linear-gradient(to bottom, #76b82a 0%, #2b4d06 100%);
    border: none;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 6px;
    font-family: var(--font-rounded-bold);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* Sombra negativa para profundidad */
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, filter 0.3s;
}

.btn-add-cart:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-continue-shopping {
    background-color: var(--white);
    color: #333;
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-rounded-bold);
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}

.btn-continue-shopping:hover {
    box-shadow: -8px 8px 18px rgba(0,0,0,0.3);
}

/* Atributos */
.product-attributes {
    display: flex;
    gap: 30px;
    font-family: var(--font-rounded-book);
    font-size: 14px;
    color: #555;
    align-items: center;
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaf-icon { color: #8cb85c; }
.ultraprocess-icon { color: #d0021b; font-size: 18px; }
.flag-icon { width: 20px; height: auto; }

/* Detalles Técnicos */
.product-tech-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.details-section h3,
.nutritional-section h3 {
    font-family: var(--font-rounded-bold);
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

/* Listas con checkmark */
.check-list {
    list-style: none;
    font-family: var(--font-rounded-book);
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Eliminamos la regla anterior que no cargaba el icono */
.check-list li::before {
    display: none;
}

/* Estilizamos el elemento de la lista para alinear el icono y el texto */
.check-list li {
    display: flex;
    align-items: flex-start; /* Alinea al inicio si el texto tiene varias líneas */
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Estilizamos el icono generado por el script de FontAwesome */
.check-list li svg, 
.check-list li i {
    color: #8cb85c; /* El verde suave del prototipo */
    font-size: 14px;
    margin-top: 3px; /* Pequeño ajuste para centrarlo con la primera línea de texto */
    flex-shrink: 0;  /* Evita que el icono se encoja si el texto es largo */
}

/* Sección Nutricional */
.serving-size {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.nutritional-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-rounded-book);
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.nutritional-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.nutritional-row span:last-child {
    font-family: var(--font-rounded-bold);
    color: #333;
}

.extra-info-list {
    list-style: none;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* =========================================
   ESTILOS DEL ADORNO DE HIERBA
   ========================================= */
.grass-decoration {
    width: 100%;
    position: relative;
    z-index: 2; /* Por encima del fondo, por debajo del footer */
    margin-bottom: -1px; /* Para asegurar que pisa el footer */
}

.grass-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    bottom: 85px;
}

/* =========================================
   ESTILOS DEL STICKY FOOTER
   ========================================= */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Translúcido sutil */
    backdrop-filter: blur(5px);
    border-top: 1px solid #ddd;
    padding: 20px 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

.sticky-footer-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

/* WhatsApp Advice */
.whatsapp-advice h2 {
    font-family: var(--font-rounded-bold);
    font-size: 20px;
    color: #333;
    margin-bottom: 3px;
}

.whatsapp-advice p {
    font-family: var(--font-rounded-book);
    font-size: 14px;
    color: #666;
}

/* Sticky Actions */
.sticky-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.sticky-actions .btn-add-cart {
    padding: 12px 25px;
    font-size: 14px;
}

.sticky-actions .btn-continue-shopping {
    padding: 12px 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.sticky-actions .btn-continue-shopping:hover {
    color: var(--green-brand);
}


/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .sticky-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .sticky-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-add-cart, .btn-continue-shopping {
        width: 100%;
        justify-content: center;
    }
}

.wa-container {
    align-items: center; /* Centra verticalmente el icono con el bloque de texto */
    justify-content: flex-start;
    gap: 15px; /* Espacio entre el icono y el texto */
    text-decoration: none;
    color: #555;
    font-family: 'MuseoSansRounded300', sans-serif;
}
