/* ═══════════════════════════════════════════════════════════════════
   İZ PARFÜM — AI Koku Öneri Stilleri  (ai-recommend.css)
   Sadece yeni class'lar — mevcut stil dosyasına dokunulmaz.
═══════════════════════════════════════════════════════════════════ */

/* ── AI BADGE ────────────────────────────────────────────────────── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  background: var(--text-main, #1a1a1a);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── SEPET MİNİ BÖLÜM ────────────────────────────────────────────── */
.ai-reco-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border, #e8e4df);
}

.ai-reco-header {
  margin-bottom: 24px;
}
.ai-reco-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ai-reco-title {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0;
}
.ai-reco-subtitle {
  font-size: .82rem;
  color: var(--text-sec, #888);
  margin: 0;
  padding-left: 2px;
}
.ai-reco-empty {
  color: var(--text-sec, #888);
  font-size: .88rem;
  font-style: italic;
  padding: 12px 0 48px;
}

/* ── DÜŞÜNÜYOR ANİMASYONU ────────────────────────────────────────── */
.ai-reco-thinking,
.ai-thinking-row {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 20px 0;
}
.ai-thinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted, #ccc);
  animation: aiDotPulse 1.5s ease-in-out infinite;
}
.ai-thinking-dot:nth-child(1) { animation-delay: 0s; }
.ai-thinking-dot:nth-child(2) { animation-delay: .22s; }
.ai-thinking-dot:nth-child(3) { animation-delay: .44s; }
@keyframes aiDotPulse {
  0%, 80%, 100% { opacity: .2;  transform: scale(.85); }
  40%           { opacity: 1;   transform: scale(1.2); }
}

/* ── SEKMELER ────────────────────────────────────────────────────── */
.ai-reco-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ai-reco-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border, #e8e4df);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: .76rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-sec, #888);
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
  line-height: 1.4;
}
.ai-reco-tab:hover,
.ai-reco-tab.active {
  background: var(--text-main, #1a1a1a);
  color: #fff;
  border-color: var(--text-main, #1a1a1a);
}

/* ── PANEL GÖSTERİMİ ─────────────────────────────────────────────── */
.ai-reco-panel            { display: none; }
.ai-reco-panel.active     { display: block; }

/* ── TAVSİYE GRID ────────────────────────────────────────────────── */
.ai-reco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .ai-reco-grid              { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .ai-reco-grid              { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .ai-reco-grid              { grid-template-columns: repeat(4, 1fr); }
  .ai-reco-grid.ai-reco-grid-full { grid-template-columns: repeat(3, 1fr); }
}

/* ── TAVSİYE KARTI ───────────────────────────────────────────────── */
.ai-reco-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #e8e4df);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg, #fff);
  transition: box-shadow .22s, border-color .22s;
}
.ai-reco-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  border-color: #c0bbb5;
}

.ai-reco-card-img-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--off-white, #f9f8f6);
  overflow: hidden;
  flex-shrink: 0;
}
.ai-reco-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s ease;
}
.ai-reco-card:hover .ai-reco-card-img-wrap img {
  transform: scale(1.04);
}

