/* === Styles pour la page Panier === */

/* --- États actifs et formulaires --- */
.choice-active {
    color: var(--white) !important;
    border-color: var(--brown) !important;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.choice-form {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(251, 111, 146, 0.06);
    max-width: 720px;
}

.choice-form .form-label {
    font-weight: 600;
}

.nb-note {
    font-size: 0.95rem;
    color: #6b6b6b;
    margin-bottom: 0.75rem;
}

/* --- Modal de paiement --- */
.payment-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(251, 111, 146, 0.15);
    background: linear-gradient(135deg, #fff 0%, #fef5f7 100%);
}

.payment-modal .modal-header {
    background: linear-gradient(135deg, #fb6f92 0%, #f8a5ba 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.payment-modal .modal-title {
    font-family: 'Lobster Two', cursive;
    font-size: 1.8rem;
    font-weight: 600;
}

.payment-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.payment-modal .modal-body {
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
}

.payment-modal .modal-body p {
    color: #6F4E37;
    font-size: 1.05rem;
    line-height: 1.6;
}

.payment-modal .modal-body ol {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.payment-modal .modal-body ol li {
    color: #6F4E37;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.payment-modal .modal-body strong {
    color: #fb6f92;
    font-weight: 600;
    background: #fef5f7;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.payment-modal .payment-icon {
    font-size: 3rem;
    color: #fb6f92;
    text-align: center;
    margin-bottom: 1rem;
}

.payment-modal .modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
    justify-content: center;
}

/* --- Bouton "Terminé" --- */
.payment-modal .btn-done {
    background: linear-gradient(135deg, #6F4E37 0%, #8B6F47 100%);
    color: white;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
}

.payment-modal .btn-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.4);
    background: linear-gradient(135deg, #8B6F47 0%, #6F4E37 100%);
}

/* --- Boutons de choix --- */
.btn-choice-collect {
    background: linear-gradient(135deg, #d4a574 0%, #c9956e 100%);
    color: white;
    border: 2px solid #d4a574;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
}

.btn-choice-collect:hover {
    background: linear-gradient(135deg, #c9956e 0%, #d4a574 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
    color: white;
}

.btn-choice-delivery {
    background: linear-gradient(135deg, #d4a574 0%, #c9956e 100%);
    color: white;
    border: 2px solid #d4a574;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
}

.btn-choice-delivery:hover {
    background: linear-gradient(135deg, #c9956e 0%, #d4a574 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
    color: white;
}

.btn-paiement {
    background: linear-gradient(135deg, #fb6f92 0%, #f8a5ba 100%);
    color: white;
    border: 2px solid #fb6f92;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-paiement:hover {
    background: linear-gradient(135deg, #f8a5ba 0%, #fb6f92 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 111, 146, 0.3);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .choice-form {
        padding: 1rem;
    }

    .payment-modal .modal-body {
        padding: 1.5rem;
    }

    .payment-modal .modal-title {
        font-size: 1.5rem;
    }
}

/* Responsive cart table - transforms into cards on mobile */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: visible !important;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody tr {
    display: block;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(251, 111, 146, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
  }
  
    .table tbody tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(135deg, #fb6f92 0%, #f8a5ba 50%, #d4a574 100%);
        opacity: 0.3;
        z-index: -1;

        /* Alternative au mask */
        pointer-events: none;
        box-sizing: border-box;
        overflow: hidden;
        background-clip: padding-box;
    }
  
  .table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(251, 111, 146, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  .table tbody td {
    display: block;
    text-align: left !important;
    border: none;
    padding: 0.75rem 0;
    min-width: auto !important;
  }
  
  .table tbody td:first-child {
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #fce4ec;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(251, 111, 146, 0.03) 0%, transparent 100%);
    padding: 1rem;
    border-radius: 12px;
  }
  
  .table tbody td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  
  .table tbody td:not(:first-child):hover {
    background: rgba(251, 111, 146, 0.02);
  }
  
  .table tbody td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 700;
    color: #6F4E37;
    margin-right: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
  }
  
  .table tbody td:nth-child(2)::before {
    content: "Quantité";
  }
  
  .table tbody td:nth-child(3)::before {
    content: "Prix";
  }
  
  .table tbody td:nth-child(4)::before {
    content: "Supprimer";
  }
  
  /* Enhanced product image and info on mobile */
  .table tbody td:first-child .d-flex {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .table tbody td:first-child img {
    width: 120px !important;
    height: 93px !important;
    margin-right: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(251, 111, 146, 0.15);
    border: 2px solid #fce4ec;
    transition: transform 0.3s ease;
  }
  
  .table tbody td:first-child img:hover {
    transform: scale(1.1);
  }
  
  .table tbody td:first-child strong {
    color: #6F4E37;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Lobster Two', cursive;
  }
  
  .table tbody td:first-child small {
    color: #fb6f92;
    font-weight: 600;
    background: #fef5f7;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
  }
  
  /* Enhanced quantity buttons */
  .table tbody td:nth-child(2) form {
    background: #fef5f7;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #fce4ec;
  }
  
  .table tbody td:nth-child(2) button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #fb6f92 !important;
    color: #fb6f92 !important;
    background: white !important;
    transition: all 0.2s ease;
  }
  
  .table tbody td:nth-child(2) button:hover {
    background: #fb6f92 !important;
    color: white !important;
    transform: scale(1.1);
  }
  
  .table tbody td:nth-child(2) span {
    font-weight: 700;
    color: #6F4E37;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
  }
  
  /* Enhanced price display */
  .table tbody td:nth-child(3) strong {
    color: #fb6f92;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fef5f7 0%, #fff 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 2px solid #fce4ec;
    display: inline-block;
  }
  
  /* Enhanced delete button */
  .table tbody td:nth-child(4) button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  }
  
  .table tbody td:nth-child(4) button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%) !important;
  }
  
  .table tbody td:nth-child(4) i {
    font-size: 1.1rem;
  }
}
