:root {
  --bg: #f8f3ea;
  --ink: #101010;
  --muted: rgba(16, 16, 16, 0.62);
  --paper: rgba(255, 250, 242, 0.68);
  --paper-strong: rgba(255, 250, 242, 0.88);
  --line: rgba(20, 20, 20, 0.12);
  --shadow: 0 24px 80px rgba(20, 16, 12, 0.16);
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arrow-size: clamp(48px, 7vw, 76px);
  --arrow-font-size: clamp(27px, 4vw, 46px);
  --ease: cubic-bezier(.2, .8,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#inkCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: radial-gradient(circle at 50% 30%, #fff7ec 0%, #f5efe3 48%, #ece5db 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  mix-blend-mode: normal;
  display: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(80, 70, 50, .18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 60%, rgba(80, 70, 50, .12) 0 1px, transparent 1.6px);
  background-size: 30px 30px, 44px 44px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 64px);
  pointer-events: none;
}

.header-spacer,
.main-nav,
.cart-button {
  pointer-events: auto;
}

.header-spacer {
  min-width: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 110px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.main-nav a {
  position: relative;
  font-size: 17px;
  line-height: 1;
  text-transform: lowercase;
  color: rgba(10, 10, 10, .72);
  transition: color .25s var(--ease);
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .25s var(--ease);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.cart-button {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.cart-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button span {
  position: absolute;
  top: 1px;
  right: 0;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1;
}

.legal-footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 22;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1;
  text-transform: none;
  letter-spacing: .04em;
  color: rgba(16, 16, 16, .52);
  pointer-events: auto;
}

.legal-footer a {
  color: inherit;
  opacity: .78;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

.legal-footer a:hover,
.legal-footer a.is-active {
  color: var(--ink);
  opacity: 1;
}

.legal-panel {
  max-width: 760px;
}

.legal-panel p {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
}

.legal-note {
  color: rgba(16, 16, 16, .48) !important;
  font-size: 12px !important;
}

.page {
  min-height: 100vh;
  display: none;
  padding: 120px 20px 48px;
}

.page.is-active {
  display: grid;
  place-items: center;
}

.hero-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.carousel {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: clamp(10px, 3vw, 32px);
}

.art-card {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.art-stage {
  width: min(420px, 72vw);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 40px 44px rgba(20, 10, 0, .16));
}

.artwork-box {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 3px;
  background: var(--art-color, #c9b48a);
  color: rgba(255, 255, 255, .86);
  cursor: zoom-in;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .55s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 100px rgba(0, 0, 0, .12);
}

.artwork-box.has-image {
  color: transparent;
}

.artwork-box.has-image .artwork-label,
.artwork-box.has-image .artwork-number {
  opacity: 0;
}

.artwork-box:hover {
  transform: translateY(-4px) scale(1.015);
}

.artwork-box::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.26), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 35%);
  mix-blend-mode: soft-light;
}

.artwork-number {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 15px;
  letter-spacing: .12em;
}

.artwork-label {
  position: relative;
  font-family: var(--font-ui);
  font-size: clamp(24px, 5vw, 58px);
  letter-spacing: -.06em;
  text-transform: uppercase;
  opacity: .45;
}

.art-info {
  width: min(620px, 100%);
  text-align: center;
  padding: 0 14px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 78px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.07em;
}

h3 {
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 23px;
}

.art-description {
  max-width: 520px;
  margin: 0 auto 13px;
  color: rgba(16, 16, 16, .74);
  font-size: 18px;
  line-height: 1.5;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0 0 13px;
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.price {
  margin: 0 0 18px;
  font-size: 24px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.purchase-button,
.secondary-button {
  min-width: 136px;
  border: 1px solid rgba(16,16,16,.32);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.purchase-button {
  background: #101010;
  color: white;
}

.secondary-button {
  background: rgba(255,250,242,.35);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.purchase-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  background: rgba(255,250,242,.78);
}


.shopify-button-shell {
  min-width: 136px;
  min-height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
}

.shopify-button-shell.is-ready {
  display: flex;
}

.shopify-fallback-button.is-hidden {
  display: none;
}

.shopify-status {
  width: min(520px, 100%);
  margin: 14px auto 0;
  color: rgba(16,16,16,.48);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
}

.shopify-status.is-hidden {
  display: none;
}

.shopify-status code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
}

.shopify-buy-frame,
.shopify-buy__btn,
.shopify-buy__btn-wrapper,
.shopify-buy__product {
  max-width: 100% !important;
}

.carousel-arrow {
  width: var(--arrow-size);
  height: var(--arrow-size);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.carousel-arrow img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.carousel-arrow:hover {
  transform: scale(1.06);
  opacity: .72;
}

.content-panel {
  width: min(860px, 100%);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.content-panel p {
  color: rgba(16,16,16,.72);
  font-size: 18px;
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}



.contact-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.contact-panel .contact-intro {
  max-width: 620px;
}

.instagram-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: lowercase;
}

.instagram-card img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(16,16,16,.14);
}

.instagram-card:hover {
  opacity: .72;
}

.form-privacy-note {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: rgba(16,16,16,.58) !important;
}

.form-privacy-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legal-panel h3 {
  margin: 28px 0 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(16,16,16,.82);
}

.contact-form {
  display: grid;
  gap: 15px;
  margin-top: 26px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(16,16,16,.72);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16,16,16,.18);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255,255,255,.45);
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(16,16,16,.48);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 64px 22px 48px;
  background: rgba(10, 8, 6, .72);
  backdrop-filter: blur(20px);
}

.lightbox.is-open {
  display: grid;
}


.lightbox-content {
  width: min(920px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-art {
  width: 100%;
  height: min(72vh, 820px);
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--art-color, #c9b48a);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255,255,255,.72);
  font-size: clamp(30px, 5vw, 82px);
  text-transform: uppercase;
  letter-spacing: -.06em;
  box-shadow: 0 32px 110px rgba(0,0,0,.38);
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.lightbox-art.has-image {
  background-color: transparent;
  box-shadow: none;
}

.lightbox-art.has-image span {
  opacity: 0;
}

.lightbox-art.is-dragging {
  cursor: grabbing;
}


.lightbox-related {
  width: min(920px, 90vw);
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lightbox-related::-webkit-scrollbar {
  display: none;
}

.related-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  background: rgba(255,255,255,.12);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  overflow: hidden;
}

.related-thumb span {
  display: none;
}

.related-thumb:hover,
.related-thumb.is-active {
  opacity: 1;
  border-color: rgba(255,255,255,.78);
  transform: translateY(-1px);
}

.lightbox-help {
  color: rgba(255,255,255,.72);
  font-family: var(--font-ui);
  font-size: 13px;
  text-align: center;
}

.close-button {
  position: fixed;
  top: 24px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 33px;
  line-height: 1;
  cursor: pointer;
}

.close-button.small {
  position: static;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.12);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: min(440px, 100vw);
  padding: 24px;
  background: rgba(255,250,242,.9);
  backdrop-filter: blur(28px);
  box-shadow: -28px 0 70px rgba(16,16,16,.14);
  transform: translateX(105%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.cart-header h2 {
  margin: 0;
  font-size: 42px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.cart-swatch {
  width: 72px;
  height: 86px;
  border-radius: 3px;
  background: var(--art-color);
  background-size: cover;
  background-position: center;
}

.cart-item strong {
  display: block;
  margin-bottom: 5px;
}

.cart-item p,
.empty-cart {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16,16,16,.88);
  color: white;
  font-family: var(--font-ui);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 16px;
  }

  .header-spacer {
    display: none;
  }

  .cart-button {
    justify-self: center;
  }

  .main-nav {
    gap: 30px;
    padding: 0;
  }

  .page {
    padding-top: 122px;
  }

  .carousel {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 4px;
  }

  .art-stage {
    width: min(330px, 70vw);
  }

.carousel-arrow {
    width: 48px;
    height: 48px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .content-panel {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}



/* Artwork info order: number, title, technique/size, price, Add-to-cart. */
.art-hidden-text {
  display: none !important;
}

.art-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artwork-counter-line {
  order: 1;
  margin: 0 0 8px;
}

.artwork-title-line {
  order: 2;
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.art-info .art-description {
  order: 3;
}

.art-info .meta-row {
  order: 4;
  margin-top: 0;
  margin-bottom: 8px;
}

.art-info .price {
  order: 5;
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.art-info .button-row {
  order: 6;
}

.shopify-status {
  display: none !important;
}

/* Verkaufsmodus pausiert
   Entferne im <body> die Klasse "sales-paused", sobald Kauf/Shopify/Cart sichtbar sein sollen. */
.sales-paused #purchaseButton,
.sales-paused #openCartButton,
.sales-paused #cartDrawer,
.sales-paused .cart-drawer,
.sales-paused .cart-button,
.sales-paused .shopify-button-shell,
.sales-paused .shopify-fallback-button,
.sales-paused .shopify-status,
.sales-paused #shopify-product-button,
.sales-paused .shopify-buy-frame,
.sales-paused .shopify-buy__btn,
.sales-paused .shopify-buy__btn-wrapper,
.sales-paused .shopify-buy__product {
  display: none !important;
  pointer-events: none !important;
}


/* Sold / available switch per artwork
   In script.js set sold: true to hide price + add-to-cart for an artwork.
   Set sold: false to show normal sales controls. */
.price.is-hidden,
.button-row.is-hidden {
  display: none !important;
}


@media (max-width: 720px) {
  .lightbox-content {
    width: min(94vw, 920px);
  }

  .lightbox-art {
    height: min(66vh, 720px);
  }

  .lightbox-related {
    width: 94vw;
    justify-content: flex-start;
  }

  .related-thumb {
    width: 46px;
    height: 46px;
  }
}

/* Related/detail image strip is temporarily disabled. Set ENABLE_RELATED_IMAGES = true in script.js to reactivate it. */
.lightbox-related.is-disabled {
  display: none !important;
}


/* Mobile polish: compact navigation, larger tap targets, no overflow, clean legal pages. */
@media (max-width: 640px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .site-header {
    padding: 18px 18px 10px;
    background: linear-gradient(to bottom, rgba(248, 243, 234, .72), rgba(248, 243, 234, 0));
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(34px, 16vw, 72px);
  }

  .main-nav a {
    font-size: 15px;
    padding: 10px 2px;
  }

  .page {
    min-height: 100svh;
    padding: 96px 16px 62px;
  }

  .hero-shell {
    min-height: calc(100svh - 150px);
    width: 100%;
  }

  .carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 2px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    align-self: center;
  }

  .art-card {
    gap: 20px;
    width: 100%;
  }

  .art-stage {
    width: min(74vw, 300px);
    filter: drop-shadow(0 22px 28px rgba(20, 10, 0, .13));
  }

  .art-info {
    width: min(92vw, 420px);
    padding: 0;
  }

  .artwork-counter-line {
    margin-bottom: 7px;
  }

  .artwork-title-line {
    font-size: clamp(20px, 7.5vw, 30px);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin-bottom: 9px;
  }

  .meta-row,
  .art-info .price {
    font-size: 11px;
    letter-spacing: .07em;
  }

  .purchase-button,
  .secondary-button {
    min-width: 128px;
    padding: 12px 18px;
  }

  .content-panel {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .content-panel p {
    font-size: 15px;
    line-height: 1.6;
  }

  .contact-panel .contact-intro {
    max-width: 100%;
  }

  .contact-form {
    gap: 13px;
    margin-top: 22px;
  }

  .contact-form input,
  .contact-form textarea {
    border-radius: 13px;
    padding: 13px 14px;
    font-size: 16px;
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: -.055em;
  }

  .legal-panel h3 {
    font-size: 12px;
    margin-top: 22px;
  }

  .legal-panel p {
    font-size: 13px;
    line-height: 1.6;
  }

  .legal-footer {
    bottom: 10px;
    gap: 15px;
    font-size: 10px;
    letter-spacing: .035em;
    width: max-content;
    max-width: calc(100vw - 24px);
  }

  .legal-footer a {
    padding: 8px 2px;
  }

  .lightbox {
    padding: 54px 12px 42px;
  }

  .lightbox-content {
    width: 96vw;
  }

  .lightbox-art {
    height: min(68svh, 560px);
    max-height: calc(100svh - 150px);
  }

  .lightbox-help {
    width: calc(100vw - 28px);
    font-size: 11px;
    bottom: 10px;
  }

  .close-button {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .carousel-arrow {
    width: 33px;
    height: 33px;
  }

  .art-stage {
    width: min(72vw, 270px);
  }
}


.purchase-button:disabled {
  opacity: .45;
  cursor: progress;
  transform: none !important;
}


/* Mobile carousel alignment + swipe-ready layout */
@media (max-width: 640px) {
  .carousel {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 8px;
    touch-action: pan-y;
  }

  .art-card {
    justify-self: center;
    width: auto;
    max-width: min(64vw, 310px);
  }

  .art-stage {
    width: min(64vw, 310px);
    margin-inline: auto;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    justify-self: center;
    align-self: center;
  }

  .carousel-arrow--left {
    justify-self: end;
  }

  .carousel-arrow--right {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .carousel {
    column-gap: 6px;
  }

  .art-card {
    max-width: min(62vw, 270px);
  }

  .art-stage {
    width: min(62vw, 270px);
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Mobile true-centering fix: arrows no longer take layout space */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .page {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-shell {
    width: 100%;
    max-width: 100vw;
  }

  .carousel {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 0;
    overflow: visible;
    touch-action: pan-y;
  }

  .art-card {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    justify-items: center;
  }

  .art-stage {
    width: min(76vw, 300px);
    max-width: calc(100vw - 84px);
    margin-inline: auto;
  }

  .carousel-arrow {
    position: absolute;
    z-index: 6;
    top: calc(min(76vw, 300px) * 0.625);
    width: 28px;
    height: 48px;
    padding: 10px 0;
    transform: translateY(-50%);
  }

  .carousel-arrow:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .carousel-arrow img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .carousel-arrow--left {
    left: 12px;
    right: auto;
  }

  .carousel-arrow--right {
    right: 12px;
    left: auto;
  }
}

@media (max-width: 390px) {
  .art-stage {
    width: min(78vw, 286px);
    max-width: calc(100vw - 76px);
  }

  .carousel-arrow {
    top: calc(min(78vw, 286px) * 0.625);
    width: 24px;
    height: 44px;
  }

  .carousel-arrow img {
    width: 20px;
    height: 20px;
  }

  .carousel-arrow--left {
    left: 8px;
  }

  .carousel-arrow--right {
    right: 8px;
  }
}
