/* =========================================================
   LAS DELICIAS · AI CATALOG
   Design system — light + dark, brand: yellow + navy
   ========================================================= */

:root {
  /* Brand */
  --brand-yellow:       #FDC72F;
  --brand-yellow-soft:  #FFF4D1;
  --brand-yellow-dark:  #E0AC18;
  --brand-navy:         #1B2A5E;
  --brand-navy-deep:    #0F1A3D;

  /* Surface */
  --bg:                 #FAFAFC;
  --bg-elev:            #F3F4F8;
  --surface:            #FFFFFF;
  --surface-2:          #F7F8FB;
  --surface-3:          #EEF0F6;
  --border:             rgba(15, 26, 61, 0.08);
  --border-strong:      rgba(15, 26, 61, 0.15);

  /* Text */
  --text:               #0A0E27;
  --text-muted:         #5B6480;
  --text-soft:          #8B93A8;

  /* Accents */
  --success:            #10B981;
  --danger:             #EF4444;
  --info:               #3B82F6;
  --purple:             #7C3AED;

  /* Effects */
  --shadow-xs:          0 1px 2px rgba(15, 26, 61, 0.05);
  --shadow-sm:          0 2px 8px rgba(15, 26, 61, 0.06);
  --shadow-md:          0 8px 24px rgba(15, 26, 61, 0.08);
  --shadow-lg:          0 24px 60px rgba(15, 26, 61, 0.12);
  --shadow-glow:        0 0 0 4px rgba(253, 199, 47, 0.18), 0 12px 40px rgba(253, 199, 47, 0.25);

  --radius-sm:          10px;
  --radius:             16px;
  --radius-lg:          24px;
  --radius-xl:          32px;

  --ease:               cubic-bezier(.22, .61, .36, 1);
  --ease-out:           cubic-bezier(.16, 1, .3, 1);

  --maxw:               1280px;
  --nav-h:              68px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:               #0A0E1F;
  --bg-elev:          #0F1428;
  --surface:          #131831;
  --surface-2:        #181E3A;
  --surface-3:        #1F2647;
  --border:           rgba(255, 255, 255, 0.08);
  --border-strong:    rgba(255, 255, 255, 0.15);
  --text:             #F0F2FA;
  --text-muted:       #9AA3C0;
  --text-soft:        #6B7494;
  --shadow-xs:        0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:        0 24px 60px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   CURSOR GLOW
   ========================================================= */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(253, 199, 47, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  mix-blend-mode: multiply;
}
[data-theme="dark"] .cursor-glow {
  mix-blend-mode: screen;
  background: radial-gradient(circle at center, rgba(253, 199, 47, 0.12), transparent 65%);
}
body:hover .cursor-glow { opacity: 1; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--brand-navy);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 0 rgba(253, 199, 47, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(253, 199, 47, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(253, 199, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 199, 47, 0); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs), 0 0 0 1px var(--border);
}
.nav-link svg { stroke-width: 2; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .22s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun  { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-deep));
  color: var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .03em;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   LAYOUT
   ========================================================= */
main {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px;
}
.view {
  display: none;
  animation: viewIn .4s var(--ease-out);
}
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-sub {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all .22s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 42, 94, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(27, 42, 94, 0.32);
}

.btn-secondary {
  background: var(--brand-yellow);
  color: var(--brand-navy);
  box-shadow: 0 6px 16px rgba(253, 199, 47, 0.3);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--brand-yellow-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-glow {
  position: relative;
  background: linear-gradient(135deg, var(--brand-navy), #2A3B7A);
  color: #fff;
  overflow: hidden;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--brand-yellow), transparent 30%, var(--brand-yellow) 60%, transparent 90%, var(--brand-yellow));
  z-index: -1;
  filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  animation: spin 4s linear infinite;
}
.btn-glow:hover::before { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-glow:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-glow.is-loading {
  pointer-events: none;
  background: var(--surface-3);
  color: var(--text-muted);
}
.btn-glow.is-loading svg { animation: spin 1s linear infinite; }

.link-btn {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 13px;
  transition: opacity .2s;
}
[data-theme="dark"] .link-btn { color: var(--brand-yellow); }
.link-btn:hover { opacity: .7; }

/* =========================================================
   HERO (Dashboard)
   ========================================================= */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #fff;
  padding: 56px 56px 64px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(253, 199, 47, 0.55), transparent 38%),
    radial-gradient(circle at 12% 92%, rgba(253, 199, 47, 0.22), transparent 45%),
    radial-gradient(circle at 60% 50%, rgba(124, 58, 237, 0.15), transparent 50%);
  pointer-events: none;
  animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { transform: translate(0, 0)   scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.08); }
}
.hero-content { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-yellow);
  backdrop-filter: blur(6px);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 8px var(--brand-yellow);
}
.hero-title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 18px 0 18px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--brand-yellow), #FFE9A0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* =========================================================
   KPI CARDS
   ========================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.kpi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 0;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-xs);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.kpi-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.kpi-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.kpi-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.kpi-trend.up { background: rgba(16, 185, 129, .12); color: #059669; }
[data-theme="dark"] .kpi-trend.up { color: #34D399; }
.kpi-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-unit { font-size: 18px; color: var(--text-muted); margin-left: 2px; }
.kpi-spark {
  display: block;
  width: 100%;
  height: 36px;
  margin: 12px -22px -1px;
  width: calc(100% + 44px);
}

/* =========================================================
   PANELS / DASHBOARD GRID
   ========================================================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: 0; }
.activity-dot {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}
.activity-text { flex: 1; min-width: 0; }
.activity-text strong { font-size: 13.5px; font-weight: 600; display: block; }
.activity-text small { color: var(--text-muted); font-size: 12px; }

.quick-actions {
  display: grid;
  gap: 10px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: all .22s var(--ease);
}
.quick-action:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.quick-action strong { font-size: 13.5px; font-weight: 700; display: block; }
.quick-action small { color: var(--text-muted); font-size: 11.5px; }
.qa-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
}

/* =========================================================
   FORM / CREATE
   ========================================================= */
.create-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
}
.form-panel { padding: 28px; }
.form-section {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.form-section small { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .8; margin-left: 6px; }
.form-section + .form-section { margin-top: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all .2s var(--ease);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-yellow);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(253, 199, 47, .14);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row.four { grid-template-columns: repeat(4, 1fr); }
.field-row .field { margin-bottom: 14px; }

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all .22s var(--ease);
  overflow: hidden;
}
.dropzone:hover {
  background: var(--surface);
  border-color: var(--brand-yellow);
}
.dropzone.is-dragging {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow-soft);
}
[data-theme="dark"] .dropzone.is-dragging { background: rgba(253, 199, 47, 0.06); }
.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.dropzone-empty strong { color: var(--text); font-size: 13.5px; }
.dropzone-empty small { font-size: 12px; }
.dropzone-preview {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.dropzone.has-image .dropzone-empty { display: none; }
.dropzone.has-image .dropzone-preview { display: block; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   AI STUDIO PANEL
   ========================================================= */
.ai-panel {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.ai-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ai-head h3 { margin: 0 0 2px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ai-head small { color: var(--text-muted); font-size: 12px; }
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.ai-badge.is-running { color: var(--brand-yellow-dark); background: var(--brand-yellow-soft); border-color: var(--brand-yellow); }
.ai-badge.is-done { color: #059669; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.4); }

.ai-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
}
.ai-empty-art { color: var(--brand-yellow); margin-bottom: 12px; }
.ai-empty strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 14.5px; }
.ai-empty p { font-size: 13px; margin: 0; }
.ai-empty em { color: var(--text); font-style: normal; font-weight: 600; }

.ai-loading { animation: viewIn .35s var(--ease-out); }
.ai-stages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.ai-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.ai-stage span {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
  flex: 0 0 auto;
}
.ai-stage.is-active {
  background: var(--brand-yellow-soft);
  border-color: var(--brand-yellow);
  color: var(--brand-navy);
  font-weight: 600;
}
[data-theme="dark"] .ai-stage.is-active {
  background: rgba(253, 199, 47, 0.08);
  color: var(--brand-yellow);
}
.ai-stage.is-active span {
  border-color: var(--brand-yellow);
  border-top-color: transparent;
  animation: spin .9s linear infinite;
}
.ai-stage.is-done span {
  background: var(--success);
  border-color: var(--success);
}
.ai-stage.is-done span::after {
  content: "✓";
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 10px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.sk-img { aspect-ratio: 1/1; }
.sk-video { aspect-ratio: 16/9; margin-bottom: 12px; }
.sk-line { height: 12px; margin-bottom: 8px; }
.sk-line.short { width: 60%; }

.ai-result { animation: viewIn .4s var(--ease-out); }
.ai-result-block { margin-bottom: 22px; }
.ai-result-block h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.ai-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ai-img-card {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.ai-img-card:hover { transform: scale(1.03); }
.ai-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-img-card .ai-img-tag {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.ai-video {
  position: relative;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 4px 0 8px;
}

.ai-copy {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.ai-copy .copy-block { margin-bottom: 12px; }
.ai-copy .copy-block:last-child { margin-bottom: 0; }
.ai-copy .copy-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--brand-yellow-soft);
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
}
[data-theme="dark"] .ai-copy .copy-label {
  background: rgba(253, 199, 47, .14);
  color: var(--brand-yellow);
}

.ai-hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-navy);
  transition: all .2s;
}
[data-theme="dark"] .hashtag { color: var(--brand-yellow); }
.hashtag:hover { background: var(--brand-yellow-soft); border-color: var(--brand-yellow); }
[data-theme="dark"] .hashtag:hover { background: rgba(253, 199, 47, .1); }

/* =========================================================
   CATALOG
   ========================================================= */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 0 0 320px;
  max-width: 100%;
}
.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all .2s;
}
.search-box input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(253, 199, 47, .14);
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s var(--ease);
  animation: cardIn .5s var(--ease-out) backwards;
  display: flex;
  flex-direction: column;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.product-thumb img,
.product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-thumb img,
.product-card:hover .product-thumb svg { transform: scale(1.05); }
.product-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-navy);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.product-ai-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--brand-yellow);
  color: var(--brand-navy);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Distinct treatment when an approved video is already powering the
   storefront reel — superadmin sees at a glance which products are "live". */
