:root {
    --green-light: #E1FEC5;
    --green-soft: #CBEFB6;
    --green-main: #A0C6A9;
    --text-dark: #24322c;
    --muted: #7a8a82;
}

body {
    background-color: #f8fdf6;
}

/* Navbar */
.minefood-navbar {
    background-color: white;
    border-bottom: 2px solid var(--green-soft);
    transition: all 0.3s ease;
}

.minefood-navbar.scrolled {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.minefood-brand {
    color: var(--green-main);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.minefood-brand img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.minefood-brand:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.minefood-link {
    position: relative;
    transition: all 0.3s ease;
}

.minefood-link:hover {
    background-color: var(--green-light);
    color: var(--green-main) !important;
}

.btn-panier {
    background-color: var(--green-main);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-panier:hover {
    background-color: #8dbb9c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.badge-panier {
    background-color: white;
    color: var(--green-main);
    font-weight: 600;
}

/* Home */
.hero-section {
    background: linear-gradient(135deg, var(--green-soft), var(--green-main));
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-img {
    transition: transform 0.6s ease;
    border-radius: 30px;
}

.hero-img:hover {
    transform: scale(1.05);
}

.btn-custom {
    background-color: var(--green-main);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #88b89a;
    transform: translateY(-3px);
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    border-radius: 50px;
}

.btn-outline-custom:hover {
    background-color: white;
    color: var(--green-main);
}

.product-visual img {
    border-radius: 25px;
    transition: all 0.5s ease;
}

.product-visual img:hover {
    transform: scale(1.07);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.newsletter-box {
    background: var(--green-light);
    border-radius: 40px;
    padding: 60px 30px;
}

.fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Product list/detail */
.section-title {
    color: #2f4f3f;
}

.produit-card {
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.produit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.produit-img {
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.produit-card:hover .produit-img {
    transform: scale(1.08);
}

.badge-custom {
    background-color: var(--green-soft);
    color: #2f4f3f;
    border-radius: 50px;
    font-weight: 600;
    padding: 6px 14px;
}

.prix-produit {
    color: var(--green-main);
}

.btn-produit {
    background-color: var(--green-main);
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-produit:hover {
    background-color: #8dbb9c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.breadcrumb a {
    color: var(--green-main);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-image-box {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.product-image-box:hover {
    transform: translateY(-5px);
}

.product-image-box img {
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.product-image-box:hover img {
    transform: scale(1.05);
}

.badge-premium {
    background: var(--green-soft);
    color: #2f4f3f;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
}

.price-box {
    background: linear-gradient(135deg, var(--green-light), #ffffff);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-main {
    background: var(--green-main);
    color: white;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-main:hover {
    background: #8dbb9c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: white;
}

.btn-outline-main {
    border: 2px solid var(--green-main);
    color: var(--green-main);
    border-radius: 50px;
}

.btn-outline-main:hover {
    background-color: var(--green-main);
    color: white;
}

.quantity-input {
    border-radius: 50px;
    border: 2px solid var(--green-soft);
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Panier */
.panier-wrapper {
    background: #f8fdf6;
    padding: 4rem 1rem 5rem;
}

.panier-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

.panier-table thead {
    background: var(--green-light);
}

.panier-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.panier-table td {
    vertical-align: middle;
}

.produit-link {
    font-weight: 600;
    color: #1f2d27;
    text-decoration: none;
}

.produit-link:hover {
    color: var(--green-main);
}

.qty-input {
    max-width: 110px;
    border-radius: 50px;
    border: 2px solid var(--green-soft);
    text-align: center;
    font-weight: 600;
}

.btn-delete {
    border: none;
    background: transparent;
    color: #c96b6b;
    font-size: 0.9rem;
}

.btn-delete:hover {
    color: #a94444;
}

.recap-card {
    background: linear-gradient(135deg, var(--green-light), #ffffff);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.panier-vide {
    background: white;
    border-radius: 30px;
    padding: 4rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Paiement et retours */
.paiement-wrapper,
.retour-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fdf6;
    padding: 3rem 1rem;
}

.paiement-card,
.retour-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.paiement-card {
    max-width: 480px;
}

.spinner-border {
    color: #A0C6A9;
    width: 3rem;
    height: 3rem;
}

.paiement-card p,
.retour-card p {
    color: #7a8a82;
    margin-top: 0.5rem;
}

.paiement-card h2,
.retour-card h2 {
    font-weight: 700;
    color: #1f2d27;
}

.retour-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Commande */
.commande-wrapper {
    background: #f8fdf6;
    padding: 4rem 1rem 5rem;
    min-height: 70vh;
}

.commande-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 2.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2d27;
}

.form-control {
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(160, 198, 169, 0.2);
}

.form-check-input:checked {
    background-color: var(--green-main);
    border-color: var(--green-main);
}

.btn-outline-retour {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--muted);
    border: 1.5px solid #ddd;
    background: transparent;
    transition: 0.3s;
}

.btn-outline-retour:hover {
    background: #f0f0f0;
}

.alert-danger {
    border-radius: 15px;
    font-size: 0.88rem;
}

#bloc-livraison {
    transition: all 0.3s ease;
}

/* Footer */
.footer-modern {
    background-color: #ffffff;
    padding-top: 3rem;
    border-top: 1px solid var(--green-soft);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--green-main);
}

.social-link {
    color: var(--muted);
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.social-link:hover {
    color: var(--green-main);
    transform: translateY(-2px);
}
