/* ===== Cart page (header, drawer, footer come from style.css) ===== */
.product-store-logo { flex: 1; text-align: center; font-weight: 800; font-size: 26px; letter-spacing: 6px; }

.cart-page { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; min-height: 60vh; }
.breadcrumb { display: flex; gap: 14px; padding: 22px 0 10px; font-size: 14px; color: #444; flex-wrap: wrap; }
.cart-title { margin: 6px 0 22px; font-size: 30px; font-weight: 800; }
.cart-title span { font-size: 18px; color: #777; font-weight: 600; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }

.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e5e5e5; align-items: start; }
.cart-item:first-child { border-top: 1px solid #e5e5e5; }
.cart-item img { width: 92px; aspect-ratio: 3 / 3.7; object-fit: cover; border-radius: 6px; background: #eee; }
.ci-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.ci-info h3 a:hover { text-decoration: underline; }
.ci-info small { display: block; color: #777; margin-bottom: 10px; }
.ci-price { font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1px solid #bbb; border-radius: 4px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty button:hover:not(:disabled) { background: #f0f0f0; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty span { min-width: 38px; text-align: center; font-weight: 600; }

.ci-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ci-side b { font-size: 17px; }
.remove-btn { border: 0; background: none; color: #b3261e; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.remove-btn:hover { text-decoration: underline; }

.cart-summary { border: 1px solid #ddd; padding: 24px; position: sticky; top: 90px; background: #fff; }
.cart-summary h2 { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cart-summary h3 { margin: 18px 0 10px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.sum-row.total { margin-top: 6px; padding-top: 14px; border-top: 1px solid #ddd; font-size: 18px; }
.cart-summary input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #bbb; border-radius: 3px; font: inherit; }
.cart-summary input:focus { outline: 2px solid #111; outline-offset: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { margin: 10px 0 14px; font-size: 13px; color: #555; }

.btn { display: block; width: 100%; padding: 15px; border: 0; border-radius: 2px; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; text-align: center; cursor: pointer; }
.btn.red { background: #f03a2e; color: #fff; }
.btn.red:hover { background: #d92f24; }
.btn.yellow { background: #ffd800; color: #111; }
.btn.line { background: #fff; border: 1px solid #222; color: #111; }
.btn:disabled { opacity: .6; cursor: wait; }
.link-btn { display: block; margin: 14px auto 0; border: 0; background: none; color: #666; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 3px; font-size: 13px; }
.msg.err { background: #fdecea; color: #b3261e; }
.msg.ok { background: #e6f4ea; color: #1b7a3a; }

.empty, .order-done { text-align: center; padding: 70px 20px; border: 1px solid #e5e5e5; background: #fff; }
.empty p { margin: 0 0 18px; color: #555; }
.empty .btn, .order-done .btn { display: inline-block; width: auto; padding: 14px 30px; }
.tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e6f4ea; color: #1b7a3a; display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.order-done h2 { margin: 0 0 8px; }
.order-done p { color: #555; margin: 0 0 22px; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
    .product-store-logo { font-size: 18px; letter-spacing: 3px; text-align: left; }
    .cart-page { padding: 0 16px 30px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 76px 1fr; }
    .cart-item img { width: 76px; }
    .ci-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* WhatsApp order button */
.btn.wa { background: #25d366; color: #073b1f; }
.btn.wa:hover { background: #1fb957; }
#login-needed a { color: inherit; text-decoration: underline; }
