﻿/* Cart Styles for Elegant Home - SIMPLIFIED */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #732d43;
    --primary-dark: #7a1450;
    --success: #10b981;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
}

/* Page Title */
.display-6 {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

    .display-6 i {
        color: var(--primary);
        margin-right: 0.5rem;
    }

/* Breadcrumb */
.breadcrumb {
    background: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-400);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

    .card-header h5 {
        margin: 0;
        color: var(--gray-900);
        font-size: 1.1rem;
    }

.card-body {
    padding: 1.25rem;
}

/* ===== SIMPLIFIED CART ITEM LAYOUT ===== */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
}

    .cart-item:last-child {
        border-bottom: none;
    }

    .cart-item:hover {
        background-color: var(--gray-50);
        margin: 0 -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        border-radius: 6px;
    }

/* Product Image */
.cart-item-image {
    flex-shrink: 0;
}

    .cart-item-image img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid var(--gray-200);
    }

/* Product Info */
.cart-item-info {
    flex: 1;
    min-width: 0;
}

    .cart-item-info h6 {
        margin-bottom: 0.25rem;
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1.3;
    }

        .cart-item-info h6 a {
            color: var(--gray-900);
            text-decoration: none;
        }

            .cart-item-info h6 a:hover {
                color: var(--primary);
            }

    .cart-item-info .text-muted {
        color: var(--gray-500);
        font-size: 0.8rem;
    }

        .cart-item-info .text-muted i {
            color: var(--primary);
            margin-right: 0.25rem;
        }

/* Price Display */
.cart-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 120px;
}

.price-per-item {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.price-total {
    color: var(--gray-800);
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

/* Quantity Controls */
.cart-item-quantity {
    flex-shrink: 0;
}

.input-group {
    width: 100px;
}

    .input-group .btn {
        border: 1px solid var(--gray-300);
        background: var(--white);
        color: var(--gray-600);
        padding: 0.25rem;
        font-weight: 600;
        font-size: 0.8rem;
        width: 28px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .input-group .btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--white);
        }

.quantity-input {
    border: 1px solid var(--gray-300);
    text-align: center;
    font-weight: 600;
    background: var(--white);
    width: 44px;
    height: 32px;
    font-size: 0.85rem;
}

    .quantity-input:focus {
        border-color: var(--primary);
        box-shadow: none;
        outline: 2px solid rgba(146, 24, 96, 0.2);
    }

/* Remove Button */
.cart-item-remove {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Order Summary */
.card-body .d-flex span {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9rem;
}

.h5.text-primary {
    color: var(--gray-900) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        color: var(--white);
    }

.btn-success {
    background-color: var(--success);
    color: var(--white);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

    .btn-success:hover {
        background-color: #059669;
        color: var(--white);
    }

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: var(--white);
    }

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

    .btn-outline-danger:hover {
        background-color: var(--danger);
        color: var(--white);
    }

.btn-outline-secondary {
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    background: var(--white);
}

    .btn-outline-secondary:hover {
        background-color: var(--gray-100);
    }

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Empty Cart */
.text-center.py-5 {
    padding: 3rem 1rem;
}

.fa-5x {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.text-center h3 {
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.text-center p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .display-6 {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .cart-item-image {
        align-self: center;
    }

        .cart-item-image img {
            width: 60px;
            height: 60px;
        }

    .cart-item-info {
        text-align: center;
    }

    .cart-item-price {
        text-align: center;
        min-width: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 6px;
    }

    .price-per-item,
    .price-total {
        margin: 0;
    }

    .cart-item-quantity {
        align-self: center;
    }

    .input-group {
        width: 110px;
    }

    .cart-item-remove {
        align-self: center;
        margin-left: 0;
    }

    .col-lg-8, .col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .col-lg-4 {
        margin-top: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .h5.text-primary {
        font-size: 1rem !important;
    }

    .card-body .d-flex span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .display-6 {
        font-size: 1.5rem;
    }

    .cart-item {
        padding: 1.25rem 0;
    }

    .cart-item-image img {
        width: 50px;
        height: 50px;
    }

    .cart-item-price {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-group .btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .quantity-input {
        width: 50px;
        height: 30px;
        font-size: 0.8rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 0.75rem 1rem;
    }
}
