/* cart.css — 購物車頁 專屬樣式 */

/* Cart item card */
.cart-item-card {
    border: none;
    margin-bottom: 20px;
    border-radius: 8px;
}

.cart-item-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-title {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
}

.cart-item-title:hover {
    color: var(--primary-color);
}

.cart-item-option {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-info {
    text-align: right;
}

.price-current {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.price-subtotal {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Order summary */
.order-summary {
    position: sticky;
    top: 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-row {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    background-color: var(--bg-light);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Discount and coin section */
.discount-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.discount-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Action buttons */
.cart-actions {
    padding: 20px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 8px 8px;
}

.btn-continue {
    color: var(--secondary-color);
    border-color: #ddd;
}

.btn-continue:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

/* Delete button */
.btn-delete {
    color: #dc3545;
    font-size: 1.2rem;
    padding: 0;
    border: none;
    background: none;
}

.btn-delete:hover {
    color: #c82333;
}

/* Card hover override — 購物車卡片不需要上移效果 */
.card:hover {
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cart-item-img {
        width: 80px;
        height: 60px;
    }

    .quantity-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-info {
        text-align: left;
        margin-top: 10px;
    }

    .cart-actions {
        text-align: center;
    }

    .btn-continue,
    .btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }

    footer {
        display: none;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 375px) {
    .page-header {
        padding: 20px 0;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
