/* =========================================================
   EROĞLU TİCARET — HERO
   Temizlenmiş sürüm
   ========================================================= */

/* Header / hero ortak zemin */
.ero-header__top {
  display: none;
}

.ero-header,
.ero-header__main {
  background: #f8efe7;
}

.ero-header {
  border-bottom: 1px solid rgba(35, 25, 15, .08);
  backdrop-filter: none;
}


/* =========================================================
   HERO TEMEL
   ========================================================= */

.ero-hero {
  --hero-bg: #f8efe7;
  --hero-shape: #149fd3;
  --hero-ink: #08749a;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100svh - var(--ero-header-height));
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.ero-hero[data-theme="saka"] {
  --hero-shape: #149fd3;
  --hero-ink: #08749a;
}

.ero-hero[data-theme="maltana"] {
  --hero-shape: #f2b51d;
  --hero-ink: #a96a00;
}

.ero-hero[data-theme="camlica"] {
  --hero-shape: #e02932;
  --hero-ink: #b01d27;
}

.ero-hero[data-theme="didi"] {
  --hero-shape: #ead81a;
  --hero-ink: #2e7d32;
}

.ero-hero[data-theme="cola-turka"] {
  --hero-shape: #c72b34;
  --hero-ink: #9e1e27;
}

.ero-hero[data-theme="joozy"] {
  --hero-shape: #f26d61;
  --hero-ink: #c24a40;
}

.ero-hero[data-theme="tamek"] {
  --hero-shape: #f28c28;
  --hero-ink: #2f7a2f;
}

.ero-hero[data-theme="icim"] {
  --hero-shape: #43a548;
  --hero-ink: #2f7e34;
}

.ero-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ero-hero__shape {
  position: absolute;
  z-index: 1;

  width: 66%;
  height: 48%;
  top: 39%;
  right: -5%;

  background: var(--hero-shape);
  clip-path: polygon(20% 100%, 100% 0, 100% 100%);

  transform: translateX(0);
  pointer-events: none;
  will-change: transform;
}

.ero-hero__inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: center;

  min-height: calc(100svh - var(--ero-header-height));
  padding-block: clamp(60px, 7vw, 110px);
}


/* =========================================================
   METİN
   ========================================================= */

.ero-hero__content {
  position: relative;
  z-index: 4;
  max-width: 680px;
  min-width: 0;
}

.ero-hero__kicker,
.ero-hero__heading,
.ero-hero__heading span,
.ero-hero__eyebrow,
.ero-hero__product-title,
.ero-hero__text {
  color: var(--hero-ink);
  transition: color .45s ease;
}

.ero-hero__kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ero-hero__heading {
  max-width: 760px;
  margin: 0;

  font-size: clamp(46px, 5.5vw, 86px);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.055em;
}

.ero-hero__heading span {
  display: block;
  margin-top: 10px;

  font-size: .54em;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.ero-hero__dynamic {
  position: relative;
  min-height: 132px;
  margin-top: 34px;
}

.ero-hero__copy {
  position: absolute;
  inset: 0 auto auto 0;

  width: 100%;
  max-width: 570px;

  visibility: hidden;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
}

.ero-hero__copy.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ero-hero__eyebrow {
  margin: 0 0 8px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ero-hero__product-title {
  margin: 0 0 10px;

  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
}

.ero-hero__text {
  max-width: 540px;
  margin: 0;

  opacity: .82;

  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}


/* =========================================================
   CTA
   ========================================================= */

.ero-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ero-hero__button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding-inline: 26px;

  border: 0;
  background: transparent;
  color: var(--hero-ink);

  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;

  transition:
    color .35s ease,
    transform .22s ease;
}

.ero-hero__button::after,
.ero-hero__button::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ero-hero__button::after {
  z-index: -1;
  inset: -3px -6px;

  border: 2px solid var(--hero-ink);
  border-radius:
    26px 21px 25px 20px
    /
    21px 27px 20px 25px;

  transform: rotate(-1.4deg);

  transition:
    border-color .35s ease,
    background-color .25s ease,
    transform .25s ease;
}

.ero-hero__button::before {
  z-index: -2;
  inset: 0 -3px -4px 1px;

  border: 1px solid
    color-mix(in srgb, var(--hero-ink) 68%, transparent);

  border-radius:
    22px 27px 19px 25px
    /
    26px 19px 27px 21px;

  transform: rotate(1.5deg);
  transition: transform .25s ease;
}

.ero-hero__button--secondary::after {
  border-width: 1.5px;
}

.ero-hero__button--secondary::before {
  opacity: .72;
}

@media (hover: hover) and (pointer: fine) {
  .ero-hero__button:hover {
    color: #fff;
    transform: translateY(-2px);
  }

  .ero-hero__button:hover::after {
    background: var(--hero-ink);
    transform: rotate(-2deg) scale(1.02);
  }

  .ero-hero__button:hover::before {
    transform: rotate(2.2deg) scale(1.01);
  }
}


/* =========================================================
   PAGINATION
   ========================================================= */

.ero-hero__pagination {
  display: flex;
  gap: 9px;
  margin-top: 34px;
}

.ero-hero__dot {
  width: 34px;
  height: 4px;
  padding: 0;

  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ink) 24%, transparent);

  cursor: pointer;

  transition:
    width .3s ease,
    background-color .3s ease;
}

