
/* ===== CHECKOUT PAGE UBER EATS STYLE ===== */

:root {
--checkout-primary: #bc0101;
--checkout-secondary: #a80000;
}

* {
box-sizing: border-box;
}

html, body {
margin: 0;
padding: 0;
}

.checkout-container {
max-width: 100%;
margin: 0 auto;
padding: 20px 0 90px 0;
background: #ffffff;
min-height: 100vh;
display: flex;
flex-direction: column;
}

@media (min-width: 992px) {
.checkout-container {
max-width: 1400px;
margin: 0 auto;
padding: 20px 30px 40px 30px;
background: #ffffff;
}
}

@media (min-width: 1600px) {
.checkout-container {
max-width: 1600px;
}
}

/* ===== SECTIONS ===== */
.section-card {
background: white;
padding: 1.5rem;
margin: 1rem 0;
border-radius: 12px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ===== LAYOUT PANIER 2 COLONNES (sans compact) ===== */
.cart-layout { display: block; }
@media (min-width: 1024px) {
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
  }
  .cart-left { min-width: 0; }
  .cart-right { min-width: 0; }
  .sticky-summary { position: sticky; top: 90px; }
}

/* Boutons de validation: desktop vs mobile */
.summary-actions { margin-top: 1rem; }
.desktop-submit { 
    width: 100%; 
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Forcer l'affichage du bouton desktop avec btn-validate */
.btn-validate.desktop-submit {
    display: inline-flex !important;
}

@media (min-width: 1024px) { 
    .mobile-submit { display: none !important; } 
    .desktop-submit { display: inline-flex !important; }
    .btn-validate.desktop-submit { display: inline-flex !important; }
    #btn-confirm-order { display: inline-flex !important; }
    #btn-confirm-order.desktop-submit { display: inline-flex !important; }
}
@media (max-width: 1023px) { 
    .desktop-submit { display: none !important; } 
    .btn-validate.desktop-submit { display: none !important; }
    .mobile-submit { display: block !important; }
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}

.section-header h2 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: #333;
display: flex;
align-items: center;
gap: 0.5rem;
}

.modify-link {
color: var(--checkout-primary);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s;
}

.modify-link:hover {
text-decoration: underline;
}

.section-title {
margin: 0 0 1.5rem;
font-size: 1.1rem;
font-weight: 600;
color: #333;
display: flex;
align-items: center;
gap: 0.5rem;
}

.info-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
background: #e0e0e0;
border-radius: 50%;
font-size: 0.7rem;
color: #666;
margin-left: 0.5rem;
}

/* ===== MODES DE RÉCUPÉRATION ===== */
.delivery-options-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.delivery-option-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.25rem;
border: 2px solid #e0e0e0;
border-radius: 12px;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
background: white;
}

.delivery-option-item:hover {
border-color: var(--checkout-primary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.delivery-option-item input[type="radio"] {
display: none;
}

.delivery-option-item input[type="radio"]:checked + .option-radio-circle {
border-color: var(--checkout-primary);
background: var(--checkout-primary);
}

.delivery-option-item input[type="radio"]:checked ~ .option-icon {
color: var(--checkout-primary);
}

.option-radio-circle {
width: 24px;
height: 24px;
border: 2px solid #ddd;
border-radius: 50%;
flex-shrink: 0;
position: relative;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}

.option-radio-circle.checked::after {
content: '✓';
color: white;
font-size: 0.9rem;
font-weight: bold;
}

.option-icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 1.8rem;
color: var(--checkout-primary);
background: rgba(0, 217, 193, 0.1);
border-radius: 10px;
transition: all 0.2s;
}

.option-icon img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 8px;
}

.option-icon i {
font-size: 1.6rem;
}

.option-content {
flex: 1;
}

.option-content h3 {
margin: 0 0 0.25rem;
font-size: 1rem;
font-weight: 600;
color: #333;
}

.option-content p {
margin: 0.25rem 0;
font-size: 0.85rem;
color: #666;
line-height: 1.4;
}

.priority-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin-top: 0.5rem;
color: var(--checkout-primary);
font-size: 0.85rem;
font-weight: 500;
background: rgba(0, 217, 193, 0.1);
padding: 0.35rem 0.75rem;
border-radius: 20px;
}

.priority-badge i {
font-size: 0.75rem;
}

.option-price {
font-weight: 700;
font-size: 1.1rem;
color: var(--checkout-primary);
flex-shrink: 0;
}

