/* ── Cart page ── */

.shop-cart-wrap {
  padding-top: 32px;
  padding-bottom: 64px;
  max-width: 720px;
}

.shop-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.shop-cart-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.shop-cart-image-link {
  display: block;
  width: 100%;
}

.shop-cart-image {
  width: 100%;
  height: auto;
  display: block;
}

.shop-cart-meta {
  padding-top: 2px;
}

.shop-cart-meta h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.shop-cart-meta a {
  color: #222;
  text-decoration: none;
}

.shop-cart-meta a:hover {
  text-decoration: underline;
}

.shop-cart-subtitle {
  margin: 0 0 6px;
  color: #888;
  font-size: 0.85rem;
}

.shop-cart-qty {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

.shop-cart-warning {
  margin: 6px 0 0;
  color: #c44;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-cart-line-price {
  text-align: right;
  padding-top: 2px;
}

.shop-cart-line-total {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.shop-cart-remove-button {
  border: none;
  background: none;
  color: #888;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shop-cart-remove-button:hover {
  color: #c44;
}

.shop-cart-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #222;
}

.shop-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.shop-cart-subtotal-amount {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.shop-cart-note {
  margin: 0 0 20px;
  color: #888;
  font-size: 0.85rem;
}

.shop-checkout-cta {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #222;
  background: #222;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.shop-checkout-cta:hover {
  background: #fff;
  color: #222;
}

.shop-cart-continue-cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 20px;
  border: 2px solid #222;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.shop-cart-continue-cta:hover {
  background: #222;
  color: #fff;
}

.shop-cart-picks {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e0e0e0;
}

.shop-cart-picks.is-3-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-cart-picks.is-2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-cart-pick {
  color: #222;
  text-decoration: none;
}

.shop-cart-pick-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}

.shop-cart-pick.is-landscape .shop-cart-pick-image-wrap {
  aspect-ratio: 4 / 3;
}

.shop-cart-pick.is-square .shop-cart-pick-image-wrap {
  aspect-ratio: 1 / 1;
}

.shop-cart-pick-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.shop-cart-pick:hover .shop-cart-pick-image {
  transform: scale(1.02);
}

.shop-cart-pick-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    #f4f4f4,
    #f4f4f4 10px,
    #ececec 10px,
    #ececec 20px
  );
}

.shop-cart-pick-body {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.shop-cart-pick-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

.shop-cart-pick-price {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-cart-empty {
  margin-top: 32px;
  text-align: center;
  padding: 48px 20px;
  border: 2px dashed #ddd;
}

.shop-cart-empty p {
  margin: 0 0 12px;
  color: #888;
  font-size: 1rem;
}

.shop-cart-empty-link {
  color: #222;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .shop-cart-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 0;
  }

  .shop-cart-picks.is-3-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .shop-cart-picks.is-3-cols,
  .shop-cart-picks.is-2-cols {
    grid-template-columns: 1fr;
  }
}
