/* Keep every photo, purchase area, and policy note inside one product card. */
.shop .showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px 36px;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--cream);
  box-shadow: 5px 5px 0 #e5d6b8;
  scroll-margin-top: 24px;
}

.shop .showcase + .showcase {
  margin-top: 36px;
}

.shop .showcase > * {
  min-width: 0;
}

.shop .product-visual {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* The frame owns its height; an upload's dimensions cannot stretch the card. */
.shop .product-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbf6e8;
  box-shadow: 4px 4px 0 #e5d6b8;
}

.shop .product-image-content {
  position: absolute;
  inset: 48px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.shop .product-image-content img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 7px rgba(25, 45, 55, .14));
}

.shop .product-style-images {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.shop .product-tag {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border-width: 1px;
  transform: none;
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .04em;
}

.shop .product-visual figcaption {
  min-height: 2.8em;
  margin: 12px 0 0;
  font-size: .78rem;
  line-height: 1.4;
}

.shop .product-copy {
  padding: 0;
  overflow-wrap: anywhere;
}

.shop .product-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  line-height: 1.18;
}

.shop .product-copy .fine {
  margin-bottom: 16px;
  line-height: 1.6;
}

.shop .product-rule {
  margin: 20px 0;
}

.shop .ship {
  margin: 10px 0 20px;
}

.shop .product-condition {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--forest);
  font-size: .9rem;
  line-height: 1.5;
}

.trust-strip .sealed-assurance {
  color: var(--gold);
}

@media (max-width: 850px) {
  .trust-strip .sealed-assurance {
    grid-column: 1 / -1;
  }
}

.shop .paypal-purchase {
  min-width: 0;
}

/* Longer assurances belong to this product, below its photo and purchase area. */
.shop .product-notes {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.shop .product-notes .product-support {
  max-width: none;
  margin: 0;
  line-height: 1.6;
}

.shop .product-notes .preorder-information {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.shop .preorder-information p {
  max-width: none;
  font-size: .9rem;
}

.shop .product-notes .purchase-trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding-top: 16px;
  font-size: .8rem;
}

@media (max-width: 840px) {
  .shop .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .shop .product-visual {
    max-width: 440px;
    justify-self: center;
  }

  .shop .product-copy h3 {
    font-size: clamp(1.65rem, 5vw, 2.1rem);
  }

  .shop .product-notes .purchase-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .shop .section-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shop .showcase {
    padding: 16px;
    gap: 20px;
    box-shadow: 3px 3px 0 #e5d6b8;
  }

  .shop .showcase + .showcase {
    margin-top: 28px;
  }

  .shop .product-image-content {
    inset: 44px 14px 14px;
  }
}

/* A persistent next step after a successful addition, without moving the page. */
.cart-confirmation {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 2px solid var(--ink);
  border-top: 5px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink), 0 8px 28px rgba(23, 52, 91, .18);
}
.cart-confirmation[hidden] { display: none; }
.cart-confirmation-message { padding-right: 24px; }
.cart-confirmation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 750 1.3rem/1.3 Fraunces, Georgia, serif;
}
.cart-confirmation-title span { color: var(--forest); }
.cart-confirmation-product {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cart-confirmation-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
}
.cart-confirmation-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.cart-confirmation-actions .button-primary { flex: 1; min-height: 44px; }
.cart-confirmation-keep {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .cart-confirmation {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    padding: 18px;
  }
  .cart-confirmation-actions { gap: 14px; }
  .cart-confirmation-actions .button-primary { padding: 10px 14px; }
}

/* Homepage Instagram invitation */
.instagram-follow { background: var(--paper); color: var(--ink); padding: 38px 0; border-top: 1px solid var(--line); }
.instagram-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.instagram-copy { min-width: 0; max-width: 650px; }
.instagram-follow h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; margin: 10px 0; }
.instagram-follow p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.instagram-follow p strong { color: var(--ink); }
.instagram-button { flex-shrink: 0; gap: 10px; max-width: 100%; text-align: center; }
.instagram-button svg { flex-shrink: 0; }
.instagram-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
@media (max-width: 850px) {
  .instagram-follow { padding: 30px 0; }
  .instagram-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 400px) {
  .instagram-button { padding: 11px 13px; font-size: .9rem; gap: 8px; }
}
