/**
 * Zey Studios Component Styles
 *
 * Photography-first design. Images are the hero.
 * UI should frame, not compete.
 *
 * Mobile-first: Base styles for 375px, scale up
 */

/* =============================================================================
   BASE & UTILITIES
   ============================================================================= */

[x-cloak] { display: none !important; }

.zey-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--st-space-sm);
}

@media (min-width: 768px) {
  .zey-container {
    padding: 0 var(--st-space-md);
  }
}

/* =============================================================================
   ZEY-HERO
   Full-viewport hero with photography background
   ============================================================================= */

.zey-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.zey-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.zey-hero__media img,
.zey-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video overlays image when present */
.zey-hero__media video {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s var(--st-ease-contemplative);
}

/* Image stays visible - video covers it when playing, reveals it when faded */

@media (min-width: 768px) {
  .zey-hero__media img,
  .zey-hero__media video {
    object-position: center 15%;
  }
}

.zey-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.5) 30%,
    rgba(26, 26, 26, 0.2) 60%,
    transparent 100%
  );
}

.zey-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--st-space-lg) var(--st-space-sm);
  max-width: 600px;
}

@media (min-width: 768px) {
  .zey-hero__content {
    padding: var(--st-space-xl) var(--st-space-md);
  }
}

.zey-hero__badge {
  display: inline-block;
  margin-bottom: var(--st-space-sm);
  padding: 0.5rem 1rem;
  background: rgba(250, 248, 245, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 248, 245, 0.2);
  border-radius: var(--st-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--st-text-light);
}

.zey-hero__title {
  font-family: var(--st-font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--st-text-light);
  margin: 0 0 var(--st-space-sm);
}

.zey-hero__tagline {
  font-family: var(--st-font-sans);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.8);
  margin: 0 0 var(--st-space-md);
  max-width: 450px;
}

.zey-hero__cta a,
.zey-hero__cta button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--st-accent);
  color: white;
  border: none;
  border-radius: var(--st-radius-full);
  font-family: var(--st-font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-hero__cta a:hover,
.zey-hero__cta button:hover {
  background: var(--st-accent-light);
  transform: translateY(-2px);
}


/* =============================================================================
   ZEY-GALLERY
   Horizontal scroll-snap gallery for print cards
   ============================================================================= */

.zey-gallery {
  padding: var(--st-space-lg) 0;
  background: var(--st-bg);
}

.zey-gallery__header {
  padding: 0 var(--st-space-sm) var(--st-space-md);
}

@media (min-width: 768px) {
  .zey-gallery__header {
    padding: 0 var(--st-space-md) var(--st-space-md);
  }
}

.zey-gallery__track {
  display: flex;
  gap: var(--st-space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--st-space-sm);
  padding: 0 var(--st-space-sm) var(--st-space-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.zey-gallery__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .zey-gallery__track {
    gap: var(--st-space-md);
    scroll-padding: var(--st-space-md);
    padding: 0 var(--st-space-md) var(--st-space-md);
  }
}

/* On larger screens, allow grid layout instead */
@media (min-width: 1024px) {
  .zey-gallery__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.zey-gallery__indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: var(--st-space-sm);
}

@media (min-width: 1024px) {
  .zey-gallery__indicators {
    display: none;
  }
}


/* =============================================================================
   ZEY-PRINT
   Individual print card with size selector
   ============================================================================= */

.zey-print {
  flex-shrink: 0;
  width: 85vw;
  max-width: 360px;
  scroll-snap-align: center;
  background: var(--st-bg);
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  box-shadow: var(--st-shadow-sm);
  transition: transform var(--st-duration-fast) var(--st-ease-contemplative),
              box-shadow var(--st-duration-fast) var(--st-ease-contemplative);
}

@media (min-width: 768px) {
  .zey-print {
    width: 45vw;
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .zey-print {
    width: 100%;
    max-width: none;
  }
}

.zey-print:hover {
  transform: translateY(-8px);
  box-shadow: var(--st-shadow-hover);
}

.zey-print__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.zey-print__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--st-duration-medium) var(--st-ease-contemplative);
}

.zey-print:hover .zey-print__image-wrap img {
  transform: scale(1.03);
}

.zey-print__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--st-space-sm);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--st-duration-fast) var(--st-ease-contemplative);
  pointer-events: none;
}