.ai-reco-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 13px 15px;
  gap: 3px;
}
.ai-reco-card-gender {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted, #bbb);
}
.ai-reco-card-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-main, #1a1a1a);
  text-decoration: none;
  line-height: 1.3;
}
.ai-reco-card-name:hover { text-decoration: underline; }
.ai-reco-card-family {
  font-size: .7rem;
  color: var(--text-muted, #bbb);
  margin-bottom: 1px;
}
.ai-reco-card-price {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-main, #1a1a1a);
  margin-top: 2px;
}
.ai-reco-card-expl {
  font-size: .74rem;
  color: var(--text-sec, #888);
  line-height: 1.58;
  margin: 7px 0 10px;
  flex: 1;
}
.ai-reco-card-expl strong {
  color: var(--text-main, #1a1a1a);
  font-weight: 500;
}

/* ── "ÜRÜNÜ İNCELE" BUTONU ───────────────────────────────────────── */
.ai-reco-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 8px 12px;
  font-size: .74rem;
  font-family: inherit;
  letter-spacing: .04em;
  border: 1px solid var(--text-main, #1a1a1a);
  color: var(--text-main, #1a1a1a);
  background: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  margin-top: auto;
}
.ai-reco-btn:hover {
  background: var(--text-main, #1a1a1a);
  color: #fff;
}

/* ── DAHA FAZLA BUTONU ───────────────────────────────────────────── */
.ai-reco-cta-row {
  text-align: center;
  padding: 28px 0 8px;
}
.ai-reco-more-btn {
  font-size: .8rem;
  letter-spacing: .04em;
}

/* ════════════════════════════════════════════════════════════════════
   TAM ÖNERİ SAYFASI  (koku-onerileri.html)
════════════════════════════════════════════════════════════════════ */

/* Sayfa hero */
.ai-page-hero {
  text-align: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border, #e8e4df);
  margin-bottom: 52px;
}
.ai-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white, #f9f8f6);
  border: 1px solid var(--border, #e8e4df);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sec, #888);
  margin-bottom: 18px;
}
.ai-page-hero h1 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.ai-page-hero > p {
  color: var(--text-sec, #888);
  font-size: .88rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Boş durum */
.ai-page-empty {
  text-align: center;
  padding: 80px 24px;
}
.ai-page-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  opacity: .25;
}
.ai-page-empty h2 {
  font-weight: 400;
  margin-bottom: 10px;
}
.ai-page-empty p {
  color: var(--text-sec, #888);
  margin-bottom: 28px;
  font-size: .88rem;
}

/* Sayfa bölümleri */
.ai-page-section {
  margin-bottom: 60px;
}
.ai-page-section-head {
  margin-bottom: 26px;
}
.ai-page-section-head h2 {
  font-size: clamp(.95rem, 2.2vw, 1.2rem);
  font-weight: 400;
  margin: 8px 0 6px;
}
.ai-page-section-desc {
  font-size: .81rem;
  color: var(--text-sec, #888);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}
.ai-section-icon {
  font-size: 1rem;
  opacity: .5;
  display: block;
  margin-bottom: 4px;
}

/* Analiz edilen ürünler */
.ai-analyzed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ai-analyzed-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--off-white, #f9f8f6);
  border: 1px solid var(--border, #e8e4df);
  border-radius: 3px;
  padding: 14px;
}
.ai-analyzed-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 2px;
  padding: 4px;
}
.ai-analyzed-info { flex: 1; min-width: 0; }
.ai-analyzed-name {
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-analyzed-family {
  font-size: .7rem;
  color: var(--text-muted, #bbb);
  margin-bottom: 8px;
}
.ai-analyzed-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ai-note-tag {
  background: #fff;
  border: 1px solid var(--border, #e8e4df);
  border-radius: 999px;
  font-size: .63rem;
  padding: 2px 8px;
  color: var(--text-sec, #888);
}

/* Mobil ince ayar */
@media (max-width: 580px) {
  .ai-reco-tabs         { gap: 6px; }
  .ai-reco-tab          { padding: 5px 10px; font-size: .71rem; }
  .ai-reco-card-body    { padding: 10px 10px 12px; }
  .ai-analyzed-grid     { grid-template-columns: 1fr; }
  .ai-page-hero         { padding: 40px 0 28px; }
}

/* ── AI RECOMMENDATION ACTIONS ───────────────────────────────────── */
.ai-reco-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.ai-reco-actions .ai-reco-btn { margin-top: 0; }
.ai-reco-cart-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: .74rem;
  font-family: inherit;
  letter-spacing: .04em;
  border: 1px solid var(--text-main, #1a1a1a);
  color: #fff;
  background: var(--text-main, #1a1a1a);
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.ai-reco-cart-btn:hover {
  background: transparent;
  color: var(--text-main, #1a1a1a);
}
.ai-reco-cart-btn:active { transform: translateY(1px); }
@media (max-width: 560px) {
  .ai-reco-actions { grid-template-columns: 1fr; }
}
