/* =========================================================
   Cart page (.lcc) — home-page palette
   ========================================================= */
.lcc {
  --c-navy: #0b1f5c; --c-navy-2: #16348f; --c-ink: #0b1220; --c-body: #475467; --c-muted: #667085;
  --c-line: #e6e8ee; --c-soft: #f6f7fb; --c-teal: #5eead4; --c-teal-ink: #0f9f8f; --c-tint: #e6fbf7;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--c-body); background: var(--c-soft);
}
.lcc h1, .lcc h2, .lcc h3 { font-family: inherit; color: var(--c-ink); letter-spacing: -.01em; margin: 0; }
.lcc p { margin: 0; }
.lcc a { text-decoration: none; }
.lcc ul, .lcc ol, .lcc dl { list-style: none; margin: 0; padding: 0; }
.lcc :focus-visible { outline: 3px solid rgba(94, 234, 212, .7); outline-offset: 2px; border-radius: 8px; }

/* Buttons */
.lcc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.lcc-btn-primary { background: var(--c-navy); color: #fff; }
.lcc-btn-primary:hover { background: var(--c-navy-2); color: #fff; }
.lcc-btn-outline { background: #fff; border-color: var(--c-line); color: var(--c-navy); }
.lcc-btn-outline:hover { border-color: var(--c-navy); color: var(--c-navy); }
.lcc-btn-block { width: 100%; }
.lcc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-teal-ink); }
.lcc-link:hover { color: var(--c-navy); }

/* Header */
.lcc-head { padding: 22px 0 26px; background: #fff; border-bottom: 1px solid var(--c-line); }
.lcc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.lcc-crumb a { color: var(--c-muted); }
.lcc-crumb a:hover { color: var(--c-teal-ink); }
.lcc-crumb .bi-chevron-right { font-size: 10px; }
.lcc-crumb span { color: var(--c-ink); }
.lcc-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lcc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--c-teal); color: var(--c-teal-ink); font-size: 12px; font-weight: 600; background: #fff; }
.lcc-head h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-top: 10px; }
.lcc-head h1 span { color: var(--c-teal-ink); }
.lcc-steps { display: flex; align-items: center; gap: 8px; }
.lcc-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.lcc-steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--c-line); margin-right: 4px; }
.lcc-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c-line); background: #fff; font-size: 12px; }
.lcc-steps .is-current { color: var(--c-navy); }
.lcc-steps .is-current span { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

.latest-cart-section { padding: 28px 0 64px; }
.lcc-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.lcc-alert-ok { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.lcc-alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

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

/* Items */
.lcc-items-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lcc-items-head h2 { font-size: 18px; font-weight: 700; }
.lcc-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 110px 38px; align-items: center; gap: 18px;
  padding: 18px; margin-bottom: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; transition: border-color .2s, opacity .2s;
}
.lcc-item:hover { border-color: var(--c-teal); }
.lcc-item.has-issue { border-color: #fecaca; background: #fffafa; }
.lcc-item.is-removing { opacity: .45; pointer-events: none; }
.lcc-img { width: 112px; height: 112px; border-radius: 12px; background: var(--c-soft); overflow: hidden; display: block; }
.lcc-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lcc-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lcc-tag { padding: 3px 9px; border-radius: 6px; background: var(--c-tint); color: var(--c-teal-ink); font-size: 11px; font-weight: 600; }
.lcc-info h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.lcc-info h3 a { color: var(--c-ink); }
.lcc-info h3 a:hover { color: var(--c-navy); }
.lcc-variant { font-size: 12px; font-weight: 600; color: var(--c-body); padding: 2px 8px; border: 1px solid var(--c-line); border-radius: 6px; }
.lcc-unit { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lcc-unit strong { font-size: 15px; color: var(--c-ink); }
.lcc-unit del { font-size: 13px; color: var(--c-muted); }
.lcc-unit span { font-size: 12px; color: var(--c-muted); }
.lcc-issue { font-size: 12px; color: #dc2626; display: flex; gap: 6px; align-items: center; }
.lcc-low { font-size: 12px; color: #d97706; display: flex; gap: 6px; align-items: center; }

.quantity-box { display: flex; align-items: center; height: 42px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; overflow: hidden; }
.quantity-box button { width: 38px; height: 100%; border: 0; background: none; color: var(--c-ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.quantity-box button:hover:not(:disabled) { background: var(--c-tint); color: var(--c-navy); }
.quantity-box button:disabled { color: #cbd2dc; cursor: not-allowed; }
.quantity-box input { width: 40px; height: 100%; border: 0 !important; outline: 0; text-align: center; font-weight: 700; font-size: 14px; color: var(--c-ink); background: #fff; padding: 0 !important; }
.lcc-total { text-align: right; }
.lcc-total span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.lcc-total strong { font-size: 17px; font-weight: 800; color: var(--c-ink); }
.cart-remove-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; color: var(--c-muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.cart-remove-btn:hover { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.latest-cart-section.is-updating .quantity-box button, .latest-cart-section.is-updating .cart-remove-btn { cursor: wait; opacity: .6; }

.lcc-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px !important; }
.lcc-perks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; }
.lcc-perks i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-tint); color: var(--c-navy); font-size: 18px; }
.lcc-perks strong { display: block; font-size: 14px; color: var(--c-ink); }
.lcc-perks span { font-size: 12px; color: var(--c-muted); }

/* Summary */
.lcc-summary { position: sticky; top: 110px; padding: 24px; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; }
.lcc-summary > h2 { font-size: 20px; font-weight: 800; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.lcc-coupon { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.lcc-coupon-form label { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.lcc-coupon-form label i { color: var(--c-teal-ink); }
.lcc-coupon-form div { display: flex; gap: 8px; }
.lcc-coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px !important; border: 1px dashed #b8c2d3 !important; border-radius: 10px !important; background: var(--c-soft); font-size: 14px; text-transform: uppercase; outline: none; }
.lcc-coupon-form input:focus { border-color: var(--c-teal-ink) !important; border-style: solid !important; background: #fff; }
.lcc-coupon-form button { height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--c-navy); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.lcc-coupon-form button:hover { background: var(--c-navy-2); }
.lcc-coupon-err { margin-top: 8px !important; font-size: 12px; color: #dc2626; }
.lcc-coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--c-tint); border: 1px dashed var(--c-teal-ink); margin: 0; }
.lcc-coupon-applied span { font-size: 13px; color: var(--c-ink); }
.lcc-coupon-applied i { color: var(--c-teal-ink); margin-right: 4px; }
.lcc-coupon-applied button { border: 0; background: none; color: #dc2626; font-size: 13px; font-weight: 600; cursor: pointer; }
.lcc-lines { padding: 16px 0 4px; }
.lcc-lines > div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; }
.lcc-lines dt { font-weight: 400; color: var(--c-body); }
.lcc-lines dt small { color: var(--c-muted); }
.lcc-lines dd { margin: 0; font-weight: 600; color: var(--c-ink); }
.lcc-lines .is-free { color: #16a34a; }
.lcc-lines .is-discount { color: var(--c-teal-ink); }
.lcc-lines .lcc-grand { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.lcc-grand dt { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.lcc-grand dd { font-size: 24px; font-weight: 800; color: var(--c-navy); }
.lcc-saving { margin: 6px 0 4px !important; padding: 8px 12px; border-radius: 10px; background: #ecfdf3; color: #15803d; font-size: 13px; font-weight: 600; }
.lcc-summary .lcc-issue { margin-top: 10px; }
.lcc-checkout { margin-top: 16px; height: 50px; font-size: 15px; }
.lcc-note { margin-top: 10px !important; text-align: center; font-size: 12px; color: var(--c-muted); }
.lcc-secure { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--c-soft); }
.lcc-secure i { font-size: 22px; color: var(--c-teal-ink); }
.lcc-secure strong { display: block; font-size: 13px; color: var(--c-ink); }
.lcc-secure span { font-size: 12px; color: var(--c-muted); }

/* Empty */
.lcc-empty { max-width: 640px; margin: 20px auto 0; text-align: center; padding: 56px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: 20px; }
.lcc-empty-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--c-tint); color: var(--c-teal-ink); font-size: 36px; }
.lcc-empty h2 { font-size: 24px; font-weight: 800; }
.lcc-empty p { margin-top: 8px; }
.lcc-empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Responsive */
@media (max-width: 1199px) { .lcc-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 991px) {
  .lcc-layout { grid-template-columns: 1fr; }
  .lcc-summary { position: static; }
}
@media (max-width: 767px) {
  .lcc-steps li + li::before { width: 16px; }
  .lcc-item { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty total"; gap: 12px 14px; padding: 14px; }
  .lcc-img { grid-area: img; width: 84px; height: 84px; align-self: start; }
  .lcc-info { grid-area: info; }
  .cart-remove-btn { grid-area: rm; align-self: start; }
  .lcc-qty { grid-area: qty; }
  .lcc-total { grid-area: total; align-self: center; }
  .lcc-perks { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .lcc-head-row { align-items: flex-start; }
  .lcc-steps { width: 100%; justify-content: space-between; }
  .lcc-steps li { font-size: 12px; }
  .lcc-summary { padding: 20px 18px; }
}

/* Available offers */
.lcc-offers { margin-top: 14px; }
.lcc-offers-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px !important; }
.lcc-offers-title i { color: var(--c-teal-ink); }
.lcc-offers ul { display: grid; gap: 8px; }
.lcc-offers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed #b8c2d3; border-radius: 10px; background: #fff; }
.lcc-offers li > div { display: grid; gap: 2px; min-width: 0; }
.lcc-offer-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em; color: var(--c-navy); }
.lcc-offers li span { font-size: 12px; color: var(--c-body); }
.lcc-offers li small { font-size: 12px; color: #d97706; font-weight: 600; }
.lcc-offers li small.is-save { color: #15803d; }
.lcc-offers li.is-locked { opacity: .75; background: var(--c-soft); }
.lcc-offers li.is-applied { border-style: solid; border-color: var(--c-teal-ink); background: var(--c-tint); }
.lcc-offers form { margin: 0; flex: none; }
.lcc-offers button { height: 32px; padding: 0 14px; border: 1.5px solid var(--c-navy); border-radius: 8px; background: #fff; color: var(--c-navy); font-size: 12px; font-weight: 700; cursor: pointer; }
.lcc-offers button:hover { background: var(--c-navy); color: #fff; }
.lcc-offer-tag { flex: none; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--c-teal-ink); color: #fff; }
