/* =========================================================================
   Product page (Figma "Alto Super - Detail produit", 1139:6608)
   ========================================================================= */
.product__intro { padding-block: 64px 0; background: #fff; }
.product__identity {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 100px;
  align-items: center;
}
.product__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 430 / 246;
  padding: 24px;
  border-radius: var(--r-xl);
  background: #f7f9fb;
  border-radius: 28px;
  border: 1px solid rgba(115, 115, 115, 0.22);

}
/* Brand logos ship on a white background; multiply drops it into the panel. */
.product__visual img,
.product-card__visual img { width: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__chip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #EBFAF0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #737373;
}
.product__name { margin: 0 0 14px; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 600; }
.product__tagline { margin: 0 0 18px; font-size: 0.94rem; color: var(--syn-gray-500); }
.product__summary { font-size: 1.0625rem; line-height: 1.65; color: #575E52; }

.product__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.product__fact {
 
  padding: 24px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fbfcfd;
}
.product__fact--wide { flex: 1; }
.product__fact-label {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--syn-orange);
}
.product__fact--wide .product__fact-label { text-transform: none; }
/* A composition is entered one active ingredient per line. */
.product__fact-value { margin: 0; white-space: pre-line; font-size: 0.94rem; line-height: 1.6; color: var(--syn-ink); }

.product__main { padding-block: 78px 96px; background: #fff; }
.product__columns {
  display: grid;
  grid-template-columns: minmax(0, 753px) minmax(0, 388px);
  justify-content: space-between;
  gap: 60px;
  align-items: start;
}
.product__content { display: flex; flex-direction: column; gap: 64px; }

/* Framed blocks: technical notes and storage. */
.product__card {
  padding: 56px;
  border: 1px solid #d8ead9;
  border-radius: 20px;
  background: #f4fbf5;
}
.product__card h2,
.product__section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--syn-ink);
}
.product__card p,
.product__section p { margin: 0 0 18px; font-size: 0.94rem; line-height: 1.75; color: var(--syn-gray-500); }
.product__card p:last-child,
.product__section p:last-child { margin-bottom: 0; }
.product__section { padding-bottom: 64px; border-bottom: 1px solid var(--syn-border); }

.product__table-title {
  margin: 0 0 29px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 18px;
  color: var(--syn-orange);
}
/* Only the field wrappers collapse; the rows keep their own grid. */
.product__table > div:not(.product__row),
.product__table > div > div:not(.product__row) { display: contents; }
.product__row {
  display: grid;
  grid-template-columns: 172px 229px 181px minmax(0, 1fr);
  align-items: center;
  min-height: 69px;
  padding: 12px 28px;
  background: rgba(229, 229, 229, 0.35);
}
/* The rows sit in one wrapper per item, so the banding counts those. */
.product__table > div > div:nth-child(odd) .product__row {
  background: #fff;
  border: 1px solid rgba(115, 115, 115, 0.14);
}
.product__table--packaging .product__row { grid-template-columns: 497px minmax(0, 1fr); padding-inline: 54px; }
.product__row--head span,
.product__cell { font-size: 1.125rem; line-height: 25px; color: #737373; }
.product__row--head span:first-child,
.product__cell--key { font-weight: 500; color: var(--syn-green-500) ; }
.product__cell--key .field,
.product__cell--key a { color: inherit; }

/* Sticky brand panel. */
.product__aside {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--syn-border);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.product__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-md);
  background: #f3fbf5;
}
.product__brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--syn-orange);
}
.product__brand-chip {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: #fff;
  letter-spacing: 0.02em;
  color: var(--syn-green-500);
}
.product__brand-name { margin: 0; }
.product__brand-name img { width: auto; max-height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.product__brand-name--text {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 38px;
  color: #2b3024;
}
.product__brand-text { margin: 0; font-size: 0.8125rem; line-height: 18px; color: #737373; }

.product__meta { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; }
.product__meta-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: #eaf6ec var(--icon-calendar) center / 20px no-repeat;
}
.product__meta-label { margin: 0; font-size: 0.75rem; color: var(--syn-gray-500); }
.product__meta-value { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--syn-ink); }
.product__docs-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--syn-gray-500);
}
.product__docs-count::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--syn-green-500);
}
.product__docs-action { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--syn-border); }
.product__docs-list { margin: 0 0 16px; font-size: 0.8125rem; color: var(--syn-gray-500); }
.product__docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--syn-orange);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
}
.product__docs-cta:hover { text-decoration: none; background: var(--syn-orange-600); }
.product__docs-cta span {
  width: 20px; height: 20px;
  background: #fff;
  -webkit-mask: var(--icon-download) center / contain no-repeat;
  mask: var(--icon-download) center / contain no-repeat;
}