.product-ai-badge-live {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(22,163,74,.18);
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.product-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.product-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-weight {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.product-view {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-navy);
  display: inline-flex; align-items: center; gap: 4px;
}
[data-theme="dark"] .product-view { color: var(--brand-yellow); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-art { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.empty-state h3 { margin: 0 0 6px; color: var(--text); }
.empty-state p { margin: 0; font-size: 14px; }

/* =========================================================
   CAMPAIGNS
   ========================================================= */
.campaigns-list {
  display: grid;
  gap: 16px;
}
.campaign-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.campaign-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.campaign-thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.campaign-thumb svg, .campaign-thumb img { width: 100%; height: 100%; object-fit: cover; }
.campaign-info h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.campaign-info p { margin: 0; color: var(--text-muted); font-size: 12.5px; }
.campaign-meta {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.campaign-meta .pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.campaign-stats {
  display: flex;
  gap: 24px;
}
.stat {
  text-align: right;
}
.stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .35s var(--ease-out);
  border: 1px solid var(--border);
}
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 2;
  border: 1px solid var(--border);
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }

.modal-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.modal-gallery {
  background: var(--surface-2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-main-img {
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.modal-main-img img,
.modal-main-img svg { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal-thumb {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--surface);
  transition: border-color .2s;
}
.modal-thumb.active { border-color: var(--brand-yellow); }
.modal-thumb img, .modal-thumb svg { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.modal-cat-badge {
  display: inline-block;
  background: var(--brand-yellow-soft);
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}
[data-theme="dark"] .modal-cat-badge {
  background: rgba(253, 199, 47, 0.12);
  color: var(--brand-yellow);
}
.modal-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.modal-weight {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.modal-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}
.modal-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.modal-tab-panel { display: none; flex: 1; }
.modal-tab-panel.active { display: block; animation: viewIn .3s var(--ease-out); }
.modal-tab-panel p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.modal-tab-panel p strong { color: var(--text); font-weight: 600; }

.nutri-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.nutri-table tr { border-bottom: 1px solid var(--border); }
.nutri-table tr:last-child { border-bottom: 0; }
.nutri-table td { padding: 10px 0; }
.nutri-table td:first-child { color: var(--text-muted); }
.nutri-table td:last-child { text-align: right; font-weight: 700; }

.modal-cta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 10px;
}
.btn-whatsapp {
  flex: 1;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #1DAE52; transform: translateY(-1px); }

/* =========================================================
   TOAST
   ========================================================= */
.toast-stack {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  min-width: 280px;
  animation: toastIn .4s var(--ease-out);
}
.toast.is-leaving { animation: toastOut .3s var(--ease-out) forwards; }
@keyframes toastIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(100%); opacity: 0; } }
.toast-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--success);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}
.toast.error .toast-icon { background: var(--danger); }
.toast.info .toast-icon { background: var(--info); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .create-grid { grid-template-columns: 1fr; }
  .ai-panel { position: static; }
}

@media (max-width: 820px) {
  main { padding: 20px; }
  .navbar { padding: 0 18px; gap: 10px; }
  .brand-text { display: none; }
  .nav-menu .nav-link { padding: 8px 12px; }
  .nav-menu .nav-link span,
  .nav-menu .nav-link:not(.active) svg + * { }
  .hero { padding: 36px 28px 44px; }
  .hero-title { font-size: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-hero { grid-template-columns: 1fr; }
  .field-row, .field-row.four { grid-template-columns: 1fr 1fr; }
  .campaign-card { grid-template-columns: 64px 1fr; }
  .campaign-card .campaign-stats { grid-column: 1 / -1; justify-content: space-between; }
  .campaign-thumb { width: 64px; height: 64px; }
}

@media (max-width: 540px) {
  .nav-menu .nav-link { font-size: 0; padding: 8px; }
  .nav-menu .nav-link svg { margin: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .field-row, .field-row.four { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px 36px; }
  .hero-title { font-size: 26px; }
  .toast-stack { left: 16px; right: 16px; top: 76px; }
  .toast { min-width: 0; }
}

/* =========================================================
   STOREFRONT (vista cliente / index.html)
   Self-contained design system. Locked to light brand palette,
   does not inherit from data-theme="dark" overrides.
   ========================================================= */

/* --- Admin → Storefront link in admin navbar --- */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 6px 18px rgba(15,26,61,0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store-link:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15,26,61,0.25); }
.store-link svg { stroke: var(--brand-yellow); }

/* =========================================================
   STORE BODY — base
   ========================================================= */
.store-body {
  background: #FBF7EE;
  color: #0A0E27;
  --store-cream:        #FBF7EE;
  --store-cream-2:      #F5EFE0;
  --store-cream-3:      #ECE3CC;
  --store-surface:      #FFFFFF;
  --store-surface-2:    #FAF6EB;
  --store-yellow:       #FDC72F;
  --store-yellow-soft:  #FFF1B8;
  --store-yellow-dark:  #C7960F;
  --store-navy:         #1B2A5E;
  --store-navy-deep:    #0E1838;
  --store-text:         #0F1428;
  --store-text-muted:   #5C5848;
  --store-border:       rgba(15,26,61,0.08);
  --store-shadow-sm:    0 2px 10px rgba(48,38,12,0.06);
  --store-shadow:       0 12px 36px rgba(48,38,12,0.10);
  --store-shadow-lg:    0 30px 80px rgba(48,38,12,0.18);
  --store-radius:       18px;
  --store-radius-lg:    26px;
  --store-radius-xl:    36px;
  --store-ease:         cubic-bezier(.22,.61,.36,1);
  --store-maxw:         1280px;
}
.store-body * { box-sizing: border-box; }
.store-body h1, .store-body h2, .store-body h3, .store-body h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.store-body em { font-style: italic; color: var(--store-yellow-dark); }

/* =========================================================
   TOP STRIP
   ========================================================= */
.store-strip {
  background: var(--store-navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  position: relative;
  z-index: 5;
}
.store-strip-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
}
.store-strip-sep { opacity: 0.4; }

.store-lang-switch {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.store-lang-switch button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.store-lang-switch button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}
.store-lang-switch button.active {
  background: var(--store-yellow);
  color: var(--store-navy-deep);
  border-color: var(--store-yellow);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,238,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--store-ease), border-color 0.25s var(--store-ease), box-shadow 0.25s var(--store-ease);
}
.store-nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--store-border);
  box-shadow: 0 4px 20px rgba(15,26,61,0.04);
}
.store-nav-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--store-text);
}
.store-brand img {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--store-yellow);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(253,199,47,0.25);
}
.store-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-brand-name {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--store-navy);
}
.store-brand-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--store-text-muted);
  font-weight: 600;
}
.store-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.store-nav-links a {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--store-text);
  text-decoration: none;
  transition: background 0.18s var(--store-ease), color 0.18s var(--store-ease);
}
.store-nav-links a:hover {
  background: rgba(27,42,94,0.06);
  color: var(--store-navy);
}
.store-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.32);
  transition: transform 0.2s var(--store-ease), box-shadow 0.2s var(--store-ease);
}
.store-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37,211,102,0.42);
}

