/**
 * 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(720px, 100%);
  max-height: min(88vh, 760px);
  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, #d42845 0%, var(--bw-red) 55%, var(--bw-red-deep) 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(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem 1.15rem 1.25rem;
  overflow: auto;
  max-height: min(52vh, 420px);
}

.brand-wizard-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border: 1px solid var(--bw-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bw-ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.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 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-wizard-card-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bw-mute);
}

.brand-wizard-empty {
  grid-column: 1 / -1;
  margin: 1rem 0;
  text-align: center;
}

/* Sayfa Marka Seçin — Plaza tarzı (Amazon varsayılan + ortak) */
.page-home .home-brand-picker {
  padding: 1.75rem 0 1.25rem;
  background:
    linear-gradient(#f8f8f8 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #f8f8f8 1px, transparent 1px) 0 0 / 28px 28px,
    #fff;
}

.page-home .home-brand-picker-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--bw-red);
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.page-home .home-brand-picker-title {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.page-home .home-brand-picker-accent {
  background: var(--bw-red);
}

.page-home .home-brand-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 920px;
  margin: 0 auto;
}

.page-home .home-brand-card {
  min-height: 7.5rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
  border: 1px solid #ececec;
  background: #fff;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.page-home .home-brand-card:hover {
  border-color: var(--bw-red);
  box-shadow: 0 8px 22px rgba(196, 30, 58, 0.14);
  background: #fff;
  color: var(--bw-ink);
  transform: translateY(-2px);
}

.page-home .home-brand-card-logo {
  height: 3rem;
}

.page-home .home-brand-card-logo img {
  max-height: 3rem;
  max-width: 8.5rem;
}

.page-home .home-brand-card-label {
  font-size: 1.02rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .brand-wizard-grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-brand-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .page-home .home-brand-picker-grid {
    grid-template-columns: 1fr;
  }
}
