.cart-primary, .cart-trigger, .cart-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 44px;
  border: 1px solid #24211e;
  border-radius: 0;
  padding: .62rem .9rem;
  color: #24211e;
  background: #fff;
  font: 800 .9rem/1.3 Manrope, Arial, sans-serif;
  text-align: center;
}
.cart-primary { background: #24211e; color: #fff; }
.cart-primary:hover { background: #443a33; }
.cart-trigger:hover, .cart-icon-button:hover { background: #f0e8db; }
.cart-primary:disabled, .cart-icon-button:disabled { opacity: .48; cursor: not-allowed; }
.cart-primary[hidden], .cart-toast[hidden] { display: none; }
.cart-trigger svg, .cart-icon-button svg { flex: none; width: 22px; height: 22px; }
.cart-trigger { white-space: nowrap; }
[data-reset-page="products"] .product-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .45rem;
}
.cart-icon-button { width: 44px; padding: 0; }
.cart-dialog {
  width: min(33rem, calc(100% - 24px));
  max-height: min(88dvh, 52rem);
}
.cart-dialog-head, .cart-dialog-foot {
  position: sticky;
  z-index: 1;
  padding: 1rem 1.2rem;
  background: #fcfaf6;
}
.cart-dialog-head {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9cdbf;
}
.cart-dialog-head h2 { margin: 0; }
.cart-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #24211e;
  font: 500 1.6rem/1 Manrope, Arial, sans-serif;
}
.cart-dialog-foot { bottom: 0; border-top: 1px solid #d9cdbf; }
.cart-dialog-foot > div { display: flex; justify-content: space-between; }
.cart-dialog-foot p { margin: .4rem 0 .8rem; color: #62584f; font-size: .82rem; }
.cart-dialog-foot .cart-primary { width: 100%; }
.cart-empty { margin: 1.3rem; color: #62584f; }
.cart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e5ddcf;
}
.cart-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #eee9e0; }
.cart-row-copy { display: grid; gap: .2rem; overflow-wrap: anywhere; line-height: 1.45; }
.cart-row-copy :is(small, span), .cart-row-total { font-size: .83rem; }
.cart-row-copy small { color: #62584f; }
.cart-row-actions, .cart-quantity { display: flex; align-items: center; gap: .45rem; }
.cart-row-actions { flex-wrap: wrap; }
.cart-quantity button {
  width: 36px;
  min-height: 36px;
  border: 1px solid #d9cdbf;
  background: #fff;
  color: #24211e;
}
.cart-remove { min-height: 36px; border: 0; background: none; text-decoration: underline; }
.cart-toast {
  position: fixed;
  z-index: 60;
  top: clamp(70px, 12vh, 100px);
  right: clamp(12px, 3vw, 36px);
  width: min(25rem, calc(100% - 24px));
  padding: 1rem;
  background: #fff;
  color: #24211e;
  border: 1px solid #e5ddcf;
  box-shadow: 0 8px 28px #241a1525;
}
.cart-toast > .cart-close { position: absolute; top: .15rem; right: .15rem; }
.cart-toast-heading { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: .75rem; padding-right: 2rem; }
.cart-toast-heading > div { display: grid; gap: .15rem; line-height: 1.4; }
.cart-toast-heading strong { font-size: 1rem; }
.cart-toast-heading b { overflow-wrap: anywhere; }
.cart-check { color: #496329; }
.cart-toast-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .85rem; }
.cart-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .catalog-meta { flex-direction: row; align-items: center; }
  .cart-row { padding-inline: .85rem; }
  .cart-toast { right: 12px; }
}