.store-nav-actions { display: inline-flex; align-items: center; gap: 12px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--store-ease), box-shadow 0.2s var(--store-ease), background 0.2s var(--store-ease);
  letter-spacing: -0.01em;
  font-family: inherit;
}
.store-btn-primary {
  background: var(--store-navy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(27,42,94,0.28);
}
.store-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(27,42,94,0.34);
  background: var(--store-navy-deep);
}
.store-btn-yellow {
  background: var(--store-yellow);
  color: var(--store-navy);
  box-shadow: 0 10px 26px rgba(253,199,47,0.34);
}
.store-btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(253,199,47,0.45);
  background: #FFD24A;
}
.store-btn-ghost {
  background: rgba(15,26,61,0.04);
  color: var(--store-navy);
  border: 1px solid var(--store-border);
}
.store-btn-ghost:hover {
  background: rgba(15,26,61,0.08);
  transform: translateY(-1px);
}
.store-btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,0.32);
}
.store-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37,211,102,0.45);
  background: #20BF5B;
}
.store-btn-full { width: 100%; }

/* =========================================================
   EYEBROW
   ========================================================= */
.store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--store-text-muted);
}
.store-eyebrow.light { color: rgba(255,255,255,0.78); }
.store-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--store-yellow);
  box-shadow: 0 0 0 4px rgba(253,199,47,0.22);
  display: inline-block;
}

/* =========================================================
   HERO
   ========================================================= */
.store-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  isolation: isolate;
}
.store-hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.store-hero-mesh {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(253,199,47,0.42) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 8%, rgba(27,42,94,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 90%, rgba(253,199,47,0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(27,42,94,0.08) 0%, transparent 60%);
  filter: blur(40px);
  animation: storeMesh 22s ease-in-out infinite alternate;
}
@keyframes storeMesh {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.06); }
}
.store-hero-grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(15,26,61,0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
}
.store-hero-content {
  max-width: var(--store-maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.store-hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--store-navy);
  margin: 18px 0 22px;
  max-width: 12ch;
}
.store-hero-title em {
  background: linear-gradient(135deg, var(--store-yellow-dark), var(--store-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.store-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--store-text-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}
.store-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 56px;
}
.store-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 26px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,26,61,0.06);
  border-radius: 999px;
  box-shadow: var(--store-shadow-sm);
}
.store-hero-stats > div { display: flex; flex-direction: column; line-height: 1.1; }
.store-hero-stats strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--store-navy);
  letter-spacing: -0.02em;
}
.store-hero-stats span {
  font-size: 11.5px;
  color: var(--store-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.store-stat-divider {
  width: 1px; height: 28px;
  background: rgba(15,26,61,0.12);
}

/* Floating product cards over hero */
.store-hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-floater {
  position: absolute;
  width: 200px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--store-shadow-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(15,26,61,0.06);
  animation: floaterDrift 9s ease-in-out infinite alternate;
}
.hero-floater img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 14px;
  background: var(--store-yellow-soft);
}
.hero-floater-tag strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--store-navy);
  display: block;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-floater-tag small {
  font-size: 11px;
  color: var(--store-text-muted);
}
.hero-floater-1 { top: 6%; right: 8%; transform: rotate(4deg); }
.hero-floater-2 { top: 38%; right: 24%; transform: rotate(-3deg); animation-delay: -3s; width: 175px; }
.hero-floater-3 { top: 64%; right: 4%; transform: rotate(5deg); animation-delay: -6s; width: 185px; }

@keyframes floaterDrift {
  0%   { transform: translateY(0) rotate(var(--rot, 4deg)); }
  100% { transform: translateY(-14px) rotate(var(--rot, 4deg)); }
}
.hero-floater-1 { --rot: 4deg; }
.hero-floater-2 { --rot: -3deg; }
.hero-floater-3 { --rot: 5deg; }

@media (max-width: 1100px) {
  .store-hero-cards { display: none; }
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.store-trust {
  background: #fff;
  border-top: 1px solid var(--store-border);
  border-bottom: 1px solid var(--store-border);
  padding: 26px 24px;
}
.store-trust-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.store-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.store-trust-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--store-yellow-soft);
  color: var(--store-navy);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}