/* ===== ARTICLES PANIER AVEC MINIATURES ===== */
.cart-items {
display: flex;
flex-direction: column;
gap: 0.85rem;
}

.cart-item {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 1.1rem 1.4rem;
border: 1px solid rgba(226, 232, 240, 0.6);
border-radius: 18px;
cursor: pointer;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
position: relative;
overflow: hidden;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
opacity: 0;
transform: translateY(20px);
animation: cartItemReveal 0.6s ease forwards;
animation-delay: var(--item-delay, 0s);
}

.cart-item::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(0, 217, 193, 0.08), rgba(0, 192, 170, 0.05));
opacity: 0;
transition: opacity 0.4s ease;
}

.cart-item:hover {
transform: translateY(-6px) scale(1.02);
border-color: rgba(14, 165, 233, 0.35);
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.cart-item:hover::after {
opacity: 1;
}

@keyframes cartItemReveal {
0% {
opacity: 0;
transform: translateY(25px) scale(0.97);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.item-image {
width: 80px;
height: 80px;
border-radius: 16px;
overflow: hidden;
flex-shrink: 0;
background: rgba(15, 23, 42, 0.04);
border: 1px solid rgba(226, 232, 240, 0.8);
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow: inset 0 4px 15px rgba(15, 23, 42, 0.08);
}

.item-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.cart-item:hover .item-image img {
transform: scale(1.08);
}

.item-image .item-qty {
position: absolute;
top: 6px;
left: 6px;
z-index: 2;
background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-secondary));
color: #fff;
border-radius: 999px;
padding: 0.3rem 0.6rem;
font-size: clamp(0.78rem, 0.9vw, 0.95rem);
font-weight: 800;
line-height: 1;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
border: 2px solid rgba(255,255,255,0.95);
text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
.item-image .item-qty {
top: 4px;
left: 4px;
padding: 0.28rem 0.5rem;
font-size: 0.8rem;
}
}

.item-details {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.35rem;
}

.item-details h3 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #0f172a;
display: flex;
align-items: center;
gap: 0.5rem;
}

.item-details h3::after {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(15, 23, 42, 0.15);
display: inline-block;
}

.item-meta {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
align-items: center;
font-size: 0.82rem;
color: #475569;
}

.item-unit-price {
background: rgba(14, 165, 233, 0.1);
color: #0284c7;
padding: 0.25rem 0.65rem;
border-radius: 999px;
font-weight: 600;
}

.item-category {
background: rgba(15, 23, 42, 0.07);
color: #1e293b;
padding: 0.25rem 0.65rem;
border-radius: 999px;
font-weight: 600;
}

.item-price {
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.25rem;
}

.item-price span {
font-size: 1.2rem;
font-weight: 800;
background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.item-price small {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: #94a3b8;
}

/* ===== SUGGESTIONS AVEC IMAGES ===== */
.suggestions-section {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid #f0f0f0;
}

.suggestions-title {
font-size: 0.9rem;
color: #888;
margin-bottom: 1rem;
font-weight: 500;
}

.suggestions-scroll {
display: flex;
gap: 1rem;
overflow-x: auto;
padding-bottom: 0.5rem;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}

.suggestions-scroll::-webkit-scrollbar {
height: 6px;
}

.suggestions-scroll::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 3px;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
background: #ddd;
border-radius: 3px;
}

.suggestions-scroll::-webkit-scrollbar-thumb:hover {
background: #999;
}

.suggestion-item {
min-width: 130px;
background: white;
border: 1px solid #e8e8e8;
border-radius: 10px;
padding: 1rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}

