﻿:root {
    --bg-main: #FAF9F7;
    --bg-soft: #E6E1DA;
    --text-main: #2E2E2E;
    --accent: #C9A96A;
    --container-w: 1200px;
}

/*.cart {
    background: var(--bg-main);
    padding: 34px 20px 70px;
}*/

.cart-shell {
    max-width: var(--container-w);
    margin: 0 auto;
}

.cart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .cart-head h1 {
        margin: 0;
        font-size: 1.55rem;
        color: var(--text-main);
        letter-spacing: .2px;
    }

.cart-link {
    color: rgba(46,46,46,.85);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: .2s;
}

    .cart-link:hover {
        color: var(--accent);
        border-bottom-color: rgba(201,169,106,.65);
    }

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--bg-soft);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.cart-item-img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-main);
    border: 1px solid rgba(230,225,218,.8);
}

    .cart-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cart-item-body {
    display: grid;
    gap: 10px;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.cart-item-title a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

    .cart-item-title a:hover {
        color: var(--accent);
    }

.cart-item-meta {
    margin-top: 4px;
    font-size: .88rem;
    color: rgba(46,46,46,.65);
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--bg-soft);
    border-radius: 12px;
    padding: 6px 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(230,225,218,.9);
    background: #fff;
    cursor: pointer;
    color: var(--text-main);
    transition: .2s;
}

    .qty-btn:hover {
        border-color: rgba(201,169,106,.8);
    }

.qty-input {
    width: 46px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-main);
    outline: none;
    font-weight: 500;
}

.cart-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(46,46,46,.65);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: .2s;
}

    .cart-remove:hover {
        color: #b33a3a;
    }

.cart-note {
    background: rgba(201,169,106,.10);
    border: 1px solid rgba(201,169,106,.35);
    border-radius: 14px;
    padding: 12px 14px;
    color: rgba(46,46,46,.85);
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .78rem;
    background: #fff;
    border: 1px solid rgba(201,169,106,.45);
    color: var(--text-main);
}

.cart-summary {
    position: sticky;
    top: 92px;
}

.summary-card {
    background: #fff;
    border: 1px solid var(--bg-soft);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

    .summary-card h2 {
        margin: 4px 0 12px;
        font-size: 1.05rem;
        color: var(--text-main);
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: rgba(46,46,46,.85);
}

    .summary-row strong {
        color: var(--text-main);
    }

    .summary-row.muted {
        color: rgba(46,46,46,.65);
    }

.summary-divider {
    height: 1px;
    background: var(--bg-soft);
    margin: 8px 0;
}

.summary-row.total {
    font-size: 1.05rem;
}

.coupon {
    display: flex;
    gap: 10px;
    margin: 12px 0 12px;
}

    .coupon input {
        flex: 1;
        height: 42px;
        border-radius: 12px;
        border: 1px solid var(--bg-soft);
        padding: 0 12px;
        outline: none;
        transition: .2s;
    }

        .coupon input:focus {
            border-color: rgba(201,169,106,.9);
            box-shadow: 0 0 0 3px rgba(201,169,106,.15);
        }

    .coupon button {
        height: 42px;
        padding: 0 14px;
        border-radius: 12px;
        border: 1px solid rgba(230,225,218,.9);
        background: var(--bg-main);
        cursor: pointer;
        color: var(--text-main);
        transition: .2s;
    }

        .coupon button:hover {
            border-color: rgba(201,169,106,.8);
        }

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    background: var(--text-main);
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
    transition: .2s;
}

    .btn-primary:hover {
        background: var(--accent);
        color: var(--text-main);
    }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--bg-soft);
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    margin-top: 10px;
    transition: .2s;
}

    .btn-secondary:hover {
        border-color: rgba(201,169,106,.75);
    }

.summary-safe {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: rgba(46,46,46,.65);
    font-size: .9rem;
}

    .summary-safe i {
        color: rgba(46,46,46,.55);
    }

.cart-empty {
    margin-top: 14px;
}

.cart-empty-card {
    background: #fff;
    border: 1px solid var(--bg-soft);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

    .cart-empty-card h2 {
        margin: 0 0 10px;
        color: var(--text-main);
    }

    .cart-empty-card p {
        margin: 0 0 16px;
        color: rgba(46,46,46,.7);
    }

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 78px 1fr;
        padding: 12px;
    }

    .cart-item-img {
        width: 78px;
        height: 78px;
    }

    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon {
        flex-direction: column;
    }

        .coupon button {
            width: 100%;
        }
}

.cart-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #E6E1DA;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

    .cart-note .badge {
        background: #C9A96A;
        color: #fff;
        padding: 3px 8px;
        border-radius: 20px;
        font-size: 11px;
        margin-right: 8px;
    }

    .cart-note a {
        color: #C9A96A;
        font-weight: 600;
        text-decoration: none;
        transition: 0.2s ease;
    }

        .cart-note a:hover {
            text-decoration: underline;
        }
