/* =================== hc-cart.css =================== */
.hc-cart {display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 3vw, 44px); align-items: start}
.hc-cart__items {background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: var(--hc-r-lg); overflow: hidden; display: grid; gap: 12px}
.hc-cart__item {display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 18px; padding: 14px; border-bottom: 1px solid var(--hc-line); align-items: center; background: var(--hc-bg, #f8f6f3); border: 1px solid rgba(26, 23, 20, 0.07); border-radius: 18px; transition: border-color 0.25s ease, box-shadow 0.25s ease}
.hc-cart__item:last-child {border-bottom: 0}
.hc-cart__item-img {width: 100px; aspect-ratio: 1; background: var(--hc-bg-2, var(--hc-paper-3, #f2efe9)); border-radius: 14px; padding: 0; overflow: hidden; height: 100px; flex: none; display: flex; align-items: center; justify-content: center; position: relative}
.hc-cart__item-name {font-size: 15px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--hc-ink, #1a1714); text-decoration: none; margin-bottom: 8px; text-overflow: ellipsis; white-space: normal; word-break: break-word}
.hc-cart__item-series {font-size: 10px; color: var(--hc-muted, rgba(26, 23, 20, 0.55)); letter-spacing: 0.06em; font-family: 'JetBrains Mono', ui-monospace, monospace; margin-bottom: 4px; text-transform: uppercase; font-weight: 500}
.hc-cart__item-price {font-family: var(--hc-serif, "Playfair Display", Georgia, serif); font-size: 18px; font-weight: 500; text-align: right; color: var(--hc-ink, #1a1714)}
.hc-cart__item-rm {font-size: 12px; color: var(--hc-muted, rgba(26, 23, 20, 0.5)); cursor: pointer; margin-top: 4px; background: transparent; border: none; padding: 4px 6px; transition: color 0.2s ease}
.hc-cart__item-rm:hover {color: var(--hc-red, #c0392b)}
.hc-cart__item-body {min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden}
.hc-cart__item-controls {display: flex; gap: var(--hc-sp-3, 14px); align-items: center; flex-wrap: wrap; margin-top: 4px}
.hc-cart__item-right {text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 70px}
.hc-cart__title, .hc-ck__title {font-family: var(--hc-serif, "Playfair Display", Georgia, serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--hc-sp-5, 28px); color: var(--hc-ink, #1a1714)}
.hc-cart__main {min-width: 0}
.hc-cart__side {position: relative}
.hc-cart__item:hover {border-color: rgba(139, 115, 85, 0.22); box-shadow: 0 10px 28px rgba(26, 23, 20, 0.06)}
.hc-cart__item-img img {width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block}
.hc-cart__item-img-ph {display: inline-flex; place-items: center; width: 24px; height: 24px; color: var(--hc-ink-mid, rgba(26, 23, 20, 0.4)); align-items: center; justify-content: center}
.hc-cart__item-series code {background: rgba(26, 23, 20, 0.04); padding: 1px 5px; border-radius: 4px}
.hc-cart__item-name:hover {color: var(--hc-accent-dark, #7a6548)}
.hc-cart-upsell__rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: start;
  align-items: stretch;
  gap: 14px;
}
.hc-cart-upsell__rail > * {
  min-width: 0;
}
.hc-cart-upsell__rail > .pcard {
  width: 100%;
  max-width: 320px;
}
@media (max-width: 768px) {
  .hc-cart-upsell__rail {
    grid-template-columns: 1fr;
  }
  .hc-cart-upsell__rail > .pcard {
    max-width: none;
  }
}

.hc-cart-progress {display: grid; gap: 8px; margin-top: 10px}
.hc-cart-progress__label {font-size: 12px; color: var(--hc-ink-soft, rgba(26, 23, 20, 0.72))}
.hc-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(141, 109, 71, 0.14);
}
.hc-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #8b7355, #d4b896);
  border-radius: inherit;
  transition: width 0.28s ease;
}