.zey-print:hover .zey-print__overlay {
  opacity: 1;
}

.zey-print__quickview {
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: var(--st-radius-sm);
  font-family: var(--st-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-print__quickview:hover {
  background: rgba(0, 0, 0, 0.7);
}

.zey-print__info {
  padding: var(--st-space-sm);
}

.zey-print__title {
  font-family: var(--st-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--st-text);
  margin: 0 0 0.25rem;
}

.zey-print__subtitle {
  font-size: 0.875rem;
  color: var(--st-text-muted);
  font-style: italic;
  margin: 0 0 var(--st-space-sm);
}

.zey-print__sizes {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--st-space-sm);
}

.zey-print__size {
  min-width: 48px;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: var(--st-bg-surface);
  color: var(--st-text-muted);
  border: 2px solid transparent;
  border-radius: var(--st-radius-sm);
  font-family: var(--st-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-print__size:hover {
  background: var(--st-bg-surface-hover);
}

.zey-print__size.is-active {
  background: var(--st-accent);
  color: white;
  border-color: var(--st-accent);
}

/* Both selected AND in cart - green inside with accent border */
.zey-print__size.is-active.is-in-cart {
  background: oklch(0.92 0.03 140);
  color: oklch(0.35 0.08 140);
  border-color: var(--st-accent);
}

/* Size button when that size is in cart - sage green tint */
.zey-print__size.is-in-cart {
  position: relative;
  background: oklch(0.92 0.03 140);
  border-color: transparent;
}

.zey-print__size.is-in-cart:not(.is-active):hover {
  background: oklch(0.88 0.04 140);
}

/* Quantity badge - overlaps bottom-right corner of size button */
.zey-print__size-qty {
  position: absolute;
  bottom: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: oklch(0.40 0.10 140);
  border-radius: var(--st-radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Green badge when button is selected */
.zey-print__size.is-active .zey-print__size-qty {
  background: oklch(0.50 0.10 140);
  color: white;
}

.zey-print__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-sm);
}

.zey-print__actions {
  display: flex;
  align-items: center;
  gap: var(--st-space-sm);
}

.zey-print__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zey-print__qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-bg-surface);
  color: var(--st-text);
  border: none;
  border-radius: var(--st-radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--st-duration-fast);
}

.zey-print__qty-btn:hover {
  background: var(--st-bg-surface-hover);
}

.zey-print__qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 500;
  color: var(--st-text);
}

.zey-print__price {
  font-family: var(--st-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--st-text);
}

.zey-print__qty-indicator {
  font-size: 0.75em;
  font-weight: 400;
  color: oklch(0.5 0.02 80);
  margin-left: 0.25em;
}

.zey-print__add {
  /* Match quantity controls width: 32+8+24+8+32 = 104px */
  min-width: 104px;
  min-height: 32px;
  padding: 0.5rem 1rem;
  background: var(--st-accent);
  color: white;
  border: none;
  border-radius: var(--st-radius-full);
  font-family: var(--st-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-print__add:hover {
  background: var(--st-accent-light);
  transform: translateY(-1px);
}

.zey-print__add:active {
  transform: translateY(0);
}


/* =============================================================================
   ZEY-STORY
   Artist story section with parallax images
   ============================================================================= */

.zey-story {
  padding: var(--st-space-xl) var(--st-space-sm);
  background: var(--st-bg-surface);
}

@media (min-width: 768px) {
  .zey-story {
    padding: var(--st-space-xl) var(--st-space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-lg);
    align-items: center;
  }
}

.zey-story__images {
  position: relative;
  margin-bottom: var(--st-space-md);
}

@media (min-width: 768px) {
  .zey-story__images {
    margin-bottom: 0;
    height: 500px;
  }
}

.zey-story__image {
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  box-shadow: var(--st-shadow-md);
}

.zey-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zey-story__image--1 {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .zey-story__image--1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 60%;
  }
}

.zey-story__image--2 {
  display: none;
}

@media (min-width: 768px) {
  .zey-story__image--2 {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 50%;
    z-index: 2;
  }
}

.zey-story__content {
  max-width: 500px;
}

@media (min-width: 768px) {
  .zey-story__content {
    padding-left: var(--st-space-md);
  }
}

.zey-story__title {
  font-family: var(--st-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--st-text);
  margin: 0 0 var(--st-space-sm);
  letter-spacing: -0.01em;
}

.zey-story__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--st-text-muted);
}

