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

/* Design Tokens */
:root {
  --magenta: #E64FA7;
  --teal: #5BA5B0;
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --text: #1a1a1a;
  --text-dim: #666;
  --border: #e5e5e5;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 2px;
  --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;
  --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
   ============================================================ */
.hidden {
  display: none !important;
}

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

/* ============================================================
   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: #d1408f;
  border-color: #d1408f;
  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;
}

/* ============================================================
   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%;
  left: 50%;
  transform: translateX(-50%);
  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: 6px 0;
  margin-top: 12px;
  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);
}

/* ============================================================
   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, #f0f0f0 25%, #fafafa 50%, #f0f0f0 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;
}

.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: #d1408f;
  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: #d1408f;
}

/* 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: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

#contact-result.error,
#payment-result.error,
#tip-result.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ============================================================
   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;
}

/* ============================================================
   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;
  }
}

/* ============================================================
   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 Panel
   ============================================================ */
#admin-login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.admin-login-box .logo {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.admin-login-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.admin-login-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.admin-login-box input:focus {
  border-color: var(--magenta);
}

.admin-login-box .btn {
  width: 100%;
  text-align: center;
}

#admin-login-error {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Admin layout */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.admin-sidebar h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 20px;
  margin-bottom: 8px;
  margin-top: 16px;
}

.admin-sidebar h3:first-child {
  margin-top: 0;
}

.admin-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-tab:hover {
  background: var(--bg);
  color: var(--text);
}

.admin-tab.active {
  background: rgba(230, 79, 167, 0.08);
  color: var(--magenta);
  font-weight: 600;
}

.admin-main {
  padding: 32px;
  background: var(--bg);
  overflow-y: auto;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Admin cards */
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.admin-card:hover {
  box-shadow: var(--shadow);
}

.admin-card img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--border);
}

.admin-card-info {
  flex: 1;
  min-width: 0;
}

.admin-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font);
}

.admin-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.admin-btn.danger {
  color: #c62828;
  border-color: #ef9a9a;
}

.admin-btn.danger:hover {
  background: #fce4ec;
}

/* Visibility badge */
.badge-visible {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-hidden {
  display: inline-block;
  background: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  background: var(--white);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--magenta);
  background: rgba(230, 79, 167, 0.03);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone-text {
  pointer-events: none;
}

.upload-zone-text p {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.upload-zone-text span {
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.upload-progress {
  margin-top: 16px;
}

.upload-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--magenta);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Admin photo grid */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.admin-photo-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.photo-title-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.7rem;
  border: none;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.05);
  font-family: var(--font);
  outline: none;
  cursor: text;
}

.photo-title-input:focus {
  background: white;
  border-top-color: var(--magenta);
}

.admin-photo-item:hover {
  border-color: var(--magenta);
}

.admin-photo-item.dragging {
  opacity: 0.5;
  border-color: var(--magenta);
  cursor: grabbing;
}

.admin-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 8px 6px 6px;
  display: flex;
  gap: 4px;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.admin-photo-item:hover .admin-photo-actions {
  opacity: 1;
}

.admin-photo-btn {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.admin-photo-btn.delete {
  background: #c62828;
  color: white;
}

.admin-photo-btn.cover {
  background: var(--magenta);
  color: white;
}

/* Admin form */
.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.admin-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.admin-form .form-group label {
  font-size: 0.8rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.admin-form select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  cursor: pointer;
  color: var(--text);
}

.admin-form select:focus {
  border-bottom-color: var(--magenta);
}

.admin-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.admin-form .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--magenta);
  cursor: pointer;
}

.admin-form .checkbox-group label {
  font-size: 0.9rem !important;
  text-transform: none !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin: 0 !important;
  cursor: pointer;
}

/* Orders table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.orders-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background: var(--bg);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff8e1; color: #f57f17; }
.status-cancelled { background: #fce4ec; color: #c62828; }

/* Variants table */
.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.variants-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.variants-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.variants-table input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
}

.variants-table input:focus {
  border-color: var(--magenta);
}

/* ============================================================
   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;
}

/* ============================================================
   Responsive overrides
   ============================================================ */
