/* ===== Base Styles ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: clamp(96px, 10vh, 220px) 0 0 0; /* responsive top padding to account for header */
  background-color: #f9f9f9;
  line-height: 1;
}
@keyframes scroll-left {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.scrolling-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111;
  color: #fff;
  z-index: 1000;
  box-sizing: border-box;
}

.scrolling-header span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 18s linear infinite;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  color: white;
  padding: 8px 16px;
  position: fixed;
  top: 40px;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
  gap: 12px;
}

.nav-container h1 {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw + 0.5rem, 2.25rem);
}

/* Art page layout */
.art-container {
  display: grid;
  grid-template-columns: 1fr 640px;
  gap: 2rem;
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 0 20px;
}
.art-meta {
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.art-meta .title { font-family: 'Georgia', serif; font-size: 28px; margin: 0 0 .25rem; }
.art-meta .artist { color: #666; margin: 0 0 1rem }
.art-meta .desc { color: #333; line-height: 1.5 }
.purchase { margin-top: 1.25rem }
.purchase select { display:block; margin: .5rem 0 1rem; padding: .5rem }
.primary { background:#1a73e8; color:#fff; padding:.6rem 1rem; border-radius:6px; border:none; cursor:pointer }
.related-links a { display:block; margin-top:1rem; color:#1a73e8 }

/* Ensure the nav doesn't get pushed out of view; keep links visible */
.nav-container nav { flex: 0 0 auto; }
.nav-menu { flex: 0 0 auto; }
.art-view { display:flex; align-items:center; justify-content:center }
.canvas-wrap { width:100%; max-width:900px; height:auto; display:flex; align-items:center; justify-content:center; background: #222; padding: 12px; border-radius:8px }
.canvas-wrap canvas, .canvas-wrap img { width:100%; height:auto; border-radius:4px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

@media (max-width: 900px) {
  .art-container { grid-template-columns: 1fr; margin-top: 80px }
  .canvas-wrap { max-width:100%; }
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}
.nav-menu a {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}
.nav-menu a:hover {
  background-color: #ff5a5f;
  color: white;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== Desktop Menu ===== */
@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    padding: 0;
    z-index: auto;
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: none;
  }
}

/* Desktop enhancements: larger header, spaced nav, and gallery layout */
@media (min-width: 1024px) {
  header {
    padding: 18px 0 20px 0;
  }
  .nav-container {
    padding: 12px 8px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  /* Header title sizing and spacing for desktop */
  header h1 {
    font-size: 2.6rem;
    letter-spacing: 0.6px;
    margin: 0;
  }

  .nav-container h1 { text-align: left; flex: 0 0 auto; }

  /* More generous nav spacing on desktop */
  .nav-menu {
    gap: 28px;
    align-items: center;
  }

  .nav-menu a {
    padding: 10px 16px;
    font-size: 1.03rem;
  }

  /* Gallery layout tuning for desktop */
  .product-gallery { max-width: 1200px; margin: 140px auto 40px; padding: 0 24px; }
  .product-gallery .row { justify-content: flex-start; gap: 28px; }
  .product-card { width: 300px; min-width: 300px; }
  .gallery-card canvas, .scrollable-gallery img { width: 230px; height: 172px; }

  .bottom-gallery { padding: 30px 24px; }

  /* Keep scrolling header visible on desktop */
  .scrolling-header { display: flex; }
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
  .menu-toggle { 
    display: block;
  }
  .nav-menu { 
    flex-direction: column;
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px;
    z-index: 998;
  }
  .nav-menu.show { 
    display: flex;
  }
}

/* More aggressive header collapse for narrow screens */
@media (max-width: 480px) {
  .scrolling-header {
    display: flex;
    height: 32px;
    font-size: 0.85rem;
  }
  .nav-container {
    padding: 6px 12px;
    height: 56px;
    top: 32px;
    align-items: center;
    gap: 8px;
  }
  header h1 { font-size: 1.1rem; margin: 0; }
  .nav-container h1 { font-size: 1.05rem; }
  .nav-menu { top: 88px; }
  /* Make the title truncate so it never wraps or pushes out of view */
  .nav-container h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Ensure menu button is visible and prominent */
  .menu-toggle { font-size: 1.25rem; padding: 6px 10px; }
}

/* ===== Product Gallery ===== */
.product-gallery {
  padding: 20px;
  text-align: center;
}

/* Glass page layout: show product cards side-by-side with responsive wrapping */
#restricted-content {
  display: flex;
  flex-direction: column;
}

#restricted-content .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  gap: 20px;
  align-items: start;
  justify-content: center;
}

#restricted-content .product-gallery .product-card {
  width: 280px;
  min-width: 280px;
}

.product-gallery .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.age-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  color: #fff;
  padding: 1.5rem;
  box-sizing: border-box;
}
.age-gate.visible {
  display: flex;
}

/* Keep fixed headers out of the way while age verification is on screen. */
body.age-gate-active {
  overflow: hidden;
}

body.age-gate-visible header,
body.age-gate-visible .scrolling-header {
  display: none !important;
}

.age-gate .age-buttons { display:flex; gap:0.75rem; margin-top:0.75rem }
.age-gate button { padding:0.6rem 1rem; border-radius:6px; border:none; cursor:pointer }
.age-gate button:first-child { background:#2ecc71; color:#fff }
.age-gate button:last-child { background:#e74c3c; color:#fff }
@media (min-width:800px){ .age-gate .age-box{ max-width:520px; text-align:center; background:transparent }}

/* When restricted content is shown, hide the modal visually using aria-hidden class */
.hidden { display: none !important; }

.product-card {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 8px;
  width: 280px;
  min-width: 280px;
}
.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-image-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.product-thumb:hover {
  opacity: 1;
}
.product-thumb.active {
  border-color: #ff5a5f;
  opacity: 1;
}
.product-card h3 { margin: 10px 0; font-size: 1rem; }
.product-card button {
  background-color: #ff5a5f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}
.product-card button:hover { background-color: #e04848; }

.custom-order-card {
  width: 280px;
  min-width: 280px;
  margin: 20px auto 24px;
  padding: 15px;
  text-align: left;
  border: 1px solid rgba(255, 90, 95, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #fff4f4 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  order: 99;
}

.custom-order-card h3 {
  margin-top: 0;
  color: #a33033;
  font-size: 1.1rem;
}

.custom-order-subtitle {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.custom-order-image-wrap {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.custom-order-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 0;
}

.custom-order-grid label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.custom-order-grid select,
.custom-order-grid input,
.custom-order-grid textarea {
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font: inherit;
}

.custom-order-grid textarea {
  resize: vertical;
  min-height: 76px;
}

.custom-order-addons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.custom-order-addons span {
  font-weight: 700;
  color: #333;
}

.custom-order-addons label {
  font-size: 0.95rem;
  color: #444;
}

.custom-order-preview {
  margin: 10px 0;
  color: #8a2226;
  font-weight: 700;
  font-size: 0.9rem;
}

.custom-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-order-actions button.alt {
  background: #7a3b3f;
}

.custom-order-actions button.alt:hover {
  background: #5d2d30;
}

@media (max-width: 768px) {
  .custom-order-grid {
    grid-template-columns: 1fr;
  }
}

.abstract-thumbs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.abstract-thumb {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.abstract-thumb.active {
  border-color: #ff5a5f;
}

/* ===== Bottom Gallery ===== */
.bottom-gallery {
  margin-top: 40px;
  padding: 20px;
  background-color: #fff;
  text-align: center;
}
.scrollable-gallery {
  display: flex;
  overflow-x: scroll;
  gap: 10px;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ff5a5f #f9f9f9;
}
.scrollable-gallery img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== Cart Section ===== */
.cart-section {
  text-align: center;
  margin: 20px 0;
}
.checkout-trigger {
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.checkout-trigger:hover {
  background-color: #2a2a2a;
}
.checkout-trigger-alt {
  background-color: #0d6efd;
}
.checkout-trigger-alt:hover {
  background-color: #0b5ed7;
}
.checkout-trigger:disabled {
  background-color: #777;
  cursor: not-allowed;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2500;
  padding: 20px;
  box-sizing: border-box;
}
.checkout-modal.open {
  display: flex;
}
.checkout-modal-card {
  position: relative;
  width: min(520px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
#checkout-paypal-section,
#checkout-card-section {
  margin-top: 10px;
}
.checkout-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #f2f2f2;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.checkout-modal-close:hover {
  background: #e5e5e5;
}
.cart-section .add-to-cart {
  background-color: #ff5a5f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.cart-section .add-to-cart:hover { background-color: #e04848; }

/* ===== Footer ===== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Extracted page-specific and utility styles ===== */


.policy-notice-block {
  margin: 28px auto 0;
  max-width: 1100px;
  padding: 0 16px;
}

.policy-notice-inner {
  background: #fff7ef;
  border: 1px solid #ffd2ad;
  border-radius: 10px;
  padding: 14px 16px;
  color: #40210f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.policy-notice-inner p {
  margin: 8px 0;
  line-height: 1.35;
}

.policy-notice-inner a {
  color: #9d2f00;
  font-weight: 700;
}
/* Protected thumbnails container */
.protected-thumbs, #protected-thumbs {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

/* Gallery card and buy-controls */
.gallery-card { text-align: center; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid #eee; }
.gallery-card canvas, .gallery-card img { display:block; margin: 0 auto 8px; border-radius:6px; }
.gallery-card .buy-controls { display:flex; gap:8px; align-items:center; justify-content:center; }
.gallery-card .buy-controls select {
  min-height: 42px;
  min-width: 185px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f1f1f;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%), linear-gradient(to right, #f3f3f3, #f3f3f3);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px), calc(100% - 36px) 0.45em;
  background-size: 6px 6px, 6px 6px, 1px 1.9em;
  background-repeat: no-repeat;
}
.gallery-card .buy-controls button { background:#ff5a5f; color:#fff; border:none; padding:6px 10px; border-radius:4px; cursor:pointer }
.gallery-card .buy-controls button:hover { background:#e04848 }

/* Scrollable gallery */
.art-prints-gallery { padding: 20px; overflow-x: auto; }
.scrollable-gallery { display:flex; flex-wrap:wrap; gap:10px; justify-content:center }
.scrollable-gallery img, .scrollable-gallery canvas { width:200px; height:200px; object-fit:cover; cursor:pointer; transition: transform .3s ease }
.scrollable-gallery img:hover, .scrollable-gallery canvas:hover { transform: scale(1.05) }

/* Modal for Enlarging Images (extracted) */
.modal { display:none; position:fixed; z-index:1000; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.8); justify-content:center; align-items:center }
.modal img { max-width:90%; max-height:90%; border:2px solid #fff }
.modal-close { position:absolute; top:20px; right:20px; color:#fff; font-size:30px; cursor:pointer }

/* Age gate hidden helper */
#restricted-content { display: none; }

#product-detail-link,
.product-detail-cta {
  text-align: center;
  margin: 0 auto 32px;
  padding: 0 20px;
}

#product-detail-link a,
.product-detail-cta a {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#product-detail-link a:hover,
.product-detail-cta a:hover {
  background: #ff5a5f;
  transform: translateY(-1px);
}

/* Cart item styles (used by script.js) */
.cart-item { display:flex; justify-content:space-between; padding:10px; border-bottom:1px solid #ccc; }
.cart-item .left { display:flex; gap:8px; align-items:center }
.cart-qty-input { width: 48px; }
.remove-btn { margin-left:10px; }

/* Alerts */
.ms-alert { padding:10px; border-radius:4px; }
.ms-alert.ms-action { background: #2e7d32; color: #fff }
.ms-alert.ms-action2 { background: #f44336; color: #fff }
.ms-alert.ms-small { font-size:0.9rem }

/* Alerts container */
#alerts { position: fixed; top: 10px; right: 10px; z-index: 9999; }

/* Hide PayPal 'Powered by' branding and small badges inside the PayPal container.
   Scoped to the container so button UI remains visible. This is a visual-only hide
   — confirm you have permission to remove PayPal branding for your integration. */
#paypal-button-container .paypal-powered-by,
#paypal-button-container .paypal-poweredby,
#paypal-button-container .paypal-badge,
#paypal-button-container .paypal-branding,
#paypal-button-container [aria-label*="Powered by PayPal"],
#paypal-button-container [title*="Powered by PayPal"],
#paypal-button-container [class*="powered-by"],
#paypal-button-container [class*="poweredby"],
#paypal-button-container [class*="paypal-brand"],
#paypal-button-container [alt*="PayPal"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== Missing classes for full compatibility ===== */

/* Active navigation link */
.nav-menu a.active {
  color: #ff5a5f;
  font-weight: bold;
  border-bottom: 2px solid #ff5a5f;
}

/* Protected thumbnail canvas styling */
.protected-thumb {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
}

/* Age gate components */
.age-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.age-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}

.age-buttons button {
  padding: 12px 32px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.age-buttons button:first-child {
  background: #28a745;
  color: white;
}

.age-buttons button:first-child:hover {
  background: #218838;
  transform: translateY(-2px);
}

.age-buttons button:last-child {
  background: #dc3545;
  color: white;
}

.age-buttons button:last-child:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Product page elements */
.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-details {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.product-info h1 {
  margin-bottom: 16px;
  color: #333;
}

.product-info .desc {
  color: #666;
  line-height: 1.6;
  margin: 16px 0;
}

.product-info .note {
  font-size: 14px;
  color: #999;
  font-style: italic;
  margin-top: 12px;
}

/* Standalone buy controls (outside gallery cards) */
.buy-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.buy-controls label {
  font-weight: 600;
  color: #333;
}

.buy-controls select {
  min-height: 42px;
  min-width: 185px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%), linear-gradient(to right, #f3f3f3, #f3f3f3);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px), calc(100% - 36px) 0.45em;
  background-size: 6px 6px, 6px 6px, 1px 1.9em;
  background-repeat: no-repeat;
}

.buy-controls select:hover,
.gallery-card .buy-controls select:hover {
  border-color: #9e9e9e;
}

.buy-controls select:focus,
.buy-controls select:focus-visible,
.gallery-card .buy-controls select:focus,
.gallery-card .buy-controls select:focus-visible {
  outline: 2px solid #ff5a5f;
  outline-offset: 1px;
  border-color: #ff5a5f;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.22);
}

.buy-controls select:disabled,
.gallery-card .buy-controls select:disabled {
  cursor: not-allowed;
  color: #777;
  background-color: #f4f4f4;
  border-color: #d8d8d8;
  box-shadow: none;
}

.buy-controls button {
  background: #ff5a5f;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.buy-controls button:hover {
  background: #e04848;
}

.pricing-note {
  margin: 0 auto 16px;
  max-width: 780px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  color: #444;
  font-size: 0.95rem;
}

.piece-work-note {
  margin-top: 12px;
  text-align: left;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px;
}

.piece-work-note h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.piece-work-note p {
  margin: 0;
  color: #555;
  line-height: 1.45;
  font-size: 0.9rem;
}

.product-main-image {
  cursor: zoom-in;
}

.glass-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3100;
  background: rgba(0, 0, 0, 0.95);
  padding: 24px 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.glass-modal img {
  max-width: min(92vw, 980px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-modal-close,
.glass-nav {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.glass-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.35rem;
}

.glass-nav {
  position: absolute;
  top: 45%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.2rem;
}

.glass-nav.prev { left: 12px; }
.glass-nav.next { right: 12px; }

.glass-modal-strip {
  width: min(92vw, 980px);
  overflow-x: auto;
  display: flex;
  gap: 8px;
  padding: 6px 2px;
}

.glass-modal-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.2s ease;
}

.glass-modal-thumb.active {
  opacity: 1;
  border-color: #ff5a5f;
}

/* ===== IMAGE PROTECTION SYSTEM ===== */
/* Comprehensive CSS-level protection for artwork */

/* Disable user selection on all images and canvas elements */
img,
canvas,
.product-main-image,
.product-thumb,
.protected-thumb,
.gallery-card img,
.product-card img {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* Prevent pointer events exploitation (keep interactivity for legitimate use) */
img::selection,
canvas::selection {
  background: transparent;
}

/* Additional protection for Firefox */
@-moz-document url-prefix() {
  img,
  canvas {
    -moz-user-select: none !important;
  }
}

/* Watermark overlay visibility reinforcement */
.watermark-overlay {
  pointer-events: none;
  user-select: none;
}

/* Copyright notice styling */
.copyright-notice {
  font-size: 0.75em;
  color: #999;
  text-align: center;
  margin-top: 8px;
  user-select: none;
}

