/* Shared store UI: cart pill + slide-in drawer (used by prints.html and
   product.html; injected and driven by store.js). */

.cart-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: none;
}
.cart-pill.visible {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: #ffffff;
  box-shadow: -12px 0 50px rgba(0, 0, 0, 0.12);
  z-index: 70;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  padding: 28px;
  font-family: "Montserrat", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 300;
}
.cart-drawer.open {
  transform: none;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.cart-head h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: 0 0 64px;
}
.cart-row-name {
  font-size: 0.95rem;
  color: #1a1a1a;
}
.cart-row-price {
  font-size: 0.85rem;
  color: #8a8a8a;
  margin-top: 2px;
}
.qty {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty button {
  background: none;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-family: inherit;
  color: #1a1a1a;
}
.cart-empty {
  color: #9a9a9a;
  font-size: 0.95rem;
}
.cart-foot {
  border-top: 1px solid #ececec;
  padding-top: 18px;
  margin-top: 18px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.cart-ship-note {
  font-size: 12px;
  color: #9a9a9a;
  margin-bottom: 16px;
}
.checkout-btn {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px;
  transition: background 0.25s ease;
}
.checkout-btn:hover {
  background: #14b8a6;
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer {
    transition: none;
  }
}

/* Banner shown after Stripe redirects back with ?checkout=success */
.order-confirmed {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  max-width: min(92vw, 560px);
  text-align: center;
}
.checkout-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* "Ship to" choice in the cart footer — drives which single shipping rate
   Stripe checkout shows, pre-selected. */
.cart-ship-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
  font-size: 13px;
  color: #444444;
}
.cart-ship-choice > span {
  color: #8a8a8a;
  letter-spacing: 0.04em;
}
.cart-ship-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cart-ship-choice input {
  accent-color: #1a1a1a;
  margin: 0;
}
.cart-ship-choice em {
  font-style: normal;
  color: #8a8a8a;
}

/* Destination step shown after clicking Checkout */
.dest-choice .dest-title {
  margin: 12px 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #444444;
}
.dest-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid #1a1a1a;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dest-btn em {
  font-style: normal;
  font-size: 12px;
  color: #8a8a8a;
}
.dest-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}
.dest-btn:hover em { color: #cccccc; }
.dest-btn.busy { opacity: 0.6; cursor: default; }
.dest-back {
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  cursor: pointer;
}
.dest-back:hover { color: #1a1a1a; }