@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 0;
  }

  .admin-sidebar h3 {
    display: none;
  }

  .admin-tab {
    white-space: nowrap;
    padding: 16px 20px;
    border-bottom: 3px solid transparent;
  }

  .admin-tab.active {
    background: none;
    border-bottom-color: var(--magenta);
  }

  .admin-main {
    padding: 20px 16px;
  }

  .section {
    padding: 3rem 16px;
  }

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

/* ============================================================
   Admin Phase 7: Settings, Nav Editor, Orders, Reorder, Wizard
   ============================================================ */

/* Settings section titles */
.settings-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-top: 12px;
  color: var(--text);
}

.settings-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* Color picker layout */
.color-picker-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-picker-wrap input[type="color"] {
  width: 40px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: none;
}

.color-text-input {
  flex: 1;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Nav item rows */
.nav-item-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  cursor: grab;
}

.nav-item-row.dragging {
  opacity: 0.4;
}

.nav-item-main {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-item-row input,
.nav-item-row select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
}

.nav-item-row input:focus,
.nav-item-row select:focus {
  border-color: var(--magenta);
}

.nav-item-row select {
  max-width: 160px;
}

/* Nav item children (dropdown type) */
.nav-item-children {
  margin-left: 32px;
  padding: 6px 0 2px;
}

.nav-child-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.nav-child-row input {
  flex: 1;
}

.ni-add-child-btn {
  margin-top: 4px;
  font-size: 0.8rem;
}

.drag-handle {
  cursor: grab;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 0 4px;
  user-select: none;
  flex-shrink: 0;
}

/* Orders filters */
.orders-filters {
  margin-bottom: 16px;
}

.orders-filters select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--font);
  background: var(--white);
  outline: none;
}

.orders-filters select:focus {
  border-color: var(--magenta);
}

/* Order status badges (expanded) */
.status-fulfilled { background: #e8f5e9; color: #2e7d32; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-fulfillment_failed { background: #fbe9e7; color: #bf360c; }
.status-refunded { background: #fff3e0; color: #e65100; }

/* Order detail row */
.order-shipping-detail {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg);
  border-radius: 4px;
  line-height: 1.5;
}

.order-row:hover td {
  background: var(--bg);
}

/* Admin header with multiple actions */
.admin-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Gallery reorder */
.reorder-category {
  margin-bottom: 20px;
}

.reorder-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.reorder-gallery-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 4px;
  background: var(--white);
  cursor: grab;
}

.reorder-gallery-item.dragging {
  opacity: 0.4;
}

.reorder-gallery-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Photo picker modal */
.photo-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.photo-picker-modal {
  background: var(--white);
  border-radius: 8px;
  width: 90vw;
  max-width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.photo-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.photo-picker-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.photo-picker-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px 8px;
}

.photo-picker-controls {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.photo-picker-controls select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
}

.photo-picker-grid {
  padding: 16px 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.picker-photo-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  aspect-ratio: 1;
}

.picker-photo-item:hover {
  border-color: var(--magenta);
}

.picker-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Input with inline action button */
.input-with-action {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-action input {
  flex: 1;
}

/* Setup wizard */
#setup-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.setup-wizard {
  background: var(--white);
  border-radius: 12px;
  width: 90vw;
  max-width: 520px;
  overflow: hidden;
}

.setup-wizard-header {
  text-align: center;
  padding: 28px 24px 16px;
}

.setup-wizard-header .logo {
  text-decoration: none;
}

.setup-wizard-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 16px 0 4px;
}

.setup-step-indicator {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.setup-wizard-body {
  padding: 8px 24px 16px;
}

.setup-wizard-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.setup-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 24px;
  gap: 12px;
}

/* Uploader status widget */
.uploader-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.uploader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.uploader-dot.uploader-online {
  background: #4caf50;
}

.uploader-dot.uploader-offline {
  background: #9e9e9e;
}

.uploader-label {
  white-space: nowrap;
}

/* POD status badges */
.pod-status-ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.pod-status-off {
  background: #f5f5f5;
  color: #9e9e9e;
}

/* POD template dropdown in variant table */
.v-pod-template {
  width: 100%;
  padding: 4px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

/* Variant table column sizing */
.variants-table th:nth-child(3),
.variants-table td:nth-child(3) {
  min-width: 160px;
}

.variants-table th:nth-child(4),
.variants-table td:nth-child(4) {
  width: 130px;
  font-size: 0.8rem;
}
