/* assets/css/style.css */
:root {
    --primary-color: #2e7d32;
    --accent-color: #66bb6a;
    --bg-light: #f1f8e9;
    --text-dark: #37474f;
}
body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    color: var(--text-dark);
}
.text-primary-custom { color: var(--primary-color); }
.bg-primary-custom { background-color: var(--primary-color); color: white; }

/* Productos */
.product-card {
    border: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background-color: #ffffff;
}
.product-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: opacity 0.4s ease-in-out;
}
.img-hover { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover { box-shadow: 0 10px 20px rgba(46, 125, 50, 0.15); transform: translateY(-2px); }

/* Buscador */
.hero-search {
    background: var(--bg-light);
    padding: 2.5rem 0;
    border-bottom: 1px solid #dcedc8;
}
.search-input {
    height: 55px;
    font-size: 1.1rem;
    border-radius: 30px 0 0 30px;
    border: 2px solid #a5d6a7;
    border-right: none;
}
.search-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.search-btn {
    border-radius: 0 30px 30px 0;
    padding-left: 30px;
    padding-right: 30px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}
.search-btn:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

/* Carrusel */
.carousel-item { height: 500px; }
@media (max-width: 768px) {
    .carousel-item { height: 400px; }
}
.carousel-item img { object-fit: cover; height: 100%; width: 100%; filter: brightness(0.9); }
.carousel-caption { background: rgba(0,0,0,0.4); border-radius: 10px; padding: 20px; }

/* Botones */
.btn-irisana {
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-weight: 500;
}
.btn-irisana:hover { background-color: var(--primary-color); color: white; }
.btn-outline-irisana {
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    background: white;
}
.btn-outline-irisana:hover {
    background: var(--accent-color);
    color: white;
}

/* Footer */
footer { background-color: #1b5e20; color: #e8f5e9; padding: 4rem 0; }
footer a { color: #a5d6a7; text-decoration: none; transition: 0.2s; }
footer a:hover { color: white; text-decoration: underline; }
footer h5 { color: white; font-weight: bold; margin-bottom: 1.5rem; }

/* Blog */
.blog-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: var(--bs-card-border-radius);
    border-top-right-radius: var(--bs-card-border-radius);
}

/* Lang Switcher */
.lang-btn { cursor: pointer; font-weight: bold; opacity: 0.6; color: var(--primary-color); text-decoration: none; }
.lang-btn.active { opacity: 1; text-decoration: underline; }
.lang-btn:hover { opacity: 1; }
.carousel-caption {
    background: rgba(0,0,0,0.45); /* mellora lexibilidade */
    padding: 1rem;
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    .carousel-caption {
        position: absolute;
        bottom: 10%;
        left: 5%;
        right: 5%;
        font-size: 0.9rem;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}
/* Engadir ao final de style.css */
.badge-irisana {
    background-color: #d32f2f !important; /* Vermello intenso */
    color: white !important;
    font-size: 0.75rem; /* Un pouco máis pequeno para que caiba ben */
    border: 1px solid white; /* Borde branco para separalo do botón */
}