/**
 * YOKO Kids v3.3.4 — seasonal collection icon, card and mobile copy fixes.
 */

/* =========================================================
   1. Seasonal icon scale and card rhythm
   ========================================================= */
body.yoko-native-template .yoko-seasonal-page :where(
  .yoko-seasonal-hero-feature,
  .yoko-seasonal-trust-item,
  .yoko-seasonal-service-item,
  .yoko-seasonal-category-card,
  .yoko-seasonal-product-info
) {
  box-sizing: border-box;
}

/* Keep a minimum 15px breathing room inside every seasonal card. */
body.yoko-native-template .yoko-seasonal-hero-feature { padding: 15px; }
body.yoko-native-template .yoko-seasonal-trust-item { padding: 30px 15px; }
body.yoko-native-template .yoko-seasonal-service-item { padding: 15px; }
body.yoko-native-template .yoko-seasonal-category-card { padding: 15px; }
body.yoko-native-template .yoko-seasonal-product-info { padding: 15px; }

/* One consistent visual size per icon family on desktop. */
body.yoko-native-template .yoko-seasonal-hero-feature :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
  width: 52px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: contain;
}
body.yoko-native-template .yoko-seasonal-icon-wrap :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  object-fit: contain;
}
body.yoko-native-template .yoko-seasonal-service-icon {
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: visible;
}
body.yoko-native-template .yoko-seasonal-service-icon :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
  width: 56px !important;
  height: 56px !important;
  max-width: none !important;
  object-fit: contain;
}

/* “Khám phá BST” icons are intentionally larger on desktop. */
body.yoko-native-template .yoko-seasonal-category-image :where(img.yoko-icon, svg.yoko-icon, .yoko-seasonal-category-fallback) {
  width: 80px !important;
  height: 80px !important;
  max-width: none !important;
  padding: 0 !important;
  object-fit: contain;
}

/* The truck artwork is wide, so compensate its transparent/landscape canvas. */
body.yoko-native-template .yoko-seasonal-page img.yoko-icon[data-yoko-icon*="giao-hang"],
body.yoko-native-template .yoko-seasonal-page img.yoko-icon[data-yoko-icon*="shipping"] {
  transform: scale(1.28);
  transform-origin: center;
}
body.yoko-native-template .yoko-seasonal-trust-item,
body.yoko-native-template .yoko-seasonal-icon-wrap,
body.yoko-native-template .yoko-seasonal-service-item {
  overflow: visible;
}

/* Remove only the decorative icon attached to the “Khám phá BST” heading. */
body.yoko-native-template .yoko-seasonal-categories .yoko-seasonal-section-heading .heading-icon {
  display: none !important;
}

/* =========================================================
   2. Styling cards: readable white copy and safe padding
   ========================================================= */
body.yoko-native-template .yoko-seasonal-styling-card {
  isolation: isolate;
}
body.yoko-native-template .yoko-seasonal-card-shade {
  z-index: 1;
  background: linear-gradient(180deg, transparent 34%, rgba(15,13,20,.16) 55%, rgba(15,13,20,.82) 100%);
}
body.yoko-native-template .yoko-seasonal-styling-copy {
  z-index: 2;
  inset: auto 15px 15px;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  color: #fff !important;
}
body.yoko-native-template .yoko-seasonal-styling-copy :where(strong, small) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
}
body.yoko-native-template .yoko-seasonal-styling-copy strong {
  display: block;
  line-height: 1.25;
}
body.yoko-native-template .yoko-seasonal-styling-copy small {
  display: block;
  margin: 0;
  opacity: 1;
  font-size: 15px;
  line-height: 1.45;
}

/* =========================================================
   3. Newsletter/registration point icons
   ========================================================= */
body.yoko-native-template .yoko-seasonal-newsletter-points {
  align-items: start;
}
body.yoko-native-template .yoko-seasonal-newsletter-points > span {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1.45;
}
body.yoko-native-template .yoko-seasonal-newsletter-points :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
  width: 45px !important;
  height: 45px !important;
  max-width: none !important;
  object-fit: contain;
}

/* =========================================================
   4. Mobile seasonal layout
   ========================================================= */
@media (max-width: 767px) {
  body.yoko-native-template .yoko-seasonal-hero-feature { padding: 12px 8px; }
  body.yoko-native-template .yoko-seasonal-trust-item { padding: 24px 15px; }
  body.yoko-native-template .yoko-seasonal-service-item { padding: 15px; }
  body.yoko-native-template .yoko-seasonal-category-card { padding: 10px 8px; }
  body.yoko-native-template .yoko-seasonal-product-info { padding: 12px 10px 14px; }

  body.yoko-native-template .yoko-seasonal-hero-feature :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
    width: 38px !important;
    height: 38px !important;
  }
  body.yoko-native-template .yoko-seasonal-icon-wrap :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
    width: 54px !important;
    height: 54px !important;
  }
  body.yoko-native-template .yoko-seasonal-service-icon {
    flex-basis: 45px;
    width: 45px;
    min-width: 45px;
    height: 45px;
  }
  body.yoko-native-template .yoko-seasonal-service-icon :where(img.yoko-icon, svg.yoko-icon, svg.yoko-seasonal-icon) {
    width: 45px !important;
    height: 45px !important;
  }
  body.yoko-native-template .yoko-seasonal-category-image :where(img.yoko-icon, svg.yoko-icon, .yoko-seasonal-category-fallback) {
    width: 58px !important;
    height: 58px !important;
  }

  /* Give the styling copy a safe lower inset so the subtitle is never clipped. */
  body.yoko-native-template .yoko-seasonal-styling-card {
    flex-basis: 84%;
    min-height: clamp(500px, 128vw, 620px);
  }
  body.yoko-native-template .yoko-seasonal-styling-copy {
    inset: auto 14px 28px;
    padding: 15px;
  }
  body.yoko-native-template .yoko-seasonal-styling-copy strong {
    font-size: 22px;
  }
  body.yoko-native-template .yoko-seasonal-styling-copy small {
    font-size: 15px;
    line-height: 1.5;
  }

  body.yoko-native-template .yoko-seasonal-newsletter-points {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
  body.yoko-native-template .yoko-seasonal-newsletter-points > span {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  body.yoko-native-template .yoko-seasonal-newsletter-points {
    grid-template-columns: 1fr;
  }
}
