/* ═══════════════════════════════════════════════════════
   STILEO – Tuo Consulente Capelli
   Responsive CSS (tablet primary, mobile + desktop friendly)
═══════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #946E56;        /* Subdued luxury brown */
  --primary-hover:  #7A5844;
  --primary-light:  #E8DCD1;
  --primary-dark:   #4A3427;
  --accent:         #D97F63;        /* Terracotta accent */
  --text:           #2C1A0E;
  --text-muted:     #8A6A55;
  --bg:             #F7F2EF;        /* Cream/Beige Luxury BG */
  --surface:        #ffffff;
  --border:         #D6C4B5;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.04);
  --shadow-md:      0 6px 20px rgba(74,52,39,.08);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.12);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --nav-height:     72px;
  --header-height:  80px;
  --font-body:      'Montserrat', sans-serif;
  --font-title:     'Outfit', sans-serif;
  --transition:     .25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { height: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: #E5DCD5; /* Neutral grey-beige background for desktop space */
  color: var(--text);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: 960px;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0,0,0,0.1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Typography helpers ── */
a { color: var(--primary); }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.app-header {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 12px 16px 8px;
  box-shadow: var(--shadow-sm);
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo-scissors { flex-shrink: 0; width: 36px; height: 36px; }

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.logo-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  font-style: italic;
}

.logo-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ══════════════════════════════════
   CAMERA SECTION
══════════════════════════════════ */
.camera-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.camera-section::-webkit-scrollbar { display: none; }

.camera-title-bar {
  background: var(--surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 10px 16px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-bottom: none;
}

.camera-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.camera-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Camera Container ── */
.camera-container {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1/1; /* Square for head focus is more stable */
  margin-bottom: 0;
}

#webcam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror */
}

#ar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1); /* mirror to match video */
}

/* ── Face Guide Oval ── */
.face-guide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity var(--transition);
}

.face-guide.hidden { opacity: 0; }

.face-guide-oval {
  width: 52%;
  aspect-ratio: 3/4;
  border: 2.5px dashed rgba(255,255,255,.6);
  border-radius: 50%;
}

.face-guide-label {
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ── Gender Badge ── */
.gender-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
}

/* ── Camera Unavailable State ── */
.cam-unavailable {
  position: absolute;
  inset: 0;
  background: #1a1008;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-unavailable-inner {
  text-align: center;
  padding: 24px;
  color: #fff;
}

.cam-unavailable-inner p {
  margin: 14px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.btn-retry {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-retry:hover { background: var(--primary-hover); }

/* ── Photo Controls ── */
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  position: relative;
}

.capture-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-capture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(217,127,99,.4);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-capture:hover  { transform: scale(1.05); box-shadow: 0 8px 24px rgba(217,127,99,.5); }
.btn-capture:active { transform: scale(.95); }

.btn-capture.loading {
  background: #999;
  pointer-events: none;
}

.capture-info { text-align: center; }

.capture-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.capture-sublabel {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Last Photo Thumbnail ── */
.last-photo-thumb {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  text-align: center;
}

.last-photo-thumb img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  display: block;
}

.thumb-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════
   INLINE SELECTOR (FOTO tab, below camera)
══════════════════════════════════ */
.inline-selector {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 0 8px;
}

.inline-selector-title {
  text-align: center;
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 10px 0 6px;
  text-transform: uppercase;
}

/* ── Inline tabs row (tabs + colour swatches in one row) ── */
.inline-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 12px;
}

