/* Shop20 local candidate. Full product/category presentation only.
   Existing content, eligibility, links, native controls and handlers are retained.
   No placement is created here: active templates/JS and CleanJet DOM are still required. */

body#product .product__container {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: .5rem 1.5rem;
}
body#product .product__container > .product__left { min-width: 0; }
body#product .product__container > .product__left .product__carousel {
  border-color: #dce7ed;
  border-radius: .75rem;
  background: #f5f8fa;
  box-shadow: none;
}
body#product .product__container > .product__left .product__carousel .product__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(15rem, 32vw, 24rem);
  object-fit: contain;
}
body#product .product__container > .product__right .product__name {
  max-width: 32ch;
  margin-block: 0 .625rem;
  color: #143c50;
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body#product .product__container .lusa-product-overview {
  margin-top: 1.25rem;
  padding-top: 1rem;
}
body#product .product__container .product__description-short {
  max-width: 68ch;
  font-size: .9375rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body#product .product__bottom { gap: 1rem; margin-top: 1.25rem; }
body#product .product__bottom .product__accordion { padding-inline: 1rem; }
body#product .product__bottom .accordion-button {
  min-height: 3rem;
  padding-block: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}
body#product .product__bottom .accordion-body {
  padding-bottom: 1rem;
  font-size: .9375rem;
  line-height: 1.6;
}
body#product .product__bottom .details__list {
  min-width: 0;
  background: #f5f8fa;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}
body#product .product__bottom .details__list > :is(dt, dd) {
  min-width: 0;
  padding: .625rem .75rem;
  overflow-wrap: anywhere;
}
body#product .product__bottom .details__list dt { color: #526978; font-size: .875rem; }
body#product .product__bottom .details__list dd { color: #143c50; font-size: .9375rem; }

/* Advice and existing HACCP card share the page's type, spacing and palette.
   Actual adjacency/insertion must be established from active templates/JS. */
body#product .lusa-product-advice {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #dce7ed;
  border-left: .1875rem solid #e2c275;
  border-radius: .75rem;
  color: #143c50;
  background: #f5f8fa;
  font-size: .9375rem;
  line-height: 1.6;
  overflow: visible;
  overflow-wrap: anywhere;
}
body#product .lusa-haccp-nudge.lusa-haccp-nudge--product {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: .625rem;
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid rgb(226 194 117 / 48%);
  border-radius: .75rem;
  color: #e8eef9;
  background: linear-gradient(112deg, #08152d, #123b62);
  box-shadow: none;
  grid-template-areas: "badge" "copy" "action";
  grid-template-columns: minmax(0, 1fr);
}
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__badge { justify-self: start; }
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__action { justify-self: start; }

body#category .lusa-category-intro h2 {
  margin-bottom: .625rem;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.3;
}
body#category .category__description { max-width: 76ch; overflow-wrap: anywhere; }
body#category .lusa-category-banner { margin-block: 1rem; border-radius: .75rem; }

/* Only the existing listing nudge is styled. No category ID or eligibility is inferred.
   Five important declarations are bounded to geo's already-important properties. */
body#category .lusa-haccp-nudge.lusa-haccp-nudge--listing:not(.lusa-haccp-nudge--product) {
  min-width: 0;
  min-height: 0;
  gap: .75rem 1rem !important;
  margin-block: 1rem;
  padding: 1rem !important;
  border-color: rgb(226 194 117 / 48%);
  border-radius: .75rem !important;
  color: #e8eef9;
  background: linear-gradient(112deg, #08152d, #123b62);
  box-shadow: none;
}
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__title { font-size: 1rem !important; }
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__text { font-size: .875rem !important; }

body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__copy,
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__copy { min-width: 0; }
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__title,
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__title {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__text,
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__text {
  display: block;
  max-width: 68ch;
  margin: 0;
  color: #d5e0ee;
  font-size: .875rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__badge,
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__badge {
  max-width: 100%;
  font-size: .75rem;
  line-height: 1.4;
  white-space: normal;
}
body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__action,
body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__action {
  min-height: 2.75rem;
  max-width: 100%;
  padding: .625rem .875rem;
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  transition: background-color 160ms ease;
}
body#product .lusa-product-advice a:focus-visible,
body#product .lusa-haccp-nudge--product a:focus-visible,
body#category .lusa-haccp-nudge--listing a:focus-visible {
  outline: 3px solid #e2c275;
  outline-offset: 3px;
}
body#product .product__bottom .accordion-button:focus-visible {
  outline: 3px solid #064e71;
  outline-offset: -3px;
}

