/* A101 Ekstra tema - a101.com.tr/ekstra görünümü */
:root {
  --ekstra-primary: #00bed5;
  --ekstra-primary-dark: #00a8bd;
  --ekstra-bg: #f3f6fa;
  --ekstra-white: #ffffff;
  --ekstra-text: #333333;
  --ekstra-muted: #8a94a6;
  --ekstra-yellow: #ffe500;
  --ekstra-badge: #ff3b30;
  --ekstra-radius: 16px;
  --ekstra-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.ekstra-body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--ekstra-bg);
  color: var(--ekstra-text);
  line-height: 1.45;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.ekstra-app {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Üst bölüm: header + kategoriler + slider */
.ekstra-home-top {
  background: var(--ekstra-bg);
  padding-bottom: 4px;
}

.ekstra-home-top--compact {
  padding-bottom: 0;
}

.ekstra-home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.ekstra-header {
  background: var(--ekstra-primary);
  padding: 10px 16px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ekstra-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ekstra-brand-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ekstra-brand-tab {
  flex: 1;
  background: var(--ekstra-white);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  transition: opacity .15s;
}

.ekstra-brand-tab:not(.is-active) { opacity: .95; }
.ekstra-brand-tab.is-active {
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}

.ekstra-brand-tab img {
  max-height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ekstra-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ekstra-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--ekstra-white);
  border-radius: 999px;
  padding: 0 16px;
  height: 44px;
}

.ekstra-search i { color: #9aa3b2; margin-right: 10px; font-size: 16px; flex-shrink: 0; }
.ekstra-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--ekstra-text);
  min-width: 0;
}
.ekstra-search input::placeholder { color: #9aa3b2; }

.ekstra-cart-desktop {
  display: none;
  position: relative;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ekstra-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--ekstra-badge);
  color: #fff;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  border: 2px solid var(--ekstra-primary);
}

@media (min-width: 768px) {
  .ekstra-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .ekstra-brand-tabs {
    flex: 0 0 340px;
    margin-bottom: 0;
  }
  .ekstra-header-actions { flex: 1; }
  .ekstra-cart-desktop { display: inline-flex; }
  body.ekstra-body { padding-bottom: 0; }
}

/* Kategoriler — orijinal Ekstra ikon şeridi */
.ekstra-categories {
  padding: 14px 0 6px;
  margin: 0 -16px;
}

.ekstra-categories-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ekstra-categories-track::-webkit-scrollbar { display: none; }

.ekstra-category {
  flex: 0 0 85px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}

.ekstra-category-icon {
  display: block;
  width: 85px;
  height: 85px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 8px;
  background: transparent;
}

.ekstra-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.ekstra-category-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.25;
  max-width: 85px;
  margin: 0 auto;
  word-break: break-word;
}

/* Hero slider — orijinal banner oranı */
.ekstra-hero-block {
  padding: 6px 0 0;
}

.ekstra-hero-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.ekstra-hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ekstra-hero-slider::-webkit-scrollbar { display: none; }

.ekstra-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  line-height: 0;
}

.ekstra-hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 2408 / 736;
  object-fit: cover;
  display: block;
}

.ekstra-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ekstra-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 3;
  font-size: 14px;
  transition: background .15s, transform .15s;
}

.ekstra-hero-nav:hover {
  background: var(--ekstra-primary-dark);
  transform: translateY(-50%) scale(1.05);
}

.ekstra-hero-prev { left: 10px; }
.ekstra-hero-next { right: 10px; }

.ekstra-shipping-note {
  text-align: center;
  color: var(--ekstra-primary);
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 16px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .ekstra-hero-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .ekstra-hero-prev { left: 16px; }
  .ekstra-hero-next { right: 16px; }
  .ekstra-category { flex: 0 0 92px; }
  .ekstra-category-icon { width: 92px; height: 92px; }
  .ekstra-category-label { max-width: 92px; font-size: 12px; }
}

/* Ana içerik */
.ekstra-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 24px;
  width: 100%;
  box-sizing: border-box;
}

.ekstra-section {
  margin-bottom: 28px;
}

.ekstra-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ekstra-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ekstra-text);
}