.ero-hero__dot.is-active {
  width: 58px;
  background: var(--hero-ink);
}


/* =========================================================
   ÜRÜN SAHNESİ
   ========================================================= */

.ero-hero__visual {
  position: relative;
  z-index: 3;
  align-self: stretch;

  min-height: 560px;
}

.ero-hero__product {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  visibility: hidden;
  opacity: 0;
  transform: translateX(115%);

  pointer-events: none;
}

.ero-hero__product.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.ero-hero__product img {
  width: min(100%, 700px);
  max-height: 72vh;

  object-fit: contain;

  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .14));
}

.ero-hero[data-theme="saka"] .ero-hero__product img {
  width: min(100%, 760px);
  transform: scale(1.12);
  transform-origin: center bottom;
}


/* =========================================================
   ALT KAYAN YAZI
   ========================================================= */

.ero-hero-marquee {
  position: relative;
  z-index: 5;

  width: 100%;
  overflow: hidden;

  padding-top: 38px;
  padding-bottom: 125px;

  background: #f7efe7;
}

.ero-hero-marquee__track {
  display: flex;
  width: max-content;

  animation: eroMarquee 22s linear infinite;
  will-change: transform;
}

.ero-hero-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;

  gap: clamp(28px, 4vw, 70px);
  padding-right: clamp(28px, 4vw, 70px);
}

.ero-hero-marquee span {
  display: block;

  color: var(--hero-ink);

  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(82px, 8.5vw, 150px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
  white-space: nowrap;

  text-rendering: geometricPrecision;

  transition:
    color .45s ease,
    -webkit-text-stroke-color .45s ease;
}

.ero-hero-marquee .is-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.25px var(--hero-ink);
}

.ero-hero-marquee .is-filled {
  color: var(--hero-ink);
  -webkit-text-fill-color: var(--hero-ink);
  -webkit-text-stroke: 0;
}

.ero-hero-marquee__wave {
  position: absolute;

  left: -8%;
  right: -8%;
  bottom: -58px;

  height: 145px;

  background: #fff;

  border-radius:
    48% 52% 0 0
    /
    64% 72% 0 0;

  transform: rotate(-1deg);
}

