/* ===== CART PAGE ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 40px;
}
.cart-items {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-item-spec { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 16px; white-space: nowrap; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: #e74c3c; }
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { font-size: 18px; margin-bottom: 20px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
}
.summary-row.total .amount { color: var(--primary); }
.coupon-input {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.coupon-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}
.coupon-input input:focus { border-color: var(--primary); }
.coupon-input button {
    padding: 10px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.coupon-input button:hover { border-color: var(--primary); color: var(--primary); }
.cart-summary .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 14px;
}
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}
.empty-cart .icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-lighter);
}
.empty-cart .icon svg { width: 40px; height: 40px; }
.empty-cart p { color: var(--text-light); margin-bottom: 24px; }

/* ===== CHECKOUT PAGE ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 40px;
}
.checkout-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-section {
    margin-bottom: 32px;
}
.form-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group label .required { color: #e74c3c; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.payment-options { display: flex; gap: 12px; }
.payment-option {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.active {
    border-color: var(--primary);
    background: #f0faf4;
}
.payment-option .icon {
    width: 44px; height: 44px; margin: 0 auto 8px;
    background: var(--bg);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.payment-option .icon svg { width: 22px; height: 22px; }
.payment-option .label { font-size: 14px; font-weight: 600; }

.order-summary-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.order-summary-panel h3 { font-size: 18px; margin-bottom: 20px; }
.order-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-info .name { font-size: 14px; font-weight: 600; }
.order-item-info .spec { font-size: 12px; color: var(--text-light); }
.order-item .price { font-weight: 700; font-size: 14px; }

/* ===== CONFIRMATION PAGE ===== */
.confirm-page {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}
.confirm-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
}
.confirm-icon svg { width: 40px; height: 40px; }
.confirm-page h1 { font-size: 28px; margin-bottom: 8px; }
.confirm-page .order-no {
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 32px;
}
.confirm-details {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: left;
    margin-bottom: 32px;
}
.confirm-details h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.confirm-row .label { color: var(--text-light); }
.confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
