/* ===================================================
   CORTAPELO BARBER SPA — Design System v2
   Aesthetic: "Warm Editorial" (Brass & Black)
   ================================================== */

/* === CSS Custom Properties === */
:root {
  --bg: #0a0a0a;
  --surface-1: #111111;
  --surface-2: #161616;
  --surface-3: #1c1c1c;
  --surface-4: #242424;
  --accent: #ffffff;
  --accent-dim: #d4d4d4;
  --accent-glow: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-2: #888888;
  --text-3: #555555;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Subtle Film Grain Overlay === */
/* Film grain — disabled on touch devices to prevent compositing overhead */
@media (hover: hover) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 9998;
  }
}

/* === Typography === */
.font-serif { font-family: 'DM Serif Display', serif; }
.font-sans  { font-family: 'Space Grotesk', sans-serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === Glass Effects === */
.glass-header {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.glass-panel {
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

/* === Page System (SPA) === */
.page {
  display: none;
}
.page.active {
  display: block;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === Accent Gradient (CTA Buttons) === */
.chrome-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 40%, #ffffff 100%);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.chrome-gradient-static {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
}

/* === Logo Glow === */
.logo-glow {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.08));
  transition: filter 0.4s ease;
}
.logo-glow:hover {
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.18));
}

/* === Section Divider === */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === Calendar Grid === */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  color: var(--text);
}
.calendar-day:hover:not(.calendar-day--disabled):not(.calendar-day--header) {
  background: var(--surface-3);
  color: var(--accent);
}
.calendar-day--header {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  cursor: default;
}
.calendar-day--disabled {
  color: var(--text-3);
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-day--today {
  color: var(--accent);
  position: relative;
}
.calendar-day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.calendar-day--selected {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* === Time Slots === */
.slot {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.slot:hover:not(.slot--taken):not(.slot--selected) {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-strong);
}
.slot--selected {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}
.slot--taken {
  opacity: 0.25;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--text-3);
}

/* === Service Cards === */
.service-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.service-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.service-card--selected {
  background: var(--surface-2);
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(194, 168, 130, 0.1);
}

/* === Form Inputs === */
.input-field {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1rem 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text) !important;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  box-shadow: none !important;
}
.input-field::placeholder {
  color: var(--text-3) !important;
}
.input-field:focus {
  border-bottom-color: var(--accent) !important;
  box-shadow: 0 1px 0 0 var(--accent) !important;
  outline: none;
}

/* === Content Visibility — FORCED, overrides everything === */
.reveal,
.reveal-stagger,
.reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* === Core Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes lineExpand {
  from { width: 0; }
  to { width: 3rem; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Hero accent line animation */
.hero-line {
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem auto;
  animation: lineExpand 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Toast === */
.toast {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  padding: 14px 28px;
  border-radius: 1rem;
  z-index: 9999;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  color: var(--text);
  max-width: 90vw;
  text-align: center;
}
.toast.show { top: 100px; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

/* === Selection === */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* === Admin Timeline === */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}
.timeline-dot--empty {
  border-style: dashed;
  border-color: var(--text-3);
}
.timeline-dot--past {
  background: var(--accent);
  border-color: var(--accent);
}

/* === PIN Input === */
.pin-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  color: var(--accent);
  outline: none;
  transition: all 0.2s ease;
}
.pin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* === Admin Tabs === */
.admin-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab:hover { background: var(--surface-2); color: var(--text-2); }
.admin-tab--active {
  background: #ffffff;
  color: #0a0a0a;
  border-color: transparent;
}

/* === Gallery Upload Area === */
.gallery-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-strong);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-upload-area:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

/* === Gallery Photo Card (Admin) === */
.gallery-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-photo-card:hover img {
  transform: scale(1.06);
}
.gallery-photo-card .delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-photo-card:hover .delete-btn { opacity: 1; }

/* === Home Gallery Scroll === */
.gallery-scroll-item {
  flex: 0 0 72%;
  max-width: 280px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
}
.gallery-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-scroll-item:hover img {
  transform: scale(1.06);
}

/* === Upload Loading Overlay === */
.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 1rem;
}
.upload-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Utility === */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Video Section — iPhone GPU Acceleration === */
.video-section {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-touch-callout: none;
}
.video-section video {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Fallback play button — shown only when autoplay is blocked */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.video-play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* === Accessibility — prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .calendar-day { font-size: 0.8rem; }
}

/* === Focus Visible (Modern Accessibility) === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

/* ===================================================
   AI CHAT WIDGET — Premium 2026 Redesign
   =================================================== */

/* --- Floating Bubble --- */
.ai-chat-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease;
}
.ai-chat-bubble:hover {
  transform: scale(1.08);
  background: var(--surface-3);
}
.ai-chat-bubble:active { transform: scale(0.92); }

.ai-chat-bubble-ping {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chat-bubble--hidden {
  transform: scale(0) !important;
  opacity: 0;
  pointer-events: none;
}

/* --- Chat Panel --- */
.ai-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 46;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100dvh - 160px);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  /* Hidden by default */
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.chat-panel--open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

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

/* --- Messages Area --- */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}
.ai-chat-messages::-webkit-scrollbar { width: 3px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* --- Message Bubbles --- */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-msg--user {
  justify-content: flex-end;
}
.chat-msg-avatar {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg-bubble--ai {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-msg-bubble--user {
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat-msg-bubble a {
  text-decoration: underline;
  font-weight: 600;
}

/* --- Typing Indicator --- */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}
.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* --- Quick Actions --- */
.ai-chat-quick-actions {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
.ai-chat-quick-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-chat-quick-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--text-3);
}
.ai-chat-quick-btn:active {
  transform: scale(0.96);
}

/* --- Input Area --- */
.ai-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.ai-chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.8125rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
}
.ai-chat-text-input::placeholder { color: var(--text-3); }

.ai-chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.ai-chat-send-btn:hover { transform: scale(1.08); }
.ai-chat-send-btn:active { transform: scale(0.9); }

/* --- Mobile Chat --- */
@media (max-width: 480px) {
  .ai-chat-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 90px;
    height: 55dvh;
    border-radius: 1.25rem;
  }
  .ai-chat-bubble {
    bottom: 90px;
    right: 14px;
    width: 48px;
    height: 48px;
  }
}

/* ===================================================
   PRODUCT SYSTEM — Cards, Modal, Admin
   =================================================== */

/* Product Card (public) */
.product-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.product-card:active {
  transform: scale(0.97);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-2);
  padding: 0.75rem;
}
.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.product-card-category {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
}
.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Featured product card (horizontal scroll on home) */
.product-card-featured {
  min-width: 200px;
  max-width: 200px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Category filter buttons */
.product-cat-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-cat-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.product-cat-btn--active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Admin product photo upload boxes */
.product-photo-upload {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.product-photo-upload:hover {
  border-color: var(--accent-dim);
}

/* Admin product list item */
.admin-product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.admin-product-item:hover {
  border-color: var(--border-strong);
}
.admin-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

/* Modal slide-up animation */
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
  animation: slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
