/**
 * Marka Seçin 4 adımlı modal — Amazon + Kızıl Bant ortak
 */
:root {
  --bw-red: #c41e3a;
  --bw-red-deep: #9b1830;
  --bw-ink: #1c1917;
  --bw-mute: #78716c;
  --bw-line: #e7e5e4;
  --bw-panel: #fff;
}

.page-home.home-layout-hepsiburada {
  --bw-red: var(--kb-red, #c41e3a);
  --bw-red-deep: var(--kb-red-deep, #9b1830);
}

body.brand-wizard-open {
  overflow: hidden;
}

.brand-wizard.hidden {
  display: none !important;
}

.brand-wizard {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brand-wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.brand-wizard-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--bw-panel);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: brandWizardIn 0.22s ease-out;
}

@keyframes brandWizardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.brand-wizard-head {
  background: linear-gradient(
    180deg,
    var(--bw-red-light, #d42845) 0%,
    var(--bw-red, #c41e3a) 55%,
    var(--bw-red-deep, #9b1830) 100%
  );
  color: #fff;
  padding: 1.1rem 1.25rem 1rem;
  position: relative;
}

.brand-wizard-head-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 2.5rem;
}

.brand-wizard-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.brand-wizard-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-wizard-step {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.brand-wizard-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.brand-wizard-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.brand-wizard-progress {
  list-style: none;
  margin: 1rem 0 0.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
}

.brand-wizard-progress::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
  z-index: 0;
}

.brand-wizard-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  justify-content: center;
}

.brand-wizard-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.brand-wizard-dot.is-done span {
  background: #fff;
  border-color: #fff;
  color: var(--bw-red);
}

.brand-wizard-dot.is-active span {
  background: #fff;
  border-color: #fff;
  color: var(--bw-red);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.brand-wizard-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  min-height: 1.5rem;
}

.brand-wizard-chips.is-empty {
  display: none;
}

.brand-wizard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-wizard-chip-sep {
  opacity: 0.55;
  font-weight: 600;
}

.brand-wizard-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  background: #fff;
}

.brand-wizard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 0.35rem;
}

.brand-wizard-back {
  border: 0;
  background: transparent;
  color: var(--bw-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.brand-wizard-back:hover {
  color: var(--bw-red);
}

.brand-wizard-skip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 8px;
  background: #334155;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.brand-wizard-skip:hover {
  background: #1e293b;
}

.brand-wizard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1.15rem 1.25rem;
  overflow: auto;
  max-height: min(58vh, 520px);
}

.brand-wizard-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: center;
  padding: 0 0 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: var(--bw-ink);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.brand-wizard-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  max-height: 112px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f8fafc;
  box-sizing: border-box;
  padding: 0.45rem;
  margin: 0;
  flex: 0 0 auto;
}

.brand-wizard-card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.brand-wizard-card-media--empty {
  background: #f1f5f9;
  color: #94a3b8;
}

.brand-wizard-card-media--empty svg {
  width: 48px;
  height: 32px;
  opacity: 0.45;
}

.brand-wizard-card.has-media {
  padding-top: 0;
}

.brand-wizard-card:hover,
.brand-wizard-card:focus-visible {
  border-color: var(--bw-red);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.brand-wizard-card-title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
}

.brand-wizard-card-sub {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bw-mute);
  text-align: center;
}

.brand-wizard-empty {
  grid-column: 1 / -1;
  margin: 1rem 0;
  text-align: center;
}

/* Sayfa Marka Seçin — Parça Plaza birebir (Amazon + ortak) */
.page-home .home-brand-picker {
  padding: 2.25rem 0 2rem;
  background:
    radial-gradient(circle, #d4d4d8 1.1px, transparent 1.2px) 0 0 / 18px 18px,
    #fafafa;
}

.page-home .home-brand-picker-inner {
  max-width: 980px;
  margin: 0 auto;
}

.page-home .home-brand-picker-head {
  gap: 0.45rem;
  margin-bottom: 1.45rem;
}

.page-home .home-brand-picker-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: #f9e4e8 !important;
  color: #9b1830 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  line-height: 1.2;
}

.page-home .home-brand-picker-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827 !important;
  line-height: 1.15;
}

.page-home .home-brand-picker-accent {
  display: block;
  width: 3.4rem;
  height: 4px;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bw-red, #c41e3a) 0%, var(--bw-red, #c41e3a) 48%, #1e3a5f 52%, #1e3a5f 100%) !important;
}

.page-home .home-brand-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  max-width: 920px;
  margin: 0 auto;
}

.page-home .home-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 9.6rem;
  height: 100%;
  padding: 1.35rem 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #e8e8ec;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font: inherit;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Üstte ince vurgu çizgisi — hover’da diğer kartlar gibi “aktif” hissi */
.page-home .home-brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bw-red, #c41e3a) 0%, #e85d04 55%, #1e3a5f 100%);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center top;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.page-home .home-brand-card:hover,
.page-home .home-brand-card:focus-visible {
  border-color: var(--bw-red, #c41e3a) !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
  outline: none;
}

.page-home .home-brand-card:hover::before,
.page-home .home-brand-card:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.page-home .home-brand-card:hover .home-brand-card-label,
.page-home .home-brand-card:focus-visible .home-brand-card-label {
  color: #111827 !important;
}

.page-home .home-brand-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  flex: 0 0 72px;
  margin: 0;
}

.page-home .home-brand-card-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
  object-position: center center;
}

.page-home .home-brand-card-label {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827 !important;
  line-height: 1.2;
}

.page-home .home-brand-card-logo--empty {
  background: transparent;
}

@media (max-width: 820px) {
  .brand-wizard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-wizard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-brand-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-home .home-brand-card {
    min-height: 8.25rem;
    padding: 1.1rem 0.75rem 1rem;
  }

  .page-home .home-brand-card-logo {
    height: 58px;
    flex-basis: 58px;
  }

  .page-home .home-brand-card-logo img {
    max-height: 58px;
  }
}

@media (max-width: 420px) {
  .page-home .home-brand-picker-grid {
    grid-template-columns: 1fr;
  }
}