.store-trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--store-navy);
  letter-spacing: -0.01em;
}
.store-trust-item small {
  display: block;
  font-size: 12.5px;
  color: var(--store-text-muted);
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.store-section {
  padding: 96px 24px;
  max-width: var(--store-maxw);
  margin: 0 auto;
}
.store-section-alt {
  max-width: none;
  background:
    linear-gradient(180deg, transparent, var(--store-cream-2) 12%, var(--store-cream-2) 88%, transparent);
}
.store-section-alt > .store-section-head,
.store-section-alt > .store-featured-grid {
  max-width: var(--store-maxw);
  margin-left: auto;
  margin-right: auto;
}
.store-section-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.store-section-head.dark { color: #fff; }
.store-section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--store-navy);
  margin: 0;
}
.store-section-title.light { color: #fff; }
.store-section-title em {
  background: linear-gradient(135deg, var(--store-yellow-dark), var(--store-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.store-section-title.light em {
  background: linear-gradient(135deg, var(--store-yellow), #FFE17A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.store-section-sub {
  font-size: 16.5px;
  color: var(--store-text-muted);
  margin: 0;
  max-width: 60ch;
  line-height: 1.55;
}
.store-section-sub.light { color: rgba(255,255,255,0.78); }

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.store-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.store-cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--store-radius-lg);
  border: 1px solid var(--store-border);
  text-decoration: none;
  color: var(--store-text);
  overflow: hidden;
  transition: transform 0.25s var(--store-ease), box-shadow 0.25s var(--store-ease), border-color 0.25s var(--store-ease);
}
.store-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-from, var(--store-yellow-soft)), var(--cat-to, var(--store-yellow)));
  opacity: 0.18;
  transition: opacity 0.25s var(--store-ease);
  pointer-events: none;
}
.store-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--store-shadow);
  border-color: transparent;
}
.store-cat-card:hover::before { opacity: 0.32; }

.store-cat-art {
  width: 76px; height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cat-from, #FFD93D), var(--cat-to, #FF8A3D));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -6px 18px rgba(255,255,255,0.4);
}
.store-cat-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), transparent 55%);
}
.store-cat-emoji {
  font-size: 34px;
  filter: drop-shadow(0 2px 6px rgba(15,26,61,0.18));
  z-index: 1;
}
.store-cat-body { position: relative; z-index: 1; min-width: 0; }
.store-cat-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--store-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-cat-body small {
  display: block;
  font-size: 13px;
  color: var(--store-text-muted);
  margin: 2px 0 6px;
}
.store-cat-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--store-yellow-dark);
  background: rgba(253,199,47,0.18);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.store-cat-arrow {
  position: relative;
  z-index: 1;
  font-size: 22px;
  color: var(--store-navy);
  font-weight: 900;
  transition: transform 0.2s var(--store-ease);
}
.store-cat-card:hover .store-cat-arrow { transform: translateX(4px); }

/* =========================================================
   FEATURED GRID
   ========================================================= */
.store-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.store-feat-card {
  background: #fff;
  border-radius: var(--store-radius-lg);
  overflow: hidden;
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
  cursor: pointer;
  transition: transform 0.3s var(--store-ease), box-shadow 0.3s var(--store-ease);
  display: flex;
  flex-direction: column;
}
.store-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--store-shadow-lg);
}
.store-feat-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--store-yellow-soft);
}
.store-feat-img,
.store-feat-img-hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--store-ease), transform 0.6s var(--store-ease);
}
.store-feat-img-hover { opacity: 0; }
.store-feat-card:hover .store-feat-img { opacity: 0; transform: scale(1.05); }
.store-feat-card:hover .store-feat-img-hover { opacity: 1; transform: scale(1.04); }
.store-ribbon {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--store-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(15,26,61,0.32);
}
.store-ribbon.yellow {
  background: var(--store-yellow);
  color: var(--store-navy);
  box-shadow: 0 6px 16px rgba(253,199,47,0.42);
}
.store-feat-ai {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--store-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.store-feat-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-feat-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--store-yellow-dark);
}
.store-feat-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--store-navy);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}
.store-feat-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--store-text-muted);
}
.store-feat-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.store-feat-cta {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--store-navy);
  letter-spacing: -0.01em;
}
.store-feat-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37,211,102,0.32);
  transition: transform 0.2s var(--store-ease);
}
.store-feat-wa:hover { transform: translateY(-1px); }

/* =========================================================
   REELS — animated 9:16 component
   ========================================================= */
.store-reels-section {
  background: linear-gradient(180deg, var(--store-navy-deep) 0%, var(--store-navy) 100%);
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.store-reels-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(253,199,47,0.16) 0%, transparent 40%),
    radial-gradient(circle at 88% 90%, rgba(253,199,47,0.10) 0%, transparent 45%);
  z-index: -1;
}
.store-reels-row {
  max-width: var(--store-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.store-reel-wrap {
  cursor: pointer;
  transition: transform 0.3s var(--store-ease);
}
.store-reel-wrap:hover { transform: translateY(-4px); }

.reel-player {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  isolation: isolate;
}
.reel-player.compact { border-radius: 18px; }
.reel-frames { position: absolute; inset: 0; }
.reel-frame {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
}
.reel-frame:nth-child(1) { animation: reel1 9s infinite ease-in-out; }
.reel-frame:nth-child(2) { animation: reel2 9s infinite ease-in-out; }
.reel-frame:nth-child(3) { animation: reel3 9s infinite ease-in-out; }
@keyframes reel1 {
  0%   { opacity: 1; transform: scale(1.0); }
  30%  { opacity: 1; transform: scale(1.06); }
  35%  { opacity: 0; transform: scale(1.06); }
  98%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 1; transform: scale(1.0); }
}
@keyframes reel2 {
  0%, 30%   { opacity: 0; transform: scale(1.0); }
  35%       { opacity: 1; transform: scale(1.0); }
  63%       { opacity: 1; transform: scale(1.06); }
  68%, 100% { opacity: 0; transform: scale(1.06); }
}
@keyframes reel3 {
  0%, 63%   { opacity: 0; transform: scale(1.0); }
  68%       { opacity: 1; transform: scale(1.0); }
  96%       { opacity: 1; transform: scale(1.06); }
  100%      { opacity: 0; transform: scale(1.06); }
}
.reel-progress {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex; gap: 4px;
  z-index: 3;
}
.reel-progress > div {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.32);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.reel-progress > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  animation: 9s infinite linear;
}
.reel-progress > div:nth-child(1)::after { animation-name: rp1; }
.reel-progress > div:nth-child(2)::after { animation-name: rp2; }
.reel-progress > div:nth-child(3)::after { animation-name: rp3; }
@keyframes rp1 { 0% { transform: scaleX(0); } 33% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes rp2 { 0%, 33% { transform: scaleX(0); } 66% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes rp3 { 0%, 66% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

.reel-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 14px 14px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.32) 0%, transparent 18%, transparent 60%, rgba(0,0,0,0.78) 100%);
  color: #fff;
}
.reel-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.reel-tag {
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.reel-vol {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  font-size: 12px;
}
.reel-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.reel-info { min-width: 0; flex: 1; }
.reel-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-info small {
  display: block;
  font-size: 11px;
  opacity: 0.78;
  margin-top: 2px;
}
.reel-cta {
  background: var(--store-yellow);
  color: var(--store-navy);
  border: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: transform 0.2s var(--store-ease);
}
.reel-cta:hover { transform: scale(1.05); }

.reel-player.compact .reel-overlay { padding: 24px 12px 12px; }
.reel-player.compact .reel-info strong { font-size: 12px; }
.reel-player.compact .reel-info small { font-size: 10px; }

.store-reels-cta {
  text-align: center;
  margin-top: 56px;
}

/* =========================================================
   CATALOG TOOLBAR + GRID
   ========================================================= */
.store-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.store-search {
  position: relative;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--store-shadow-sm);
  transition: border-color 0.2s var(--store-ease), box-shadow 0.2s var(--store-ease);
}
.store-search:focus-within {
  border-color: var(--store-yellow);
  box-shadow: 0 0 0 4px rgba(253,199,47,0.18), var(--store-shadow-sm);
}
.store-search svg { color: var(--store-text-muted); }
.store-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--store-text);
}
.store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--store-border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--store-text);
  cursor: pointer;
  transition: all 0.18s var(--store-ease);
  font-family: inherit;
}
.store-chip:hover { border-color: var(--store-yellow); }
.store-chip.active {
  background: var(--store-navy);
  color: #fff;
  border-color: var(--store-navy);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.store-card {
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--store-shadow-sm);
  transition: transform 0.25s var(--store-ease), box-shadow 0.25s var(--store-ease);
  animation: cardIn 0.5s var(--store-ease) backwards;
  display: flex;
  flex-direction: column;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--store-shadow);
}
.store-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--store-yellow-soft);
}
.store-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--store-ease);
}
.store-card:hover .store-card-media img { transform: scale(1.06); }
.store-card-ai {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--store-navy);
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.store-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.store-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--store-yellow-dark);
}
.store-card-body h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--store-navy);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}
.store-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.store-card-weight { color: var(--store-text-muted); font-weight: 600; }
.store-card-arrow { color: var(--store-navy); font-weight: 800; }