.ekstra-section-head a {
  color: var(--ekstra-primary);
  font-size: 14px;
  font-weight: 600;
}

/* Ürün grid */
.ekstra-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .ekstra-products { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.ekstra-product-card {
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  overflow: hidden;
  box-shadow: var(--ekstra-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}

.ekstra-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.ekstra-product-link { flex: 1; display: flex; flex-direction: column; }

.ekstra-product-image {
  position: relative;
  padding: 16px;
  background: #fafbfc;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ekstra-product-image img:first-child {
  max-height: 100%;
  object-fit: contain;
}

.ekstra-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ekstra-badge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1.2;
  max-width: 70%;
}

.ekstra-product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.ekstra-product-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ekstra-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  word-break: break-word;
}

.ekstra-product-price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--ekstra-text);
}

.ekstra-product-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ekstra-muted);
  text-decoration: line-through;
  display: block;
}

.ekstra-add-btn {
  margin: 0 12px 12px;
  height: 40px;
  border-radius: 12px;
  background: var(--ekstra-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
}

.ekstra-add-btn:hover { background: var(--ekstra-primary-dark); color: #fff; }

/* Kampanya afişleri */
.ekstra-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .ekstra-posters { grid-template-columns: repeat(3, 1fr); }
}

.ekstra-poster {
  border-radius: var(--ekstra-radius);
  overflow: hidden;
  box-shadow: var(--ekstra-shadow);
  background: #fff;
}

.ekstra-poster img { width: 100%; }

/* Footer */
.ekstra-footer {
  background: #fff;
  border-top: 1px solid #e8edf2;
  padding: 24px 16px;
  margin-top: 20px;
}

.ekstra-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .ekstra-footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.ekstra-footer-col strong { display: block; margin-bottom: 8px; font-size: 15px; }
.ekstra-footer-col span { color: var(--ekstra-primary); font-size: 18px; font-weight: 700; }
.ekstra-footer-copy { font-size: 12px; color: var(--ekstra-muted); line-height: 1.5; }

.ekstra-social { display: flex; gap: 10px; }
.ekstra-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ekstra-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alt navigasyon (mobil) */
.ekstra-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e8edf2;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}

.ekstra-bottom-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--ekstra-muted);
  position: relative;
  padding: 4px 0;
}

.ekstra-bottom-link i { font-size: 20px; }
.ekstra-bottom-link.is-active { color: var(--ekstra-primary); font-weight: 600; }

.ekstra-bottom-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 22px);
  background: var(--ekstra-badge);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
}

.hidden-mobile { display: none !important; }
.hidden-desktop { display: flex; }

@media (min-width: 768px) {
  .hidden-mobile { display: inline-flex !important; }
  .hidden-desktop { display: none !important; }
}

/* SweetAlert */
.btn-cyan { background: var(--ekstra-primary) !important; }

/* Eski sayfa uyumluluğu */
.sweet-alert button.confirm.btn-cyan { background-color: var(--ekstra-primary) !important; }

/* Sepet sayfası */
.ekstra-cart-page { padding-top: 8px; }

.ekstra-cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ekstra-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ekstra-text);
}

.ekstra-cart-count-label {
  font-size: 14px;
  color: var(--ekstra-muted);
  font-weight: 600;
}

.ekstra-cart-layout {
  display: grid;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.ekstra-cart-items,
.ekstra-cart-summary {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .ekstra-cart-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.ekstra-cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ekstra-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: start;
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 12px;
  box-shadow: var(--ekstra-shadow);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ekstra-cart-item-image {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafb;
  flex-shrink: 0;
}

.ekstra-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ekstra-cart-item-body {
  min-width: 0;
  overflow: hidden;
}

.ekstra-cart-item-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ekstra-text);
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ekstra-cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ekstra-muted);
}

.ekstra-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f6f8;
  border-radius: 999px;
  padding: 4px 8px;
}

.ekstra-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ekstra-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.ekstra-cart-item-discount { color: #e53935; }

.ekstra-cart-item-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ekstra-text);
}

.ekstra-cart-remove {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff0f0;
  color: #e53935;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  align-self: start;
}

