/* Public shopping pages only. Never loaded by admin or dedicated AR viewers.
   Keep selectors on content components; camera overlays and PayPal are untouched. */
.simple-nav + main {
  padding-top: 80px;
}

.site-section[id] {
  scroll-margin-top: 96px;
}

.site-section {
  color: #242424;
}

/* These public cards stay light even when the browser prefers dark mode.
   Explicit surface text beats the recovered stylesheet's global dark headings.
   Photo/video overlays, the navbar, palette, admin and AR are outside this scope. */
body > main .section-card :is(h1, h2, h3, h4, h5, h6):not(.banner-overlay *, .video-overlay *),
body > main #order .order-card :is(h1, h2, h3, h4, h5, h6) {
  color: #292722;
}

/* Keep the existing peach purchase button, with readable active-control text. */
body > main .artwork-detail-info .btn-purchase:not(:disabled) {
  color: #292722;
}

body > main :is(.banner-overlay, .video-overlay) :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

body > main .privacy-section .privacy-updated { color: #49443b; }
body > main .privacy-footer a { color: #fff; }
body > main #order .order-footer .btn { color: #292722; }
body > main .gallery-section .gallery-type-filter { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:20px 0; }
body > main .gallery-section .gallery-type-filter select { background:#fff; color:#292722; border:1px solid #777; min-height:44px; font:inherit; padding:8px; }
body > main .gallery-section .gallery-type-filter button { background:#292722; color:#fff; min-height:44px; font:inherit; padding:8px 16px; }
body > main .artwork-detail-image .painting-photo-links { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
body > main .artwork-detail-image .painting-photo-links img { width:64px; height:80px; object-fit:contain; border:1px solid #aaa; background:#fff; }

.site-section > .section-card,
.site-section > .section-panel {
  max-width: 1200px;
  margin-inline: auto;
}

.simple-intro h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.simple-intro p,
.simple-copy-section {
  line-height: 1.7;
}

.simple-copy-section > p {
  max-width: 70ch;
}

.simple-art-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  padding-top: 32px;
}

.simple-art-card,
.simple-art-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.simple-art-image-wrap {
  background: #f8f8f6;
  border-color: #e5e5e5;
  padding: 16px;
}

.simple-art-title {
  font-size: 1.1rem;
  line-height: 1.4;
}

.simple-art-medium,
.simple-art-size {
  color: #666;
}

.simple-art-price {
  color: #242424;
  margin-top: 12px;
}

.simple-art-sold {
  display: inline-block;
  color: #444;
  background: #f8f8f6;
  border: 1px solid #e5e5e5;
  padding: 4px 8px;
  font-weight: 600;
}

.simple-art-link:focus-visible,
.simple-art-actions a:focus-visible,
.simple-intro-actions a:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 4px;
}

.simple-art-actions .btn,
.simple-intro-actions .btn,
.cart-actions .btn,
.cart-table .btn,
.contact-form .submit-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.simple-copy-section .image-wrapper img {
  max-width: 100%;
  height: auto;
}

.simple-copy-section .video-wrapper iframe {
  max-width: 100%;
}

.artwork-detail-container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.artwork-detail-image > img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #f8f8f6;
}

.artwork-detail-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.artwork-detail-info > h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.artwork-detail-meta .detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid #e5e5e5;
}

.detail-row-label { color: #666; }
.artwork-detail-price { margin-block: 24px 16px; font-size: 1.6rem; font-weight: 600; }
.artwork-detail-info > .stock-badge { display: inline-block; padding: 6px 10px; border: 1px solid #e5e5e5; }
.artwork-detail-info > .stock-unavailable { background: #f8f8f6; }

.cart-items {
  max-width: 100%;
  overflow-x: auto;
}

.cart-summary .summary-row,
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.checkout-section .checkout-container > .checkout-items,
.checkout-section .checkout-container > .checkout-form {
  min-width: 0;
}

.checkout-section .item-details {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-right: 12px;
}

#order > .order-card {
  background: #f8f8f6;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .simple-nav + main { padding-top: 96px; }
  .simple-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .artwork-detail-container { gap: 28px; }
}

@media (max-width: 600px) {
  .site-section { padding: 32px 16px; }
  .simple-art-grid { grid-template-columns: 1fr; gap: 32px; }
  .simple-art-image-wrap { padding: 12px; }
  .artwork-detail-container { grid-template-columns: minmax(0, 1fr); }
  .checkout-section .checkout-container > .checkout-items,
  .checkout-section .checkout-container > .checkout-form { padding: 16px; }
}

/* Artwork discovery headings retain the existing detail layout. */
.artwork-detail-info h1{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.2;overflow-wrap:anywhere;margin-top:0}

.gallery-section .section-heading-wrap h1,.gallery-section .gallery-category h2{overflow-wrap:anywhere}

/* Recovered branding keeps the existing Phase 1 shopping component layout. */
.simple-art-grid{display:grid;max-width:1200px;margin-inline:auto}
.simple-art-link{display:block;color:inherit;text-decoration:none}
.simple-art-image-wrap{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;border:1px solid #e5e5e5}
.simple-art-image{max-width:100%;max-height:100%;object-fit:contain}
.simple-art-info{padding:16px 0}.simple-art-info p{margin-top:8px}
.gallery-section>.section-heading-wrap,.gallery-section>.gallery-category{max-width:1200px;margin:24px auto}
.gallery-category>h2,.gallery-category>p{margin-bottom:18px}
.artwork-detail-section>.section-card{max-width:1200px}
