/* CART PAGE */
.cart-page {
    padding: 20px;
}

.cart-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--brand);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    background: none;
    border: none;
}

.cart-back:hover {
    color: var(--brand-dark);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 768px) {
    .cart-layout {
        display: flex;
    }
}

.cart-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cart-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-card-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.cart-card-header span {
    font-size: 12px;
    color: #999;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty i {
    font-size: 40px;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 13px;
    color: #999;
}

.cart-empty-btn {
    margin-top: 14px;
    background: var(--brand);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.cart-page-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.cart-page-item:last-child {
    border-bottom: none;
}

.cart-page-item img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-page-item-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px;
}

.ci-cat {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
}

.ci-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    font-weight: 700;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-val {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    min-width: 20px;
    text-align: center;
}

.ci-price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    flex-shrink: 0;
}

.ci-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    padding: 4px;
    border-radius: 6px;
}

.ci-remove:hover {
    color: #e24b4a;
    background: #fef2f2;
}

/* SUMMARY CARD */
.summary-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 18px;
}

.summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row span {
    font-size: 13px;
    color: #666;
}

.summary-row strong {
    font-size: 13px;
    color: #111;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #e0e0e0;
    margin: 12px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-total span {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.summary-total strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
}

.checkout-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    background: var(--brand-dark);
}

.promo-wrap {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
}

.promo-input:focus {
    border-color: var(--brand);
}

.promo-btn {
    background: #f3f4f6;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

.promo-btn:hover {
    background: #e5e7eb;
}

.shipping-note {
    margin-top: 12px;
    background: var(--brand-light);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--brand-text);
}