/* ═══════════════════════════════════════════
   CASEPOP — Shopping Cart Page Styles
   ═══════════════════════════════════════════ */

.cart-section {
    padding: 48px 0 60px;
}
.cart-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.cart-section .cart-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ── Cart Layout ── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* ── Cart Items ── */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.cart-item:first-child { padding-top: 0; }
.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-cream);
    flex-shrink: 0;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.cart-item-variant {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.cart-item-variant span {
    margin-right: 12px;
}
.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-item-price {
    font-size: 1.05rem;
    font-weight: 700;
}
.cart-item-price .original {
    font-size: 0.78rem;
    font-weight: 400;
    color: #b0b0b0;
    text-decoration: line-through;
    margin-left: 6px;
}

.cart-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.cart-qty button {
    width: 34px;
    height: 34px;
    border: none;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}
.cart-qty button:hover { background: var(--accent); color: #fff; }
.cart-qty input {
    width: 44px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border-light);
    border-right: 1.5px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
}
.cart-item-remove {
    position: absolute;
    top: 24px;
    right: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 8px;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--sale-red); }

/* ── Order Summary ── */
.order-summary {
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 28px;
    position: sticky;
    top: 100px;
}
.order-summary h5 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 500; }
.summary-row .discount { color: #2e8b57; }
.summary-divider {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 12px;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    padding-top: 12px;
    margin-bottom: 20px;
}
.promo-code {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.promo-code input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    font-size: 0.82rem;
    outline: none;
    background: #fff;
}
.promo-code button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-code button:hover { background: var(--accent-hover); }
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-checkout:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.secure-checkout {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.secure-checkout i { margin-right: 4px; }
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* ── Also Like ── */
.also-like {
    padding: 60px 0;
}

@media (max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}
@media (max-width: 576px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-image { width: 100px; height: 100px; }
    .cart-item-remove { top: 0; right: 0; }
}
