/* Shared editorial pages: premium, flores, microgreens */

.site-header--minimal {
  min-height: auto;
  background: var(--green-deep);
  padding: 1.5rem 0;
  position: relative;
  z-index: 100;
}

@media (max-width: 900px) {
  .site-header--minimal {
    padding: 1.25rem 0;
  }
}

.site-header--minimal .nav {
  position: static;
  padding: 0;
}

.ed-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* ——— Intro ——— */
.ed-intro {
  background: var(--white);
  padding: var(--padding-y) 0 clamp(2rem, 5vw, 3.5rem);
}

.ed-intro--split {
  padding-bottom: var(--padding-y);
}

.ed-intro__inner {
  max-width: 760px;
}

.ed-intro--split .ed-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ed-intro__label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ed-intro__title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--green-deep);
}

.ed-intro__lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 46ch;
}

.ed-intro__text {
  margin: 1.15rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 54ch;
}

.ed-intro__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ed-intro__media img {
  width: 100%;
  height: clamp(260px, 38vw, 460px);
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .ed-intro--split .ed-intro__grid {
    grid-template-columns: 1fr;
  }

  .ed-intro__media img {
    height: 240px;
  }
}

/* ——— Flores orbit hero ——— */
.ed-intro--orbit .ed-intro__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: center;
}

.ed-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.ed-orbit__stage {
  position: absolute;
  inset: 12%;
  overflow: visible;
  background: #fff;
}

.ed-orbit__spin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: ed-orbit-spin 48s linear infinite;
  will-change: transform;
}

.ed-orbit__tags {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.ed-orbit__tag {
  position: absolute;
  z-index: 2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  animation: ed-orbit-tag-in 0.55s ease forwards;
  animation-delay: calc(var(--i) * 0.55s + 0.35s);
}

.ed-orbit__tag[data-pos="fucsias"] {
  top: 4%;
  left: 68%;
  background: #fde2ef;
  color: #b44d7a;
}

.ed-orbit__tag[data-pos="torenias"] {
  top: 16%;
  left: 90%;
  background: #ece4fb;
  color: #6d5aa8;
}

.ed-orbit__tag[data-pos="margaritas"] {
  top: 38%;
  left: 98%;
  background: #fff3c9;
  color: #9a7a1f;
}

.ed-orbit__tag[data-pos="dianthus"] {
  top: 64%;
  left: 94%;
  background: #f8d6de;
  color: #9a3d55;
}

.ed-orbit__tag[data-pos="cosmos"] {
  top: 90%;
  left: 58%;
  background: #ffe2c8;
  color: #c25a1a;
}

.ed-orbit__tag[data-pos="pensamientos"] {
  top: 88%;
  left: 18%;
  background: #e8f3c9;
  color: #6a7d2c;
}

.ed-orbit__tag[data-pos="estragon"] {
  top: 62%;
  left: 2%;
  background: #d8f0e4;
  color: #2f7a58;
}

.ed-orbit__tag[data-pos="mariposas"] {
  top: 36%;
  left: 0%;
  background: #dce9fb;
  color: #3d6cb0;
}

.ed-orbit__tag[data-pos="violas"] {
  top: 12%;
  left: 14%;
  background: #e7ddf8;
  color: #6b4c9a;
}

@keyframes ed-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes ed-orbit-tag-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .ed-intro--orbit .ed-intro__grid {
    grid-template-columns: 1fr;
  }

  .ed-orbit {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .ed-orbit {
    aspect-ratio: auto;
    max-width: 280px;
  }

  .ed-orbit__stage {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
  }

  .ed-orbit__tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    pointer-events: auto;
  }

  .ed-orbit__tag {
    position: static;
    transform: scale(0.92);
    animation-name: ed-orbit-tag-in-stack;
  }
}

