/* ---- Print shop, modal, cart ---- */

.prints-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--frost);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.prints-intro h1 { margin-bottom: 0.3em; }
.prints-intro .lede { margin: 0; max-width: 46ch; }
.prints-facts { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; color: var(--stone); }
.prints-facts li { padding: 10px 0; border-top: 1px solid var(--frost); }
.prints-facts strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .prints-intro { grid-template-columns: 1fr; } }

.prints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 80px;
}
.print-card-photo-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--frost); cursor: zoom-in;
}
.print-card-photo-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print-card-info { padding-top: 14px; }
.print-card-info h2 { font-size: 1.6rem; margin: 0 0 2px; }
.print-card-location { color: var(--stone); margin: 0; font-size: 0.95rem; }
.print-card-price { color: var(--ruby); font-weight: 600; margin: 10px 0 14px; }

/* ---- Buttons ---- */
.btn {
  font: inherit; font-weight: 600; font-size: 0.98rem;
  display: inline-block; padding: 12px 22px; cursor: pointer;
  border: 1px solid var(--cobalt); text-decoration: none;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--cobalt); }
.btn-outline:hover { background: var(--cobalt); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---- Modal ---- */
.photo-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.photo-modal[hidden] { display: none; }
.photo-modal-backdrop { position: absolute; inset: 0; background: rgba(22, 47, 105, .82); }
.photo-modal-content {
  position: relative;
  background: var(--paper-raised);
  width: min(1100px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.photo-modal-image-wrap { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.photo-modal-image-wrap img { width: 100%; max-height: 80vh; object-fit: contain; }
.photo-modal-info { padding: clamp(20px, 3vw, 36px); }
.photo-modal-info h2 { margin: 0 32px 4px 0; }
.photo-modal-close {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border: 0; background: var(--paper-raised);
  font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink);
}
@media (max-width: 760px) {
  .photo-modal { padding: 0; }
  .photo-modal-content { grid-template-columns: 1fr; max-height: 100vh; height: 100%; }
  .photo-modal-image-wrap img { max-height: 40vh; }
}

.modal-tabs { display: flex; gap: 6px; margin: 18px 0 4px; }
.modal-tab {
  font: inherit; font-size: 0.92rem; padding: 6px 14px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--frost);
}
.modal-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.option-group { border: 0; padding: 0; margin: 18px 0 0; }
.option-group legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }
.option {
  font: inherit; width: 100%;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; margin-top: -1px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--frost); cursor: pointer; text-align: left;
}
.option:hover { border-color: var(--cobalt); position: relative; }
.option[aria-pressed="true"] { background: #e3e8f3; border-color: var(--cobalt); position: relative; }
.option-price { color: var(--ruby); font-weight: 600; white-space: nowrap; }
.modal-empty { color: var(--stone); margin-top: 18px; }

.modal-buy { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--frost); }
.modal-qty-row { display: flex; justify-content: space-between; align-items: center; }
.modal-total { font-family: var(--display); font-size: 1.6rem; margin: 12px 0 14px; }
.modal-buy .btn-primary { width: 100%; }
.modal-added { font-size: 0.95rem; color: var(--stone); }
.modal-added a { color: var(--cobalt); }

/* ---- Quantity ---- */
.cart-qty { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 34px; height: 34px; font: inherit; font-size: 1.1rem;
  background: transparent; border: 1px solid var(--frost); color: var(--ink); cursor: pointer;
}
.qty-btn:hover { border-color: var(--ink); }
.qty-value { min-width: 2ch; text-align: center; }

/* ---- Cart page ---- */
.checkout-page { max-width: 760px; }
.cart-items { list-style: none; padding: 0; margin: 0 0 8px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--frost); align-items: start;
}
.cart-item img { width: 96px; aspect-ratio: 1; object-fit: cover; }
.cart-item p { margin: 0; }
.cart-item-title { font-family: var(--display); font-size: 1.2rem; }
.cart-item-label { color: var(--stone); font-size: 0.92rem; margin-bottom: 10px !important; }
.cart-item-price { color: var(--ruby); font-weight: 600; white-space: nowrap; }
.cart-remove {
  font: inherit; font-size: 0.88rem; margin-left: 12px;
  background: none; border: 0; color: var(--stone); text-decoration: underline; cursor: pointer;
}
.cart-total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 1.5rem; padding: 16px 0; }
.checkout-note { color: var(--stone); font-size: 0.95rem; }
.checkout-error { color: var(--ruby); font-weight: 500; }
.checkout-notice { background: #e3e8f3; padding: 10px 14px; }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; }
  .cart-item-price { grid-column: 2; }
}