.inline-tab {
  padding: 7px 14px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.inline-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.inline-tab:hover:not(.active) { color: var(--text); }

/* Colour swatches pushed to the right */
.inline-colors {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
}

/* ── Hairstyle horizontal scroll strip ── */
.hairstyle-strip {
  display: flex;
  flex-direction: row;
  gap: 9px;
  padding: 10px 12px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hairstyle-strip::-webkit-scrollbar { display: none; }

/* Strip card – fixed width portrait tile */
.strip-card {
  flex: 0 0 88px;
  min-width: 88px;
  scroll-snap-align: start;
}

.strip-card .hairstyle-icon {
  width: 72px;
  height: 80px;
}

.strip-card .hairstyle-name { font-size: 0.60rem; }
.strip-card .hairstyle-desc { font-size: 0.54rem; }

/* ══════════════════════════════════
   MENU SECTION
══════════════════════════════════ */
.menu-section {
  padding: 6px 16px 16px;
}

.menu-title {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 12px 0 10px;
  text-transform: uppercase;
}

/* ── Tabs ── */
.menu-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.tab-btn {
  flex: 1;
  padding: 9px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
}

.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.tab-btn:hover:not(.active) { color: var(--text); }

/* ── Color Picker Bar ── */
.color-picker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.color-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.color-swatches {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  outline: none;
}

.color-swatch:hover   { transform: scale(1.18); }
.color-swatch.active  { border-color: var(--accent); transform: scale(1.18); }

/* ── Hairstyle Grid ── */
.hairstyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.hairstyle-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.hairstyle-card:hover  { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hairstyle-card.active { border-color: var(--primary); border-width: 2px; box-shadow: 0 0 0 4px rgba(148,110,86,.15); }

.hairstyle-icon {
  width: 100%;
  aspect-ratio: 1/1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, #F9F7F5 0%, #E8DCD1 100%);
}

.hairstyle-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* prevent drag-ghost on touch */
  -webkit-user-drag: none;
  user-select: none;
}

/* legacy SVG icons (if any remain) */
.hairstyle-icon svg {
  width: 100%;
  height: 100%;
}

.hairstyle-name {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.2;
}

.hairstyle-desc {
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ── Gender Filter Note ── */
.gender-filter-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ══════════════════════════════════
   SAVED SECTION
══════════════════════════════════ */
.saved-section {
  padding: 6px 16px 16px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 8px;
}

.saved-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.saved-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.saved-item-info {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saved-item-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

.btn-delete-saved {
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.btn-delete-saved:hover { opacity: 1; }

.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 32px 16px;
  line-height: 1.6;
}

/* ══════════════════════════════════
   PROFILE / SETTINGS SECTION
══════════════════════════════════ */
.profile-section {
  padding: 6px 16px 16px;
}

.settings-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
}

.settings-group-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.settings-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  margin-top: 12px;
}

.settings-label:first-of-type { margin-top: 0; }

.settings-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}

.settings-input:focus { border-color: var(--primary); }

.settings-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  padding: 8px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.settings-status {
  margin-top: 8px;
  font-size: 0.78rem;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 600;
  min-height: 20px;
}

.info-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform .1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover  { background: var(--primary-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-primary.full-width { width: 100%; justify-content: center; margin-top: 14px; }

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  border-radius: 99px;
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover { background: var(--primary-light); }

/* ══════════════════════════════════
   MODALS
══════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeInOverlay .2s ease;
}

@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUpModal .22s ease;
}

@keyframes slideUpModal {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.btn-icon-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition);
}

.btn-icon-close:hover { background: var(--border); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Loading State ── */
.loading-state {
  text-align: center;
  padding: 32px 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Error State ── */
.error-state {
  text-align: center;
  padding: 24px 16px;
  color: #c0392b;
  font-size: 0.85rem;
  line-height: 1.6;
  background: #fdf2f0;
  border-radius: var(--radius-md);
}

/* ══════════════════════════════════
   TOAST
══════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(44,26,14,.88);
  color: #fff;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 600;
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════
   BOTTOM NAV
══════════════════════════════════ */
.bottom-nav {
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  height: var(--nav-height);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}

.nav-btn {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: color var(--transition);
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn svg { transition: transform .15s; }
.nav-btn.active { color: var(--primary-dark); }
.nav-btn.active svg { transform: scale(1.1); }
.nav-btn:hover:not(.active) { color: var(--text); }

/* ══════════════════════════════════
   RESPONSIVE – TABLET
══════════════════════════════════ */
@media (min-width: 600px) {
  body {
    max-width: 680px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .camera-container { max-height: 60vh; }

  .hairstyle-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }

  .hairstyle-icon { width: 76px; height: 86px; }

  .hairstyle-name { font-size: 0.7rem; }
  .hairstyle-desc { font-size: 0.62rem; }

  .btn-capture { width: 76px; height: 76px; }
}

@media (min-width: 768px) {
  .app-header { padding: 14px 24px 12px; }
  .logo-brand  { font-size: 1.5rem; }

  .camera-section { padding: 16px 24px 10px; }
  .menu-section   { padding: 6px 24px 24px; }
  .saved-section  { padding: 6px 24px 24px; }
  .profile-section { padding: 6px 24px 24px; }

  .hairstyle-grid { gap: 12px; }
  .hairstyle-icon { width: 84px; height: 94px; }
}

/* ══════════════════════════════════
   RESPONSIVE – DESKTOP
══════════════════════════════════ */
@media (min-width: 1024px) {
  body { max-width: 900px; }

  /* Two-column layout on wide screens */
  .page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .camera-container { max-height: 70vh; }
  .hairstyle-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════
   UTILITIES
══════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
