.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    padding: 2rem 1.5rem;
    align-items: start;
    min-height: 100vh;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 0.5px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-ctrl button {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-ctrl button:hover {
    background: #f0f0f0;
}

.cart-summary {
    position: sticky;
    top: 80px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
}

.cart-summary > span {
    font-size: 1rem;
    font-weight: 500;
}

.cart-summary hr {
    border: none;
    border-top: 0.5px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
}

.cart-summary input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
    background: #fafafa;
}

.cart-summary input:focus {
    border-color: #378ADD;
    background: #fff;
}

.checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.checkout-btn:hover {
    background: #222;
}

.color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        order: -1;
        position: static;
    }
}