.ekstra-cart-remove:hover {
  background: #e53935;
  color: #fff;
}

.ekstra-cart-summary {
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 20px;
  box-shadow: var(--ekstra-shadow);
}

@media (min-width: 992px) {
  .ekstra-cart-summary {
    position: sticky;
    top: 88px;
  }
}

.ekstra-cart-summary h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.ekstra-cart-summary-list {
  margin: 0 0 20px;
  padding: 0;
}

.ekstra-cart-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
}

.ekstra-summary-label {
  color: var(--ekstra-text);
  min-width: 0;
}

.ekstra-summary-value {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  color: var(--ekstra-text);
}

.ekstra-cart-summary-discount .ekstra-summary-value { color: #e53935; }

.ekstra-cart-summary-total {
  border-bottom: none;
  padding-top: 14px;
  font-size: 16px;
}

.ekstra-cart-summary-total .ekstra-summary-value {
  font-size: 20px;
  color: var(--ekstra-primary);
}

.ekstra-cart-checkout {
  margin: 0 0 12px;
  height: 48px;
  font-size: 16px;
}

.ekstra-cart-clear-btn {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ekstra-cart-clear-btn:hover {
  background: #fff5f5;
}

.ekstra-cart-continue {
  display: block;
  text-align: center;
  color: var(--ekstra-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ekstra-cart-shipping-info {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ekstra-muted);
  line-height: 1.4;
}

.ekstra-cart-empty {
  text-align: center;
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 48px 24px;
  box-shadow: var(--ekstra-shadow);
}

.ekstra-cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f9fc;
  color: var(--ekstra-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.ekstra-cart-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ekstra-cart-empty p {
  margin: 0 0 24px;
  color: var(--ekstra-muted);
}

.ekstra-cart-empty-btn {
  max-width: 280px;
  margin: 0 auto;
  height: 48px;
}

@media (min-width: 768px) {
  .ekstra-cart-item {
    grid-template-columns: 88px minmax(0, 1fr) 44px;
    gap: 14px;
    padding: 14px;
  }

  .ekstra-cart-item-image {
    width: 88px;
    height: 88px;
  }

  .ekstra-cart-item-name { font-size: 14px; }

  .ekstra-cart-summary-total .ekstra-summary-value { font-size: 22px; }
}

@media (max-width: 380px) {
  .ekstra-cart-item {
    grid-template-columns: 60px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 10px;
  }

  .ekstra-cart-item-image {
    width: 60px;
    height: 60px;
  }

  .ekstra-cart-item-price { font-size: 16px; }

  .ekstra-cart-remove {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .ekstra-page-title { font-size: 18px; }

  .ekstra-summary-value { font-size: 13px; }
}

/* Ürün detay */
.ekstra-detail-page { padding-top: 8px; }

.ekstra-detail {
  display: grid;
  gap: 20px;
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 16px;
  box-shadow: var(--ekstra-shadow);
  margin-bottom: 16px;
}

.ekstra-detail-gallery {
  position: relative;
  background: #fafbfc;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.ekstra-detail-gallery--zoomable {
  cursor: zoom-in;
}

.ekstra-detail-gallery--zoomable:focus-visible {
  outline: 2px solid var(--ekstra-primary);
  outline-offset: 2px;
}

.ekstra-detail-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ekstra-white);
  color: var(--ekstra-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
}

.ekstra-detail-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 190, 213, .1), rgba(0, 190, 213, .04));
  border: 1px solid rgba(0, 190, 213, .18);
}

.ekstra-detail-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--ekstra-badge);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ekstra-detail-offer-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ekstra-primary-dark);
}

.ekstra-detail-save {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ekstra-muted);
}

.ekstra-detail-save strong {
  color: var(--ekstra-text);
  font-weight: 800;
}

.ekstra-image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ekstra-image-lightbox.is-open {
  display: flex !important;
}

.ekstra-image-lightbox[hidden] {
  display: none !important;
}

.ekstra-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
}

.ekstra-image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ekstra-image-lightbox-close {
  position: absolute;
  top: -12px;
  right: -4px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--ekstra-white);
  color: var(--ekstra-text);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.ekstra-image-lightbox-close:hover {
  background: var(--ekstra-primary);
  color: #fff;
}