.store-empty {
  text-align: center;
  padding: 72px 24px;
}
.store-empty-art { font-size: 56px; margin-bottom: 14px; }
.store-empty h3 {
  margin: 0 0 6px;
  color: var(--store-navy);
  font-size: 22px;
  font-weight: 800;
}
.store-empty p { color: var(--store-text-muted); margin: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.store-about {
  background: #fff;
  padding: 96px 24px;
  border-top: 1px solid var(--store-border);
}
.store-about-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.store-about-text > .store-eyebrow { margin-bottom: 16px; }
.store-about-text > .store-section-title {
  text-align: left;
  margin-bottom: 18px;
}
.store-about-text > p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--store-text-muted);
  margin: 0 0 24px;
}
.store-about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--store-text);
  font-weight: 600;
}
.store-about-list li > span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--store-yellow);
  color: var(--store-navy);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.store-about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.store-about-card {
  background: linear-gradient(160deg, var(--store-yellow-soft), #fff);
  border: 1px solid rgba(253,199,47,0.4);
  border-radius: var(--store-radius-xl);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--store-shadow);
  position: relative;
  overflow: hidden;
}
.store-about-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(253,199,47,0.4), transparent 70%);
  pointer-events: none;
}
.store-about-card-art {
  width: 90px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--store-shadow-sm);
  position: relative;
  z-index: 1;
}
.store-about-card-art img { width: 100%; display: block; border-radius: 14px; }
.store-about-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--store-navy);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.store-about-card p {
  font-size: 14.5px;
  color: var(--store-text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.store-about-card small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--store-yellow-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* =========================================================
   CONTACT
   ========================================================= */
.store-contact {
  background: linear-gradient(160deg, var(--store-navy) 0%, var(--store-navy-deep) 100%);
  color: #fff;
  padding: 96px 24px;
}
.store-contact-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
}
.store-contact-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.store-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.store-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--store-radius-lg);
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s var(--store-ease), background 0.25s var(--store-ease), border-color 0.25s var(--store-ease);
}
.store-contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
  border-color: var(--store-yellow);
}
.store-contact-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--store-yellow);
  color: var(--store-navy);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 6px;
}
.store-contact-card strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.store-contact-card small {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}
.store-contact-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--store-yellow);
  letter-spacing: 0.02em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.store-footer {
  background: var(--store-navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 56px 24px 24px;
}
.store-footer-inner {
  max-width: var(--store-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.store-footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.store-footer-brand img {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--store-yellow);
  padding: 6px;
}
.store-footer-brand p { font-size: 14px; line-height: 1.6; margin: 0; }
.store-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.store-footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.store-footer-cols strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.store-footer-cols a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s var(--store-ease);
}
.store-footer-cols a:hover { color: var(--store-yellow); }
.store-footer-bottom {
  max-width: var(--store-maxw);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}
.store-footer-powered { display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.store-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.42);
  z-index: 60;
  transition: transform 0.2s var(--store-ease);
}
.store-fab:hover { transform: scale(1.06); }
.store-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25D366;
  animation: fabPulse 2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* =========================================================
   STORE MODAL
   ========================================================= */
