/* Cart + PayPal checkout dialog (js/cart.js), plus the buy box on item
   pages. Uses the color tokens defined in styles.css. */

.cart-open, .cart-open body { overflow: hidden; }

/* Header cart link */
nav.site-nav a.cart-link { white-space: nowrap; }
.cart-count {
  display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.2em;
  border-radius: 999px; background: var(--pink); color: var(--forest-deep);
  font-size: 0.75rem; line-height: 1.4em; text-align: center; letter-spacing: 0;
}
.cart-count[hidden] { display: none; }

/* Buy box on item / bundle pages */
.item-buy { margin-top: 0.5rem; }
.item-price {
  font-family: "Big Caslon", Didot, "Playfair Display", Georgia, serif;
  font-size: 1.75rem; color: var(--forest-deep); margin: 0;
}
.item-shipping { font-size: 0.85rem; margin: 0 0 0.75rem; opacity: 0.8; }
button.btn-buy { border: 0; cursor: pointer; font-family: inherit; }
button.btn-buy[disabled] { opacity: 0.55; cursor: default; }
button.btn-buy[disabled]:hover { background: var(--forest); color: var(--ivory); }
/* Pieces cart.js finds sold since the page was published. */
[data-listing][hidden], .empty-shop[hidden] { display: none; }
.item-card .item-card-price { margin-top: 0.25rem; font-size: 0.95rem; color: var(--sage-deep); }

/* Dialog */
.cart-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 12px; overflow-y: auto;
  background: rgba(56, 70, 48, 0.55);
}
.cart-overlay[hidden] { display: none; }
.cart-dialog {
  width: 100%; max-width: 520px;
  background: var(--ivory); color: var(--forest);
  border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  font: 16px/1.5 Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
.cart-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cart-dialog__head h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.cart-close { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--forest); padding: 0 4px; }
.cart-dialog__body { padding: 16px 18px 20px; }

.cart-btn {
  display: inline-block; padding: 12px 22px; border: 0; cursor: pointer; border-radius: 3px;
  background: var(--forest); color: var(--ivory);
  font: inherit; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem;
}
.cart-btn:hover { background: var(--pink); color: var(--forest-deep); }
.cart-btn--secondary { background: var(--sage-tint); color: var(--forest-deep); }
.cart-actions { display: flex; justify-content: center; margin-top: 14px; }

.cart-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; }
.cart-line__text a { color: var(--forest-deep); }
.cart-line__text span { font-size: 0.9em; opacity: 0.8; }
.cart-line__remove { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--sage-deep); }
.cart-sum { display: flex; justify-content: space-between; margin: 4px 0; }
.cart-fine { font-size: 0.85rem; opacity: 0.8; margin: 6px 0 14px; }
.cart-msg { margin: 0 0 12px; padding: 10px 12px; background: var(--sage-tint); border-radius: 3px; }
.cart-msg--error { background: #fbe3e8; color: #7a2236; }
.cart-empty, .cart-done { text-align: center; }
.cart-paypal { min-height: 60px; }
