.shop-3d-icon { display: block; object-fit: contain; flex: none; }
.wish-heart.shop-3d-icon { width: 22px; height: 22px; }
.compact-card .v16-heart {
  top: 0; right: 0; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent;
}
.compact-card .v16-heart::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid #f2c3cf; border-radius: 50%; background: #fff9fc;
  pointer-events: none;
}
.compact-card .v16-heart .wish-heart {
  position: relative; width: 17px; height: 17px;
}
.cart-header { position: relative; flex: none; background: #fff1df; }
.cart-header .cart-badge {
  position: absolute; inset: -2px -4px auto auto; min-width: 16px; padding: 1px 3px;
  border-radius: 12px; background: #ad274d; color: #fff; font-size: .65rem; line-height: 1.25; text-align: center;
}

.detail-name-price { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: baseline; }
.detail-name-price .product-price { margin: 0; white-space: nowrap; }
.cart-detail-actions { display: grid; gap: 5px; }
.cart-purchase-row {
  display: grid; grid-template-columns: 44px repeat(2,minmax(0,1fr));
  margin: 0; gap: 5px;
}
.cart-purchase-row .button, .cart-purchase-row .v16-wish {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 45px; padding: 3px 4px; text-align: center; line-height: 1.1; white-space: nowrap;
  font-size: clamp(.72rem, 2.9vw, .95rem); gap: 3px;
}
.cart-purchase-row .v16-wish { border: 1px solid #f8d6e3; }
.cart-purchase-row .cart-add { background: #ffedda; color: #703b19; }
.cart-primary.button { background: #ffc07c; color: #562e14; border-color: #eca56a; }
.cart-primary.button:disabled { background: #f0e8de; color: #67594c; border-color: #e9ddd1; cursor: default; }
.cart-referral {
  display: flex; align-items: center; gap: 4px; margin: 0; color: var(--blue);
  font-size: clamp(.69rem, 2.6vw, .78rem); line-height: 1.35;
}
.cart-referral strong { color: #a03c16; white-space: nowrap; }
.cart-success {
  padding: 7px 9px; border: 1px solid #b7d8b3; border-radius: 8px;
  background: #eef7e8; color: #245639; font-size: .81rem;
}
.cart-success > div, .cart-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cart-success button, .cart-links button, .cart-text-button {
  border: 0; padding: 3px 0; background: transparent; color: var(--blue);
  cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.cart-success a, .cart-links a { color: var(--blue); }
.cart-success[hidden], .cart-badge[hidden] { display: none; }

.shop-cart-sheet { max-height: 88dvh; }
.shop-cart-sheet::backdrop { background: #211d25a0; }
.shop-cart-sheet .cart-sheet-inner { display: grid; gap: 9px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
.shop-cart-sheet h2 { margin: 0; padding-block: 0; font-size: 1.15rem; }
.shop-cart-sheet .close-dialog { position: absolute; inset: 6px 7px auto auto; }
.cart-package-heading {
  min-height: 68px; display: grid; grid-template-columns: 68px minmax(0, 1fr);
  align-items: center; gap: 9px;
}
.cart-package-heading strong { display: block; line-height: 1.25; }
.cart-package-heading strong + strong { margin-top: 4px; color: #883a17; font-size: .92rem; }
.cart-package-photo, .cart-package-choice img, .cart-item-photo {
  display: block; background: #fff; border: 1px solid #eadac5; border-radius: 8px; overflow: hidden;
}
.cart-package-photo img, .cart-item-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.cart-package-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.cart-package-choice {
  display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 6px; align-items: center; min-height: 51px;
  padding: 5px; border-radius: 8px; border: 1px solid #e8d7c3; background: #fffdf9;
  color: var(--blue); text-align: start; line-height: 1.2; font-size: .8rem;
}
.cart-package-choice[aria-pressed="true"] { background: #ffeccf; border-color: #bc6734; box-shadow: inset 0 0 0 1px #bc6734; }
.cart-package-choice:disabled { color: #635c53; opacity: .75; }
.cart-package-choice img { width: 37px; height: 37px; object-fit: contain; }
.cart-package-choice small, .cart-muted { display: block; color: #634d41; font-size: .72rem; }
.cart-package-quantity, .cart-package-total { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.cart-package-total strong { color: #883a17; }
.cart-stepper {
  display: inline-grid; grid-template-columns: 27px minmax(25px, auto) 27px; align-items: center;
  border: 1px solid #e7d2bd; border-radius: 6px; background: #fffdfa; text-align: center; flex-shrink: 0;
}
.cart-stepper button { color: var(--blue); background: #fff7ec; border: 0; min-height: 29px; padding: 0; font-size: 1rem; }
.cart-stepper button:disabled { color: #786b60; background: #f3eae0; }
.cart-stepper output { padding: 0 3px; font-size: .78rem; }
.cart-message { color: #8c3a19; margin: 0; font-size: .82rem; }
.cart-message:empty { display: none; }
.cart-account-form { display: grid; gap: 7px; }
.cart-account-form label { display: grid; gap: 3px; font-size: .83rem; }
.cart-account-form input {
  padding: 8px; color: var(--blue); border: 1px solid #ceb49b; border-radius: 8px; width: 100%; font: inherit;
}

.shop-cart-page #main { max-width: 820px; padding-bottom: 112px; }
.shop-cart-page .site-footer { margin-bottom: 110px; }
.cart-top, .cart-account {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cart-top { min-height: 48px; }
.cart-top h1 { margin: 0 auto 0 0; font-size: clamp(1.12rem, 4vw, 1.55rem); line-height: 1.2; }
.cart-top h1 small { font-size: .74em; }
.cart-top .back { margin: 0; font-size: .82rem; }
.cart-top .back svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-account {
  justify-content: flex-start; flex-wrap: wrap; min-height: 38px; border-bottom: 1px solid #eadac5;
  margin-bottom: 8px; color: #5f4c3e; font-size: .8rem;
}
.cart-items { display: grid; gap: 7px; }
.cart-empty { display: grid; justify-items: center; align-content: center; min-height: 205px; gap: 5px; }
.cart-empty p { margin: 0; }
.cart-empty .button { width: auto; }
.cart-items:has(.cart-empty) + .cart-continue { display: none; }
.cart-item {
  display: grid; grid-template-columns: auto 61px minmax(0,1fr); align-items: start; gap: 7px;
  padding: 8px 7px; border: 1px solid #eadac5; border-radius: 10px; background: #fffdfa;
}
.cart-item-photo { width: 61px; aspect-ratio: 1; }
.cart-item input, .cart-checkout-row input { width: 17px; height: 17px; margin: 1px; accent-color: #a54b1e; }
.cart-item input { align-self: center; }
.cart-item-name { color: var(--blue); text-decoration: none; display: block; font-size: .88rem; line-height: 1.25; }
.cart-line-variant, .cart-line-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px;
  margin-top: 4px; font-size: .75rem; line-height: 1.2;
}
.cart-line-actions > strong { margin-right: auto; color: #883a17; }
.cart-line-alert { display: block; color: #8c3a19; font-size: .73rem; }
.cart-continue { display: inline-block; margin-top: 7px; font-size: .82rem; }
.cart-fixed {
  position: fixed; z-index: 3; inset: auto 0 0;
  background: #fffaf1; border-top: 1px solid #eadac5; box-shadow: 0 -2px 15px #432a1120;
  padding-bottom: env(safe-area-inset-bottom);
}
.cart-fixed-inner { max-width: 820px; }
.cart-voucher-row, .cart-checkout-row {
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
  width: 100%; min-height: 38px; font-size: .81rem;
}
.cart-voucher-row { border: 0; background: transparent; color: var(--blue); text-align: start; padding: 0; }
.cart-voucher-row > span:last-child { margin-left: auto; text-decoration: underline; }
.cart-checkout-row { min-height: 47px; border-top: 1px solid #e9dbc9; padding-block: 4px; }
.cart-checkout-row label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.cart-checkout-row .button { min-height: 35px; width: auto; padding: 4px 8px; white-space: nowrap; }
.cart-checkout-total { margin-left: auto; text-align: end; }
.cart-checkout-total strong { white-space: nowrap; }
@media (width < 768px) {
  .cart-fixed { bottom: calc(71px + env(safe-area-inset-bottom)); padding-bottom: 0; }
  .shop-cart-page .site-footer { margin-bottom: 156px; }
}
@media (max-width: 359px) {
  .header-actions .icon-button { width: 32px; min-width: 32px; }
  .cart-item { grid-template-columns: auto 48px minmax(0,1fr); }
  .cart-item-photo { width: 48px; }
  .cart-purchase-row .cart-add .shop-3d-icon { width: 17px; height: 17px; }
}