@media (max-width: 61.999rem) {
  body#product .product__container { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 47.999rem) {
  body#product .product__container { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  body#product .product__container > .product__left { width: min(100%, 22rem); }
  body#product .product__container > .product__left .product__carousel .product__image { height: 15rem; }
  body#category .lusa-haccp-nudge.lusa-haccp-nudge--listing {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
  body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__action { width: 100%; grid-column: 1; }
}
@media (max-width: 35.999rem) {
  body#product .product__bottom .details__list { grid-template-columns: minmax(0, 1fr); }
  body#product .product__bottom .details__list dt { padding-bottom: .25rem; border-bottom: 0; }
  body#product .product__bottom .details__list dd { padding-top: .25rem; }
  body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__action { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  body#product .lusa-haccp-nudge--product .lusa-haccp-nudge__action,
  body#category .lusa-haccp-nudge--listing .lusa-haccp-nudge__action,
  body#product .product__bottom .accordion-collapse { transition: none; }
}
/* Shop20r4: the site's quiet circular geometry on presentation surfaces.
   Advice reuses geo's existing ::after; no native pseudo is replaced. */
body#product .product__container > .product__left .product__carousel,
body#product .lusa-product-advice,
body#product .lusa-haccp-nudge--product,
body#category .lusa-haccp-nudge--listing { position: relative; isolation: isolate; }
body#product .product__container > .product__left .product__carousel::before,
body#product .product__container > .product__left .product__carousel::after,
body#product .lusa-haccp-nudge--product::before,
body#product .lusa-haccp-nudge--product::after,
body#category .lusa-haccp-nudge--listing::before,
body#category .lusa-haccp-nudge--listing::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  aspect-ratio: 1;
  border: 1px solid rgb(6 78 113 / 22%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
body#product .product__container > .product__left .product__carousel::before {
  width: min(100%, clamp(8rem, 18vw, 14rem));
  top: 0; right: 0;
}
body#product .product__container > .product__left .product__carousel::after {
  width: min(calc(100% - 1rem), clamp(6rem, 12vw, 10rem));
  top: 1rem; right: 1rem;
}
/* Bound the already-native advice ring, retaining its currentColor12% identity. */
body#product .lusa-product-advice::after {
  width: min(150px, 100%);
  max-height: 100%;
  height: auto;
  aspect-ratio: 1;
  right: 0; top: 0;
  border: 1px solid currentColor;
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
body#product .lusa-haccp-nudge--product::before,
body#category .lusa-haccp-nudge--listing::before {
  width: min(150px, 100%);
  max-height: 100%;
  right: 0; top: 0;
  border-color: rgb(155 201 222 / 20%);
}
body#product .lusa-haccp-nudge--product::after,
body#category .lusa-haccp-nudge--listing::after {
  width: min(110px, calc(100% - 2rem));
  max-height: 100%;
  right: 2rem; top: 1rem;
  border-color: rgb(155 201 222 / 14%);
}

/* Shop24: paired rings are grouped in the upper-right presentation corner.
   Keep text, native actions, eligibility and focus rules unchanged. */

/* Shop25: the native filter title's negative inline margins extend 4px
   beyond the mobile category viewport. Retain vertical rhythm and padding. */
@media (max-width: 47.999rem) {
  body#category.page-category .left-block__title {
    margin-inline: 0;
  }
}

/* Shop26: reserve a decorative header gutter outside the opaque product image.
   Keep the image, its label and thumbnail controls untouched. */
body#product .product__container > .product__left .product__carousel {
  padding-top: 3rem;
  height: auto;
  aspect-ratio: auto;
}
body#product .product__container > .product__left .product__carousel::before {
  width: 2.5rem;
  top: .25rem;
  right: .5rem;
}
body#product .product__container > .product__left .product__carousel::after {
  width: 1.75rem;
  top: .75rem;
  right: 1.5rem;
}

/* Category30: normalize the observed legacy inline description only.
   Important declarations are limited to properties set inline on these nodes. */
body#category .category__description.rich-text h2.title01 {
  color: #143c50 !important;
  font-family: inherit !important;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem) !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  text-align: start !important;
}
body#category .category__description.rich-text p.description {
  color: #526271 !important;
  font-family: inherit !important;
  font-size: .9375rem !important;
  line-height: 1.65 !important;
  text-align: start !important;
}

/* Shop35: let the mobile listing nudge keep its intrinsic height in the product grid. */
@media (max-width: 47.999rem) {
  body#category .lusa-haccp-nudge.lusa-haccp-nudge--listing:not(.lusa-haccp-nudge--product) {
    align-self: start;
  }
}
