/* =====================================================================
   W.I. Freight — Cart page (uses the shop styles in wif-shop.css too)
   ===================================================================== */

.wct-head {
  padding: 2.5rem 0 4.5rem;
  color: #fff;
  background:
    radial-gradient(800px 300px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(500px 260px at -10% 120%, rgba(190, 1, 25, .35), transparent 60%),
    linear-gradient(135deg, var(--sh-primary) 0%, #1d1f6b 100%);
}
.wct-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.wct-head h1 span { color: rgba(255, 255, 255, .6); font-weight: 600; }

.wct-main { padding: 0 0 4.5rem; }
.wct-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
  margin-top: -2.75rem;
}
.wct-grid.is-empty .wct-items, .wct-grid.is-empty .wct-summary { display: none; }

/* Items */
#wct-list { display: grid; gap: .8rem; }
.wct-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 110px 40px;
  align-items: center;
  gap: 1.1rem;
  padding: .9rem 1rem .9rem .9rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sh-line);
  box-shadow: 0 16px 32px -26px rgba(20, 22, 58, .5);
  animation: sh-in .4s var(--sh-ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.wct-img { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #fff, #eef0f8); overflow: hidden; }
.wsh .wct-img img { width: 84%; height: 84%; object-fit: contain; }
.wct-info h3 { margin: 0 0 .25rem; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.wct-info h3 a { color: var(--sh-ink); }
.wct-info h3 a:hover { color: var(--sh-primary); }
.wct-each { font-size: .9rem; color: var(--sh-muted); }
.wct-qty.wsh-qty { height: 44px; border-radius: 12px; }
.wct-qty.wsh-qty button { width: 40px; }
.wct-qty.wsh-qty input { width: 40px; font-size: 1rem; }
.wct-line { text-align: right; font-size: 1.15rem; font-weight: 700; color: var(--sh-ink); }
.wct-remove {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sh-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.wct-remove:hover { background: rgba(190, 1, 25, .08); color: var(--sh-accent); }

.wct-under { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.wct-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .2rem;
  border: 0;
  background: none;
  color: var(--sh-primary);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.wct-link:hover { color: var(--sh-accent); }
.wct-clear { color: var(--sh-muted); }

/* Summary */
.wct-summary {
  position: sticky; top: 100px;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--sh-line);
  box-shadow: 0 24px 48px -32px rgba(20, 22, 58, .55);
}
.wct-summary h2 { margin: 0 0 1.1rem; font-size: 1.25rem; font-weight: 700; color: var(--sh-ink); }
.wct-summary dl { margin: 0 0 1.4rem; }
.wct-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .97rem; }
.wct-summary dt { font-weight: 500; color: var(--sh-muted); }
.wct-summary dd { margin: 0; font-weight: 600; color: var(--sh-ink); text-align: right; }
.wct-summary .wct-muted { font-weight: 500; color: var(--sh-muted); font-size: .9rem; }
.wct-summary .wct-total { margin-top: .4rem; padding-top: .9rem; border-top: 1px dashed rgba(20, 22, 58, .15); }
.wct-summary .wct-total dt { color: var(--sh-ink); font-weight: 700; font-size: 1.05rem; }
.wct-summary .wct-total dd { color: var(--sh-accent); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.wct-summary .wsh-btn { width: 100%; margin-bottom: .65rem; }
.wct-btn-wa { background: #25d366; color: #fff; box-shadow: 0 14px 26px -14px #25d366; }
.wct-btn-wa:hover { color: #fff; background: #1ebe5b; }
.wct-note { display: flex; gap: .5rem; margin: .6rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--sh-muted); }
.wct-note .bi { color: var(--sh-primary); margin-top: .1rem; }

/* Empty */
.wct-empty {
  grid-column: 1 / -1;
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--sh-line);
  box-shadow: 0 24px 48px -32px rgba(20, 22, 58, .5);
  text-align: center;
  color: var(--sh-muted);
  animation: sh-in .4s var(--sh-ease) both;
}
.wct-empty-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: var(--sh-tint); color: var(--sh-primary); font-size: 2.2rem; }
.wct-empty h2 { margin: 1rem 0 .4rem; font-size: 1.6rem; font-weight: 700; color: var(--sh-ink); }
.wct-empty p { margin: 0 0 1.5rem; }

.wct-undo { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .wct-grid { grid-template-columns: 1fr; }
  .wct-summary { position: static; }
}
@media (max-width: 575px) {
  .wct-head { padding: 2rem 0 4rem; }
  .wct-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "img info remove" "img qty line";
    gap: .5rem .8rem;
    padding: .8rem;
  }
  .wct-img { grid-area: img; width: 76px; height: 76px; align-self: start; }
  .wct-info { grid-area: info; }
  .wct-qty { grid-area: qty; justify-self: start; }
  .wct-line { grid-area: line; align-self: center; }
  .wct-remove { grid-area: remove; align-self: start; width: 34px; height: 34px; }
  .wct-info h3 { font-size: 1rem; }
}
