/* cart.html — page styles */
.link-x{
  text-decoration: none;
}
.pd-related {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--paper);
}
.steps {
  display: flex;
  gap: 0.6rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  flex-wrap: wrap;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.steps b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ink);
}
.steps li.on {
  color: var(--ink);
  font-weight: 700;
}
.steps li.on b {
  background: var(--lime);
}
.steps li:not(:last-child)::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--clay);
  margin-inline-start: 0.4rem;
}
.ci-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--muted);
}
.ci {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto auto 40px;
  gap: 1rem 1.2rem;
  align-items: center;
  background: #fff;
  border-radius: 26px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s;
}
.ci:hover {
  box-shadow: 0 14px 32px rgba(59, 36, 23, 0.1);
}
.ci .ci-th {
  width: 104px;
}
.ci > .ci-th {
  grid-area: auto;
}
.ci-main h3 {
  font-size: 1.4rem;
  margin: 0.3rem 0 0.4rem;
}
.ci-main h3 a {
  color: var(--lapis);
}
.ci-main h3 a:hover {
  color: var(--pink);
}
.ci-vol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.ci-vol select {
  width: auto;
  border-radius: 30px;
  border-color: var(--clay);
  background-color: var(--paper);
}
.ci-unit {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.ci-unit del {
  color: #b09a88;
  margin-inline-end: 0.3rem;
}
.ci-total {
  text-align: center;
  min-width: 92px;
}
.ci-total b {
  display: block;
  font-size: 1.15rem;
}
.ci-total small {
  color: var(--muted);
}
.back-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--lapis);
  font-weight: 500;
  margin-top: 0.4rem;
}
.back-link:hover {
  color: var(--pink);
}
.sum-wrap {
  position: sticky;
  top: 96px;
}
.sum-card {
  background: #fff;
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(59, 36, 23, 0.08);
}
.sum-card h2 {
  font-size: 1.6rem;
  color: var(--lapis);
}
.sum-card .ship-bar {
  background: var(--paper);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--clay);
  font-size: 0.95rem;
}
.sum-row.good {
  color: #1b7f3a;
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.sum-total span {
  font-weight: 700;
}
.sum-total b {
  font-size: 1.6rem;
  display: inline-block;
}
.flash {
  animation: flash 0.7s;
}
.coup-msg {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.2em;
  margin: 0 0 0.8rem;
}
.sum-trust {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.sum-trust i {
  color: var(--turq);
  margin-inline-end: 0.2rem;
}
@media (max-width: 991px) {
  .sum-wrap {
    position: static;
  }
  .cart-page .footer {
    padding-bottom: 90px;
  }
}
@media (max-width: 767px) {
  .ci {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "th main rm" "qty qty total";
    padding: 0.9rem;
    gap: 0.8rem;
  }
  .ci > .ci-th {
    grid-area: th;
    width: 84px;
  }
  .ci-main {
    grid-area: main;
  }
  .ci-qty {
    grid-area: qty;
    justify-self: start;
  }
  .ci-total {
    grid-area: total;
    text-align: end;
  }
  .ci > .mc-rm {
    grid-area: rm;
    align-self: start;
  }
  .ci-main h3 {
    font-size: 1.2rem;
  }
}
@media (max-width: 575px) {
  .steps li span {
    font-size: 0.8rem;
  }
  .steps li:not(:last-child)::after {
    width: 16px;
  }
}
.steps li.done {
  color: var(--ink);
}
.steps li.done b {
  background: var(--turq);
  color: #fff;
}

@media (max-width: 575px) {
  .steps {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .steps li {
    gap: 0.3rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .steps li:not(:last-child)::after {
    width: 10px;
    margin-inline-start: 0.1rem;
  }
  .steps b {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
    flex: none;
  }
}
