/* ============================================================
   MH Hill Photography — style.css
   ============================================================ */

/* ============================================================
   Design Tokens
   White-label theming: tenants override --magenta and --teal at
   runtime via site.js setProperty (driven by admin Settings).
   All other tokens cascade from these or are neutral.
   ============================================================ */
:root {
  /* Brand */
  --magenta: #E64FA7;
  --magenta-dark: color-mix(in srgb, var(--magenta) 85%, black);
  --teal: #5BA5B0;

  /* Neutrals */
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --text: #1a1a1a;
  --text-dim: #666;
  --border: #e5e5e5;

  /* Status colors (bg + fg pairs) */
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-error: #c62828;
  --color-error-bg: #fce4ec;
  --color-warning: #f57f17;
  --color-warning-bg: #fff8e1;
  --color-info: #1565c0;
  --color-info-bg: #e3f2fd;
  --color-neutral: #757575;
  --color-neutral-bg: #f5f5f5;
  --color-shipped: #1565c0;
  --color-shipped-bg: #e3f2fd;
  --color-fulfillment-failed: #bf360c;
  --color-fulfillment-failed-bg: #fbe9e7;
  --color-refunded: #e65100;
  --color-refunded-bg: #fff3e0;
  --color-online: #4caf50;
  --color-offline: #9e9e9e;

  /* Surface neutrals (cookie banner, dark UI bits) */
  --surface-dark: #1a1a1a;
  --surface-dark-text: #ccc;
  --surface-dark-muted: #999;
  --surface-dark-border: #333;

  /* Skeleton/shimmer loading state */
  --shimmer-base: #f0f0f0;
  --shimmer-highlight: #fafafa;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-md: 1.1rem;
  --text-lg: 1.3rem;
  --text-xl: 1.6rem;
  --text-2xl: 2rem;
  --text-3xl: 2.8rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.8;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius: 2px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 30px;
  --radius-full: 9999px;

  /* Effects */
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.16);
  --transition: 0.2s ease;

  /* Layout */
  --nav-height: 64px;
  --container: 1200px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   Accessibility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--magenta);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* ============================================================
   Utility classes
   Use these instead of inline style="" for one-off layout,
   alignment, and state. Anything more semantic should get a
   named component class.
   ============================================================ */

/* Visibility */
.hidden,
.is-hidden {
  display: none !important;
}

.is-visible {
  display: inline !important;
}

/* Layout container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container.is-flush {
  padding-left: 0;
  padding-right: 0;
}

/* Text alignment */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-justify { text-align: justify; }

/* Text color states */
.is-error    { color: var(--color-error); }
.is-success  { color: var(--color-success); }
.is-warning  { color: var(--color-warning); }
.is-muted    { color: var(--text-dim); }

/* Background state (used on buttons during async feedback) */
.bg-success  { background: var(--color-success) !important; }
.bg-error    { background: var(--color-error) !important; }

/* Common content patterns extracted from inline JS */
.empty-state {
  color: var(--text-dim);
  padding: var(--space-md) 0;
}

.error-state {
  color: var(--color-error);
  padding: var(--space-md) 0;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.is-clickable {
  cursor: pointer;
}

/* Lock body scroll when a modal, drawer, or lightbox is open */
.is-scroll-locked {
  overflow: hidden;
}

.text-link {
  color: var(--magenta);
  font-weight: var(--weight-semibold);
}
.text-link:hover {
  color: var(--magenta-dark);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--magenta);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid var(--magenta);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 79, 167, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--magenta);
  border: 2px solid var(--magenta);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

.btn-outline:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 79, 167, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.78rem;
}

/* Make any .btn span the full width of its container, centered. */
.btn.is-fullwidth {
  display: block;
  width: 100%;
  text-align: center;
}

/* Common spacing modifier for buttons that submit a form */
.btn.is-form-submit {
  margin-top: 1rem;
}