.ekstra-image-lightbox-img {
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

body.ekstra-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ekstra-image-lightbox-close {
    top: 8px;
    right: 8px;
    position: fixed;
  }

  .ekstra-image-lightbox {
    padding: 0;
  }

  .ekstra-image-lightbox-dialog {
    width: 100%;
    max-height: 100vh;
  }

  .ekstra-image-lightbox-img {
    max-height: 100vh;
    border-radius: 0;
  }
}

.ekstra-detail-image {
  width: 100%;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
}

.ekstra-detail-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: 40%;
  z-index: 1;
}

.ekstra-detail-info { min-width: 0; }

.ekstra-detail-name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ekstra-detail-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ekstra-muted);
  line-height: 1.5;
}

.ekstra-detail-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin-bottom: 8px;
}

.ekstra-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--ekstra-text);
  letter-spacing: -.02em;
}

.ekstra-detail-old {
  font-size: 15px;
  color: var(--ekstra-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.ekstra-detail-actions {
  display: grid;
  gap: 10px;
}

.ekstra-detail-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .15s, transform .1s;
}

.ekstra-detail-btn:active { transform: scale(.98); }

.ekstra-detail-btn-primary {
  background: var(--ekstra-primary);
  color: #fff;
}

.ekstra-detail-btn-primary:hover { filter: brightness(.95); }

.ekstra-detail-btn-yellow {
  background: var(--ekstra-yellow);
  color: #333;
}

.ekstra-detail-btn-yellow:hover { filter: brightness(.97); }

.ekstra-detail-desc {
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 20px 16px;
  box-shadow: var(--ekstra-shadow);
}

.ekstra-detail-desc h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.ekstra-detail-desc-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ekstra-text);
  word-break: break-word;
}

@media (min-width: 768px) {
  .ekstra-detail {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 32px;
  }

  .ekstra-detail-gallery { min-height: 360px; }

  .ekstra-detail-name { font-size: 22px; }

  .ekstra-detail-price { font-size: 32px; }

  .ekstra-detail-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ödeme sayfası — A101 odeme-bilgileri görünümü */
.ekstra-checkout-page {
  padding-top: 12px;
  max-width: 1100px;
}

.ekstra-checkout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ekstra-checkout-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #6b7785;
}

.ekstra-checkout-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--ekstra-primary);
  white-space: nowrap;
}

.ekstra-checkout-layout {
  display: grid;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.ekstra-checkout-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ekstra-checkout-panel {
  background: var(--ekstra-white);
  border: 1px solid #e8edf2;
  border-radius: 12px;
  padding: 20px 18px;
}

.ekstra-checkout-section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ekstra-text);
}

.ekstra-checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ekstra-checkout-section-head .ekstra-checkout-section-title {
  margin: 0;
}

.ekstra-checkout-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ekstra-primary);
  white-space: nowrap;
}

.ekstra-address-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dde4ec;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 16px;
}

.ekstra-address-preview-icon {
  color: #8a94a6;
  font-size: 18px;
  flex-shrink: 0;
}

.ekstra-address-preview-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ekstra-text);
  word-break: break-word;
}

.ekstra-address-preview-arrow {
  color: #8a94a6;
  font-size: 12px;
  flex-shrink: 0;
}

.ekstra-address-fields .ekstra-form-field:last-child {
  margin-bottom: 0;
}

.ekstra-checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ekstra-text);
  cursor: pointer;
}

.ekstra-checkout-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--ekstra-primary);
}

.ekstra-checkout-checkbox a {
  color: var(--ekstra-primary);
  font-weight: 600;
}

.ekstra-pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ekstra-text);
  cursor: pointer;
  border-bottom: 1px solid #f0f3f7;
}

.ekstra-pay-option:last-of-type {
  border-bottom: none;
}

.ekstra-pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ekstra-pay-option-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #c5ced8;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.ekstra-pay-option.is-active .ekstra-pay-option-dot,
.ekstra-pay-option input:checked + .ekstra-pay-option-dot {
  border-color: var(--ekstra-primary);
}

