/* fallback.css - Styles pour le panier sans JavaScript */

.fallback-cart {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: #333;
}

/* Hero section */
.fallback-hero {
    background: linear-gradient(135deg, #7d2ae8, #d53a9d);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fallback-hero-content {
    max-width: 1024px;
    margin: 0 auto;
}

.fallback-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, #e2e2e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fallback-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.fallback-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contenu principal */
.fallback-main {
    padding: 4rem 1rem;
    background-color: #f9fafb;
}

.fallback-container {
    max-width: 1280px;
    margin: 0 auto;
}

.fallback-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .fallback-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Carte des articles */
.fallback-items-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.fallback-items-header {
    background: linear-gradient(135deg, #7d2ae8, #d53a9d);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fallback-items-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.fallback-items-list {
    padding: 1.5rem;
}

.fallback-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.fallback-item:first-child {
    padding-top: 0;
}

.fallback-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fallback-messages {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}
.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}
.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

@media (min-width: 768px) {
    .fallback-item {
        flex-direction: row;
        align-items: center;
    }
}

.item-image {
    width: 96px;
    height: 96px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.item-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.item-stock i {
    color: #9ca3af;
    font-size: 0.875rem;
}

.stock-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.stock-badge.in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.stock-badge.low-stock {
    background-color: #fef3c7;
    color: #92400e;
}

.stock-badge.out-of-stock {
    background-color: #fee2e2;
    color: #b91c1c;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.update-form {
    display: inline-block;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #7d2ae8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    padding: 0.25rem 0;
    background: white;
}

.remove-form {
    display: inline-block;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.remove-btn:hover {
    color: #b91c1c;
}

.item-prices {
    text-align: right;
}

.item-unit-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #7d2ae8;
}

.item-total-price {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Panier vide */
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline, .btn-checkout, .btn-continue, .btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #7d2ae8, #d53a9d);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(125, 42, 232, 0.3);
}

.btn-outline {
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
    background: transparent;
}

.btn-outline:hover {
    background: #7d2ae8;
    color: white;
}

/* Colonne récapitulatif */
.fallback-summary-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.summary-details {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #374151;
}

.summary-value {
    font-weight: 600;
}

.summary-value.savings {
    color: #10b981;
}

.summary-value .free {
    color: #10b981;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #7d2ae8;
    margin-bottom: 1.5rem;
}

.total-amount {
    font-size: 1.5rem;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-checkout, .btn-continue, .btn-clear {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.btn-checkout {
    background: linear-gradient(135deg, #7d2ae8, #d53a9d);
    color: white;
}

.btn-continue {
    background: white;
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
}

.btn-clear {
    background: #ef4444;
    color: white;
}

.btn-clear:hover {
    background: #dc2626;
}

.promo-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.promo-section h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input-group input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    cursor: not-allowed;
}

.promo-btn {
    background: #7d2ae8;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0 1rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.5;
}

.promo-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #4b5563;
}

.badge {
    text-align: center;
}

.badge i {
    display: block;
    font-size: 1.25rem;
    color: #10b981;
    margin-bottom: 0.25rem;
}