/* ============================================================
   Navigation
   ============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

/* Logo */
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo .m,
.logo .h {
  color: var(--magenta);
}

.logo .p {
  color: var(--teal);
}

/* Nav links wrapper */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .btn {
  color: var(--white);
  text-transform: uppercase;
}

/* Nav dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger:hover {
  color: var(--text);
}

.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* -16px so the menu items' inner padding lines up with the trigger text */
  left: -16px;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  /* Padding-top doubles as a visual gap from the trigger AND keeps the
     hover area contiguous so the menu doesn't close while the mouse
     traverses from trigger to first item. */
  padding: 18px 0 6px 0;
  margin-top: 0;
  z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--magenta) !important;
}

.nav-dropdown-loading,
.nav-dropdown-empty {
  display: block;
  padding: 8px 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
}

/* Mobile: dropdowns expand inline instead of absolute */
@media (max-width: 1023px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding: 0 0 0 16px;
    min-width: 0;
    max-height: none;
    border-left: 2px solid var(--border);
  }

  .nav-dropdown-menu a {
    padding: 6px 12px;
  }
}

/* Cart badge */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim) !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 1;
}

/* Hamburger — hidden checkbox trick */
#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Animate hamburger when checked */
#nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  #nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-height);
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    margin-left: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  #nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  text-align: center;
  padding: 6rem 24px 5rem;
  background: var(--white);
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

#hero .tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 4rem 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--magenta);
  margin-top: 6px;
  border-radius: 2px;
}

.view-all {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition);
}

.view-all:hover {
  color: var(--magenta);
}

/* ============================================================
   Image download deterrents

   Pairs with site.js's contextmenu/dragstart blockers. CSS prevents
   the browser-native drag affordance and text-selection box on any
   image inside a photo-display surface. Determined users can still
   open DevTools, which is why the LR daemon also watermarks the
   display WebPs. site.js doesn't load on /admin so this scope is
   public-facing only.
   ============================================================ */
.gallery-cards img,
.lightbox img,
.lightbox-img-wrap img,
.fav-grid img,
.photo-grid img,
.also-like img,
.recent-galleries img,
.home-recent img,
.product-gallery img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ============================================================
   Gallery Cards (listing pages)
   ============================================================ */
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--border);
  text-decoration: none;
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
  transition: opacity var(--transition);
}

.gallery-card:hover .card-overlay {
  opacity: 0.85;
}

.gallery-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.gallery-card .card-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
  display: block;
}

