
.cart-page-container {
    padding: 140px 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.cart-content {
    display: flex;
    gap: 50px;
}

.cart-items {
    flex: 1;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item {
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
}

.cart-item-img {
    width: 100px;
    height: 125px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

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

.cart-item-details .item-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
    color: var(--primary);
    text-decoration: none;
}

.cart-item-details .item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 4px;
}

.qty-control a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.qty-control span {
    font-size: 0.9rem;
}

.item-total {
    font-weight: 600;
}

.remove-btn {
    color: #cc0000;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Cart Summary */
.cart-summary {
    flex: 0 0 350px;
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    height: fit-content;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 25px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--accent);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 991px) {
    .cart-content {
        flex-direction: column;
    }
    .cart-summary {
        flex: none;
        width: 100%;
    }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none; /* Hide individual price on mobile */
    }
}

.warning-icon-wrapper {
    animation: warningPulse 1.5s infinite;
}

@keyframes warningPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}