@keyframes eroMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  .ero-hero {
    min-height: auto;
  }

  .ero-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;

    padding-top: 54px;
    padding-bottom: 28px;
  }

  .ero-hero__content {
    max-width: 760px;
  }

  .ero-hero__visual {
    min-height: 420px;
    margin-top: 18px;
  }

  .ero-hero__product img {
    width: min(76vw, 600px);
    max-height: 500px;
  }

  .ero-hero[data-theme="saka"] .ero-hero__product img {
    width: min(82vw, 640px);
    transform: scale(1.10);
  }

  .ero-hero__shape {
    width: 94%;
    height: 310px;

    top: 54%;
    right: -23%;

    clip-path: polygon(8% 100%, 100% 4%, 100% 100%);
  }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 600px) {
  .ero-hero {
    min-height: 0;
    height: auto;
  }

  .ero-hero__inner {
    display: grid;
    grid-template-columns: 1fr;

    min-height: 0;
    height: auto;

    padding-top: 16px;
    padding-bottom: 18px;
  }

  /* Mobilde ürün kompakt biçimde önce gelir. */
  .ero-hero__visual {
    order: 1;

    min-height: 210px;
    height: 210px;

    margin: 0 0 10px;
  }

  .ero-hero__content {
    order: 2;

    width: 100%;
    max-width: none;
  }

  .ero-hero__shape {
    width: 118%;
    height: 190px;

    top: 36px;
    right: -46%;

    clip-path: polygon(5% 100%, 100% 10%, 100% 100%);
  }

  .ero-hero__product img {
    width: min(66vw, 275px);
    max-height: 205px;

    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .12));
  }

  .ero-hero[data-theme="saka"] .ero-hero__product img {
    width: min(72vw, 300px);
    transform: scale(1.06);
  }

  .ero-hero__kicker {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .11em;
  }

  .ero-hero__heading {
    max-width: none;

    font-size: clamp(39px, 11.4vw, 52px);
    line-height: .93;
    letter-spacing: -.048em;
  }

  .ero-hero__heading span {
    margin-top: 6px;

    font-size: .50em;
    line-height: 1.05;
  }

  /* Asıl boşluk problemi burada çözülüyor:
     sabit 150px yükseklik kaldırıldı. */
  .ero-hero__dynamic {
    min-height: 0;
    margin-top: 20px;
  }

  .ero-hero__copy.is-active {
    position: relative;
  }

  .ero-hero__eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .ero-hero__product-title {
    margin-bottom: 8px;

    font-size: clamp(24px, 7.2vw, 31px);
  }

  .ero-hero__text {
    max-width: none;

    font-size: 13.5px;
    line-height: 1.5;
  }

  /* 360px dahil küçük ekranlarda iki buton güvenle yan yana kalır. */
  .ero-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    gap: 9px;

    margin-top: 22px;
  }

  .ero-hero__button {
    width: 100%;
    min-width: 0;
    min-height: 44px;

    padding: 0 8px;

    font-size: 10px;
    white-space: nowrap;

    transform: none;
  }

  /* Mobilde çizgiler butonun DIŞINA taşmaz. */
  .ero-hero__button::after {
    inset: 0;

    border-width: 1.5px;
    transform: rotate(-.7deg);
  }

  .ero-hero__button::before {
    inset: 3px 2px 2px 3px;
    transform: rotate(.7deg);
    opacity: .55;
  }

  .ero-hero__pagination {
    gap: 7px;
    margin-top: 22px;
  }

  .ero-hero__dot {
    width: 24px;
    height: 3px;
  }

  .ero-hero__dot.is-active {
    width: 42px;
  }

  .ero-hero-marquee {
    padding-top: 27px;
    padding-bottom: 82px;
  }

  .ero-hero-marquee span {
    font-size: clamp(62px, 19vw, 84px);
  }

  .ero-hero-marquee__group {
    gap: 26px;
    padding-right: 26px;
  }

  .ero-hero-marquee__wave {
    bottom: -36px;
    height: 86px;
  }
}


/* 320–380px için yalnızca tipografi ince ayarı */
@media (max-width: 380px) {
  .ero-hero__inner {
    padding-top: 12px;
  }

  .ero-hero__visual {
    min-height: 190px;
    height: 190px;
    margin-bottom: 8px;
  }

  .ero-hero__shape {
    height: 174px;
    top: 31px;
  }

  .ero-hero__product img {
    width: min(64vw, 245px);
    max-height: 185px;
  }

  .ero-hero[data-theme="saka"] .ero-hero__product img {
    width: min(69vw, 265px);
  }

  .ero-hero__heading {
    font-size: clamp(37px, 11vw, 44px);
  }

  .ero-hero__dynamic {
    margin-top: 17px;
  }

  .ero-hero__actions {
    gap: 7px;
    margin-top: 19px;
  }

  .ero-hero__button {
    min-height: 42px;
    padding-inline: 5px;
    font-size: 9.5px;
  }

  .ero-hero__pagination {
    margin-top: 19px;
  }
}


/* =========================================================
   ERİŞİLEBİLİRLİK / HAREKET AZALTMA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ero-hero__kicker,
  .ero-hero__heading,
  .ero-hero__heading span,
  .ero-hero__eyebrow,
  .ero-hero__product-title,
  .ero-hero__text,
  .ero-hero__button,
  .ero-hero__dot {
    transition: none;
  }

  .ero-hero-marquee__track {
    animation: none;
    transform: none;
  }
}