.suggestion-item:hover {
border-color: var(--checkout-primary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
}

.suggestion-item img {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 0.75rem;
background: #f5f5f5;
border: 1px solid #e8e8e8;
}

.suggestion-item h4 {
font-size: 0.85rem;
font-weight: 600;
margin: 0 0 0.35rem;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 1.3;
}

.sugg-price {
font-size: 0.9rem;
color: var(--checkout-primary);
margin: 0.35rem 0 0.75rem;
font-weight: 600;
}

.add-suggestion-btn {
background: var(--checkout-primary);
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: white;
font-size: 1.2rem;
transition: all 0.2s;
font-weight: bold;
margin-top: auto;
}

.add-suggestion-btn:hover {
background: var(--checkout-secondary);
transform: scale(1.1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-suggestion-btn:active {
transform: scale(0.95);
}

/* ===== TOTAUX ===== */
.totals-section {
display: flex;
flex-direction: column;
gap: 0;
}

.total-row {
display: flex;
justify-content: space-between;
padding: 0.875rem 0;
font-size: 0.95rem;
color: #666;
border-bottom: 1px solid #f0f0f0;
}

.total-row:last-child {
border-bottom: none;
}

.total-final {
border-top: 2px solid var(--checkout-primary);
margin-top: 0.5rem;
padding-top: 1rem;
font-size: 1.2rem;
font-weight: 700;
color: #333;
}

.total-final span:last-child {
color: var(--checkout-primary);
}

/* ===== BOUTON BAS ===== */
.bottom-action-bar {
position: relative;
background: white;
padding: 1rem;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
border-top: 1px solid #f0f0f0;
}

.validate-btn {
width: 100%;
background: var(--checkout-primary);
color: white;
border: none;
padding: 1rem;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.validate-btn:hover {
background: var(--checkout-secondary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}

.validate-btn:disabled {
background: #ccc;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

/* ===== POPUP QUANTITÉ ===== */
.quantity-popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
display: none;
align-items: flex-end;
justify-content: center;
animation: fadeIn 0.2s ease;
}

.quantity-popup-overlay.active {
display: flex;
z-index: 1051;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.quantity-popup {
background: white;
width: 100%;
max-width: 600px;
border-radius: 16px 16px 0 0;
padding: 1.5rem;
animation: slideUp 0.3s ease;
position: relative;
bottom: 0;
max-height: 90vh;
overflow-y: auto;
}

@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}

.popup-header {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
align-items: flex-start;
}

.popup-product-img {
width: 80px;
height: 80px;
border-radius: 10px;
overflow: hidden;
background: #f5f5f5;
flex-shrink: 0;
border: 1px solid #e8e8e8;
display: flex;
align-items: center;
justify-content: center;
}

.popup-product-img img {
width: 100%;
height: 100%;
object-fit: cover;
}

.popup-product-details {
flex: 1;
}

.popup-product-details h3 {
margin: 0 0 0.5rem;
font-size: 1.2rem;
font-weight: 600;
color: #333;
}

.popup-product-details p {
margin: 0;
font-size: 0.95rem;
color: #666;
}

.popup-close {
background: #f5f5f5;
border: none;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #666;
flex-shrink: 0;
transition: all 0.2s;
}

.popup-close:hover {
background: #e8e8e8;
color: #333;
}

.quantity-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
margin: 2rem 0;
padding: 1.5rem;
background: #f9f9f9;
border-radius: 10px;
}

.qty-btn {
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--checkout-primary);
color: white;
border: none;
font-size: 1.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
font-weight: bold;
}

.qty-btn:hover:not(:disabled) {
background: var(--checkout-secondary);
transform: scale(1.08);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qty-btn:disabled {
background: #ccc;
cursor: not-allowed;
transform: none;
}

.qty-value {
font-size: 2.2rem;
font-weight: 700;
min-width: 80px;
text-align: center;
color: #333;
}

.popup-total {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem;
background: rgba(0, 217, 193, 0.1);
border-radius: 10px;
margin-bottom: 1.5rem;
font-size: 1rem;
}

.popup-total strong {
color: var(--checkout-primary);
font-size: 1.5rem;
}

.popup-actions {
display: flex;
gap: 1rem;
}

.popup-actions button {
flex: 1;
padding: 1rem;
border-radius: 10px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s;
border: none;
}

.btn-delete {
background: white;
border: 2px solid #ff4444;
color: #ff4444;
}

.btn-delete:hover {
background: #ff4444;
color: white;
box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
}

.btn-delete:active {
transform: scale(0.98);
}

.btn-confirm {
background: var(--checkout-primary);
border: none;
color: white;
}

.btn-confirm:hover {
background: var(--checkout-secondary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm:active {
transform: scale(0.98);
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (min-width: 768px) {
.checkout-header {
position: static;
border-bottom: 2px solid #f0f0f0;
}

.bottom-action-bar {
position: static;
box-shadow: none;
border-top: 2px solid #f0f0f0;
}

.quantity-popup-overlay {
align-items: center;
justify-content: center;
}

.quantity-popup {
max-width: 500px;
border-radius: 16px;
}

.suggestion-item {
min-width: 140px;
}
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
.checkout-header h1 {
font-size: 1.3rem;
}

.section-header h2,
.section-title {
font-size: 1.2rem;
}

.option-content h3,
.item-details h3 {
font-size: 1.1rem;
}
}

@media (max-width: 767px) {
body {
padding-bottom: 80px;
}

.section-card {
margin: 0.75rem 0;
padding: 1.25rem;
}

.delivery-option-item {
padding: 1rem;
gap: 0.75rem;
}

.option-icon {
width: 40px;
height: 40px;
font-size: 1.5rem;
}

.option-content h3 {
font-size: 0.95rem;
}

.item-image {
width: 60px;
height: 60px;
}

.popup-quantity {
border-radius: 20px 20px 0 0;
}

.quantity-controls {
gap: 1.5rem;
}

.qty-btn {
width: 48px;
height: 48px;
font-size: 1.2rem;
}

.qty-value {
font-size: 1.8rem;
}
}
/* ===== SYSTÈME VOIR PLUS MODES ===== */
.delivery-option-item.extra-mode {
display: none;
}

.delivery-option-item.extra-mode.show {
display: flex;
animation: slideDown 0.3s ease;
}

@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.show-more-modes {
width: 100%;
padding: 0.75rem;
background: transparent;
border: 2px dashed #e0e0e0;
border-radius: 10px;
color: #666;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.show-more-modes:hover {
border-color: var(--checkout-primary);
color: var(--checkout-primary);
background: rgba(0, 217, 193, 0.05);
}

.show-more-modes i {
transition: transform 0.3s ease;
}

.show-more-modes.expanded i {
transform: rotate(180deg);
}

/* ===== MODES DE RÉCUPÉRATION COMPACT - UN SEUL ÉLÉMENT - STYLE MODAL ===== */
.delivery-section-compact {
margin-top: 0 !important;
}

.delivery-option-single {
width: 100%;
background: transparent;
border: none;
padding: 0;
cursor: pointer;
transition: all 0.3s ease;
}

.delivery-option-single .modal-option-content {
flex: 1;
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
border: 2px solid #e50914;
border-radius: 10px;
transition: all 0.2s ease;
background: white;
text-align: left;
}

.delivery-option-single:hover .modal-option-content {
border-color: var(--checkout-primary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== MODAL DE RÉCUPÉRATION ===== */
.delivery-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
display: none;
align-items: flex-end;
justify-content: center;
animation: fadeIn 0.2s ease;
}

.delivery-modal-overlay.active {
display: flex;
z-index: 1051;
}

.delivery-modal {
background: white;
width: 100%;
max-width: 600px;
border-radius: 16px 16px 0 0;
padding: 0;
animation: slideUp 0.3s ease;
position: relative;
max-height: 90vh;
overflow-y: auto;
display: flex;
flex-direction: column;
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid #f0f0f0;
position: sticky;
top: 0;
background: white;
}

.modal-header h2 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
color: #333;
}

.modal-close {
background: none;
border: none;
font-size: 1.5rem;
color: #666;
cursor: pointer;
padding: 0.5rem;
transition: color 0.2s;
}

.modal-close:hover {
color: #333;
}

.modal-modes-list {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
flex: 1;
overflow-y: auto;
}

.modal-delivery-option {
display: flex;
align-items: center;
cursor: pointer;
}

.modal-delivery-option input[type="radio"] {
display: none;
}

.modal-option-content {
flex: 1;
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
border: 2px solid #e0e0e0;
border-radius: 10px;
transition: all 0.2s ease;
}

.modal-delivery-option input[type="radio"]:checked ~ .modal-option-content {
border-color: var(--checkout-primary);
background: white;
}

.modal-option-icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
flex-shrink: 0;
}

.modal-option-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}

.modal-option-info {
flex: 1;
}

.modal-option-info h3 {
margin: 0 0 0.25rem;
font-size: 1rem;
font-weight: 600;
color: #333;
}

.modal-option-info p {
margin: 0.25rem 0 0;
font-size: 0.85rem;
color: #666;
line-height: 1.3;
}

.modal-delay {
display: block;
margin-top: 0.5rem;
font-size: 0.8rem;
color: var(--checkout-primary);
font-weight: 500;
}

.modal-option-price {
font-weight: 700;
font-size: 1.1rem;
color: var(--checkout-primary);
flex-shrink: 0;
}

.modal-actions {
padding: 1rem;
border-top: 1px solid #f0f0f0;
background: white;
}

.modal-confirm-btn {
width: 100%;
background: var(--checkout-primary);
color: white;
border: none;
padding: 1rem;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.modal-confirm-btn:hover {
background: var(--checkout-secondary);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}

.modal-confirm-btn:disabled {
background: #ccc;
cursor: not-allowed;
transform: none;
}

/* ===== AFFICHAGE DES PRODUITS EN PROMO ===== */

.item-promo-info {
margin-top: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.original-price {
font-size: 0.8rem;
color: #999;
}

.savings {
font-size: 0.85rem;
color: #ff6b35;
font-weight: 600;
}



/* ===== PAGE PANIER VIDE - VERSION DYNAMIQUE ===== */
.empty-cart-container {
min-height: 60vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
text-align: center;
position: relative;
overflow: hidden;
}

.empty-cart-container::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, #bc010120 1px, transparent 1px);
background-size: 50px 50px;
animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}

.empty-cart-icon {
font-size: 120px;
color: #bc0101;
margin-bottom: 30px;
position: relative;
z-index: 1;
animation: iconBounce 2s ease-in-out infinite;
filter: drop-shadow(0 10px 20px #bc010150);
}

@keyframes iconBounce {
0%, 100% {
transform: translateY(0px) scale(1);
}
25% {
transform: translateY(-15px) scale(1.05);
}
50% {
transform: translateY(-25px) scale(1.1) rotate(-5deg);
}
75% {
transform: translateY(-15px) scale(1.05) rotate(5deg);
}
}

.empty-cart-title {
font-size: 32px;
font-weight: 800;
background: linear-gradient(135deg, #bc0101 0%, #a80000 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 15px;
position: relative;
z-index: 1;
animation: titleSlide 1s ease-out;
}

@keyframes titleSlide {
0% {
opacity: 0;
transform: translateY(-30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

.empty-cart-subtitle {
font-size: 18px;
color: #5a6c7d;
margin-bottom: 40px;
max-width: 400px;
position: relative;
z-index: 1;
animation: subtitleFade 1.2s ease-out;
}

@keyframes subtitleFade {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

.empty-cart-actions {
display: flex;
gap: 15px;
margin-bottom: 60px;
flex-wrap: wrap;
justify-content: center;
position: relative;
z-index: 1;
animation: actionsFade 1.5s ease-out;
}

@keyframes actionsFade {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}

.btn-browse-products,
.btn-back-home {
padding: 16px 32px;
border-radius: 50px;
font-size: 16px;
font-weight: 700;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 12px;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}

.btn-browse-products::before,
.btn-back-home::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}

.btn-browse-products:hover::before,
.btn-back-home:hover::before {
width: 300px;
height: 300px;
}

.btn-browse-products {
background: linear-gradient(135deg, #bc0101 0%, #a80000 100%);
color: white;
box-shadow: 0 10px 30px #bc010150;
border: none;
}

.btn-browse-products:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 15px 40px #bc010170;
}

.btn-browse-products:active {
transform: translateY(-2px) scale(1.02);
}

.btn-back-home {
background: white;
color: #bc0101;
border: 3px solid #bc0101;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-back-home:hover {
background: #bc010110;
transform: translateY(-5px) scale(1.05);
box-shadow: 0 10px 30px #bc010130;
}

.btn-back-home:active {
transform: translateY(-2px) scale(1.02);
}

/* ===== SECTION PRODUITS POPULAIRES ===== */
.popular-products-section {
width: 100%;
max-width: 1200px;
margin-top: 60px;
position: relative;
z-index: 1;
animation: sectionSlideUp 1.8s ease-out;
}

@keyframes sectionSlideUp {
0% {
opacity: 0;
transform: translateY(50px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

.popular-title {
font-size: 28px;
font-weight: 800;
color: #2c3e50;
margin-bottom: 35px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}

.popular-title i {
color: #ff6b6b;
font-size: 32px;
animation: firePulse 1.5s ease-in-out infinite;
}

@keyframes firePulse {
0%, 100% {
transform: scale(1) rotate(0deg);
filter: drop-shadow(0 0 5px #ff6b6b);
}
50% {
transform: scale(1.2) rotate(-10deg);
filter: drop-shadow(0 0 15px #ff6b6b);
}
}

.popular-products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 25px;
padding: 0 20px;
}

.popular-product-card {
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: pointer;
position: relative;
animation: cardFadeIn 0.6s ease-out backwards;
}

.popular-product-card:nth-child(1) { animation-delay: 0.1s; }
.popular-product-card:nth-child(2) { animation-delay: 0.2s; }
.popular-product-card:nth-child(3) { animation-delay: 0.3s; }
.popular-product-card:nth-child(4) { animation-delay: 0.4s; }
.popular-product-card:nth-child(5) { animation-delay: 0.5s; }
.popular-product-card:nth-child(6) { animation-delay: 0.6s; }
.popular-product-card:nth-child(7) { animation-delay: 0.7s; }
.popular-product-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes cardFadeIn {
0% {
opacity: 0;
transform: translateY(30px) scale(0.9);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.popular-product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #bc010120 0%, #a8000020 100%);
opacity: 0;
transition: opacity 0.4s;
z-index: 1;
}

.popular-product-card:hover::before {
opacity: 1;
}

.popular-product-card:hover {
transform: translateY(-10px) scale(1.03);
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.popular-product-image {
width: 100%;
height: 220px;
overflow: hidden;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
position: relative;
}

.popular-product-image::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
transition: left 0.6s;
}

.popular-product-card:hover .popular-product-image::after {
left: 200%;
}

.popular-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popular-product-card:hover .popular-product-image img {
transform: scale(1.15) rotate(2deg);
}

.popular-product-info {
padding: 18px;
position: relative;
z-index: 2;
}

.popular-product-info h3 {
font-size: 16px;
font-weight: 700;
color: #2c3e50;
margin-bottom: 10px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 45px;
transition: color 0.3s;
}

.popular-product-card:hover .popular-product-info h3 {
color: #bc0101;
}

.product-category {
display: inline-block;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #bc0101;
background: #bc010115;
padding: 5px 12px;
border-radius: 20px;
margin-bottom: 12px;
transition: all 0.3s;
}

.popular-product-card:hover .product-category {
background: #bc0101;
color: white;
transform: scale(1.05);
}

.popular-product-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
}

.product-price {
font-size: 20px;
font-weight: 800;
background: linear-gradient(135deg, #bc0101 0%, #a80000 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.btn-add-quick {
width: 45px;
height: 45px;
border-radius: 50%;
background: linear-gradient(135deg, #bc0101 0%, #a80000 100%);
color: white;
border: none;
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 5px 15px #bc010140;
position: relative;
overflow: hidden;
}

.btn-add-quick::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}

.btn-add-quick:hover::before {
width: 100px;
height: 100px;
}

.btn-add-quick:hover {
transform: scale(1.2) rotate(180deg);
box-shadow: 0 8px 25px #bc010160;
}

.btn-add-quick:active {
transform: scale(1.1) rotate(180deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.empty-cart-icon {
font-size: 90px;
}

.empty-cart-title {
font-size: 26px;
}

.empty-cart-subtitle {
font-size: 15px;
}

.empty-cart-actions {
flex-direction: column;
width: 100%;
max-width: 320px;
}

.btn-browse-products,
.btn-back-home {
width: 100%;
justify-content: center;
}

.popular-title {
font-size: 22px;
}

.popular-products-grid {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 15px;
padding: 0 15px;
}

.popular-product-image {
height: 160px;
}

.popular-product-info {
padding: 12px;
}

.popular-product-info h3 {
font-size: 14px;
min-height: 38px;
}

.product-price {
font-size: 17px;
}

.btn-add-quick {
width: 40px;
height: 40px;
font-size: 18px;
}
}

@media (max-width: 480px) {
.empty-cart-container {
padding: 30px 15px;
}

.empty-cart-icon {
font-size: 70px;
}

.empty-cart-title {
font-size: 22px;
}

.popular-products-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
padding: 0 10px;
}
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-browse-products:hover i,
.btn-back-home:hover i {
animation: shake 0.5s;
}

/* Effet de brillance sur les cards */
@keyframes shine {
0% { left: -100%; }
100% { left: 100%; }
}


/* Section card – rendu premium */
.section-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.section-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
  border-color: rgba(226, 232, 240, 0.9);
}

.section-title {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(231, 76, 60, 0.2);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 130px;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 3px;
  animation: sectionTitleLine 0.6s ease-out;
}

@keyframes sectionTitleLine {
  0% { width: 0; opacity: 0; }
  100% { width: 130px; opacity: 1; }
}

/* Contenu interne mieux aéré */
.section-card > .totals-section,
.section-card > .cart-items,
.section-card > .suggestions-section {
  margin-top: 1rem;
}

/* Version compacte mobile */
@media (max-width: 767px) {
  .section-card {
    margin: .75rem 0;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }
  .section-title {
    font-size: 1.05rem;
    padding-bottom: .6rem;
  }
  .section-title::after {
    width: 90px;
    height: 2px;
  }
}