.store-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15,26,61,0.55);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s var(--store-ease);
}
.store-modal-bg[hidden] { display: none; }
.store-modal-bg.is-open { opacity: 1; }
.store-modal {
  background: #fff;
  border-radius: var(--store-radius-xl);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 60px 120px rgba(15,26,61,0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--store-ease);
  display: flex;
}
.store-modal-bg.is-open .store-modal { transform: translateY(0) scale(1); }
.store-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(15,26,61,0.06);
  color: var(--store-navy);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.18s var(--store-ease);
  font-family: inherit;
  line-height: 1;
}
.store-modal-close:hover { background: rgba(15,26,61,0.12); }
.store-modal > div { width: 100%; overflow-y: auto; }
.store-modal-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  min-height: 560px;
}
.store-modal-media {
  background: linear-gradient(160deg, var(--store-cream-2), var(--store-cream));
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.store-modal-media .reel-player {
  width: 100%;
  max-width: 280px;
}
.store-modal-thumbs {
  display: flex;
  gap: 8px;
}
.store-modal-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s var(--store-ease), border-color 0.2s var(--store-ease);
}
.store-modal-thumb:hover { opacity: 1; }
.store-modal-thumb.active {
  opacity: 1;
  border-color: var(--store-yellow);
}
.store-modal-info {
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.store-modal-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--store-yellow-dark);
  background: rgba(253,199,47,0.16);
  padding: 5px 11px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.store-modal-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--store-navy);
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.store-modal-weight {
  font-size: 14px;
  color: var(--store-text-muted);
  margin: 0 0 18px;
}
.store-modal-weight strong { color: var(--store-navy); }
.store-modal-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--store-text);
  margin: 0 0 20px;
}
.store-modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--store-border);
  margin-bottom: 18px;
}
.store-modal-tab {
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--store-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.2s var(--store-ease), border-color 0.2s var(--store-ease);
}
.store-modal-tab:hover { color: var(--store-navy); }
.store-modal-tab.active {
  color: var(--store-navy);
  border-bottom-color: var(--store-yellow);
}
.store-modal-panel { display: none; padding: 4px 0 14px; }
.store-modal-panel.active { display: block; animation: panelIn 0.3s var(--store-ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.store-copy-block { margin-bottom: 14px; }
.store-copy-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--store-yellow-dark);
  margin-bottom: 4px;
}
.store-copy-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--store-text);
}
.store-nutri {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.store-nutri td {
  padding: 10px 0;
  border-bottom: 1px solid var(--store-border);
}
.store-nutri td:last-child { text-align: right; color: var(--store-navy); }
.store-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.store-tag {
  padding: 6px 12px;
  background: rgba(27,42,94,0.06);
  color: var(--store-navy);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.store-modal-cta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--store-border);
}
.store-modal-cta .store-btn { flex: 1; min-width: 180px; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.store-body .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--store-ease), transform 0.7s var(--store-ease);
}
.store-body .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .store-cat-grid       { grid-template-columns: repeat(2, 1fr); }
  .store-featured-grid  { grid-template-columns: repeat(2, 1fr); }
  .store-grid           { grid-template-columns: repeat(3, 1fr); }
  .store-reels-row      { grid-template-columns: repeat(4, 1fr); }
  .store-trust-inner    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .store-about-inner    { grid-template-columns: 1fr; gap: 36px; }
  .store-modal-grid     { grid-template-columns: 280px 1fr; }
  .store-modal-info     { padding: 32px 32px 28px; }
}
@media (max-width: 820px) {
  .store-nav-links { display: none; }
  .store-nav-inner { padding: 12px 18px; gap: 12px; }
  .store-strip { font-size: 11.5px; padding: 8px 14px 36px; }
  .store-strip-inner { gap: 10px; }
  .store-strip-sep { display: none; }
  .store-lang-switch {
    right: 50%;
    top: auto;
    bottom: 6px;
    transform: translateX(50%);
  }
  .store-lang-switch button { padding: 2px 7px; font-size: 10.5px; }
  .store-hero { padding: 56px 18px 72px; }
  .store-section { padding: 72px 18px; }
  .store-reels-section { padding: 72px 18px 60px; }
  .store-about, .store-contact { padding: 72px 18px; }
  .store-section-head { margin-bottom: 40px; }
  .store-reels-row { grid-template-columns: repeat(3, 1fr); }
  .store-contact-cards { grid-template-columns: 1fr; }
  .store-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .store-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .store-modal-grid { grid-template-columns: 1fr; }
  .store-modal-media { padding: 24px; }
  .store-modal-info { padding: 28px 24px 24px; }
  .store-modal-title { font-size: 24px; }
  .store-modal-cta .store-btn { min-width: 0; }
}
@media (max-width: 540px) {
  .store-cat-grid       { grid-template-columns: 1fr; }
  .store-featured-grid  { grid-template-columns: 1fr; }
  .store-grid           { grid-template-columns: repeat(2, 1fr); }
  .store-reels-row      { grid-template-columns: repeat(2, 1fr); }
  .store-trust-inner    { grid-template-columns: 1fr; }
  .store-footer-cols    { grid-template-columns: 1fr 1fr; }
  .store-hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
    gap: 16px;
    padding: 14px 18px;
  }
  .store-stat-divider { display: none; }
  .store-link span { display: none; }
  .store-link { padding: 8px; }
  .store-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* =========================================================
   AI REEL — animated 9:16 video stand-in
   Used in admin AI Studio (#aiVideo) and storefront modal.
   ========================================================= */
.ai-reel {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  border-radius: 22px;
  overflow: hidden;
  background: #0A0E27;
  box-shadow:
    0 20px 50px rgba(15, 26, 61, 0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  isolation: isolate;
  font-family: var(--font-sans);
  color: #fff;
}

/* --- Frames + Ken Burns --- */
.ai-reel-frames {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ai-reel-frame {
  position: absolute;
  inset: -4%;            /* slight overscan so Ken Burns doesn't reveal edges */
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  transform-origin: center;
}
.ai-reel-f1 { animation: aiReelF1 9s infinite ease-in-out; }
.ai-reel-f2 { animation: aiReelF2 9s infinite ease-in-out; }
.ai-reel-f3 { animation: aiReelF3 9s infinite ease-in-out; }

/* Phase 6 — real video reel. Replaces .ai-reel-frame stack with a
   single <video>; overlays (progress, captions, action bar) keep their
   simulated animations so the look stays consistent. */
.ai-reel-frames-video { background: #000; }
.ai-reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes aiReelF1 {
  0%   { opacity: 1; transform: scale(1.0)  translate(0%, 0%); }
  30%  { opacity: 1; transform: scale(1.14) translate(-3%, -3%); }
  35%  { opacity: 0; transform: scale(1.14) translate(-3%, -3%); }
  98%  { opacity: 0; transform: scale(1.0)  translate(0%, 0%); }
  100% { opacity: 1; transform: scale(1.0)  translate(0%, 0%); }
}
@keyframes aiReelF2 {
  0%, 30%   { opacity: 0; transform: scale(1.0) translate(3%, 0); }
  35%       { opacity: 1; transform: scale(1.04) translate(2%, 0); }
  63%       { opacity: 1; transform: scale(1.10) translate(-3%, 1%); }
  68%, 100% { opacity: 0; transform: scale(1.10) translate(-3%, 1%); }
}
@keyframes aiReelF3 {
  0%, 63%   { opacity: 0; transform: scale(1.06) translate(0, 3%); }
  68%       { opacity: 1; transform: scale(1.0)  translate(0, 1%); }
  96%       { opacity: 1; transform: scale(1.14) translate(0, -3%); }
  100%      { opacity: 0; transform: scale(1.14) translate(0, -3%); }
}

.ai-reel-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.32) 0%, transparent 18%, transparent 62%, rgba(0,0,0,0.78) 100%);
}

/* --- Top progress bars (Stories style) --- */
.ai-reel-progress {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 4px;
  z-index: 4;
}
.ai-reel-progress > div {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,0.32);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ai-reel-progress > div::after {
  content: '';
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  animation: 9s infinite linear;
}
.ai-reel-progress > div:nth-child(1)::after { animation-name: aiReelP1; }
.ai-reel-progress > div:nth-child(2)::after { animation-name: aiReelP2; }
.ai-reel-progress > div:nth-child(3)::after { animation-name: aiReelP3; }
@keyframes aiReelP1 { 0% { transform: scaleX(0); } 33% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes aiReelP2 { 0%, 33% { transform: scaleX(0); } 66% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes aiReelP3 { 0%, 66% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* --- Top header --- */
.ai-reel-top {
  position: absolute;
  top: 22px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.ai-reel-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDC72F, #E0AC18);
  color: #1B2A5E;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 4px 10px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.ai-reel-user {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}
.ai-reel-user strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.ai-reel-user small {
  display: block;
  font-size: 10px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.ai-reel-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,59,48,0.92);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.ai-reel-rec {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: aiReelRec 1.4s infinite;
}
@keyframes aiReelRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* --- Captions (timed per frame) --- */
.ai-reel-captions {
  position: absolute;
  bottom: 90px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}
.ai-reel-caption {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.62);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
}
.ai-reel-caption::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1.5px solid rgba(253,199,47,0.55);
  pointer-events: none;
  opacity: 0;
  animation: inherit;
}
.ai-reel-cap-1 { animation: aiReelCap1 9s infinite ease-in-out; }
.ai-reel-cap-2 { animation: aiReelCap2 9s infinite ease-in-out; color: #1B2A5E; background: rgba(253,199,47,0.95); }
.ai-reel-cap-3 { animation: aiReelCap3 9s infinite ease-in-out; }
@keyframes aiReelCap1 {
  0%, 4%   { opacity: 0; transform: translateY(20px) scale(0.92); }
  9%       { opacity: 1; transform: translateY(0) scale(1); }
  28%      { opacity: 1; transform: translateY(0) scale(1); }
  33%, 100%{ opacity: 0; transform: translateY(-12px) scale(0.96); }
}
@keyframes aiReelCap2 {
  0%, 35%   { opacity: 0; transform: translateY(20px) scale(0.92); }
  40%       { opacity: 1; transform: translateY(0) scale(1.04); }
  44%       { opacity: 1; transform: translateY(0) scale(1); }
  61%       { opacity: 1; transform: translateY(0) scale(1); }
  66%, 100% { opacity: 0; transform: translateY(-12px) scale(0.96); }
}
@keyframes aiReelCap3 {
  0%, 68%   { opacity: 0; transform: translateY(20px) scale(0.92); }
  73%       { opacity: 1; transform: translateY(0) scale(1.04); }
  77%       { opacity: 1; transform: translateY(0) scale(1); }
  94%       { opacity: 1; transform: translateY(0) scale(1); }
  99%, 100% { opacity: 0; transform: translateY(-12px) scale(0.96); }
}

/* --- Floating reactions (right side, rising) --- */
.ai-reel-reactions {
  position: absolute;
  right: 56px;
  bottom: 100px;
  width: 30px;
  height: 200px;
  pointer-events: none;
  z-index: 3;
}
.ai-reel-reactions span {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 22px;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  animation: aiReelReact 4.5s infinite ease-out;
}
.ai-reel-reactions span:nth-child(1) { animation-delay: 0s;   }
.ai-reel-reactions span:nth-child(2) { animation-delay: 0.9s; font-size: 18px; }
.ai-reel-reactions span:nth-child(3) { animation-delay: 1.8s; font-size: 24px; }
.ai-reel-reactions span:nth-child(4) { animation-delay: 2.7s; font-size: 20px; }
.ai-reel-reactions span:nth-child(5) { animation-delay: 3.6s; font-size: 16px; }

@keyframes aiReelReact {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(-10deg); }
  10%  { opacity: 1; transform: translate(-4px, -20px) scale(1.15) rotate(8deg); }
  35%  { opacity: 0.9; transform: translate(8px, -90px) scale(1) rotate(-6deg); }
  70%  { opacity: 0.4; transform: translate(-6px, -160px) scale(0.85) rotate(10deg); }
  100% { opacity: 0; transform: translate(2px, -210px) scale(0.5) rotate(0deg); }
}

/* --- Right-side action bar (Instagram style) --- */
.ai-reel-actions {
  position: absolute;
  right: 8px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 5;
}
.ai-reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.18s var(--ease);
}
.ai-reel-action:hover { transform: scale(1.1); }
.ai-reel-action small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ai-reel-like svg { animation: aiReelHeart 2.6s infinite; transform-origin: center; }
.ai-reel-like svg path { fill: currentColor; }
@keyframes aiReelHeart {
  0%, 70%, 100% { transform: scale(1); color: #fff; }
  78%           { transform: scale(1.18); color: #FF3B6B; }
  86%           { transform: scale(0.95); color: #FF3B6B; }
  92%           { transform: scale(1.04); color: #FF3B6B; }
}

/* --- Bottom info + audio --- */
.ai-reel-bottom {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 60px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-reel-handle strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ai-reel-handle small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ai-reel-music {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 10px;
  align-self: flex-start;
  max-width: 100%;
}
.ai-reel-music-icon {
  font-size: 11px;
  animation: aiReelSpin 5s linear infinite;
  display: inline-block;
}
@keyframes aiReelSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ai-reel-wave {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 14px;
}
.ai-reel-wave span {
  width: 2px;
  background: #fff;
  border-radius: 2px;
  animation: aiReelWave 0.9s infinite ease-in-out;
  animation-delay: calc(var(--i) * -80ms);
  height: 30%;
}
@keyframes aiReelWave {
  0%, 100% { height: 25%; opacity: 0.6; }
  50%      { height: 95%; opacity: 1; }
}

/* --- Watermark --- */
.ai-reel-watermark {
  position: absolute;
  top: 56px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(253,199,47,0.92);
  color: #1B2A5E;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(253,199,47,0.32);
}
.ai-reel-spark {
  font-size: 10px;
  animation: aiReelSpark 1.8s infinite;
  display: inline-block;
}
@keyframes aiReelSpark {
  0%, 100% { transform: rotate(0) scale(1); }
  25%      { transform: rotate(15deg) scale(1.15); }
  75%      { transform: rotate(-12deg) scale(1.1); }
}

/* --- Live time counter (top right corner) --- */
.ai-reel-time {
  position: absolute;
  top: 56px;
  right: 12px;
  z-index: 4;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* --- Make it pop in admin AI Studio --- */
#aiVideo .ai-reel {
  margin: 0 auto;
}

/* --- In storefront modal: a bit larger and aligned --- */
.store-modal-media .ai-reel {
  max-width: 280px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .ai-reel-frame, .ai-reel-progress > div::after,
  .ai-reel-caption, .ai-reel-reactions span,
  .ai-reel-rec, .ai-reel-spark, .ai-reel-music-icon,
  .ai-reel-wave span, .ai-reel-like svg {
    animation: none !important;
  }
  .ai-reel-f1 { opacity: 1; }
}

/* =========================================================
   STOREFRONT — Card body + modal CTA
   ========================================================= */
.store-card-body { padding: 14px 16px 16px; }
.store-card-body h3 { margin-bottom: 4px; }
.store-card-weight { font-size: 12px; color: var(--store-text-muted); font-weight: 600; margin-bottom: 8px; }

.store-feat-meta { color: var(--store-text-muted); font-weight: 600; font-size: 13px; }

.store-modal-cta { flex-wrap: wrap; }
.store-modal-cta .store-btn-primary {
  flex: 1 1 220px; min-width: 200px;
}

.store-btn-full { width: 100%; justify-content: center; }
.store-btn-full[disabled] { opacity: 0.5; cursor: not-allowed; }

.store-toast-stack {
  position: fixed; bottom: 24px; left: 24px; z-index: 250;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.store-toast-stack .toast {
  pointer-events: auto;
}

/* =========================================================
   ADMIN — Login screen (/login.html)
   ========================================================= */
.login-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(253,199,47,0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(15,26,61,0.10), transparent 55%),
    var(--surface, #F7F8FB);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.login-shell {
  width: 100%; max-width: 420px;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 30px;
  box-shadow: 0 24px 60px rgba(15,26,61,0.10), 0 2px 8px rgba(15,26,61,0.05);
  border: 1px solid var(--border, rgba(15,26,61,0.08));
}
.login-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.login-logo {
  width: 56px; height: 56px; border-radius: 14px;
  object-fit: contain;
  background: var(--brand-yellow-soft, #FFF4D1);
  padding: 6px;
}
.login-title {
  margin: 0; font-size: 22px; font-weight: 900;
  color: var(--brand-navy, #0F1A3D); letter-spacing: -0.5px;
}
.login-tag {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted, #6E7A99);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-top: 2px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field > span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--brand-navy, #0F1A3D);
}
.login-field > input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border, rgba(15,26,61,0.14));
  border-radius: 12px;
  font-size: 15px; font-family: inherit;
  background: var(--surface-2, #FBFBFE);
  color: var(--brand-navy, #0F1A3D);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.login-field > input:focus {
  outline: 0;
  border-color: var(--brand-navy, #0F1A3D);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(253,199,47,0.20);
}
.login-error {
  background: rgba(201,42,42,0.08);
  color: #9A1F1F;
  border: 1px solid rgba(201,42,42,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; font-weight: 600;
}
.login-submit {
  margin-top: 6px;
  width: 100%; justify-content: center;
  padding: 13px 16px; font-size: 15px;
}
.login-submit[disabled] { opacity: 0.65; cursor: not-allowed; }
.login-meta {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px; color: var(--text-muted, #6E7A99);
}
.login-meta a {
  color: var(--brand-navy, #0F1A3D); font-weight: 700;
  text-decoration: none; border-bottom: 1.5px solid var(--brand-yellow, #FDC72F);
}
.login-meta a:hover { border-color: var(--brand-navy, #0F1A3D); }

/* =========================================================
   ADMIN — User chip + logout in navbar
   ========================================================= */
.user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  background: var(--surface-2, #FBFBFE);
  border: 1px solid var(--border, rgba(15,26,61,0.08));
}
.user-chip-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-navy, #0F1A3D);
  color: var(--brand-yellow, #FDC72F);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px;
  letter-spacing: 0.5px;
}
.user-chip-text {
  display: flex; flex-direction: column; line-height: 1.1;
  min-width: 0;
}
.user-chip-name {
  font-size: 13px; font-weight: 800;
  color: var(--brand-navy, #0F1A3D);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.user-chip-role {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-muted, #6E7A99);
  text-transform: uppercase;
}
.user-chip-logout {
  margin-left: 2px;
  background: transparent;
  color: var(--text-muted, #6E7A99);
}
.user-chip-logout:hover {
  background: rgba(201,42,42,0.10);
  color: #9A1F1F;
}
@media (max-width: 720px) {
  .user-chip-text { display: none; }
  .user-chip { padding: 4px; }
}

/* =========================================================
   ADMIN — Categories view
   ========================================================= */
.cat-list {
  display: flex; flex-direction: column; gap: 10px;
}
.cat-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(15,26,61,0.08));
  border-left: 4px solid var(--brand-yellow, #FDC72F);
  border-radius: 14px;
  padding: 12px 16px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.cat-row:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,26,61,0.05); }
.cat-row.is-hidden { opacity: 0.55; border-left-color: var(--text-muted, #6E7A99); }
.cat-row-handle {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.cat-arrow {
  width: 28px; height: 20px; padding: 0; border: 0;
  background: var(--surface-2, #FBFBFE);
  color: var(--brand-navy, #0F1A3D);
  border-radius: 6px; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.cat-arrow:hover:not([disabled]) { background: var(--brand-yellow-soft, #FFF4D1); }
.cat-arrow[disabled] { opacity: 0.3; cursor: not-allowed; }
.cat-row-main {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 0;
}
.cat-row-names { min-width: 0; }
.cat-row-names strong {
  display: block; font-size: 15px; color: var(--brand-navy, #0F1A3D);
  font-weight: 800; letter-spacing: -0.2px;
}
.cat-row-names small {
  display: block; font-size: 12px; color: var(--text-muted, #6E7A99);
  margin-top: 2px;
}
.cat-row-names code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; padding: 1px 5px; border-radius: 4px;
  background: var(--brand-yellow-soft, #FFF4D1); color: var(--brand-navy, #0F1A3D);
}
.cat-count {
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2, #FBFBFE);
  color: var(--text-muted, #6E7A99);
  white-space: nowrap;
}
.cat-row-actions {
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1.5px solid var(--border, rgba(15,26,61,0.14));
  border-radius: 999px;
  background: var(--surface-2, #FBFBFE);
  cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
  color: var(--brand-navy, #0F1A3D);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cat-toggle-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted, #6E7A99);
  transition: background 0.15s;
}
.cat-toggle.is-on { border-color: rgba(16,185,129,0.4); color: #047857; }
.cat-toggle.is-on .cat-toggle-dot { background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }
.cat-toggle.is-off { color: var(--text-muted, #6E7A99); }
.cat-toggle:hover { background: #fff; }
.cat-btn { font-size: 13px; padding: 7px 12px; }

.cat-form { padding: 4px 6px 0; }
.cat-form .field { margin-bottom: 14px; }
.cat-form .form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border, rgba(15,26,61,0.08));
}

@media (max-width: 720px) {
  .cat-row { grid-template-columns: 44px 1fr; }
  .cat-row-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
  .cat-row-main { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   ADMIN — Product card overlays (visibility, edit, delete)
   ========================================================= */
.product-card.is-hidden { opacity: 0.55; }
.product-card.is-hidden .product-thumb img { filter: grayscale(0.4); }

.product-stock-toggle {
  position: absolute; bottom: 10px; left: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  cursor: pointer; font-family: inherit;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  color: var(--brand-navy, #0F1A3D);
  box-shadow: 0 2px 6px rgba(15,26,61,0.18);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.product-stock-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,26,61,0.22);
}
.product-stock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted, #6E7A99);
}
.product-stock-toggle.is-on  .product-stock-dot { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.20); }
.product-stock-toggle.is-off .product-stock-dot { background: #C92A2A; box-shadow: 0 0 0 3px rgba(201,42,42,0.20); }
.product-stock-toggle.is-off { color: #9A1F1F; }

.product-admin-actions {
  display: flex; gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border, rgba(15,26,61,0.10));
}
.product-admin-btn { font-size: 12px; padding: 6px 10px; flex: 1; justify-content: center; }

/* =========================================================
   ADMIN — Product edit form (modal)
   ========================================================= */
.pf-form { padding: 4px 6px 0; }
.pf-form .field { margin-bottom: 14px; }
.pf-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-form .dropzone { min-height: 140px; }
.pf-form .form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border, rgba(15,26,61,0.08));
}
@media (max-width: 600px) {
  .pf-form .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   PHASE 5 — AI assets modal
   ========================================================= */
.ai-modal { padding: 4px 6px 0; }
.ai-modal-head {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.ai-modal-sub {
  margin: 4px 0 0; font-size: 13px;
  color: var(--text-muted, rgba(15,26,61,0.65));
}
.ai-modal-actions { flex-shrink: 0; }
.ai-modal-status {
  font-size: 13px; padding: 8px 12px; border-radius: 8px;
  background: rgba(253,199,47,0.16); color: #6a4500;
  margin-bottom: 14px;
}

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

.ai-slot {
  border: 1px solid var(--border, rgba(15,26,61,0.10));
  border-radius: 12px;
  padding: 12px;
  background: var(--surface, #fff);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
}
.ai-slot-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px;
}
.ai-slot-head strong { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.ai-slot-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(27,42,94,0.08); color: #1B2A5E;
}
.ai-slot-cost {
  font-size: 11px; color: var(--text-muted, rgba(15,26,61,0.55));
  margin-left: auto;
}

.ai-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(15,26,61,0.08); color: rgba(15,26,61,0.65);
  white-space: nowrap;
}
.ai-badge.ai-ok  { background: rgba(16,185,129,0.16); color: #0a6a4e; }
.ai-badge.ai-rev { background: rgba(253,199,47,0.20); color: #6a4500; }
.ai-badge.ai-run { background: rgba(59,130,246,0.16); color: #1e3a8a; }
.ai-badge.ai-rej { background: rgba(201,42,42,0.14); color: #9A1F1F; }
.ai-badge.ai-err { background: rgba(201,42,42,0.18); color: #9A1F1F; }

.ai-slot-body {
  flex: 1; min-height: 140px;
  border-radius: 8px; overflow: hidden;
  background: rgba(15,26,61,0.04);
  display: flex; align-items: center; justify-content: center;
}
.ai-slot-body img,
.ai-slot-body video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ai-slot-empty {
  font-size: 12px; color: var(--text-muted, rgba(15,26,61,0.55));
  padding: 20px; text-align: center;
}
.ai-slot-error {
  font-size: 11px; padding: 6px 8px; border-radius: 6px;
  background: rgba(201,42,42,0.10); color: #9A1F1F;
  word-break: break-word;
}
.ai-slot-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.btn-sm { font-size: 12px; padding: 5px 10px; }

@media (max-width: 600px) {
  .ai-modal-head { flex-direction: column; }
  .ai-grid { grid-template-columns: 1fr; }
}
