.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.product-details {
  display: grid;
  gap: .48rem;
  padding: .3rem .18rem .22rem;
}
.product-details h4 {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  line-height: 1.2;
}
.product-price { color: var(--accent-dark); font-size: 1.15rem; }
.product-details .button { min-height: 2.7rem; }
.product-details button, .cart-launch, .shop-close, .cart-quantity button,
.checkout-submit, #copy-order { cursor: pointer; }
.product-count, .checkout-note { color: var(--muted); line-height: 1.45; }
.product-count { font-size: .85rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cart-launch {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  gap: .55rem;
  min-height: 3.2rem;
  padding-inline: .85rem;
  border-color: #ffffff4d;
  white-space: nowrap;
}
.cart-launch svg { width: 1.15rem; height: 1.15rem; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: .27rem;
  border-radius: 2rem;
  background: #ffffff29;
}

body:has(.shop-dialog[open]) { overflow: hidden; }
.shop-dialog {
  width: min(100% - 1.5rem, 35rem);
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(1rem, 4vw, 1.65rem);
  border: 1px solid var(--rule);
  border-radius: 1.2rem;
  background: var(--white);
  color: var(--ink);
  overscroll-behavior: contain;
  box-shadow: 0 1.3rem 3.8rem #32163440;
}
.shop-dialog::backdrop { background: #3217348f; }
.contact-dialog { width: min(100% - 1.5rem, 27rem); }
.shop-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.shop-dialog h2 { font-size: clamp(1.7rem, 5vw, 2.15rem); }
.shop-close, .cart-quantity button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: #f9eaf4;
  color: var(--accent-dark);
  font-size: 1.3rem;
  line-height: 1;
}
.shop-dialog button:disabled, .product-details button:disabled { opacity: .58; cursor: default; }
.shop-close:hover, .cart-quantity button:not(:disabled):hover { background: #f4dbec; }
.cart-items { display: grid; gap: .55rem; margin: 1.05rem 0 0; padding: 0; }
.cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .7rem;
  padding: .55rem;
  border: 1px solid var(--rule);
  border-radius: .8rem;
}
.cart-item img {
  grid-row: span 2;
  width: 3.2rem;
  height: 3.75rem;
  border-radius: .42rem;
  object-fit: cover;
}
.cart-item-info { display: grid; gap: .15rem; line-height: 1.24; }
.cart-item-info span { font-size: .83rem; color: var(--muted); }
.cart-quantity { grid-row: span 2; display: flex; align-items: center; gap: .38rem; }
.cart-quantity button { width: 2.25rem; height: 2.25rem; }
.cart-quantity span { min-width: 1rem; text-align: center; font-weight: 750; }
.cart-line-total { grid-column: 2; color: var(--accent-dark); }
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-block: .85rem 1rem;
  font-weight: 700;
}
.cart-total strong { color: var(--accent-dark); font-size: 1.25rem; white-space: nowrap; }
.checkout-form { display: grid; gap: .85rem; }
.checkout-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.delivery-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.delivery-options legend { margin-bottom: .4rem; padding: 0; font-weight: 750; }
.delivery-options label {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.55rem;
  padding: .35rem .7rem;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  cursor: pointer;
}
.delivery-options label:has(input:checked) { border-color: #bc87ad; background: #faeaf5; }
.delivery-options input { margin: 0; accent-color: var(--accent); }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.checkout-fields label { display: block; font-size: .92rem; font-weight: 700; }
.checkout-fields label span { font-size: .81rem; font-weight: 500; color: var(--muted); }
.checkout-fields input, .order-draft textarea {
  display: block;
  width: 100%;
  margin-top: .2rem;
  padding: .55rem .65rem;
  border: 1px solid #dcbacf;
  border-radius: .58rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.checkout-fields input { min-height: 2.6rem; font-size: 1rem; }
.checkout-wide { grid-column: 1 / -1; }
.checkout-timing { padding: .65rem .75rem; border-radius: .65rem; background: #faeaf5; }
.checkout-submit { justify-self: stretch; }
.contact-dialog > .checkout-note { margin-top: .55rem; }
.order-channels { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-block: .85rem; }
.order-channel > span { display: none; }
.order-channel:first-child { grid-column: 1 / -1; }
.order-channel:nth-child(2) { background: var(--accent); border-color: var(--accent); color: white; }
.order-channel:nth-child(2):hover { background: var(--accent-dark); }
.order-draft summary { color: var(--accent-dark); cursor: pointer; font-weight: 750; }
.order-draft textarea { margin-block: .5rem; resize: vertical; font-size: .9rem; }
#draft-status:empty { display: none; }

@media (max-width: 430px) {
  .checkout-fields { grid-template-columns: minmax(0, 1fr); }
  .cart-item { gap: .3rem .5rem; }
  .cart-item img { width: 2.5rem; height: 3.15rem; }
  .cart-quantity button { width: 2.05rem; height: 2.05rem; }
}
