/* ============================================
   Components — Reusable UI Elements
   ============================================ */

/* --- Buttons --- */
.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-p { background: var(--primary); color: #fff; box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14); }
.btn-g { background: #fff; color: var(--txt); border: 1px solid var(--line); }
.btn-a { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 14px 26px rgba(217, 119, 6, 0.22); }

/* --- Card --- */
.card {
  background: var(--surface-a);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* --- Product Card --- */
.pcard {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform 0.2s;
}
.pcard:hover { transform: translateY(-3px); }
.pcard .pi { aspect-ratio: 4/3; object-fit: cover; background: #eceff3; }

/* --- Tag & Badge --- */
.tag {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-s);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-s);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Category Pill --- */
.cat-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  z-index: 9999;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  transition: opacity 0.3s;
  pointer-events: none;
}

/* --- Option Card (Shipping/Payment) --- */
.opt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.opt-card strong, .opt-card span { display: block; }
.opt-card span { color: var(--muted); font-size: 0.86rem; margin-top: 3px; }
.opt-card.sel { border-color: rgba(217, 119, 6, 0.42); background: #fffaf3; }

.radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.opt-card.sel .radio { border-color: var(--accent); }
.opt-card.sel .radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Demo Note & Status Box --- */
.demo-note {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: #9a5c07;
  margin-bottom: 12px;
}

.sbox {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  display: none;
  margin-top: 12px;
  font-weight: 700;
}
.sbox.show { display: block; }
.sbox.ok { background: #ecfdf5; border: 1px solid rgba(15, 118, 110, 0.16); color: var(--ok); }
.sbox.err { background: #fff1f2; border: 1px solid rgba(225, 29, 72, 0.16); color: var(--err); }
.sbox.info { background: #eff6ff; border: 1px solid rgba(37, 99, 235, 0.16); color: #1d4ed8; }

/* --- Stepper --- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.step {
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.step.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done { background: #ecfdf5; color: var(--ok); border-color: rgba(15, 118, 110, 0.2); }

.psec { display: none; }
.psec.active { display: block; }

/* --- Cart Item --- */
.cart-list { display: grid; gap: 10px; margin-bottom: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  padding: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-item h4 { margin-bottom: 3px; font-size: 0.92rem; }
.qty-row { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
}
.line-price { font-weight: 800; white-space: nowrap; }
.empty-s {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

/* --- iyzico --- */
.iyzico-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.iyz-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.iyz-logo {
  width: 80px;
  height: 28px;
  background: linear-gradient(135deg, #1a3c8e, #2563eb);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.inst-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.inst-opt {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s;
}
.inst-opt.sel { border-color: var(--accent); background: var(--accent-s); color: var(--accent); }
.inst-opt strong { display: block; font-size: 0.88rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--rm);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 16px 16px; color: var(--muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* --- Info & Trust --- */
.info-box {
  padding: 22px;
  border-radius: var(--rm);
  background: var(--surface-a);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.info-box h3 { margin-top: 0; }

.trust-c {
  padding: 16px;
  border-radius: var(--rm);
  background: var(--surface-a);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.trust-c small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.trust-c strong { font-size: 1.05rem; }