.zey-story__text p {
  margin: 0 0 1rem;
}

.zey-story__text p:last-child {
  margin-bottom: 0;
}

.zey-story__signature {
  margin-top: var(--st-space-md);
  font-family: var(--st-font-display);
  font-style: italic;
  color: var(--st-text);
}


/* =============================================================================
   ZEY-CART
   Floating cart drawer
   ============================================================================= */

.zey-cart {
  position: fixed;
  bottom: var(--st-space-sm);
  right: var(--st-space-sm);
  z-index: 1000;
}

@media (min-width: 768px) {
  .zey-cart {
    bottom: var(--st-space-md);
    right: var(--st-space-md);
  }
}

.zey-cart__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--st-accent);
  color: white;
  border: none;
  border-radius: var(--st-radius-full);
  font-family: var(--st-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--st-shadow-lg);
  transition: background var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-cart__toggle:hover {
  background: var(--st-accent-light);
  transform: translateY(-2px);
}

.zey-cart__toggle.is-open {
  background: var(--st-text);
}

.zey-cart__icon {
  display: flex;
}

.zey-cart__count {
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
}

.zey-cart__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.875rem;
  transition: background var(--st-duration-fast);
}

.zey-cart__go:hover {
  background: rgba(255, 255, 255, 0.4);
}

.zey-cart__drawer {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 320px;
  max-width: calc(100vw - var(--st-space-md));
  margin-bottom: var(--st-space-sm);
  background: var(--st-bg);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-lg);
  overflow: hidden;
}

.zey-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-space-sm);
  border-bottom: 1px solid var(--st-border);
}

.zey-cart__title {
  font-family: var(--st-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: var(--st-text);
}

.zey-cart__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--st-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--st-duration-fast);
}

.zey-cart__close:hover {
  background: var(--st-bg-surface);
}

.zey-cart__items {
  max-height: 300px;
  overflow-y: auto;
  padding: var(--st-space-sm);
}

.zey-cart__item {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--st-border);
}

.zey-cart__item-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.zey-cart__qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-bg-surface);
  color: var(--st-text);
  border: none;
  border-radius: var(--st-radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--st-duration-fast);
}

.zey-cart__qty-btn:hover {
  background: var(--st-bg-surface-hover);
}

.zey-cart__item:last-child {
  border-bottom: none;
}

.zey-cart__item-title {
  font-weight: 500;
  color: var(--st-text);
}

.zey-cart__item-size {
  font-size: 0.875rem;
  color: var(--st-text-muted);
  padding: 0.25rem 0.5rem;
  background: var(--st-bg-surface);
  border-radius: var(--st-radius-sm);
}

.zey-cart__item-price {
  font-weight: 500;
  color: var(--st-text);
  min-width: 6ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.zey-cart__item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--st-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--st-duration-fast);
}

.zey-cart__item-remove:hover {
  background: var(--st-bg-surface);
  color: var(--st-accent);
}

.zey-cart__footer {
  padding: var(--st-space-sm);
  border-top: 1px solid var(--st-border);
  background: var(--st-bg-surface);
}

.zey-cart__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--st-space-sm);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--st-text);
}

.zey-cart__checkout {
  width: 100%;
  padding: 1rem;
  background: var(--st-accent);
  color: white;
  border: none;
  border-radius: var(--st-radius-md);
  font-family: var(--st-font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--st-duration-fast);
}

.zey-cart__checkout:hover {
  background: var(--st-accent-light);
}

.zey-cart__empty {
  padding: var(--st-space-md);
  text-align: center;
  color: var(--st-text-muted);
}


/* =============================================================================
   ZEY-NAV
   Minimal navigation bar
   ============================================================================= */

