:root{
  --bg:#f7f7f7;
  --card:#ffffff;
  --text:#111;
  --muted:#6b6b6b;
  --border:#d1d1d6;
  --blue:#007aff;
  --green:#25d366;

  /* premium micro */
  --shadow: 0 14px 34px rgba(0,0,0,.08);
  --shadow-strong: 0 18px 48px rgba(0,0,0,.12);
}

*{
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
}

/* GENEL */
.page{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  gap:64px;
  padding:48px 32px;
}

.product{flex:0 0 520px}

.product img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fff;
  border-radius:28px;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}

/* KRİTİK: hint sınıfı varsa bile görünmesin (ama PHP'de zaten kaldırdık) */
.hint{display:none !important}

.config{flex:1;max-width:520px}

h1{margin:0 0 6px;font-size:44px;letter-spacing:-.8px}
.subtitle{margin:0 0 28px;color:var(--muted)}

.row{margin-bottom:36px}
.label{font-weight:600;margin-bottom:14px;display:block}

.color-line{font-weight:400;color:var(--muted)}
#selectedColor{font-weight:600}

/* =========================
   OPSİYONLAR – BLOK MODELİ
   ========================= */
.option-sections{
  display:flex;
  flex-direction:column;
  gap:64px;
}

.option-group{
  background:var(--card);
  border-radius:30px;
  padding:34px 34px 38px;
  display:flex;
  flex-direction:column;
  gap:26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.option-title{
  font-size:19px;
  font-weight:600;
  letter-spacing:-0.2px;
  color:#111;
}

.option-cards-2{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.option-card{
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:22px;
  padding:22px 24px;
  cursor:pointer;

  /* Apple style */
  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.option-card:hover{
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.option-card.active{
  border-color:var(--blue);
  box-shadow: 0 0 0 4px rgba(0,122,255,.15), var(--shadow);
}

.option-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:15px;
}

.option-head .price{
  color:#666;
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:120px;
}

/* Firma input */
.company-input{
  margin-top:18px;
}

.company-input input{
  width:100%;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid var(--border);
  font-size:14px;
  outline:none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.company-input input:focus{
  border-color: rgba(0,122,255,.5);
  box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}

.company-input.hidden{display:none}

/* =========================
   "Ücretsiz" rozet (SADECE Ekle satırında HTML ile basılıyor)
   ========================= */
.free-badge{
  background:#e8f7ee;
  color:#1a7f37;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  font-weight:600;
  line-height:1;
  border:1px solid rgba(26,127,55,.18);
}

/* =========================
   DİĞER ALANLAR
   ========================= */

.size-pill{
  display:flex;
  background:#f2f2f7;
  border-radius:999px;
  padding:4px;
  width:120px;
}

.size-pill button{
  flex:1;
  border:none;
  background:transparent;
  padding:8px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;

  transform: translateZ(0);
  will-change: transform, box-shadow, background;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.size-pill button:hover{
  transform: scale(1.03);
}

.size-pill button.active{
  background:#fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  transform: scale(1.02);
}

.colors{
  display:grid;
  grid-template-columns:repeat(6,36px);
  grid-template-rows:auto;
  gap:18px;
}

.swatch{
  width:36px;
  height:36px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.06);
  cursor:pointer;
  position:relative;

  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.swatch:hover{
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.swatch.active::before{
  content:"";
  position:absolute;
  inset:-6px;
  border:2px solid var(--blue);
  border-radius:50%;
}

.qty{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.qty-card{
  border:1.5px solid var(--border);
  border-radius:18px;
  padding:16px;
  text-align:center;
  background:var(--card);
  cursor:pointer;

  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.qty-card:hover{
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.qty-card.active{
  border-color:var(--blue);
  box-shadow: 0 0 0 4px rgba(0,122,255,.15), var(--shadow);
}

.qty-card .q{
  font-size:16px;
  font-weight:800;
  margin-bottom:6px;
}

.qty-card .p{
  font-size:13px;
  color:var(--muted);
}

.total-card{
  border:1.5px solid var(--border);
  border-radius:26px;
  padding:28px;
  text-align:center;
  background:var(--card);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
}

.summary{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
  line-height:1.35;
}

.total{
  font-size:34px;
  font-weight:900;
  letter-spacing:-0.3px;
  margin:10px 0 18px;
}

.cta a{
  display:block;
  text-align:center;
  background:var(--green);
  color:#fff;
  padding:16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;

  transform: translateZ(0);
  will-change: transform, box-shadow, filter;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.cta a:hover{
  transform: scale(1.02);
  box-shadow: var(--shadow-strong);
  filter: brightness(0.98);
}

/* Bu projede disabled akışı kaldırıldı; yine de class kalırsa sorun çıkarmasın */
.cta a.disabled{
  opacity:.55;
  cursor:not-allowed;
  filter:grayscale(0.3);
}

.mini{display:none !important}

@media(max-width:980px){
  .page{flex-direction:column;padding:24px}
  .product{flex:unset}
  .config{max-width:unset}
  h1{font-size:36px}
}


/* =========================
   QTY CLICK FIX v2 (CSS only, JS untouched)
   Amaç: Üst üste binen katman varsa click'i asla engellemesin
   ========================= */

/* Sayfa ve config katmanı üstte kalsın */
.page{ position: relative; z-index: 0; }
.config{ position: relative; z-index: 2; }

/* Ürün görsel bloğu hiçbir zaman tıklamayı engellemesin */
.product{ position: relative; z-index: 0; pointer-events: none; }
.product *{ pointer-events: none; }

/* Adet alanı her koşulda tıklanabilir */
#qtyGrid,
.qty,
.qty-card{
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

/* iOS/Android dokunma gecikmesi/selection etkilerini azalt */
.qty-card{
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
