.cart-page {
    padding: 40px 24px 80px;
    min-height: 80vh;
    background: var(--color-bg);
}

.cart-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: flex-start;
}

.cart-page-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
}

.cart-page-count {
    font-size: 15px;
    color: var(--color-text-muted);
}

.cp-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    transition: 0.25s;
}

.cp-item:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-medium);
}

.cp-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-secondary);
    flex-shrink: 0;
}

.cp-item-info { flex: 1; min-width: 0; }

.cp-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-item-price-unit {
    font-size: 13px;
    color: var(--color-text-muted);
}

.cp-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 4px 8px;
}

.cp-item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: 0.2s;
}

.cp-item-qty button:hover { background: var(--color-primary-light); }
.cp-item-qty span { font-size: 15px; font-weight: 700; min-width: 24px; text-align: center; color: var(--color-text-primary); }

.cp-item-total {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #b08a4a, #7a5520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

.cp-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 16px;
    padding: 6px;
    transition: 0.2s;
    border-radius: 6px;
}

.cp-item-remove:hover { color: #e05050; background: #fff0f0; }

.cp-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.cp-empty-icon { font-size: 56px; margin-bottom: 12px; display: block; }
.cp-empty h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--color-text-primary); }
.cp-empty p { font-size: 15px; color: var(--color-text-muted); margin: 0; }

/* Order summary sidebar */
.order-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 90px;
}

.order-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-rows { margin-bottom: 16px; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 8px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.summary-total strong {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #c6a15b, #8e6b2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    margin-bottom: 12px;
}

.summary-continue {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.summary-continue:hover { color: var(--color-primary-solid); }

@media (max-width: 860px) {
    .cart-page-inner { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

@media (max-width: 560px) {
    .cp-item { flex-wrap: wrap; }
    .cp-item-info { width: 100%; order: -1; }
    .cp-item-total { margin-left: auto; }
}
