/* ═══════════════════════════════════════════════
   AZZABI OPTIC — Virtual Try-On CSS
   Version 1.0.0
   ═══════════════════════════════════════════════ */

.azzabi-tryon-wrapper {
  --at-black:  #080808;
  --at-white:  #f7f4ee;
  --at-gold:   #b89650;
  --at-gold2:  #d4b06a;
  --at-gpale:  rgba(184,150,80,0.10);
  --at-surf:   #111111;
  --at-surf2:  #1a1a1a;
  --at-bord:   #242424;
  --at-bord2:  #333333;
  --at-muted:  #888888;
  --at-green:  #4ade80;
  --at-red:    #f87171;
  font-family: 'DM Sans', sans-serif;
  background: var(--at-black);
  color: var(--at-white);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 24px 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* LOADING */
.at-loading {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.92);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  backdrop-filter: blur(4px);
}
.at-loading.at-show { display: flex; }
.at-loading-ring {
  width: 56px; height: 56px;
  border: 2px solid var(--at-bord2);
  border-top-color: var(--at-gold);
  border-radius: 50%;
  animation: atSpin 1s linear infinite;
}
@keyframes atSpin { to { transform: rotate(360deg); } }
.at-loading-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--at-gold);
  animation: atBlink 1.5s ease infinite;
}
@keyframes atBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* HEADER */
.at-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--at-bord);
  background: rgba(8,8,8,0.95);
}
.at-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.at-logo span { color: var(--at-gold); }
.at-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--at-gold);
  border: 1px solid rgba(184,150,80,0.3);
  padding: 4px 10px;
  border-radius: 2px;
}

/* PROGRESS */
.at-progress-bar {
  height: 1px;
  background: var(--at-bord);
  overflow: hidden;
}
.at-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--at-gold), var(--at-gold2));
  transition: width 0.5s ease;
  width: 25%;
}

/* STEPS */
.at-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px 8px;
  flex-wrap: wrap;
}
.at-step-item { display: flex; align-items: center; }
.at-step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--at-bord2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--at-muted);
  background: var(--at-surf);
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Mono', monospace;
}
.at-step-dot.at-active {
  border-color: var(--at-gold);
  color: var(--at-gold);
  background: var(--at-gpale);
  box-shadow: 0 0 12px rgba(184,150,80,0.2);
}
.at-step-dot.at-done {
  border-color: var(--at-green);
  color: var(--at-black);
  background: var(--at-green);
}
.at-step-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--at-muted);
  font-family: 'DM Mono', monospace;
  margin: 0 6px;
}
.at-step-label.at-active { color: var(--at-gold); }
.at-step-line {
  width: 32px; height: 1px;
  background: var(--at-bord2);
  margin: 0 2px;
}
.at-step-line.at-done { background: var(--at-green); opacity: 0.4; }

/* SCREENS */
.at-screen { display: none; padding: 20px 28px 40px; animation: atFadeUp 0.35s ease; }
.at-screen.at-screen-active { display: block; }
@keyframes atFadeUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

/* HERO */
.at-hero { text-align: center; padding: 16px 0 28px; }
.at-hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--at-gold);
  margin-bottom: 12px;
}
.at-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 10px;
}
.at-hero-title em { font-style: italic; color: var(--at-gold2); }
.at-hero-desc { font-size: 13px; color: var(--at-muted); max-width: 460px; margin: 0 auto; line-height: 1.6; }

/* UPLOAD */
.at-upload-zone {
  border: 1px dashed var(--at-bord2);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--at-surf);
  margin-bottom: 20px;
  position: relative;
}
.at-upload-zone:hover, .at-upload-zone.at-drag {
  border-color: var(--at-gold);
  background: var(--at-gpale);
}
.at-file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; font-size: 0;
}
.at-upload-icon { font-size: 36px; margin-bottom: 12px; }
.at-upload-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; margin-bottom: 6px;
}
.at-upload-sub { font-size: 12px; color: var(--at-muted); margin-bottom: 16px; }
.at-btn-upload {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 11px 24px;
  background: var(--at-white); color: var(--at-black);
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  transition: background 0.2s;
}
.at-btn-upload:hover { background: var(--at-gold2); }

/* TIPS */
.at-tips-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 20px;
}
.at-tip {
  background: var(--at-surf);
  border: 1px solid var(--at-bord);
  border-radius: 4px; padding: 14px;
  text-align: center; font-size: 12px;
  color: var(--at-muted); line-height: 1.5;
}
.at-tip-icon { font-size: 18px; margin-bottom: 6px; }