/* Default: transparent over hero with oklch light text */
.zey-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-space-sm);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--st-duration-fast),
              backdrop-filter var(--st-duration-fast),
              border-color var(--st-duration-fast);
}

@media (min-width: 768px) {
  .zey-nav {
    padding: var(--st-space-sm) var(--st-space-md);
  }
}

/* Scrolled state: blur + solid bg */
.zey-nav.is-scrolled {
  background: oklch(0.98 0.01 80 / 0.9);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--st-border);
}

.zey-nav__logo a {
  font-family: var(--st-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  /* oklch: high lightness for dark hero bg */
  --nav-text-l: 0.95;
  --nav-text-c: 0.01;
  --nav-text-h: 80;
  color: oklch(var(--nav-text-l) var(--nav-text-c) var(--nav-text-h));
  transition: color var(--st-duration-fast);
}

.zey-nav__links {
  display: flex;
  gap: var(--st-space-md);
}

.zey-nav__links a {
  font-size: 0.875rem;
  text-decoration: none;
  /* oklch: high lightness for dark hero bg */
  --nav-text-l: 0.85;
  --nav-text-c: 0.01;
  --nav-text-h: 80;
  color: oklch(var(--nav-text-l) var(--nav-text-c) var(--nav-text-h));
  transition: color var(--st-duration-fast);
}

.zey-nav__links a:hover {
  --nav-text-l: 1;
  color: oklch(var(--nav-text-l) var(--nav-text-c) var(--nav-text-h));
}

/* Scrolled: dark text for light bg */
.zey-nav.is-scrolled .zey-nav__logo a {
  --nav-text-l: 0.25;
}

.zey-nav.is-scrolled .zey-nav__links a {
  --nav-text-l: 0.45;
}

.zey-nav.is-scrolled .zey-nav__links a:hover {
  --nav-text-l: 0.15;
}


/* =============================================================================
   ZEY-FOOTER
   Minimal footer
   ============================================================================= */

.zey-footer {
  padding: var(--st-space-lg) var(--st-space-sm);
  background: var(--st-bg-surface);
  border-top: 1px solid var(--st-border);
  text-align: center;
}

@media (min-width: 768px) {
  .zey-footer {
    padding: var(--st-space-lg) var(--st-space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.zey-footer__brand {
  font-family: var(--st-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--st-text);
  margin-bottom: var(--st-space-sm);
}

@media (min-width: 768px) {
  .zey-footer__brand {
    margin-bottom: 0;
  }
}

.zey-footer__links {
  display: flex;
  gap: var(--st-space-md);
  justify-content: center;
  margin-bottom: var(--st-space-sm);
}

@media (min-width: 768px) {
  .zey-footer__links {
    margin-bottom: 0;
  }
}

.zey-footer__links a {
  font-size: 0.875rem;
  color: var(--st-text-muted);
  text-decoration: none;
  transition: color var(--st-duration-fast);
}

.zey-footer__links a:hover {
  color: var(--st-accent);
}

.zey-footer__copyright {
  font-size: 0.75rem;
  color: var(--st-text-subtle);
}


/* =============================================================================
   ZEY-DIALOG
   Full-screen print viewer dialog
   ============================================================================= */

/* Native dialog backdrop - dark blur effect */
.zey-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Dialog reset and positioning */
.zey-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: min(95vw, 1100px);
  max-height: 95vh;
  overflow: visible;
  margin: auto;
}

/* Open animation via CSS (native dialog support) */
.zey-dialog[open] {
  animation: zey-dialog-in var(--st-duration-medium) var(--st-ease-contemplative);
}

@keyframes zey-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Content container - grid layout */
.zey-dialog__content {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--st-bg);
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

/* Desktop: side-by-side layout */
@media (min-width: 768px) {
  .zey-dialog__content {
    grid-template-columns: 3fr 2fr;
    max-height: none;
    overflow: visible;
  }
}

/* Image container */
.zey-dialog__image {
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--st-radius-lg) var(--st-radius-lg) 0 0;
}

@media (min-width: 768px) {
  .zey-dialog__image {
    aspect-ratio: auto;
    min-height: 500px;
    max-height: 80vh;
    border-radius: var(--st-radius-lg) 0 0 var(--st-radius-lg);
  }
}

.zey-dialog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Close button */
.zey-dialog__close {
  position: absolute;
  top: var(--st-space-sm);
  right: var(--st-space-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: var(--st-radius-full);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative),
              background var(--st-duration-fast);
  z-index: 10;
}

.zey-dialog__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Show close button on tap (mobile) or hover */
.zey-dialog__close.is-visible,
.zey-dialog__image:hover .zey-dialog__close {
  opacity: 1;
  transform: scale(1);
}

/* Controls panel */
.zey-dialog__controls {
  padding: var(--st-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--st-space-md);
}

@media (min-width: 768px) {
  .zey-dialog__controls {
    padding: var(--st-space-lg);
    justify-content: flex-start;
  }
}

/* Title */
.zey-dialog__title {
  font-family: var(--st-font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--st-text);
  margin: 0;
}

@media (min-width: 768px) {
  .zey-dialog__title {
    font-size: 2.25rem;
  }
}

/* Subtitle */
.zey-dialog__subtitle {
  font-size: 1rem;
  color: var(--st-text-muted);
  font-style: italic;
  margin: 0;
}

/* Size selector - reuses print card pattern */
.zey-dialog__sizes {
  display: flex;
  gap: 0.75rem;
}

.zey-dialog__size {
  min-width: 56px;
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  background: var(--st-bg-surface);
  color: var(--st-text-muted);
  border: 2px solid transparent;
  border-radius: var(--st-radius-sm);
  font-family: var(--st-font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-dialog__size:hover {
  background: var(--st-bg-surface-hover);
}

.zey-dialog__size.is-active {
  background: var(--st-accent);
  color: white;
  border-color: var(--st-accent);
}

.zey-dialog__size-info {
  font-size: 0.875rem;
  color: var(--st-text-muted);
  margin: 0;
}

/* Quantity selector */
.zey-dialog__quantity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zey-dialog__qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-bg-surface);
  color: var(--st-text);
  border: none;
  border-radius: var(--st-radius-sm);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--st-duration-fast);
}

.zey-dialog__qty-btn:hover {
  background: var(--st-bg-surface-hover);
}

.zey-dialog__qty-value {
  min-width: 2rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--st-text);
}