@keyframes ed-orbit-tag-in-stack {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ——— Flores full-width looping film ——— */
.ed-film {
  --film-cols: 5;
  --film-gap: 0.75rem;
  background: var(--white);
  padding: 0 0 var(--padding-y);
}

.ed-film__mask {
  overflow: hidden;
  width: 100%;
}

.ed-film__track {
  display: flex;
  width: max-content;
  gap: var(--film-gap);
  animation: ed-film-loop 42s linear infinite;
}

.ed-film__set {
  display: flex;
  gap: var(--film-gap);
  flex: 0 0 auto;
}

.ed-film__item {
  margin: 0;
  flex: 0 0 calc((100vw - (var(--film-gap) * (var(--film-cols) - 1))) / var(--film-cols));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4eadf;
}

.ed-film__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes ed-film-loop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--film-gap) / 2))); }
}

@media (max-width: 900px) {
  .ed-film {
    --film-cols: 3;
  }
}

@media (max-width: 640px) {
  .ed-film {
    --film-cols: 2;
    --film-gap: 0.5rem;
  }
}

/* ——— Quote band ——— */
.ed-quote {
  background: #f4eadf;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.ed-quote__text {
  margin: 0 auto;
  max-width: 38rem;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--green-deep);
  text-align: center;
}

.ed-quote__note {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  text-align: center;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}

.ed-quote--photo {
  position: relative;
  isolation: isolate;
  background: #081c15 url("../products/premium/eneldo-2.jpg") center / cover no-repeat;
  padding: clamp(4.5rem, 12vw, 8rem) 0;
}

.ed-quote--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 21, 0.58);
  z-index: 0;
}

.ed-quote--photo .ed-wrap {
  position: relative;
  z-index: 1;
}

.ed-quote--photo .ed-quote__text {
  color: #fff;
}

.ed-quote--photo .ed-quote__note {
  color: rgba(255, 255, 255, 0.88);
}

/* ——— Story blocks ——— */
.ed-story {
  background: var(--white);
  padding: var(--padding-y) 0;
}

.ed-story--alt {
  background: var(--gray-100);
}

.ed-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ed-story__grid--flip .ed-story__media {
  order: 2;
}

.ed-story__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ed-story__media img,
.ed-story__media .ph {
  width: 100%;
  height: clamp(260px, 36vw, 440px);
  object-fit: cover;
  display: block;
}

.ed-story__media--fit img {
  object-fit: contain;
}

.ed-story__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-deep);
}

.ed-story__text {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.ed-story__text:last-child {
  margin-bottom: 0;
}

.ed-story__highlight {
  margin: 1.5rem 0 0;
  padding: 1.35rem 1.5rem;
  background: var(--green-deep);
  border-left: 4px solid #dc7926;
  border-radius: var(--radius-sm);
}

.ed-story__highlight p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 900px) {
  .ed-story__grid,
  .ed-story__grid--flip {
    grid-template-columns: 1fr;
  }

  .ed-story__grid--flip .ed-story__media {
    order: unset;
  }
}

/* ——— Mosaic ——— */
.ed-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
}

.ed-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ed-mosaic figure:first-child {
  grid-row: 1 / -1;
}

.ed-mosaic img,
.ed-mosaic .ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.ed-mosaic figure:first-child img,
.ed-mosaic figure:first-child .ph {
  min-height: 340px;
}

@media (max-width: 700px) {
  .ed-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .ed-mosaic figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.ed-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ed-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ed-gallery img {
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .ed-gallery {
    grid-template-columns: 1fr;
  }
}

/* ——— Partner ——— */
.ed-partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.ed-partner__logo {
  display: block;
  width: clamp(5.75rem, 14vw, 7.75rem);
  height: auto;
}

.ed-partner__caption {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 36ch;
}

/* ——— Product lookbook ——— */
.ed-lookbook {
  background: #f4eadf;
  padding: var(--padding-y) 0;
}

.ed-lookbook__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
}

.ed-product {
  min-width: 0;
}

.ed-product__name {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-deep);
  text-align: center;
}