/* ANALYSIS */
.at-analysis-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 24px;
}
.at-photo-panel {
  background: var(--at-surf);
  border: 1px solid var(--at-bord);
  border-radius: 4px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.at-face-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.at-scanning-ring {
  width: 150px; height: 180px;
  border: 1.5px solid var(--at-gold);
  border-radius: 50%; position: relative;
  animation: atPulse 2s ease-in-out infinite;
}
@keyframes atPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,150,80,0); }
  50%      { box-shadow: 0 0 0 10px rgba(184,150,80,0.1); }
}
.at-scan-line {
  position: absolute; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--at-gold), transparent);
  animation: atScanMove 2s linear infinite;
}
@keyframes atScanMove { 0%{top:0} 100%{top:100%} }
.at-scan-text {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); animation: atBlink 1.2s ease infinite;
}

.at-result-panel {
  background: var(--at-surf);
  border: 1px solid var(--at-bord);
  border-radius: 4px; padding: 20px;
}
.at-result-title {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 14px;
}
.at-face-shape-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 400;
  margin-bottom: 8px; display: flex;
  align-items: center; gap: 10px;
}
.at-face-desc {
  font-size: 12px; color: var(--at-muted);
  line-height: 1.6; margin-bottom: 16px;
  border-left: 2px solid var(--at-gold);
  padding-left: 10px;
}
.at-features-list { margin-bottom: 16px; }
.at-feature {
  display: flex; align-items: center;
  gap: 8px; font-size: 12px; margin-bottom: 7px;
}
.at-feature-label { color: var(--at-muted); flex-shrink: 0; min-width: 70px; }
.at-feature-bar {
  flex: 1; height: 3px;
  background: var(--at-bord); border-radius: 2px; overflow: hidden;
}
.at-feature-fill { height: 100%; background: var(--at-gold); border-radius: 2px; }
.at-feature-value { color: var(--at-white); font-weight: 500; font-size: 11px; white-space: nowrap; }

.at-visagiste-advice {
  background: var(--at-gpale);
  border: 1px solid rgba(184,150,80,0.2);
  border-radius: 4px; padding: 14px;
}
.at-va-title {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 8px;
}

/* CATALOGUE */
.at-catalogue-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.at-catalogue-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
}
.at-filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.at-pill {
  font-size: 11px; padding: 4px 12px;
  border: 1px solid var(--at-bord2);
  border-radius: 2px; cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Mono', monospace;
  color: var(--at-muted); background: transparent;
}
.at-pill.at-pill-active, .at-pill:hover {
  border-color: var(--at-gold);
  color: var(--at-gold);
  background: var(--at-gpale);
}

.at-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 1px;
  background: var(--at-bord);
  border: 1px solid var(--at-bord);
  margin-bottom: 20px;
}
.at-product-card {
  background: var(--at-surf);
  cursor: pointer; transition: background 0.15s;
  position: relative; overflow: hidden;
}
.at-product-card:hover { background: var(--at-surf2); }
.at-product-card.at-selected {
  background: var(--at-gpale);
  outline: 1.5px solid var(--at-gold);
  outline-offset: -1px;
}
.at-product-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--at-surf2);
  display: flex; align-items: center;
  justify-content: center; font-size: 40px;
  overflow: hidden;
}
.at-product-img img { width: 100%; height: 100%; object-fit: contain; }
.at-product-info { padding: 10px 12px; }
.at-product-brand {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 3px;
}
.at-product-name { font-size: 12px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.at-product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; color: var(--at-white);
}
.at-match-badge {
  position: absolute; top: 6px; right: 6px;
  font-size: 9px; padding: 2px 6px;
  border-radius: 2px; font-weight: 500;
  font-family: 'DM Mono', monospace;
}
.at-match-high { background: rgba(74,222,128,0.12); color: var(--at-green); border: 1px solid rgba(74,222,128,0.3); }
.at-match-med  { background: rgba(184,150,80,0.12); color: var(--at-gold);  border: 1px solid rgba(184,150,80,0.3); }
.at-match-low  { background: rgba(107,114,128,0.08); color: var(--at-muted); border: 1px solid var(--at-bord2); }

