/*
Theme Name: IGX Sipariş
Theme URI: https://igx.com.tr
Author: IGX
Description: Sipariş odaklı IGX teması. Bireysel siparişler WhatsApp hattına, kurumsal siparişler e-posta adresine gider. Ek eklenti veya derleme gerektirmez.
Version: 2026.1.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: igx-siparis
*/

:root {
  --ink: #0c0c0b;
  --panel: #141412;
  --ivory: #f6f3ec;
  --mist: #a8a295;
  --gold: #c6a15a;
  --verify: #168ee6;
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

body.igx-body *,
.igx-root,
.igx-root * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.igx-body,
.igx-root {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body.igx-body { margin: 0; }
body.admin-bar .igx-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .igx-header { top: 46px; }
}
.igx-root button, .igx-root [role="button"] { cursor: pointer; }
.igx-root a { color: inherit; }
.igx-root img { max-width: 100%; display: block; }
.igx-root h1, .igx-root h2, .igx-root h3 { text-wrap: balance; font-weight: 300; }
.igx-wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.igx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(12 12 11 / 0.95);
  border-bottom: 1px solid rgb(198 161 90 / 0.28);
  backdrop-filter: blur(12px);
}
.igx-bar, .igx-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.igx-bar { justify-content: space-between; padding: 0.75rem 0; }
.igx-logo { height: 1.5rem; width: auto; }
.igx-badge {
  width: 1rem; height: 1rem; border-radius: 999px;
  background: var(--verify); color: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.igx-domain { color: var(--mist); font-size: 0.8rem; display: none; }
.igx-nav { display: none; gap: 1.25rem; }
.igx-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.igx-nav button, .igx-chips button, .igx-ghost, .igx-send, .igx-offer, .igx-link {
  font: inherit; color: inherit; background: none; border: 0;
}
.igx-nav button.is-on { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--gold); }
.igx-nav button { color: var(--mist); }
.igx-ghost {
  height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgb(246 243 236 / 0.15);
}
.igx-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding-bottom: 0.75rem;
}
.igx-chips button {
  height: 2.75rem;
  width: 100%;
  border-radius: 999px;
  padding: 0 0.15rem;
  border: 1px solid rgb(246 243 236 / 0.15);
  color: var(--mist);
  font-size: 11px;
}
.igx-chips button.is-on { border-color: var(--gold); color: var(--ivory); }
.igx-kicker { color: var(--gold); font-size: 0.75rem; }
.igx-posters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; min-width: 0; align-items: stretch; }
.igx-posters button {
  display: flex; flex-direction: column; width: auto; min-width: 0; height: 100%;
  text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0;
}
.igx-frame {
  display: flex; align-items: flex-end; aspect-ratio: 5 / 6; overflow: hidden;
  border-radius: 0.75rem; border: 1px solid rgb(246 243 236 / 0.1); background: var(--ink);
}
.igx-posters img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
@media (max-width: 380px) {
  .igx-frame { aspect-ratio: 1 / 1; }
}
@media (min-width: 640px) {
  .igx-frame { aspect-ratio: 3 / 4; }
  .igx-posters { gap: 0.75rem; }
}
.igx-posters button > span:last-child { margin-top: 0.5rem; font-size: 0.9rem; }
.igx-hero { padding: 1rem 0 0.5rem; }
.igx-hero h1 { font-size: 1.9rem; line-height: 1.15; margin: 0.75rem 0; }
.igx-muted { color: var(--mist); line-height: 1.5; }
.igx-steps { display: none; }
.igx-steps li { border: 1px solid rgb(246 243 236 / 0.1); border-radius: 1rem; padding: 0.75rem; font-size: 0.9rem; }
.igx-section { margin: 0; scroll-margin-top: 4.5rem; }
.igx-cat {
  width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  text-align: left; background: none; border: 0; border-top: 1px solid rgb(246 243 236 / 0.1);
  color: inherit; font: inherit; padding: 0;
}
.igx-cat h2 { margin: 0; font-size: 1.25rem; font-weight: 300; }
.igx-cat-state { color: var(--mist); font-size: 0.8rem; flex-shrink: 0; }
.igx-card { border: 1px solid rgb(246 243 236 / 0.1); background: var(--panel); border-radius: 1rem; margin-bottom: 0.75rem; box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.85); }
.igx-card h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.igx-card header { display: flex; gap: 0.75rem; padding: 0.75rem 0.85rem 0.15rem; }
.igx-offer {
  width: 100%; height: 3rem; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 0.5rem; padding: 0 0.75rem; border-radius: 0.75rem; text-align: left;
}
.igx-offer.is-on { background: rgb(246 243 236 / 0.05); box-shadow: inset 0 0 0 1px var(--gold); }
.igx-price { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: right; white-space: nowrap; }
.igx-was { color: var(--mist); font-size: 0.75rem; text-decoration: line-through; font-weight: 400; }
.igx-price strong { font-weight: 500; font-size: 0.9rem; }
.igx-off { color: var(--gold); font-size: 0.7rem; }
.igx-support { display: contents; }
#igx-support-panel {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  width: auto;
  height: min(28rem, 70dvh);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid rgb(246 243 236 / 0.15);
  background: var(--panel);
  box-shadow: 0 -24px 60px -30px rgb(0 0 0 / 0.8);
}
@media (min-width: 768px) {
  #igx-support-panel { inset-inline: auto 1rem; width: min(24rem, calc(100vw - 2rem)); border-radius: 1.5rem; bottom: 1rem; }
}
.igx-support-head { display: flex; justify-content: space-between; gap: 0.75rem; }
#igx-support-log { flex: 1; min-height: 0; overflow: auto; margin-top: 0.75rem; }
#igx-support-log p { margin: 0.4rem 0; font-size: 0.9rem; line-height: 1.45; }
#igx-support-log a { color: var(--ivory); }
.igx-support-prompts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.igx-support-prompts button { font: inherit; height: 2.25rem; border-radius: 999px; border: 1px solid rgb(246 243 236 / 0.15); background: transparent; color: var(--mist); padding: 0 0.75rem; font-size: 0.75rem; }
#igx-support-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
#igx-support-input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border-radius: 0.75rem; border: 1px solid rgb(246 243 236 / 0.15); background: var(--ink); color: var(--ivory); padding: 0.6rem; }
#igx-support-open, #igx-support-form button { font: inherit; height: 2.75rem; border-radius: 999px; border: 1px solid rgb(246 243 236 / 0.15); background: var(--ink); color: var(--ivory); padding: 0 1rem; }
#igx-support-form button { background: var(--gold); color: var(--ink); border: 0; }
.igx-dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  background: rgb(12 12 11 / 0.95); border-top: 1px solid rgb(246 243 236 / 0.1);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.igx-dock > div { min-width: 0; flex: 1; }
#igx-dock-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igx-send, .igx-link {
  height: 3rem; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 500; padding: 0 1.1rem; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; width: 100%;
}
.igx-sheet[hidden] { display: none; }
.igx-sheet {
  position: fixed; inset: 0; z-index: 40; background: rgb(12 12 11 / 0.8);
  display: flex; align-items: flex-end; justify-content: center;
}
.igx-dialog {
  width: min(32rem, 100%); max-height: 92dvh; overflow: auto;
  background: var(--panel); color: var(--ivory); border-radius: 1.5rem 1.5rem 0 0;
  border: 1px solid rgb(246 243 236 / 0.15); padding: 1rem 1.25rem 1.25rem;
}
.igx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.igx-choice {
  border: 1px solid rgb(246 243 236 / 0.15); border-radius: 1rem; padding: 0.75rem;
  display: flex; gap: 0.5rem; min-height: 2.75rem;
}
.igx-choice.is-on { border-color: var(--gold); }
.igx-field { display: block; margin-top: 0.75rem; }
.igx-field span { display: block; color: var(--mist); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.igx-field input, .igx-field textarea {
  width: 100%; border-radius: 0.75rem; border: 1px solid rgb(246 243 236 / 0.15);
  background: var(--ink); color: var(--ivory); font: inherit; font-size: 1rem; padding: 0.75rem;
}
.igx-terms { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.85rem; font-size: 0.9rem; }
.igx-terms input { margin-top: 0.2rem; }
.igx-terms-text { margin-top: 0.6rem; color: var(--mist); font-size: 0.8rem; }
.igx-terms-scroll { max-height: 10rem; overflow: auto; }
.igx-terms-text p { margin: 0.4rem 0; }
.igx-trust { display: grid; gap: 0.75rem; border-top: 1px solid rgb(246 243 236 / 0.1); padding: 1.25rem 0; }
#igx-dock-kicker { display: none; }
.igx-footer { border-top: 1px solid rgb(198 161 90 / 0.28); color: var(--mist); padding: 1.25rem 0 6rem; font-size: 0.9rem; }
.igx-foot { display: flex; flex-direction: column; gap: 1rem; }
.igx-foot a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--ivory); text-decoration: none; }
.igx-foot-links { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .igx-chips { display: none; }
  .igx-domain { display: inline; }
  .igx-hero h1 { font-size: 3rem; }
  .igx-posters { grid-template-columns: repeat(4, 1fr); }
  .igx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .igx-banner { height: 14rem; }
  .igx-trust { grid-template-columns: repeat(4, 1fr); }
  .igx-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .igx-foot-links { align-items: flex-end; }
  .igx-sheet { align-items: center; }
  .igx-dialog { border-radius: 1.5rem; max-height: min(100dvh, 46rem); }
}
@media (min-width: 1024px) {
  .igx-nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .igx-posters img { transform: none; }
}
