/* === E&D MARKET NEXT v2.0 — FASE 1 === */

.ed-next-home,
.ed-next-home * {
  box-sizing: border-box;
}

.ed-next-home {
  display: grid;
  gap: 13px;
  width: min(100% - 14px, 1180px);
  margin: 0 auto 32px;
  color: #f5f7fa;
}

.ed-next-enabled
body > .topbar,
.ed-next-enabled
main > .ed-marketplace-home,
.ed-next-enabled
main > .ed-discovery-home,
.ed-next-enabled
main > .hero,
.ed-next-enabled
main > .promo-wrap,
.ed-next-enabled
main > .flash,
.ed-next-enabled
main > .featured {
  display: none !important;
}

.ed-next-header {
  position: sticky;
  top: 0;
  z-index: 500;
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 5px 0;
  background:
    rgba(7, 10, 15, 0.96);
  backdrop-filter: blur(18px);
}

.ed-next-icon-button {
  appearance: none;
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f4f7;
  font-size: 20px;
}

.ed-next-icon-button i {
  position: absolute;
  top: 0;
  right: -1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #080b10;
  border-radius: 999px;
  background: #e4b72f;
  color: #111318;
  font-size: 8px;
  font-style: normal;
  font-weight: 1000;
}

.ed-next-brand {
  appearance: none;
  display: grid;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ed-next-brand strong {
  color: #f0cd58;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.ed-next-brand small {
  margin-top: 3px;
  color: #cda42c;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.34em;
}

.ed-next-header-actions {
  display: flex;
}

.ed-next-search {
  display: grid;
  grid-template-columns:
    25px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 5px 8px 5px 14px;
  border: 1px solid rgba(224, 180, 47, 0.46);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      #111822,
      #090e15
    );
}

.ed-next-search > span {
  color: #dfb63c;
  font-size: 22px;
}

.ed-next-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f7fa;
  font-size: 13px;
}

.ed-next-search input::placeholder {
  color: #7e8997;
}

.ed-next-search button {
  appearance: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.055);
  color: #c4cbd4;
  font-size: 20px;
}

.ed-next-location {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 35px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #e8ebef;
  text-align: left;
}

.ed-next-location small,
.ed-next-location strong {
  display: block;
}

.ed-next-location small {
  color: #7e8997;
  font-size: 7px;
}

.ed-next-location strong {
  margin-top: 2px;
  font-size: 10px;
}

.ed-next-location b {
  color: #dcb33d;
  font-size: 18px;
}

.ed-next-campaign {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  touch-action: pan-y;
}

.ed-next-campaign-track {
  display: flex;
  transition:
    transform 0.43s
    cubic-bezier(0.22, 0.75, 0.2, 1);
}

.ed-next-slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(135px, 0.75fr);
  min-height: 235px;
  overflow: hidden;
  border:
    1px solid rgba(221, 177, 45, 0.35);
  border-radius: 21px;
  background:
    radial-gradient(
      circle at 80% 25%,
      rgba(220, 176, 43, 0.2),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      #121922,
      #080c12 65%,
      #1b1608
    );
}

.ed-next-slide.is-home {
  background:
    radial-gradient(
      circle at 80% 25%,
      rgba(95, 159, 108, 0.18),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      #111922,
      #080c12 65%,
      #0d1b12
    );
}

.ed-next-slide.is-benefit {
  background:
    radial-gradient(
      circle at 80% 25%,
      rgba(108, 124, 204, 0.2),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      #111923,
      #080c12 65%,
      #101329
    );
}

.ed-next-slide > div {
  position: relative;
  z-index: 3;
  padding: 23px 21px 29px;
}

