/* ============================================================
   TEMPLATE01 — Cart Page Styles (modern clean, rounded)
   ============================================================ */

/* NOTE: --ink/--paper/--fog/--mute/--accent datang dari main.css. Jangan
   redeclare :root di sini. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: 'Lato', sans-serif; background: var(--fog); color: var(--ink); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Lato', sans-serif; font-weight: 800; letter-spacing: -.01em; }
img, video, iframe { max-width: 100%; }

.page-hdr { padding: 2rem 0; margin-bottom: 1.5rem; }
.page-hdr h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: 0; padding: 0; text-transform: none; }
.page-hdr p { font-family: 'Lato', sans-serif; font-size: .82rem; letter-spacing: 0; color: var(--mute); margin: .5rem 0 0; }

/* CART ITEM */
.ci { display: flex; gap: 1.2rem; padding: 1.3rem; background: #fff; border-radius: 16px; margin-bottom: .9rem; box-shadow: 0 2px 10px rgba(33,33,33,.05); }
.ci-img { width: 100px; min-width: 100px; height: 125px; overflow: hidden; background: var(--fog); border-radius: 12px; flex-shrink: 0; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; display: flex; flex-direction: column; }
.ci-brand { font-family: 'Lato', sans-serif; font-size: .68rem; letter-spacing: 0; text-transform: none; color: var(--accent); font-weight: 700; margin-bottom: .2rem; }
.ci-name { font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: 700; text-transform: none; margin-bottom: .35rem; line-height: 1.3; }
.ci-meta { font-size: .78rem; color: var(--mute); letter-spacing: 0; margin-bottom: .7rem; }
.ci-price { font-size: .95rem; font-weight: 800; color: var(--accent); margin-bottom: auto; }
.ci-info > div:nth-child(5) { margin-bottom: .7rem; }

.qb { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qb button { background: transparent; border: none; padding: .4rem .9rem; font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--ink); transition: background .15s; }
.qb button:first-child { border-radius: 999px 0 0 999px; }
.qb button:last-child { border-radius: 0 999px 999px 0; }
.qb button:hover { background: var(--fog); }
.qb span { padding: 0 .8rem; font-size: .85rem; font-weight: 700; min-width: 34px; text-align: center; }
.rm-btn { background: none; border: none; color: var(--mute); cursor: pointer; font-size: .78rem; letter-spacing: 0; text-transform: none; font-weight: 600; text-decoration: none; padding: 0; transition: color .15s; }
.rm-btn:hover { color: #e02b2b; }

/* SHIP BAR */
.ship-bar { padding: 1rem 1.2rem; background: #fff; border-radius: 16px; margin-bottom: 1.2rem; box-shadow: 0 2px 10px rgba(33,33,33,.05); }
.ship-bar p { font-size: .8rem; letter-spacing: 0; margin-bottom: .5rem; color: var(--mute); }
.ship-bar .prog { height: 6px; background: var(--fog); border-radius: 999px; }
.ship-bar .prog-fill { height: 6px; background: var(--accent); border-radius: 999px; width: 74%; }
.ship-bar .amt { color: var(--accent); font-weight: 800; }

/* SUMMARY BOX */
.sum-box { background: #fff; border-radius: 18px; padding: 1.6rem; position: sticky; top: 90px; box-shadow: 0 2px 14px rgba(33,33,33,.06); }
.sum-title { font-family: 'Lato', sans-serif; font-size: 1.1rem; font-weight: 800; text-transform: none; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; font-size: .85rem; color: var(--mute); }
.sum-row.total { font-size: 1rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .3rem; }
.sum-row.total span:last-child { font-family: 'Lato', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--accent); }

.promo-wrap { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 1.1rem 0; }
.promo-in { background: transparent; border: none; padding: .65rem 1.1rem; font-size: .8rem; font-family: 'Lato', sans-serif; flex: 1; outline: none; color: var(--ink); }
.promo-in::placeholder { color: #bbb; }
.promo-apply { background: var(--accent); color: #fff; border: none; padding: .65rem 1.2rem; font-size: .75rem; letter-spacing: 0; text-transform: none; font-weight: 700; cursor: pointer; font-family: 'Lato', sans-serif; transition: background .15s; }
.promo-apply:hover { background: var(--accent-dark); }

.btn-co { background: var(--accent); color: #fff; padding: 1rem; font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 700; border: 0; border-radius: 999px; width: 100%; cursor: pointer; font-family: 'Lato', sans-serif; transition: background .15s; box-shadow: 0 6px 16px rgba(3,172,12,.22); }
.btn-co:hover { background: var(--accent-dark); }
.btn-cont { display: block; text-align: center; background: #fff; color: var(--ink); padding: .8rem; font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; width: 100%; cursor: pointer; font-family: 'Lato', sans-serif; text-decoration: none; margin-top: .6rem; transition: background .15s; }
.btn-cont:hover { background: var(--fog); }

/* PAYMENT BADGES */
.pay-badge { background: var(--fog); border: 1px solid var(--line); padding: .3rem .8rem; font-size: .7rem; letter-spacing: 0; font-weight: 700; border-radius: 999px; color: var(--mute); }

/* RECOMMENDED */
.pc-info .price { font-size: .82rem; color: var(--accent); font-weight: 800; }
.pc-add-sm { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .7rem; letter-spacing: 0; text-transform: none; font-weight: 700; cursor: pointer; font-family: 'Lato', sans-serif; color: var(--ink); transition: background .15s,color .15s; margin-top: .35rem; }
.pc-add-sm:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.eyebrow { font-family: 'Lato', sans-serif; font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--accent); font-weight: 700; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state i { font-size: 3rem; color: var(--accent); margin-bottom: 1.3rem; display: block; line-height: 1; }
.empty-state h4 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .8rem; color: var(--ink); text-transform: none; }
.empty-state p { font-size: .85rem; color: var(--mute); margin: 0; letter-spacing: 0; }

.foot-mini { background: var(--ink); color: rgba(255,255,255,.7); padding: 1.5rem; text-align: center; font-size: .8rem; margin-top: 3rem; border-radius: 22px 22px 0 0; }
.foot-mini .fb { font-family: 'Lato', sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: 0; }

@media (max-width: 768px) {
  .container { padding-left: 1.2rem; padding-right: 1.2rem; }
  .page-hdr { padding: 1.5rem 0; }
  .page-hdr h1 { font-size: 1.6rem; line-height: 1.15; }
  .ci { gap: 0.9rem; padding: 1rem; }
  .ci-img { width: 80px; min-width: 80px; height: auto; aspect-ratio: 3/4; }
  .ci-brand { font-size: .64rem; }
  .ci-name { font-size: .92rem; margin-bottom: .2rem; }
  .ci-meta { font-size: .72rem; margin-bottom: .5rem; }
  .ci-price { font-size: .85rem; margin-bottom: .6rem; }
  .ci-info > div:nth-child(5) { margin-bottom: .4rem; }
  .ci-info > input { font-size: .8rem; padding: .4rem .7rem; width: 100%; }
  .ship-bar { padding: 1rem; margin-bottom: 1.5rem; }
  .sum-box { position: static; padding: 1.4rem; margin-top: 1.5rem; }
  .sum-title { margin-bottom: 1.2rem; }
  .sum-row { margin-bottom: .9rem; }
  .empty-state { padding: 4rem 1.5rem; }
  .empty-state i { font-size: 2.6rem; margin-bottom: 1.1rem; }
  .empty-state h4 { font-size: 1.15rem; }
}
