/* WIZO editorial refinement for opted-in Camisa sections.
   Deliberately leaves unrelated pages, checkout and validated text untouched. */

/* Slim editorial information banner, text sourced from YouCan theme settings. */
[ui-section="promotion-banner"].wizo-single-announcement {
  background: #1c2125;
  border: 0;
  color: #fff;
}
[ui-section="promotion-banner"].wizo-single-announcement .wizo-announcement-message {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .065em;
  line-height: 1.45;
}
[ui-section="promotion-banner"].wizo-single-announcement .wizo-announcement-message a {
  color: inherit;
  text-decoration: none;
}
[ui-section="promotion-banner"].wizo-single-announcement .wizo-announcement-message a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero: more editorial proportions, more readable headline, no image swaps. */
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .media {
  height: clamp(380px, 60vh, 680px) !important;
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content {
  box-sizing: border-box;
  padding: clamp(28px, 5.5vw, 84px) !important;
  background: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 62%);
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .head {
  max-width: 570px;
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .head .heading {
  font-size: clamp(28px, 2.8vw, 42px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  font-weight: 500;
  text-wrap: balance;
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .head .description {
  width: auto !important;
  max-width: 42ch;
  font-size: clamp(14px, 1.1vw, 17px) !important;
  line-height: 1.55;
}
[ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .cta {
  margin-block-start: 15px;
  text-underline-offset: 5px;
}

/* Homme/Femme cards: calmer editorial cards, cleaner crop and better visual hierarchy. */
[ui-section="collections"].wizo-editorial-categories {
  gap: 22px;
}
[ui-section="collections"].wizo-editorial-categories .content-area {
  padding-inline-end: 0;
}
[ui-section="collections"].wizo-editorial-categories [ui-slot="head"] .heading {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 500;
  letter-spacing: .012em;
  text-wrap: balance;
}
[ui-section="collections"].wizo-editorial-categories .items-area {
  gap: clamp(12px, 1.1vw, 18px);
}
[ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a {
  display: block;
  text-decoration: none;
}
[ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a .media {
  aspect-ratio: 0.92 / 1 !important;
  border-radius: 6px;
  overflow: hidden;
  background: #ece8e3;
}
[ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease, filter 220ms ease;
}
[ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a .name {
  bottom: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 2px;
  font-size: clamp(11px, .95vw, 14px);
  letter-spacing: .05em;
  line-height: 1.25;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  [ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a:hover .media img {
    transform: scale(1.02);
    filter: brightness(.96);
  }
}

/* Cadeau: balanced image/text, controlled crop and readable copy. */
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area {
  height: auto !important;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr) !important;
  gap: clamp(24px, 4vw, 64px) !important;
  align-items: center;
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="media"] {
  box-sizing: border-box;
  height: clamp(320px, 38vw, 520px) !important;
  overflow: hidden;
  border-radius: 5px;
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="media"] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] {
  min-width: 0;
  gap: clamp(18px, 2vw, 28px) !important;
  padding: clamp(0px, 2vw, 24px);
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] .heading {
  font-size: clamp(24px, 2.2vw, 35px);
  font-weight: 500;
  line-height: 1.2;
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] .description {
  max-width: 46ch;
  font-size: clamp(14px, 1.13vw, 17px);
  line-height: 1.65;
  text-wrap: pretty;
  white-space: pre-line;
}
[ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] .cta {
  text-underline-offset: 5px;
}

/* Smartphone/tablet: keep max two category/brand cards on each row. */
@media (max-width: 980px) {
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] {
    padding: 0 !important;
  }
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="media"] {
    height: auto !important;
    aspect-ratio: 1.5 / 1;
    width: 100%;
  }
}
@media (max-width: 769px) {
  [ui-section="promotion-banner"].wizo-single-announcement .wizo-announcement-message {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: .015em;
  }
  [ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .media {
    height: clamp(420px, 67svh, 620px) !important;
  }
  [ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content {
    padding: 24px !important;
    justify-content: flex-end;
    padding-bottom: 44px !important;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 74%);
  }
  [ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .head .heading {
    font-size: clamp(26px, 6vw, 34px) !important;
    line-height: 1.18 !important;
  }
  [ui-section="slideshow"].wizo-editorial-hero [ui-slot="carousel"] [ui-slot="carousel-item"] .content .head .description {
    font-size: 14px !important;
    max-width: 33ch;
  }
  [ui-section="collections"].wizo-editorial-categories {
    gap: 14px;
  }
  [ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a .media {
    aspect-ratio: 4 / 5 !important;
  }
  [ui-section="collections"].wizo-editorial-categories .items-area [ui-block="collection"] a .name {
    bottom: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: clamp(10px, 2.5vw, 12px);
    line-height: 1.25;
  }
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] .heading {
    font-size: 26px;
  }
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="content"] .description {
    font-size: 15px;
  }
  [ui-section="image-with-text"].wizo-editorial-story .wrapper-area [ui-block="media"] {
    aspect-ratio: 4 / 3;
  }
}