/* Price display */
.zey-dialog__price {
  font-family: var(--st-font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--st-text);
}

@media (min-width: 768px) {
  .zey-dialog__price {
    font-size: 2.5rem;
  }
}

.zey-dialog__qty-indicator {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--st-text-muted);
}

/* Add to Cart button */
.zey-dialog__add {
  min-height: 56px;
  padding: 1rem 2rem;
  background: var(--st-accent);
  color: white;
  border: none;
  border-radius: var(--st-radius-full);
  font-family: var(--st-font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-dialog__add:hover {
  background: var(--st-accent-light);
  transform: translateY(-2px);
}

.zey-dialog__add:active {
  transform: translateY(0);
}


/* =============================================================================
   ZEY-CURATION-CARD
   Card linking to a curation page from the home grid
   ============================================================================= */

.zey-curation-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  box-shadow: var(--st-shadow-sm);
  transition: transform var(--st-duration-fast) var(--st-ease-contemplative),
              box-shadow var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-curation-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--st-shadow-hover);
}

.zey-curation-card__link-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.zey-curation-card__link-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.zey-curation-card__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.zey-curation-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--st-duration-medium) var(--st-ease-contemplative);
}

.zey-curation-card:hover .zey-curation-card__image-wrap img {
  transform: scale(1.08);
}

.zey-curation-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--st-space-sm);
  z-index: 1;
}

@media (min-width: 768px) {
  .zey-curation-card__overlay {
    padding: var(--st-space-md);
  }
}

.zey-curation-card__content {
  width: 100%;
  color: var(--st-text-light);
}

.zey-curation-card__title {
  font-family: var(--st-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--st-text-light);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .zey-curation-card__title {
    font-size: 2rem;
  }
}

.zey-curation-card__tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(250, 248, 245, 0.85);
  margin: 0 0 0.75rem;
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--st-duration-fast) var(--st-ease-contemplative),
              opacity var(--st-duration-fast) var(--st-ease-contemplative);
}

