/* ── Cart page ── */
.cart-page {
    padding-bottom: 60px;
}

.cart-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 30px 0;
    padding: 60px 24px;
    text-align: center;
}

.cart-empty-icon {
    color: #78a206;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
}

.cart-empty-state h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-empty-state p {
    color: #91959b;
    margin-bottom: 24px;
}

.cart-table {
    width: 100%;
}

.cart-table thead th {
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 12px;
    text-transform: uppercase;
}

.cart-table tbody td {
    border-bottom: 1px solid #e5e5e5;
    padding: 18px 12px;
    vertical-align: middle;
}

.cart-table .product-thumbnail img {
    border-radius: 6px;
    height: 80px;
    object-fit: cover;
    width: 80px;
}

.cart-table .product-name a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.cart-table .product-name a:hover {
    color: #78a206;
}

.cart-stock-badge {
    border-radius: 4px;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
}

.cart-stock-badge.out {
    background: #fdecec;
    color: #b42318;
}

.cart-qty-form {
    margin: 0;
}

.cart-qty-control {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.cart-qty-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 38px;
    padding: 0 10px;
    text-align: center;
    width: 70px;
}

.cart-qty-btn {
    align-items: center;
    background: #78a206;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 12px;
    transition: background 0.2s ease;
}

.cart-qty-btn:hover {
    background: #5f8005;
}

.cart-remove-btn {
    background: none;
    border: 0;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: color 0.2s ease;
}

.cart-remove-btn:hover {
    color: #e53935;
}

.cart-btn-primary,
.cart-btn-secondary {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cart-btn-primary {
    background: #78a206;
    border: 2px solid #78a206;
    color: #ffffff;
}

.cart-btn-primary:hover {
    background: #5f8005;
    border-color: #5f8005;
    color: #ffffff;
    text-decoration: none;
}

.cart-btn-secondary {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    color: #333;
}

.cart-btn-secondary:hover {
    border-color: #78a206;
    color: #78a206;
    text-decoration: none;
}

.cart-page .buttons-carts {
    margin-top: 24px;
}

.cart-page .cart_totals {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-top: 24px;
    padding: 24px;
}

.cart-page .cart_totals h2 {
    border-bottom: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.cart-page .cart-subtotal,
.cart-page .order-total {
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-page .order-total {
    border-top: 1px solid #e5e5e5;
    font-size: 18px;
    margin-top: 12px;
    padding-top: 12px;
}

.cart-page .wc-proceed-to-checkout {
    margin-top: 20px;
}

.cart-btn-checkout {
    display: block;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.cart-login-hint {
    color: #91959b;
    font-size: 13px;
    margin: 10px 0 0;
    text-align: center;
}

.cart-mobile-list {
    margin-top: 20px;
}

.cart-mobile-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 16px;
}

.cart-mobile-top {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-mobile-image {
    flex-shrink: 0;
}

.cart-mobile-image img {
    border-radius: 6px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.cart-mobile-info {
    flex: 1;
    min-width: 0;
}

.cart-mobile-name {
    color: #333;
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    text-decoration: none;
}

.cart-mobile-price,
.cart-mobile-total {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.cart-mobile-item .cart-qty-control {
    justify-content: space-between;
    width: 100%;
}

.cart-mobile-item .cart-qty-control label {
    color: #666;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 767px) {
    .cart-page .cart_totals {
        text-align: left !important;
    }

    .cart-empty-state {
        padding: 40px 20px;
    }
}
