/* ==============================
   CART PAGE SPECIFIC STYLES
============================== */

.table-banner {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 18px;
    color: #333;
    border: 2px solid #967259; /* match your theme color */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-banner i {
    margin-right: 8px;
    color: #967259;
}

/* Full-width container */
.cart-container {
    width: 100%-10%;
    padding: 20px;
    background: var(--light-cream);
}

/* Optional inner wrapper (recommended) */
.cart-inner {
    width: 100%;
    margin: 0 auto;
}

/* Header actions */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Table wrapper */
.cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    margin-bottom: 30px;
    background: var(--white);
}

/* Cart table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: var(--white);
}

.cart-table th {
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    color: var(--white);
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* Product image */
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease;
}

.cart-item-img:hover {
    transform: scale(1.05);
}

/* Remove button */
.remove-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #8B4513;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(160, 82, 45, 0.3);
}

/* Cart total */
.cart-total {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-brown);
    margin: 30px 0;
    padding: 20px;
    background: var(--off-white);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Bottom actions */
.cart-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

/* Large buttons */
.btn.large {
    font-size: 18px;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 600;
}

/* Empty cart */
.empty-cart {
    width: 100%;
    text-align: center;
    padding: 100px 20px;
    background: var(--off-white);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 24px var(--shadow);
}

.empty-cart i {
    font-size: 90px;
    color: var(--accent-brown);
    opacity: 0.5;
    margin-bottom: 24px;
}

.empty-cart h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-brown);
}

.empty-cart p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* ==============================
   CONFIRMATION MODAL
============================== */

.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(75, 61, 42, 0.88);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    padding: 20px;
}

.confirm-modal[style*="flex"] {
    display: flex !important;
}

.confirm-box {
    background: var(--off-white);
    width: 100%;
    max-width: 420px;
    border-radius: 24px 24px 0 0;
    padding: 36px 28px 44px;
    box-shadow: 0 -12px 40px rgba(111, 78, 55, 0.35);
    text-align: center;
    border: 1px solid var(--border);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-box i {
    font-size: 64px;
    color: var(--error);
    margin-bottom: 24px;
}

.confirm-box h3 {
    font-size: 24px;
    color: var(--primary-brown);
    margin-bottom: 16px;
    font-weight: 700;
}

.confirm-box p {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 36px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.confirm-actions .btn {
    flex: 1;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
}

.confirm-actions .btn.cancel {
    background: #f0e6e0;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.confirm-actions .btn.primary {
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(111, 78, 55, 0.25);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions {
        flex-direction: column;
    }

    .btn.large {
        width: 100%;
        text-align: center;
    }

    .cart-item-img {
        width: 70px;
        height: 70px;
    }

    .cart-total {
        justify-content: center;
        font-size: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 12px;
    }

    .cart-table th,
    .cart-table td {
        padding: 14px 10px;
        font-size: 14px;
    }

    .remove-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .empty-cart {
        padding: 60px 16px;
    }

    .empty-cart i {
        font-size: 70px;
    }

    .empty-cart h3 {
        font-size: 26px;
    }
}

/* Desktop modal */
@media (min-width: 768px) {
    .confirm-modal {
        align-items: center;
    }

    .confirm-box {
        border-radius: 24px;
        padding: 44px;
        max-width: 460px;
        animation: modalSlideIn 0.5s ease;
    }

    .confirm-actions .btn {
        padding: 18px 32px;
        font-size: 18px;
    }
}