.ed-next-slide small {
  color: #d8ad31;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.ed-next-slide h1,
.ed-next-slide h2 {
  max-width: 500px;
  margin: 8px 0 0;
  color: #f6f7fa;
  font-size: clamp(28px, 5vw, 43px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.ed-next-slide h1 b,
.ed-next-slide h2 b {
  display: block;
  color: #d9e1ea;
}

.ed-next-slide p {
  max-width: 420px;
  margin: 11px 0 0;
  color: #98a2af;
  font-size: 10px;
  line-height: 1.5;
}

.ed-next-slide button {
  appearance: none;
  min-height: 41px;
  margin: 16px 0 0;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #e8edf2,
      #aeb9c4
    );
  color: #111318;
  font-size: 9px;
  font-weight: 950;
}

.ed-next-slide figure {
  position: relative;
  min-height: 220px;
  margin: 0;
}

.ed-next-slide figure::before,
.ed-next-slide figure::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border:
    1px solid rgba(224, 182, 51, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ed-next-slide figure::before {
  width: 185px;
  height: 185px;
}

.ed-next-slide figure::after {
  width: 245px;
  height: 245px;
}

.ed-next-slide figure span {
  position: absolute;
  z-index: 2;
  filter:
    drop-shadow(
      0 19px 16px rgba(0, 0, 0, 0.4)
    );
}

.ed-next-slide figure span:nth-child(1) {
  right: 24%;
  bottom: 15%;
  font-size: 77px;
}

.ed-next-slide figure span:nth-child(2) {
  right: 1%;
  bottom: 18%;
  font-size: 47px;
}

.ed-next-slide figure span:nth-child(3) {
  right: 50%;
  bottom: 13%;
  font-size: 43px;
}

.ed-next-campaign-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.ed-next-campaign-dots button {
  appearance: none;
  width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.32);
}

.ed-next-campaign-dots button.is-active {
  width: 19px;
  background: #e4ba3d;
}

.ed-next-shortcuts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 10px 7px 1px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.ed-next-shortcuts::-webkit-scrollbar,
.ed-next-category-rail::-webkit-scrollbar,
.ed-next-product-rail::-webkit-scrollbar {
  display: none;
}

.ed-next-shortcuts button {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 91px;
  padding: 9px 5px;
  border:
    1px solid rgba(215, 169, 40, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      #121924,
      #0a0f16
    );
  color: #e9edf1;
  scroll-snap-align: start;
}

.ed-next-shortcuts button span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background:
    rgba(215, 169, 40, 0.075);
  font-size: 19px;
}

.ed-next-shortcuts strong {
  font-size: 8px;
}

.ed-next-section {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px 13px;
  overflow: hidden;
  border:
    1px solid rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      #101720,
      #090e15
    );
}

.ed-next-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-next-section-heading > div {
  min-width: 0;
}

.ed-next-section-heading small {
  color: #b99431;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.ed-next-section-heading h2 {
  margin: 4px 0 0;
  color: #f1f3f6;
  font-size: 19px;
  line-height: 1.1;
}

.ed-next-section-heading button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 34px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background:
    rgba(215, 169, 40, 0.07);
  color: #dcb744;
  font-size: 8px;
  font-weight: 900;
}

.ed-next-category-rail,
.ed-next-product-rail {
  display: flex;
  gap: 11px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 10px 7px 1px;
  scrollbar-width: none;
}

.ed-next-category {
  appearance: none;
  flex: 0 0 76px;
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dfe3e9;
}

.ed-next-category span {
  display: grid;
  width: 67px;
  height: 67px;
  place-items: center;
  border:
    1px solid rgba(215, 169, 40, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(216, 171, 40, 0.14),
      #0e151e 72%
    );
  font-size: 27px;
}

.ed-next-category strong {
  font-size: 8px;
  line-height: 1.2;
}

.ed-next-product-skeleton {
  flex: 0 0 154px;
  height: 245px;
  border-radius: 16px;
  background:
    linear-gradient(
      100deg,
      #131b25 20%,
      #1b2531 40%,
      #131b25 60%
    );
  background-size: 200% 100%;
  animation:
    ed-next-loading 1.4s infinite;
}

@keyframes ed-next-loading {
  to {
    background-position-x: -200%;
  }
}