/* TRY-ON */
.at-tryon-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px; margin-bottom: 20px;
}
.at-tryon-canvas {
  background: var(--at-surf);
  border: 1px solid var(--at-bord);
  border-radius: 4px;
  min-height: 440px;
  position: relative;
  display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.at-demo-face {
  font-size: 160px; opacity: 0.35;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
}
.at-glasses-overlay {
  position: absolute;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  font-size: 72px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation: atFloatIn 0.35s ease;
  user-select: none; pointer-events: none;
  transition: font-size 0.2s, margin-left 0.1s;
}
@keyframes atFloatIn {
  from { opacity:0; transform: translateX(-50%) scale(0.8); }
  to   { opacity:1; transform: translateX(-50%) scale(1); }
}
.at-tryon-controls {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--at-bord2);
  border-radius: 2px; padding: 6px 10px;
}
.at-ctrl-btn {
  font-size: 11px; padding: 3px 10px;
  border: 1px solid var(--at-bord2);
  border-radius: 2px; background: transparent;
  color: var(--at-white); cursor: pointer;
  font-family: 'DM Mono', monospace;
  transition: all 0.15s; letter-spacing: 0.5px;
}
.at-ctrl-btn:hover { border-color: var(--at-gold); color: var(--at-gold); }

/* SIDEBAR */
.at-tryon-sidebar { display: flex; flex-direction: column; gap: 14px; }
.at-sidebar-label {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 2px;
}
.at-thumb-strip { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.at-thumb {
  width: 48px; height: 48px;
  border: 1px solid var(--at-bord2);
  border-radius: 2px; cursor: pointer;
  display: flex; align-items: center;
  justify-content: center; font-size: 22px;
  flex-shrink: 0; background: var(--at-surf);
  transition: all 0.15s;
}
.at-thumb:hover, .at-thumb.at-thumb-active {
  border-color: var(--at-gold);
  background: var(--at-gpale);
}

.at-verdict-card {
  background: var(--at-surf);
  border: 1px solid var(--at-bord);
  border-radius: 4px; padding: 18px;
}
.at-verdict-tag {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 12px;
}
.at-verdict-score { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.at-score-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--at-gold);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.at-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--at-gold); line-height: 1;
}
.at-score-lbl { font-size: 9px; color: var(--at-muted); font-family: 'DM Mono', monospace; }
.at-verdict-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.at-verdict-title em { font-style: italic; color: var(--at-gold2); }

.at-criteria-list { display: flex; flex-direction: column; gap: 6px; }
.at-criterion { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.at-crit-icon { font-size: 13px; flex-shrink: 0; }
.at-crit-text { flex: 1; color: var(--at-muted); }
.at-crit-ok   { color: var(--at-green); font-weight: 500; }
.at-crit-warn { color: var(--at-gold);  font-weight: 500; }

.at-visagiste-full {
  background: var(--at-gpale);
  border: 1px solid rgba(184,150,80,0.2);
  border-radius: 4px; padding: 14px;
}
.at-vf-title {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--at-gold); margin-bottom: 8px;
}
.at-vf-advice { font-size: 12px; color: rgba(247,244,238,0.75); line-height: 1.65; }
.at-vf-advice p { margin-bottom: 6px; }
.at-vf-advice p:last-child { margin-bottom: 0; }
.at-vf-advice strong { color: var(--at-white); font-weight: 500; }

/* BUTTONS */
.at-btn-cta {
  display: flex; align-items: center;
  justify-content: center; gap: 6px;
  width: 100%; padding: 12px;
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 500; transition: all 0.2s;
  border-radius: 0; text-decoration: none;
}
.at-btn-primary   { background: var(--at-white); color: var(--at-black); }
.at-btn-primary:hover { background: var(--at-gold2); }
.at-btn-whatsapp  { background: #25D366; color: #fff; }
.at-btn-whatsapp:hover { background: #1da851; }
.at-btn-secondary {
  background: transparent;
  border: 1px solid var(--at-bord2);
  color: var(--at-white);
}
.at-btn-secondary:hover { border-color: var(--at-gold); color: var(--at-gold); }

/* BOTTOM NAV */
.at-bottom-nav {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px; margin-top: 20px;
}
.at-btn {
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 10px 24px;
  border: 1px solid var(--at-bord2);
  background: transparent; color: var(--at-white);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.at-btn:hover  { border-color: var(--at-white); }
.at-btn:disabled { opacity: 0.3; cursor: default; }
.at-btn.at-btn-gold { background: var(--at-gold); border-color: var(--at-gold); color: var(--at-black); font-weight: 500; }
.at-btn.at-btn-gold:hover { background: var(--at-gold2); border-color: var(--at-gold2); }

/* RESPONSIVE */
@media(max-width:700px){
  .at-analysis-wrap  { grid-template-columns: 1fr; }
  .at-tryon-stage    { grid-template-columns: 1fr; }
  .at-tips-row       { grid-template-columns: 1fr; }
  .at-header         { padding: 12px 16px; }
  .at-screen         { padding: 16px 16px 32px; }
  .at-step-label     { display: none; }
  .at-step-line      { width: 20px; }
  .at-badge          { display: none; }
  .at-hero-title     { font-size: 26px; }
}
