/* === CART POPUP === */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-popup-overlay.active {
    display: flex;
}

.cart-popup {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    animation: cartPopupSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes cartPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
}

/* === CART INFO === */
.cart-debug-info {
    background: #f0f8ff;
    border: 1px solid #0066cc;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #1e40af;
}

/* Mode sombre - Cart info avec fond noir */
html[data-theme="dark"] .cart-debug-info {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

/* === SHARE DROPDOWN === */
.share-dropdown {
    position: relative;
    margin-bottom: 1rem;
}

.cart-share-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cart-share-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cart-share-btn .share-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.share-dropdown.open .cart-share-btn .share-arrow {
    transform: rotate(180deg);
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    z-index: 100;
    display: none;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.share-menu.show {
    display: block;
    animation: shareMenuSlideIn 0.2s ease;
}

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

.share-option {
    width: 100%;
    background: none;
    border: none;
    padding: 0.875rem 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.share-option:last-child {
    border-bottom: none;
}

.share-option:hover {
    background: #f8fafc;
    color: #1f2937;
}

.share-option svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.share-option:first-child svg {
    stroke: #3b82f6;
}

.share-option:nth-child(2) svg {
    color: #25d366;
}

.share-option:nth-child(3) svg {
    color: #1877f2;
}

.share-option:nth-child(4) svg {
    color: #1da1f2;
}

.share-option:last-child svg {
    stroke: #6b7280;
}

.cart-popup-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.cart-popup-content {
    text-align: center;
}

.cart-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.cart-popup-text {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cart-form {
    text-align: left;
}

.cart-form .form-group {
    margin-bottom: 1.25rem;
}

.cart-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9375rem;
}

.cart-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
}

.cart-form input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.cart-form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* === CART PAGE === */
.cart-page {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Code banner styles */
.cart-code-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-code-info {
    flex: 1;
    min-width: 200px;
}

.cart-code-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.cart-code-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
}

.cart-user-info {
    font-size: 0.875rem;
    opacity: 0.9;
    text-align: right;
    min-width: 150px;
}

/* Layout principal */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Placeholder pour images */
.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

/* Texte caché sur mobile */
.whatsapp-text,
.remove-text {
    display: inline;
}

@media (max-width: 768px) {
    .whatsapp-text,
    .remove-text {
        display: none;
    }
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.cart-empty-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.cart-empty-text {
    color: #64748b;
    margin-bottom: 2rem;
}

.cart-creator-group {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-creator-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.cart-creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
}

.cart-creator-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

.cart-creator-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #25d366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.cart-creator-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.cart-items-list {
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-item-sku {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    color: #1565c0;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cart-item-price-modified {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.cart-item-vendor-notes {
    background: #fef3c7;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-quantity button {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    transition: background 0.2s;
}

.cart-item-quantity button:hover {
    background: #e5e7eb;
}

.cart-item-quantity span {
    padding: 0.5rem 1rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: #1f2937;
}

/* Mode sombre - Quantité en noir */
html[data-theme="dark"] .cart-item-quantity span {
    color: #000000;
    background: #f3f4f6;
}

/* Mode sombre - Boutons de quantité */
html[data-theme="dark"] .cart-item-quantity {
    border-color: #4b5563;
}

html[data-theme="dark"] .cart-item-quantity button {
    background: #374151;
    color: #f3f4f6;
}

html[data-theme="dark"] .cart-item-quantity button:hover {
    background: #4b5563;
}

.cart-item-remove {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.cart-creator-footer {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
}

.cart-creator-subtotal {
    font-size: 0.9375rem;
    color: #64748b;
}

.cart-creator-subtotal strong {
    color: #1f2937;
    font-size: 1.125rem;
}

.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
}

.cart-info-box {
    background: #dbeafe;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.cart-info-box p {
    font-size: 0.875rem;
    color: #1e40af;
    margin: 0;
}

/* === SHARE SECTION === */
.cart-share-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-share-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.cart-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.cart-share-btn:active {
    transform: translateY(0);
}

.cart-share-link {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.cart-share-link input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    font-size: 0.8rem;
    font-family: monospace;
    background: #f8fafc;
    color: #374151;
    outline: none;
    transition: all 0.2s ease;
}

.cart-share-link input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cart-share-link input:hover {
    background: white;
}

.cart-copy-btn {
    padding: 0.625rem 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.cart-copy-btn:active {
    background: #d1d5db;
}

/* Responsive styles for share section */
@media (max-width: 768px) {
    .cart-share-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .cart-share-link input {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .cart-copy-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .cart-copy-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .cart-share-section {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .cart-share-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .cart-share-link input {
        padding: 0.437rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .cart-copy-btn {
        padding: 0.437rem 0.625rem;
        min-width: 44px;
    }
    
    .cart-share-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .cart-share-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .cart-share-link input {
        padding: 0.375rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .cart-copy-btn {
        padding: 0.375rem 0.5rem;
    }
}

/* === ADD TO CART BUTTON === */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

.btn-add-cart svg {
    width: 18px;
    height: 18px;
}

/* === RESPONSIVE DESIGN === */

/* Mobile Large (Tablette et grand mobile) */
@media (max-width: 1024px) {
    .cart-page {
        padding: 1.5rem 0;
    }
    
    .cart-empty {
        padding: 3rem 1.5rem;
    }
    
    .cart-empty-icon {
        font-size: 4rem;
    }
    
    .cart-creator-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-creator-info {
        gap: 0.75rem;
    }
    
    .cart-creator-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .cart-creator-name {
        font-size: 1rem;
    }
    
    .cart-creator-whatsapp {
        align-self: flex-end;
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .cart-item {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 96px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .cart-item-actions {
        gap: 0.75rem;
    }
    
    .cart-item-quantity button {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .cart-item-quantity span {
        padding: 0.375rem 0.75rem;
        min-width: 32px;
        font-size: 0.875rem;
    }
    
    .cart-item-remove {
        font-size: 0.75rem;
        padding: 0.375rem;
    }
    
    .cart-creator-footer {
        padding: 0.75rem 1.25rem;
    }
    
    .cart-summary {
        padding: 1.25rem;
        position: relative;
        top: 0;
        margin-top: 1.5rem;
    }
    
    .cart-summary-title {
        font-size: 1.125rem;
    }
    
    .cart-summary-row.total {
        font-size: 1.125rem;
    }
}

/* Mobile Medium */
@media (max-width: 768px) {
    .cart-page {
        padding: 1rem 0;
    }
    
    .cart-empty {
        padding: 2rem 1rem;
    }
    
    .cart-empty-icon {
        font-size: 3.5rem;
    }
    
    .cart-empty-title {
        font-size: 1.25rem;
    }
    
    .cart-empty-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cart-creator-group {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .cart-creator-header {
        padding: 0.875rem 1rem;
    }
    
    .cart-creator-info {
        gap: 0.5rem;
    }
    
    .cart-creator-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    
    .cart-creator-name {
        font-size: 0.9rem;
    }
    
    .cart-creator-whatsapp {
        padding: 0.425rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .cart-items-list {
        padding: 0.75rem;
    }
    
    .cart-item {
        gap: 0.625rem;
        padding: 0.625rem;
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-name {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .cart-item-sku {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .cart-item-price-modified {
        font-size: 0.75rem;
        margin-right: 0.375rem;
    }
    
    .cart-item-vendor-notes {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-actions {
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-quantity {
        border-radius: 6px;
    }
    
    .cart-item-quantity button {
        padding: 0.312rem 0.437rem;
        font-size: 0.75rem;
    }
    
    .cart-item-quantity span {
        padding: 0.312rem 0.625rem;
        min-width: 28px;
        font-size: 0.75rem;
    }
    
    .cart-item-remove {
        font-size: 0.7rem;
        padding: 0.312rem;
    }
    
    .cart-creator-footer {
        padding: 0.625rem 1rem;
    }
    
    .cart-creator-subtotal {
        font-size: 0.8rem;
    }
    
    .cart-creator-subtotal strong {
        font-size: 0.9rem;
    }
    
    .cart-summary {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .cart-summary-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .cart-summary-row {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-summary-row.total {
        font-size: 1rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .cart-info-box {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .cart-info-box p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .cart-page {
        padding: 0.75rem 0;
    }
    
    .cart-empty {
        padding: 1.5rem 0.75rem;
    }
    
    .cart-empty-icon {
        font-size: 3rem;
    }
    
    .cart-empty-title {
        font-size: 1.125rem;
    }
    
    .cart-empty-text {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .cart-creator-group {
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }
    
    .cart-creator-header {
        padding: 0.75rem;
    }
    
    .cart-creator-info {
        gap: 0.375rem;
    }
    
    .cart-creator-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.625rem;
    }
    
    .cart-creator-name {
        font-size: 0.8rem;
    }
    
    .cart-creator-whatsapp {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .cart-items-list {
        padding: 0.5rem;
    }
    
    .cart-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .cart-item-image {
        height: 160px;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-vendor-notes {
        font-size: 0.7rem;
        padding: 0.312rem 0.437rem;
    }
    
    .cart-item-quantity button {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .cart-item-quantity span {
        padding: 0.25rem 0.5rem;
        min-width: 24px;
        font-size: 0.625rem;
    }
    
    .cart-item-remove {
        font-size: 0.625rem;
        padding: 0.25rem;
    }
    
    .cart-creator-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .cart-summary {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .cart-summary-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-summary-row {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .cart-summary-row.total {
        font-size: 0.9rem;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .cart-info-box {
        padding: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .cart-info-box p {
        font-size: 0.7rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .cart-page {
        padding: 0.5rem 0;
    }
    
    .cart-empty {
        padding: 1rem 0.5rem;
    }
    
    .cart-empty-icon {
        font-size: 2.5rem;
    }
    
    .cart-empty-title {
        font-size: 1rem;
    }
    
    .cart-empty-text {
        font-size: 0.8rem;
    }
    
    .cart-creator-header {
        padding: 0.625rem;
    }
    
    .cart-creator-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.5rem;
    }
    
    .cart-creator-name {
        font-size: 0.75rem;
    }
    
    .cart-creator-whatsapp {
        padding: 0.312rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .cart-item-image {
        height: 140px;
    }
    
    .cart-item-name {
        font-size: 0.75rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .cart-item-quantity button {
        padding: 0.187rem 0.312rem;
        font-size: 0.5rem;
    }
    
    .cart-item-quantity span {
        padding: 0.187rem 0.375rem;
        min-width: 20px;
        font-size: 0.5rem;
    }
    
    .cart-item-remove {
        font-size: 0.5rem;
        padding: 0.187rem;
    }
    
    .cart-summary {
        padding: 0.5rem;
    }
    
    .cart-summary-title {
        font-size: 0.8rem;
    }
    
    .cart-summary-row {
        font-size: 0.7rem;
    }
    
    .cart-summary-row.total {
        font-size: 0.8rem;
    }
    
    .cart-info-box p {
        font-size: 0.65rem;
    }
}

/* Optimisations pour les écrans larges */
@media (min-width: 1200px) {
    .cart-page .container {
        max-width: 1200px;
    }
}

/* Amélioration du layout principal pour mobile */
@media (max-width: 768px) {
    .cart-page .container {
        padding: 0 1rem;
    }
    
    /* Layout principal en colonne sur mobile */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Code du panier responsive */
    .cart-code-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    
    .cart-code-info {
        min-width: auto;
        text-align: center;
    }
    
    .cart-user-info {
        text-align: center;
        min-width: auto;
    }
    
    .cart-code-value {
        font-size: 1.25rem;
    }
    
    .cart-items-container {
        gap: 1rem;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .cart-item-quantity button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .cart-item-remove {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
    }
    
    .cart-creator-whatsapp {
        min-height: 44px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cart-creator-group,
    .cart-summary {
        border: 2px solid #000;
    }
    
    .cart-item {
        border-bottom-color: #000;
    }
    
    .cart-item-quantity {
        border-color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cart-creator-whatsapp:hover,
    .cart-item-remove:hover,
    .btn-add-cart:hover {
        transform: none;
    }
    
    .cart-popup {
        animation: none;
    }
}

/* ============================================
   PANIER MODERNE - DESIGN 2026
   ============================================ */

/* En-tête moderne du panier */
.cart-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cart-header-left {
    flex: 1;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.cart-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.cart-count {
    font-weight: 600;
    color: #fbbf24;
}

.cart-code-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-code-icon {
    font-size: 1.5rem;
}

.cart-code-text {
    text-align: right;
}

.cart-code-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.cart-code-value {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Panier vide moderne */
.cart-empty-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 2rem 0;
}

.cart-empty-illustration {
    position: relative;
    margin-bottom: 2rem;
}

.cart-empty-animation {
    display: inline-block;
    position: relative;
}

.cart-icon-bounce {
    animation: bounce 2s infinite;
    color: #64748b;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cart-empty-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    animation: sparkle 1.5s infinite;
}

.sparkle-1 { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: 30%; right: 15%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 20%; left: 10%; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.cart-empty-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.cart-empty-text {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cart-empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Cartes de produits modernes */
.cart-items-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-modern {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cart-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.cart-item-image-container {
    position: relative;
    flex-shrink: 0;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8fafc;
}

.cart-item-image-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    color: #94a3b8;
}

.cart-item-badges {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-modified {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.badge-notes {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.badge-quantity {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.cart-item-sku {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
}

.cart-item-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.price-modified {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
}

.price-original {
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: line-through;
}

/* Contrôles de quantité modernes */
.cart-item-quantity-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    font-weight: 700;
}

.quantity-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

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

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.cart-item-notes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    border: 1px solid #fbbf24;
}

.cart-item-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-remove-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-remove-item:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

/* Footer créateur moderne */
.cart-creator-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.creator-subtotal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subtotal-label {
    font-size: 0.875rem;
    color: #64748b;
}

.subtotal-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.creator-items-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Résumé moderne du panier */
.cart-summary-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.summary-header {
    margin-bottom: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.summary-total {
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.total-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #059669;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-actions .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

.summary-actions .btn-outline {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.summary-actions .btn-outline:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mode sombre pour le panier moderne - Palette améliorée */
html[data-theme="dark"] .cart-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
}

html[data-theme="dark"] .cart-code-badge {
    background: rgba(30, 27, 75, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(15px);
}

html[data-theme="dark"] .cart-code-label {
    color: #a5b4fc;
}

html[data-theme="dark"] .cart-code-value {
    color: #e0e7ff;
}

html[data-theme="dark"] .cart-empty-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border: 1px solid #475569;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cart-empty-title {
    color: #f8fafc;
    font-weight: 700;
}

html[data-theme="dark"] .cart-empty-text {
    color: #cbd5e1;
}

html[data-theme="dark"] .cart-icon-bounce {
    color: #94a3b8;
}

html[data-theme="dark"] .btn-modern {
    border-color: #475569;
}

html[data-theme="dark"] .btn-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Amélioration des conteneurs principaux */
html[data-theme="dark"] .cart-layout {
    background: #0f172a;
}

html[data-theme="dark"] .cart-items-container {
    background: transparent;
}

html[data-theme="dark"] .cart-creator-group {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .cart-creator-header {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cart-creator-name {
    color: #ffffff !important;
    font-weight: 600;
}

html[data-theme="dark"] .cart-creator-avatar {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #ffffff;
    border: 2px solid #64748b;
}

html[data-theme="dark"] .cart-creator-whatsapp {
    color: #10b981 !important;
    font-weight: 500;
}

html[data-theme="dark"] .cart-creator-whatsapp:hover {
    color: #34d399 !important;
}

html[data-theme="dark"] .cart-item-modern {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid #475569;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cart-item-modern:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border-color: #64748b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

html[data-theme="dark"] .cart-item-image {
    background: #0f172a;
    border: 1px solid #475569;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .cart-item-image-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #475569;
    color: #64748b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .badge-modified {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fbbf24;
    border: 1px solid #b45309;
    box-shadow: 0 2px 8px rgba(146, 64, 14, 0.3);
}

html[data-theme="dark"] .badge-notes {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #60a5fa;
    border: 1px solid #2563eb;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

html[data-theme="dark"] .badge-quantity {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    color: #4ade80;
    border: 1px solid #15803d;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.3);
}

html[data-theme="dark"] .cart-item-name {
    color: #f8fafc;
    font-weight: 600;
}

html[data-theme="dark"] .cart-item-sku {
    color: #94a3b8;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #475569;
}

html[data-theme="dark"] .price-current {
    color: #10b981;
    font-weight: 700;
}

html[data-theme="dark"] .price-modified {
    color: #f87171;
    font-weight: 700;
}

html[data-theme="dark"] .price-original {
    color: #64748b;
}

html[data-theme="dark"] .cart-item-quantity-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #475569;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .quantity-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

html[data-theme="dark"] .quantity-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: #64748b;
    color: #f1f5f9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .quantity-btn:active {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    transform: scale(0.95);
}

html[data-theme="dark"] .quantity-value {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f1f5f9;
    border: 1px solid #475569;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .cart-item-notes {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    color: #fbbf24;
    border: 1px solid #92400e;
    box-shadow: 0 2px 8px rgba(120, 53, 15, 0.3);
}

html[data-theme="dark"] .btn-remove-item {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
    border: 1px solid #b91c1c;
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.3);
}

html[data-theme="dark"] .btn-remove-item:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

html[data-theme="dark"] .cart-creator-footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #475569;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .subtotal-label {
    color: #94a3b8;
}

html[data-theme="dark"] .subtotal-amount {
    color: #f8fafc;
    font-weight: 700;
}

html[data-theme="dark"] .creator-items-count {
    color: #64748b;
}

html[data-theme="dark"] .cart-summary-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #475569;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .summary-header {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .summary-title {
    color: #f8fafc;
    font-weight: 700;
}

html[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

html[data-theme="dark"] .stat-value {
    color: #10b981;
    font-weight: 700;
}

html[data-theme="dark"] .summary-total {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .total-label {
    color: #f1f5f9;
    font-weight: 600;
}

html[data-theme="dark"] .total-amount {
    color: #10b981;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Amélioration des boutons en mode sombre */
html[data-theme="dark"] .summary-actions .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .summary-actions .btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

html[data-theme="dark"] .summary-actions .btn-outline {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
    color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .summary-actions .btn-outline:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border-color: #9ca3af;
    color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Amélioration des animations en mode sombre */
html[data-theme="dark"] .cart-item-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .quantity-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    html[data-theme="dark"] .cart-item-name {
        color: #ffffff;
    }
    
    html[data-theme="dark"] .total-amount {
        color: #34d399;
    }
    
    html[data-theme="dark"] .quantity-value {
        color: #ffffff;
        background: #000000;
        border-color: #ffffff;
    }
}

/* Layout Desktop - Résumé à droite */
@media (min-width: 1024px) {
    .cart-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }
    
    .cart-items-container {
        min-width: 0; /* Pour éviter que les items ne débordent */
    }
    
    .cart-summary-modern {
        position: sticky;
        top: 2rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    /* Amélioration de l'espacement pour desktop */
    .cart-creator-group {
        margin-bottom: 1.5rem;
    }
    
    .cart-summary-modern {
        margin-top: 0;
    }
}

/* Layout Tablettes - Transition */
@media (min-width: 769px) and (max-width: 1023px) {
    .cart-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .cart-summary-modern {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Responsive pour le panier moderne */
@media (max-width: 768px) {
    .cart-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-title {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .cart-item-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item-image-container {
        align-self: center;
    }
    
    .cart-item-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .summary-stats {
        justify-content: space-around;
    }
    
    .cart-empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}