.ed-product__text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.ed-lookbook .prod-slider {
  --slide-h: clamp(220px, 22vw, 300px);
}

@media (max-width: 900px) {
  .ed-lookbook__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ed-lookbook__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Slider ——— */
.prod-slider {
  --slide-h: clamp(280px, 38vw, 460px);
  position: relative;
}

.prod-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.prod-slider__track {
  display: flex;
  transition: transform 0.45s ease;
}

.prod-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
}

.prod-slider__slide img,
.prod-slider__slide .ph {
  width: 100%;
  height: var(--slide-h);
  object-fit: cover;
  display: block;
}

.prod-slider__ui {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
}

.prod-slider__btn {
  position: absolute;
  top: calc(var(--slide-h) / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #dc7926;
  font-size: 2.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, opacity 0.2s;
}

.prod-slider__btn[data-prev] {
  left: 0.45rem;
}

.prod-slider__btn[data-next] {
  right: 0.45rem;
}

.prod-slider__btn:hover {
  color: #c56a1f;
}

@media (max-width: 900px) {
  .ed-lookbook .prod-slider__viewport {
    aspect-ratio: 1 / 1;
    background: #fff;
  }

  .ed-lookbook .prod-slider__track,
  .ed-lookbook .prod-slider__slide {
    height: 100%;
  }

  .ed-lookbook .prod-slider__slide img,
  .ed-lookbook .prod-slider__slide .ph {
    height: 100%;
    object-fit: contain;
  }

  .ed-lookbook .prod-slider__btn {
    top: 50%;
  }
}

.prod-slider__dots {
  display: flex;
  gap: 0.45rem;
}

.prod-slider__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 28, 21, 0.22);
  cursor: pointer;
}

.prod-slider__dot.is-active {
  background: #dc7926;
}

.ph {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #f4eadf url("../assets/icons/naranja.svg") center 42% / 72px no-repeat;
  color: var(--green-deep);
}

.ph span {
  padding: 1rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ——— Variety index (microgreens) ——— */
.ed-varieties {
  background: var(--white);
  padding: 0 0 var(--padding-y);
  padding-top: 0.5rem;
}

.ed-varieties__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ed-variety {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f4eadf;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.ed-variety:nth-child(3n + 1) {
  min-height: 320px;
}

.ed-variety img,
.ed-variety .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-variety__tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--green-deep);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-variety figcaption {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(8, 28, 21, 0.72));
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ed-varieties__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ed-varieties__grid {
    grid-template-columns: 1fr;
  }

  .ed-variety,
  .ed-variety:nth-child(3n + 1) {
    min-height: 220px;
  }
}

/* ——— CTA ——— */
.ed-cta {
  background: var(--white);
  padding: var(--padding-y) var(--padding-x);
  text-align: center;
}

.ed-cta__inner {
  position: relative;
  isolation: isolate;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: clamp(3.75rem, 9vw, 6.5rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #081c15 url("../products/premium/espinaca-hojas.jpg") center / cover no-repeat;
}

.ed-cta--flowers .ed-cta__inner {
  background-image: url("../products/edible-flowers/flowers-bg.webp");
}

.ed-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 21, 0.58);
  z-index: 0;
}

.ed-cta__inner > * {
  position: relative;
  z-index: 1;
}

.ed-cta__title {
  margin: 0 auto 1rem;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
}

.ed-cta__text {
  margin: 0 auto 2rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  opacity: 0.9;
}

.ed-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ed-cta .btn--outline {
  color: #fff;
  border-color: #fff;
}

.ed-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 640px) {
  .ed-cta__actions {
    flex-direction: column;
  }

  .ed-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prod-slider__track {
    transition: none;
  }

  .ed-orbit__spin,
  .ed-film__track {
    animation: none;
  }

  .ed-orbit__tag {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  @media (max-width: 640px) {
    .ed-orbit__tag {
      transform: none;
    }
  }
}