.ekstra-pay-option.is-active .ekstra-pay-option-dot::after,
.ekstra-pay-option input:checked + .ekstra-pay-option-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--ekstra-primary);
  border-radius: 50%;
}

.ekstra-pay-option--disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ekstra-card-block {
  border: 1px solid #e8edf2;
  border-radius: 10px;
  padding: 16px;
  margin: 4px 0 12px 28px;
  background: #fafbfc;
}

.ekstra-card-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.ekstra-masterpass {
  font-size: 13px;
  font-weight: 800;
  color: #e65100;
  letter-spacing: -.02em;
}

.ekstra-masterpass small {
  font-size: 9px;
  font-weight: 600;
  color: #666;
}

.ekstra-input-icon {
  position: relative;
  margin-bottom: 10px;
}

.ekstra-input-icon:last-child {
  margin-bottom: 0;
}

.ekstra-input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b2;
  font-size: 15px;
  pointer-events: none;
}

.ekstra-input-icon input {
  width: 100%;
  border: 1px solid #dde4ec;
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font-size: 14px;
  color: var(--ekstra-text);
  background: #fff;
  transition: border-color .15s;
}

.ekstra-input-icon input:focus {
  outline: none;
  border-color: var(--ekstra-primary);
}

.ekstra-input-icon input.is-invalid {
  border-color: #e53935;
}

.ekstra-card-row {
  margin-bottom: 0;
}

.ekstra-installment-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8edf2;
}

.ekstra-installment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ekstra-installment-head strong {
  font-size: 14px;
  color: var(--ekstra-text);
}

.ekstra-installment-note {
  font-size: 12px;
  color: var(--ekstra-muted);
}

.ekstra-installment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ekstra-installment-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid #e8edf2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
  min-height: 72px;
}

.ekstra-installment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ekstra-installment-option.is-selected,
.ekstra-installment-option:has(input:checked) {
  border-color: var(--ekstra-primary);
  background: rgba(0, 186, 211, .06);
  box-shadow: 0 0 0 1px rgba(0, 186, 211, .15);
}

.ekstra-installment-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ekstra-text);
}

.ekstra-installment-amount {
  font-size: 11px;
  font-weight: 600;
  color: var(--ekstra-primary);
  line-height: 1.3;
}

.ekstra-installment-selected {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ekstra-muted);
  text-align: center;
}

.ekstra-summary-line--installment strong {
  color: var(--ekstra-primary);
  font-size: 14px;
}

.ekstra-form-field {
  margin-bottom: 12px;
}

.ekstra-form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7785;
}

.ekstra-form-field input,
.ekstra-form-field select,
.ekstra-form-field textarea {
  width: 100%;
  border: 1px solid #dde4ec;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ekstra-text);
  background: #fff;
}

.ekstra-form-field input:focus,
.ekstra-form-field select:focus,
.ekstra-form-field textarea:focus {
  outline: none;
  border-color: var(--ekstra-primary);
}

.ekstra-form-field input.is-invalid,
.ekstra-form-field select.is-invalid,
.ekstra-form-field textarea.is-invalid {
  border-color: #e53935;
}

.ekstra-form-field textarea {
  resize: vertical;
  min-height: 72px;
}

.ekstra-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ekstra-form-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #e53935;
}

.ekstra-checkout-sidebar {
  min-width: 0;
}

.ekstra-checkout-summary-card {
  background: var(--ekstra-white);
  border: 1px solid #e8edf2;
  border-radius: 12px;
  padding: 20px 18px;
}

.ekstra-free-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #2e7d32;
}

.ekstra-free-shipping i {
  font-size: 16px;
}

.ekstra-summary-box {
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.ekstra-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f7;
  font-size: 14px;
  color: var(--ekstra-text);
}

.ekstra-summary-line:last-child {
  border-bottom: none;
}

.ekstra-summary-line strong {
  font-weight: 700;
  white-space: nowrap;
}

.ekstra-summary-line--discount strong {
  color: var(--ekstra-primary);
}

.ekstra-summary-line--total {
  font-size: 15px;
  font-weight: 700;
  padding-top: 14px;
}

.ekstra-summary-line--total strong {
  font-size: 18px;
}