/* Downloads band. */
.product__downloads {
  padding: 94px 0 104px;
  border-radius: var(--r-band) var(--r-band) 0 0;
  background: #f4f7f9;
  text-align: center;
}
.product__downloads .eyebrow { margin-bottom: 10px; font-size: 0.8125rem; }
.product__downloads-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--syn-ink);
}
.product__downloads-text { margin: 0 0 42px; color: var(--syn-gray-500); }
.product__downloads-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 315px;
  padding: 24px;
  border-radius: var(--r-md);
  background: #fff;
  text-align: start;
  box-shadow: var(--shadow-card);
}
.download-card:hover { text-decoration: none; box-shadow: var(--shadow-soft); }
.download-card__type {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #EBFAF0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #007329;
}
.download-card__title { font-size: 1.125rem; font-weight: 700; color: var(--syn-ink); }
.download-card__size { font-size: 0.875rem; color: var(--syn-gray-500); }
.download-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #007a2f;
}
.download-card__icon {
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-download) center / contain no-repeat;
  mask: var(--icon-download) center / contain no-repeat;
}

/* Related products. */
.product__related { padding-block: 92px 112px; background: #fff; }
.product__related-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--syn-ink);
}
.product__related-text { margin: 0 0 42px; color: var(--syn-gray-500); }
.product__related-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; }

/* Figma Component 81 (496:3703): a leaf-shaped visual at rest; on hover a
   green bar appears on top, the corners round off and the arrow fills in. */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(115, 115, 115, 0.25);
  border-radius: 24px;
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.product-card:hover,
.product-card:focus-within {
  box-shadow: inset 0 4px 0 var(--syn-green-500), 0 4px 13.2px rgba(0, 0, 0, 0.12);
}
.product-card__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 339 / 254;
  padding: 24px;
  border: 1px solid rgba(115, 115, 115, 0.35);
  /* 110px on the design's 339 x 254 box, in proportion (narrower cards). */
  border-radius: 0 32% 0 32% / 0 43% 0 43%;
  background: #f9fafb;
  transition: border-radius 0.3s ease;
}
.product-card:hover .product-card__visual,
.product-card:focus-within .product-card__visual { border-radius: 25px; }
.product-card__visual img { width: auto; max-height: 100%; object-fit: contain; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px 0 0; }
.product-card__title { margin: 0 0 14px; font-family: var(--font-body); font-size: 1.375rem; font-weight: 600; }
.product-card__title a { color: #2b3024; transition: color 0.2s ease; }
.product-card:hover .product-card__title a,
.product-card:focus-within .product-card__title a { color: #284a00; }
.product-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 0.99rem;
  line-height: 23px;
  color: #737373;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--syn-green-500);
}
.product-card__link:hover { text-decoration: none; }
.product-card__arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(39, 111, 124, 0.1) var(--icon-arrow-green) center / 16px no-repeat;
  transition: background-color 0.2s ease;
}
.product-card:hover .product-card__arrow,
.product-card:focus-within .product-card__arrow {
  background-color: var(--syn-green-500);
  background-image: var(--icon-arrow-white);
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__visual,
  .product-card__arrow,
  .product-card__title a { transition: none; }
}

@media (max-width: 1024px) {
  /* Recette: visual and identity side by side, three related products. */
  .product__identity { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
  .product__columns { grid-template-columns: minmax(0, 1fr); }
  .product__aside { position: static; }
  .product__related-items { gap: 20px; }
}
@media (max-width: 720px) {
  .product__intro { padding-top: 40px; }
  .product__facts { margin-top: 32px; }
  .product__fact { flex: 1 1 100%; padding: 18px; }
  .product__main { padding-block: 48px 64px; }
  .product__content { gap: 40px; }
  .product__card { padding: 28px 22px; }
  .product__section { padding-bottom: 40px; }
  /* Tables scroll sideways rather than squeezing their columns. */
  .product__table { overflow-x: auto; }
  .product__row { grid-template-columns: repeat(4, minmax(110px, 1fr)); padding: 16px 18px; }
  .product__table--packaging .product__row { grid-template-columns: repeat(2, minmax(110px, 1fr)); padding-inline: 18px; }
  .product__downloads { padding: 56px 0 64px; }
  .download-card { width: 100%; }
  .product__related { padding-block: 56px 72px; }
  .product__identity { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product__related-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 400px) {
  .product__related-items { grid-template-columns: minmax(0, 1fr); }
}