.ed-next-product-placeholder {
  flex: 0 0 260px;
  display: grid;
  justify-items: center;
  padding: 22px;
  border:
    1px dashed rgba(215, 169, 40, 0.22);
  border-radius: 16px;
  text-align: center;
}

.ed-next-product-placeholder span {
  font-size: 35px;
}

.ed-next-product-placeholder strong {
  margin-top: 10px;
  color: #ebedf1;
  font-size: 11px;
}

.ed-next-product-placeholder small {
  margin-top: 5px;
  color: #7f8997;
  font-size: 8px;
  line-height: 1.45;
}

.ed-next-toast {
  position: fixed;
  right: 15px;
  bottom:
    calc(
      86px +
      env(safe-area-inset-bottom, 0px)
    );
  left: 15px;
  z-index: 120000;
  display: grid;
  gap: 3px;
  width: min(410px, calc(100% - 30px));
  margin: auto;
  padding: 13px 15px;
  border:
    1px solid rgba(215, 169, 40, 0.31);
  border-radius: 14px;
  background:
    rgba(10, 15, 22, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ed-next-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ed-next-toast strong {
  color: #e4c052;
  font-size: 10px;
}

.ed-next-toast span {
  color: #8d97a5;
  font-size: 8px;
  line-height: 1.45;
}

.ed-next-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 130000;
  width: min(88%, 370px);
  padding:
    max(
      18px,
      env(safe-area-inset-top, 0px)
    )
    15px
    20px;
  border-right:
    1px solid rgba(215, 169, 40, 0.24);
  background:
    radial-gradient(
      circle at 0 0,
      rgba(215, 169, 40, 0.12),
      transparent 28%
    ),
    linear-gradient(
      155deg,
      #121924,
      #080d14
    );
  box-shadow:
    25px 0 70px rgba(0, 0, 0, 0.55);
  transform: translateX(-105%);
  transition:
    transform 0.28s ease;
}

.ed-next-menu.is-open {
  transform: translateX(0);
}

.ed-next-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom:
    1px solid rgba(255, 255, 255, 0.06);
}

.ed-next-menu header small {
  display: block;
  color: #b8922d;
  font-size: 7px;
  font-weight: 900;
}

.ed-next-menu header strong {
  display: block;
  margin-top: 4px;
  color: #f0f2f5;
  font-size: 18px;
}

.ed-next-menu header button {
  appearance: none;
  width: 40px;
  height: 40px;
  border:
    1px solid rgba(215, 169, 40, 0.2);
  border-radius: 50%;
  background:
    rgba(215, 169, 40, 0.05);
  color: #e0bc4d;
  font-size: 24px;
}

.ed-next-menu nav {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.ed-next-menu nav button {
  appearance: none;
  display: grid;
  grid-template-columns:
    40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 11px;
  border:
    1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background:
    rgba(255, 255, 255, 0.02);
  color: #edf0f4;
  text-align: left;
}

.ed-next-menu nav button > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background:
    rgba(215, 169, 40, 0.075);
  font-size: 19px;
}

.ed-next-menu nav strong,
.ed-next-menu nav small {
  display: block;
}

.ed-next-menu nav strong {
  font-size: 10px;
}

.ed-next-menu nav small {
  margin-top: 3px;
  color: #7e8997;
  font-size: 7px;
}

.ed-next-menu nav b {
  color: #d8b23f;
  font-size: 18px;
}

@media (max-width: 650px) {
  .ed-next-slide {
    display: block;
  }

  .ed-next-slide > div {
    position: relative;
    z-index: 4;
    width: 76%;
  }

  .ed-next-slide figure {
    position: absolute;
    top: 0;
    right: -48px;
    width: 205px;
    height: 100%;
    opacity: 0.7;
  }
}

@media (max-width: 430px) {
  .ed-next-slide {
    min-height: 230px;
  }

  .ed-next-slide > div {
    width: 80%;
    padding: 20px 16px 28px;
  }

  .ed-next-slide h1,
  .ed-next-slide h2 {
    font-size: 27px;
  }

  .ed-next-slide p {
    max-width: 230px;
    font-size: 9px;
  }
}