.ekstra-checkout-terms {
  margin: 0 0 16px;
}

.ekstra-checkout-continue {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #b8c4ce;
  cursor: not-allowed;
  transition: background .15s, box-shadow .15s, transform .1s;
}

.ekstra-checkout-continue.is-enabled,
.ekstra-checkout-continue.is-enabled:not(:disabled) {
  background: var(--ekstra-primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 190, 213, .35);
}

.ekstra-checkout-continue.is-enabled:hover {
  background: var(--ekstra-primary-dark);
  box-shadow: 0 6px 18px rgba(0, 190, 213, .4);
}

.ekstra-checkout-continue.is-enabled:active {
  transform: scale(.98);
}

.ekstra-form-card {
  background: var(--ekstra-white);
  border-radius: var(--ekstra-radius);
  padding: 20px 16px;
  box-shadow: var(--ekstra-shadow);
}

.ekstra-form-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.ekstra-checkout-note {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--ekstra-muted);
  line-height: 1.45;
}

.ekstra-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ekstra-payment-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f3f6fa;
  font-size: 11px;
  font-weight: 800;
  color: #5a6578;
}

.ekstra-payment-badges--compact { justify-content: center; }

.ekstra-checkout-submit {
  width: 100%;
  height: 48px;
  font-size: 16px;
  margin-top: 4px;
}

.ekstra-checkout-summary { min-width: 0; }

.ekstra-checkout-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 1px solid #eef2f6;
}

.ekstra-checkout-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f7;
}

.ekstra-checkout-item:last-child { border-bottom: none; }

.ekstra-checkout-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafb;
}

.ekstra-checkout-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ekstra-checkout-item-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.ekstra-checkout-item-qty {
  font-size: 11px;
  color: var(--ekstra-muted);
}

.ekstra-checkout-item-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ekstra-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.ekstra-modal.is-open { display: flex; }

.ekstra-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.ekstra-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .12);
  max-height: 90vh;
  overflow-y: auto;
}

.ekstra-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f6fa;
  color: #667085;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ekstra-modal-dialog h2 {
  margin: 0 28px 8px 0;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.ekstra-modal-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ekstra-muted);
  text-align: center;
  line-height: 1.45;
}

.ekstra-modal-status {
  display: none;
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
}

.ekstra-modal-wait {
  display: none;
  text-align: center;
  font-size: 28px;
  color: var(--ekstra-primary);
  margin: 0;
  animation: ekstra-wait-pulse 1.2s infinite;
}

@keyframes ekstra-wait-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.ekstra-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ekstra-modal-cancel {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #f3f6fa;
  color: var(--ekstra-text);
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .ekstra-checkout-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .ekstra-checkout-sidebar {
    position: sticky;
    top: 88px;
  }

  .ekstra-card-block {
    margin-left: 0;
  }

  .ekstra-modal {
    align-items: center;
    padding: 20px;
  }

  .ekstra-modal-dialog {
    border-radius: var(--ekstra-radius);
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .ekstra-form-row,
  .ekstra-card-row {
    grid-template-columns: 1fr;
  }

  .ekstra-installment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ekstra-checkout-panel {
    padding: 16px 14px;
  }

  .ekstra-card-block {
    margin-left: 0;
    padding: 14px 12px;
  }
}

.ekstra-countdown-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ekstra-countdown-popup[hidden] {
  display: none !important;
}

.ekstra-countdown-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.ekstra-countdown-modal {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.ekstra-countdown-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.ekstra-countdown-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ekstra-primary);
}

.ekstra-countdown-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ekstra-text);
}

.ekstra-countdown-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ekstra-muted);
}

.ekstra-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.ekstra-countdown-unit {
  background: #f4f8fa;
  border-radius: 14px;
  padding: 12px 8px;
}

.ekstra-countdown-unit strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ekstra-text);
}

.ekstra-countdown-unit span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ekstra-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ekstra-countdown-ended {
  margin: 0 0 16px;
  font-size: 14px;
  color: #e53935;
  font-weight: 600;
}

.ekstra-countdown-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ekstra-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 480px) {
  .ekstra-countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
