/* IK2 CPT Templates - WooCommerce benzeri temiz layout */

.ik2-page { background: transparent; }
.ik2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.ik2-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
}
.ik2-breadcrumb a { color: inherit; text-decoration: none; }
.ik2-breadcrumb a:hover { text-decoration: underline; }

.ik2-product-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .ik2-product-layout { grid-template-columns: 1fr; }
}

.ik2-image-box {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ik2-main-img { width: 100%; height: auto; display: block; }
.ik2-image-empty { color:#6b7280; font-size:13px; padding:24px; }

.ik2-thumb-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow: auto;
  padding-bottom: 6px;
}
.ik2-thumb {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}
.ik2-thumb:focus { outline: 2px solid #111827; outline-offset: 2px; }
.ik2-thumb-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.ik2-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 4px 0 12px;
  font-weight: 800;
}

.ik2-meta-list { margin-top: 6px; }
.ik2-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  font-size: 14px;
  margin: 8px 0;
}
.ik2-meta-row .k { color: #6b7280; }
.ik2-meta-row .v { color: #111827; }
.ik2-meta-row .v a { color: #111827; text-decoration: none; }
.ik2-meta-row .v a:hover { text-decoration: underline; }

.ik2-price-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  display: grid;
  gap: 12px;
}
.ik2-price-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.ik2-price-value { font-size: 26px; font-weight: 900; color: #111827; }
.ik2-price-value.is-total { font-size: 30px; }

.ik2-short {
  margin-top: 14px;
  border-left: 4px solid #e5e7eb;
  padding-left: 12px;
  color: #111827;
  font-size: 14px;
  line-height: 1.65;
}

.ik2-cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ik2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.ik2-btn:hover { opacity: .92; }
.ik2-btn.is-ghost { background: #fff; color: #111827; }

.ik2-tabs {
  margin-top: 26px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}
.ik2-tabbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ik2-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}
.ik2-tab.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.ik2-panel { display: none; padding-top: 16px; }
.ik2-panel.is-active { display: block; }

.ik2-content {
  max-width: 880px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: #111827;
}

.ik2-empty {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  padding: 26px 10px;
}

/* Modules checkbox list */
.ik2-modules {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.ik2-modules-head {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
}
.ik2-mod-row {
  display: grid;
  grid-template-columns: 20px 1fr 160px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  cursor: pointer;
}
.ik2-mod-row:last-child { border-bottom: none; }
.ik2-mod-row:hover { background: #fbfbfb; }
.ik2-mod-check { width: 18px; height: 18px; }

.ik2-mod-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.ik2-mod-ico-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.ik2-mod-ico { width: 44px; height: 44px; object-fit: cover; display:block; }
.ik2-mod-ico-ph {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-block;
}
.ik2-mod-text { min-width: 0; }
.ik2-mod-title {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ik2-mod-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.ik2-mod-sub a { color: inherit; text-decoration: none; }
.ik2-mod-sub a:hover { text-decoration: underline; }

.ik2-mod-price {
  text-align: right;
  font-weight: 900;
  color: #111827;
  font-size: 14px;
}

.ik2-modules-foot {
  padding: 12px 14px;
  background: #fff;
}
.ik2-modules-note { color:#6b7280; font-size:12px; }

/* Cards (module -> products) */
.ik2-cards {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) { .ik2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ik2-cards { grid-template-columns: 1fr; } }

.ik2-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ik2-card:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(17,24,39,.08); }

.ik2-card-media { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.ik2-card-img { width:100%; height:180px; object-fit:cover; display:block; }
.ik2-card-ph { height:180px; display:flex; align-items:center; justify-content:center; color:#6b7280; font-size:13px; }

.ik2-card-body { padding: 12px 12px 14px; }
.ik2-card-title { color:#111827; font-weight:900; font-size:15px; margin-bottom:6px; }
.ik2-card-meta { color:#6b7280; font-size:12px; display:flex; gap:8px; flex-wrap:wrap; }

/* Badges */
.ik2-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 800;
}
.ik2-badge.is-on { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); color: #065f46; }
.ik2-badge.is-off { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); color: #7f1d1d; }

/* Module header on module page */
.ik2-mod-head {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.ik2-mod-price-big {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

/* Extra */
.ik2-extra {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}
.ik2-extra-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
}
.ik2-extra-row .k { color:#6b7280; }
.ik2-extra-row .v { color:#111827; word-break: break-word; }
.ik2-extra-row .v a { color:#111827; text-decoration:none; }
.ik2-extra-row .v a:hover { text-decoration: underline; }

.ik2-price-hint { margin-top: 6px; color:#6b7280; font-size:12px; }