@media (min-width: 768px) {
  .zey-curation-card__tagline {
    font-size: 1rem;
  }
}

.zey-curation-card:hover .zey-curation-card__tagline {
  max-height: 100px;
  opacity: 1;
}

.zey-curation-card__count {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 248, 245, 0.7);
}


/* =============================================================================
   ZEY-PAGE-HERO
   Compact hero for internal pages
   ============================================================================= */

.zey-page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    180deg,
    #6B5B7A 0%,
    #8B7394 35%,
    #C4A5A8 65%,
    #D9A566 100%
  );
  padding: var(--st-space-lg) var(--st-space-sm);
}

@media (min-width: 768px) {
  .zey-page-hero {
    padding: var(--st-space-xl) var(--st-space-md);
  }
}

.zey-page-hero__content {
  max-width: 800px;
}

.zey-page-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: var(--st-space-sm);
}

.zey-page-hero__title {
  font-family: var(--st-font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--st-text-light);
  margin: 0 0 var(--st-space-sm);
}

.zey-page-hero__subtitle {
  font-family: var(--st-font-sans);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.85);
  margin: 0;
}


/* =============================================================================
   ZEY-CURATION-HERO
   Hero for curation pages with featured image
   ============================================================================= */

.zey-curation-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.zey-curation-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.zey-curation-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zey-curation-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.5) 40%,
    rgba(26, 26, 26, 0.2) 70%,
    transparent 100%
  );
}

.zey-curation-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--st-space-lg) var(--st-space-sm);
  max-width: 700px;
}

@media (min-width: 768px) {
  .zey-curation-hero__content {
    padding: var(--st-space-xl) var(--st-space-md);
  }
}

.zey-curation-hero__title {
  font-family: var(--st-font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--st-text-light);
  margin: 0 0 var(--st-space-sm);
}

.zey-curation-hero__tagline {
  font-family: var(--st-font-sans);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.85);
  margin: 0;
  max-width: 500px;
}


/* =============================================================================
   ZEY-GALLERY-GRID
   Grid layout container for prints
   ============================================================================= */

.zey-gallery-grid {
  padding: var(--st-space-lg) var(--st-space-sm);
  background: var(--st-bg);
}

@media (min-width: 768px) {
  .zey-gallery-grid {
    padding: var(--st-space-xl) var(--st-space-md);
  }
}

.zey-gallery-grid__header {
  max-width: 1400px;
  margin: 0 auto var(--st-space-md);
  font-family: var(--st-font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--st-text);
}

.zey-gallery-grid__items {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .zey-gallery-grid__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .zey-gallery-grid__items {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =============================================================================
   ZEY-CURATIONS-ROW
   Horizontal row of links to other curations
   ============================================================================= */

.zey-curations-row {
  padding: var(--st-space-lg) var(--st-space-sm);
  background: var(--st-bg-surface);
}

@media (min-width: 768px) {
  .zey-curations-row {
    padding: var(--st-space-lg) var(--st-space-md);
  }
}

.zey-curations-row__title {
  font-family: var(--st-font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--st-text);
  margin: 0 0 var(--st-space-sm);
  text-align: center;
}

.zey-curations-row__items {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--st-space-sm);
  padding-bottom: var(--st-space-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.zey-curations-row__items::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .zey-curations-row__items {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.zey-curations-row__items a {
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 0.75rem 1.5rem;
  background: var(--st-bg);
  color: var(--st-text);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-full);
  font-family: var(--st-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--st-duration-fast) var(--st-ease-contemplative),
              border-color var(--st-duration-fast) var(--st-ease-contemplative),
              transform var(--st-duration-fast) var(--st-ease-contemplative);
}

.zey-curations-row__items a:hover {
  background: var(--st-accent);
  border-color: var(--st-accent);
  color: white;
  transform: translateY(-2px);
}


/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

/* Focus visible states */
:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline-color: var(--st-accent);
}

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

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .zey-print__size {
    border: 2px solid currentColor;
  }

  .zey-hero__badge,
  .zey-gift__badge {
    border-width: 2px;
  }
}
