/* Angelswurld cart (cart.js) - the bag button, the drawer, the toast. */
.aw-cart-btn {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 14px; z-index: 35;
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #1a1b1f; background: #fff; color: #1a1b1f;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); padding: 0;
}
.aw-cart-btn svg { width: 26px; height: 26px; }
.aw-cart-btn:active { transform: translateY(2px); box-shadow: none; }
.aw-cart-btn.bump { animation: aw-bump 0.35s ease; }
@keyframes aw-bump { 40% { transform: scale(1.18) rotate(-6deg); } }
.aw-cart-count {
  position: absolute; right: -6px; bottom: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px;
  background: #d9466a; color: #fff; font: 700 13px/24px "Montserrat", Arial, sans-serif; text-align: center; border: 2px solid #fff;
}
.aw-cart-count[hidden] { display: none; }

.aw-cartbox { position: fixed; inset: 0; z-index: 60; background: rgba(18, 12, 30, 0.45); opacity: 0; transition: opacity 0.25s; }
.aw-cartbox[hidden] { display: none; }
.aw-cartbox.on { opacity: 1; }
.aw-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #f6f1e6; color: #1a1b1f;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s ease;
  font-family: "Montserrat", Arial, Helvetica, sans-serif; box-shadow: -6px 0 24px rgba(0, 0, 0, 0.25);
}
.aw-cartbox.on .aw-panel { transform: none; }
.aw-head { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 12px; border-bottom: 2px solid #1a1b1f; }
.aw-head b { font-family: "Wurld Bubble", "Boring Time", Impact, sans-serif; font-size: 28px; font-weight: normal; letter-spacing: 0.02em; }
.aw-exit {
  font-family: "Wurld Bubble", "Boring Time", Impact, sans-serif; font-size: 18px; background: #fff; color: #1a1b1f; border: 3px solid #1a1b1f;
  border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.aw-mode { margin: 10px 16px 0; padding: 8px 10px; border-radius: 8px; background: #ffe7a8; font-size: 13px; }
.aw-list { flex: 1; overflow: auto; padding: 8px 16px; }
.aw-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #0002; }
.aw-item img, .aw-noimg { width: 78px; height: 78px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.aw-info { flex: 1; min-width: 0; }
.aw-name { font-weight: 700; font-size: 15px; }
.aw-price { opacity: 0.75; margin: 2px 0 8px; }
.aw-qty { display: flex; align-items: center; gap: 8px; }
.aw-qty button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #1a1b1f; background: #fff; font-size: 18px; cursor: pointer; }
.aw-qty span { min-width: 20px; text-align: center; font-weight: 700; }
.aw-qty .aw-rm { width: auto; border: 0; background: none; text-decoration: underline; font-size: 13px; margin-left: auto; height: auto; }
.aw-empty { text-align: center; opacity: 0.7; margin-top: 40px; }
.aw-foot { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); border-top: 2px solid #1a1b1f; }
.aw-total { display: flex; justify-content: space-between; font-size: 18px; }
.aw-note { font-size: 12px; opacity: 0.7; margin: 8px 0 12px; }
.aw-go {
  width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: #1a1b1f; color: #fff; cursor: pointer;
  font-family: "Wurld Bubble", "Boring Time", Impact, sans-serif; font-size: 22px; letter-spacing: 0.02em;
}
.aw-go:disabled { opacity: 0.4; cursor: default; }
.aw-msg { color: #b0273f; font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.aw-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 70; pointer-events: none;
  background: #1a1b1fe6; color: #fff; padding: 10px 18px; border-radius: 10px; font: 600 15px "Montserrat", Arial, sans-serif;
  opacity: 0; transition: opacity 0.3s; max-width: 86vw; text-align: center;
}
.aw-toast.on { opacity: 1; }

/* shop.html: the add-to-cart button looks like the old "buy" button */
.product-card button.add-to-cart { font: inherit; cursor: pointer; }