/* Card hover lift */
.gallery-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Placeholder for loading state */
.gallery-card.placeholder {
  background: linear-gradient(90deg, var(--shimmer-base) 25%, var(--shimmer-highlight) 50%, var(--shimmer-base) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (max-width: 1024px) {
  .gallery-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Masonry Gallery Grid
   ============================================================ */
.masonry-grid {
  column-count: 3;
  column-gap: 12px;
  padding: 0;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.025);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  transition: opacity 0.2s ease;
  opacity: 1;
}

.lightbox img.is-loading {
  opacity: 0;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity var(--transition);
  z-index: 9100;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  width: 56px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition), background var(--transition);
  z-index: 9100;
  border-radius: 4px;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.lightbox-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 16px 24px;
  z-index: 9100;
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.lightbox-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-buy-btn {
  background: var(--magenta);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-buy-btn:hover {
  background: var(--magenta-dark);
  transform: scale(1.03);
}

/* ============================================================
   Buy Print Panel (lightbox overlay)
   ============================================================ */
.buy-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  color: var(--text);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  z-index: 9200;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.buy-panel.hidden {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.buy-panel-inner {
  padding: 20px 24px 24px;
  position: relative;
}

.buy-panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-panel-close:hover {
  color: var(--text);
}

.buy-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.buy-panel-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.buy-panel-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.buy-panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.buy-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.buy-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.buy-option:hover {
  border-color: var(--magenta);
  background: rgba(230, 79, 167, 0.04);
}

.buy-option input[type="radio"] {
  accent-color: var(--magenta);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.buy-option:has(input:checked) {
  border-color: var(--magenta);
  background: rgba(230, 79, 167, 0.06);
}

.buy-option-label {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.buy-option-type {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-option-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--magenta);
}

.buy-add-btn {
  width: 100%;
  background: var(--magenta);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.buy-add-btn:hover {
  background: var(--magenta-dark);
}

/* Shop page intro */
.shop-intro {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.5rem 0 1rem;
  color: var(--text-dim);
}

.shop-starting {
  font-weight: 600;
  color: var(--magenta);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ============================================================
   Gallery Page
   ============================================================ */
.gallery-header {
  padding: 3rem 24px 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.gallery-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.gallery-header p {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.gallery-body {
  padding: 0 24px 4rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 24px 5rem;
}

.contact-wrap h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.type-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.type-selector input[type="radio"] {
  display: none;
}

.type-selector label {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.type-selector input[type="radio"]:checked + label {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(230, 79, 167, 0.06);
}

.type-selector label:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--magenta);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

#contact-result,
#payment-result,
#tip-result {
  margin-top: 1.25rem;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

#contact-result.success,
#payment-result.success,
#tip-result.success {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 40%, white);
}

#contact-result.error,
#payment-result.error,
#tip-result.error {
  display: block;
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid color-mix(in srgb, var(--color-error) 40%, white);
}

/* ============================================================
   Payment / Tip
   ============================================================ */
.payment-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 24px 5rem;
}

.payment-wrap h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.payment-wrap > p {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.amount-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.amount-preset {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  font-family: var(--font);
}

.amount-preset:hover,
.amount-preset.selected {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(230, 79, 167, 0.06);
}

#payment-element,
#tip-payment-element {
  margin: 1.5rem 0;
  min-height: 60px;
}

/* ============================================================
   Checkout success (post-Stripe redirect)
   ============================================================ */
.checkout-success {
  text-align: center;
  padding: 3rem 1rem;
}

.checkout-success-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
}

.checkout-success-detail {
  color: var(--text-dim);
}

/* ============================================================
   Shop Grid
   ============================================================ */
.shop-header {
  padding: 3rem 24px 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.shop-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.shop-header p {
  color: var(--text-dim);
  max-width: 600px;
}

.shop-body {
  padding: 0 24px 5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  text-decoration: none;
  color: var(--text);
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 14px 16px;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card-price {
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 3rem 24px 5rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}

.product-detail-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-detail-info h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.product-detail-info .product-description {
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.size-selector {
  margin-bottom: 1.75rem;
}

.size-selector h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option input[type="radio"] {
  display: none;
}

.size-option label {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  color: var(--text-dim);
  user-select: none;
}

.size-option input[type="radio"]:checked + label {
  border-color: var(--magenta);
  color: var(--magenta);
}

.size-option label:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.product-price span {
  color: var(--magenta);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.product-fineprint {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: var(--leading-normal);
}

.back-link-wrap {
  padding: 0 var(--space-lg) 3rem;
  max-width: var(--container);
  margin: 0 auto;
}

.back-link {
  color: var(--teal);
  font-weight: var(--weight-semibold);
  font-size: 0.9rem;
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--surface-dark-text);
  padding: 14px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 99999;
  flex-wrap: wrap;
}

.cookie-banner-link {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-banner-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.cookie-banner-accept {
  background: var(--teal);
  color: var(--surface-dark);
  border: none;
  font-weight: var(--weight-semibold);
}

.cookie-banner-decline {
  background: transparent;
  color: var(--surface-dark-muted);
  border: 1px solid var(--surface-dark-border);
}

/* ============================================================
   Cart Toast (transient "added to cart" confirmation pill)
   ============================================================ */
.cart-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10001;
  background: var(--magenta);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: var(--weight-semibold);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  max-width: 340px;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Cart Drawer
   ============================================================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  transition: color var(--transition);
}

.cart-close:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 0;
  font-size: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--border);
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.cart-item-size {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  color: var(--text);
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--bg);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-remove {
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  margin-top: 4px;
  display: block;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--magenta);
}

.cart-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
}

.cart-email-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.cart-email-input:focus {
  outline: none;
  border-color: var(--magenta);
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 5rem 24px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--magenta);
  color: var(--white);
  padding: 2.5rem 24px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1rem;
}

.social a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.social a:hover {
  color: var(--white);
}

.social a svg {
  display: block;
}

footer p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

footer p.sub {
  font-size: 0.78rem;
  opacity: 0.7;
}

footer p.sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer p.sub a:hover {
  opacity: 1;
}

/* Admin styles moved to admin.css (loaded only by admin.html) */

/* ============================================================
   Page Hero (non-home)
   ============================================================ */
.page-hero {
  background: var(--white);
  padding: 3rem 24px 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 560px;
}

/* ============================================================
   Also Like section
   ============================================================ */
.also-like {
  padding: 3rem 24px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.also-like h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* ============================================================
   Loading spinner
   ============================================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 3rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-wrap {
  text-align: center;
  padding: 4rem 0;
}

/* ============================================================
   Portfolio page
   ============================================================ */
.portfolio-intro {
  padding: 3rem 24px 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.portfolio-intro h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.portfolio-intro p {
  color: var(--text-dim);
}

.portfolio-body {
  padding: 0 24px 5rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
   CMS / static content pages
   Used by: terms, privacy, disclaimer, dmca, shipping, pricing.
   These pages share a centered text-content wrapper plus a
   small set of typography primitives. Width modifiers let each
   page choose its line-length.
   ============================================================ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-wrap.is-medium { max-width: 780px; }
.contact-wrap.is-wide   { max-width: 840px; }

/* CMS sections (privacy, shipping) */
.cms-section {
  margin-bottom: 2rem;
}

.cms-section--spaced {
  margin-bottom: 2.5rem;
}

.cms-section-title {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  margin-bottom: 0.75rem;
}

.cms-text {
  line-height: var(--leading-relaxed);
  color: var(--text-dim);
}

.cms-text + .cms-text {
  margin-top: 0.75rem;
}

.cms-text strong {
  color: var(--text);
}

.cms-list {
  color: var(--text-dim);
  line-height: 2;
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.cms-meta {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* Inline accent links inside CMS content */
.link-magenta {
  color: var(--magenta);
  font-weight: var(--weight-semibold);
}

.link-teal {
  color: var(--teal);
}

/* ============================================================
   Contact page (direct-contact block at the bottom of the form)
   ============================================================ */
.contact-direct {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-direct-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   Section variants
   ============================================================ */
.section.is-tight {
  padding-top: 2rem;
}

/* ============================================================
   About page
   ============================================================ */
.about-bio {
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
}

.about-bio--lead {
  font-size: var(--text-md);
}

.about-bio:last-of-type {
  margin-bottom: 2.5rem;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Pricing page
   ============================================================ */
.pricing-card {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.pricing-card h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: 1rem;
}

.pricing-card h2 + .pricing-headline {
  margin-top: -0.5rem;
}

.pricing-headline {
  font-size: 1.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.pricing-detail {
  color: var(--text-dim);
  line-height: var(--leading-relaxed);
}

.pricing-list {
  color: var(--text-dim);
  line-height: 2.2;
  list-style: none;
  padding-left: 0;
}

.pricing-list strong {
  color: var(--text);
}

.pricing-package {
  margin-bottom: 1.25rem;
}

.pricing-package:last-child {
  margin-bottom: 0;
}

.pricing-package-title {
  font-weight: var(--weight-bold);
  margin-bottom: 0.25rem;
}

.pricing-price {
  color: var(--magenta);
  font-weight: var(--weight-extrabold);
}

.pricing-note {
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.pricing-disclaimer {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
}

.pricing-travel {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.pricing-cta {
  margin-bottom: 2rem;
  display: inline-block;
}

/* ============================================================
   Auth pages (login, passkey-setup)
   Shared shell for the magic-link sign-in flow and passkey
   enrollment. Distinct from the main .btn — these use
   border-radius 10px and full-width block buttons appropriate
   for a focused single-purpose form.
   ============================================================ */
.auth-wrap,
.pk-wrap {
  max-width: 520px;
  margin: 80px auto;
  padding: var(--space-xl) 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-wrap {
  max-width: 420px;
}

.auth-eyebrow,
.pk-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--magenta);
  font-weight: var(--weight-bold);
  margin: 0 0 12px;
}

.auth-title,
.pk-title {
  font-size: 26px;
  font-weight: var(--weight-extrabold);
  margin: 0 0 12px;
  color: var(--text);
}

.auth-intro,
.pk-intro {
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 22px;
  font-size: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.auth-field label {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.auth-field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.auth-field input:focus {
  outline: 2px solid var(--magenta);
  outline-offset: -1px;
  border-color: transparent;
}

.auth-actions,
.pk-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.pk-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.btn-block {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: var(--weight-semibold);
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-block.btn-primary {
  background: var(--magenta);
  color: var(--white);
}

.btn-block.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-status,
.pk-status {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.auth-status.error,
.pk-status.error {
  background: var(--color-error-bg);
  color: var(--color-error);
  display: block;
}

.auth-status.success,
.pk-status.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  display: block;
}

.auth-meta {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

.auth-meta a {
  color: var(--teal);
  text-decoration: none;
}

.exchange-state {
  text-align: center;
  padding: var(--space-lg) 0;
}

.pk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-list li {
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text);
  font-size: 14px;
  line-height: var(--leading-normal);
}

.pk-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

/* ============================================================
   Favorites page
   Local-storage gallery of saved photos.
   ============================================================ */
.fav-wrap {
  max-width: var(--container);
  margin: 40px auto;
  padding: 0 1.5rem;
}

.fav-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fav-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: var(--weight-extrabold);
}

.fav-header p.lead {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.fav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.fav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.fav-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.fav-meta {
  padding: 10px 12px;
  font-size: 13px;
}

.fav-meta .title {
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.fav-meta .added {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.fav-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.fav-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 22px;
  color: var(--text);
}

.fav-actions {
  margin-bottom: 1rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--magenta);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 0;
}

.fav-card .remove-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--white);
  border: none;
  border-top: 1px solid var(--border);
  color: var(--color-error);
  font-size: 12px;
  cursor: pointer;
}

.fav-card .remove-btn:hover {
  background: var(--color-error-bg);
}

/* ============================================================
   Order tracking page (customer-facing)
   ============================================================ */
.track-wrap {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 1.5rem;
}

.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 1.5rem;
}

.track-card h2 {
  margin: 0 0 .25rem;
  font-size: 22px;
  font-weight: var(--weight-bold);
}

.track-card p.lead {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.field input {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--magenta);
  outline-offset: -1px;
  border-color: transparent;
}

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill.status-paid {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-pill.status-fulfilled {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-pill.status-fulfillment_pending_config,
.status-pill.status-fulfillment_failed {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.order-table th,
.order-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
}

.order-table th {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
}

.order-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text);
  margin-top: 14px;
}

.order-meta dt {
  color: var(--text-dim);
}

.order-meta dd {
  margin: 0;
}

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}

.alert.error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.alert.success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ============================================================
   Responsive overrides
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 3rem 16px;
  }

  #hero {
    padding: 4rem 16px 3.5rem;
  }
}

/* Admin Phase 7 styles moved to admin.css */
