/* ALVI product card: gallery, model overview and purchase panel. */
.product-page .product-hero__grid {
  --card-gap: clamp(24px, 1.6vw, 32px);
  --card-line: #dce5f2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, .62fr);
  grid-template-rows: auto;
  grid-template-areas: none;
  align-items: start;
  gap: var(--card-gap);
  width: 100%;
  margin: 0 auto;
  padding: 32px clamp(24px, 2.4vw, 40px) 40px;
}
.product-card-content { display: contents; }
.product-card-overview { grid-column: 2; grid-row: 1; display: grid; gap: 20px; align-content: start; min-width: 0; }
.product-page .product-hero__gallery {
  grid-area: auto;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  border: 0;
  padding: 0;
  min-width: 0;
  min-height: clamp(380px, 27vw, 500px);
  align-self: stretch;
}
/* Keep long thumbnail lists scrollable without letting them size the hero. */
.product-page .product-hero__thumbs { position: absolute; inset: 0 auto 0 0; width: 64px; height: 100%; min-height: 0; padding: 0; gap: 10px; border: 0; max-height: none; flex-direction: column; }
.product-page .product-hero__thumb { width: 64px; height: 64px; border-color: #e5ebf4; background: #f7f9fc; }
.product-page .product-hero__thumb.is-active { border-color: #4a73b8; }
.product-page .product-hero__thumb img { object-fit: contain; }
.product-page .product-hero__media { grid-column: 2; grid-row: 1; position: relative; top: auto; aspect-ratio: auto; height: 100%; width: 100%; min-width: 0; min-height: 0; background: #fff; border: 1px solid #e5ebf4; }
.product-page .product-hero__media-fallback,
.product-page .product-hero__main-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: 100%; padding: 12px; object-fit: contain; }
.product-page .product-hero__main-photo[hidden] { display: none; }
.product-page .product-hero__video-container { inset: 0; width: 100%; height: 100%; scale: 1 !important; }
.product-page .product-hero__video { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.product-page .product-hero__gallery > .product-list-actions--product { top: 12px; right: 12px; }
.product-card-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; background: #fff; color: #466bb0; border: 1px solid #e1e8f2; pointer-events: none; }
.product-card-zoom svg { width: 20px; height: 20px; }
.product-page .product-hero__summary { grid-area: auto; padding: 0; gap: 12px; min-width: 0; }
.product-page .product-hero__title { margin: 0; font-size: clamp(26px, 1.65vw, 32px); line-height: 1.25; font-weight: 400; color: #1c2b73; letter-spacing: -.02em; overflow-wrap: anywhere; }
.product-page .product-hero__rating { margin: 0; flex-wrap: wrap; row-gap: 2px; line-height: 1.5; }
.product-page .product-hero__rating a { margin: 0; font-size: 12px; }
.product-page .product-hero__meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; }
.product-page .product-hero__breadcrumbs { flex: 1; }
.product-page .product-hero__meta > .product-hero__stock { position: static; flex: 0 0 auto; align-self: center; margin-left: auto; white-space: nowrap; max-width: 100%; font-size: 11px; letter-spacing: normal; }
.product-card-intro { margin: 0; color: #536784; font-size: 16px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.product-card-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.product-card-highlight { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 96px; padding: 18px 16px; background: #f7f9fc; min-width: 0; }
.product-card-highlight--text-only { grid-template-columns: minmax(0, 1fr); }
.product-card-highlight > div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.product-card-highlight dt { order: 2; margin: 0; color: #60718b; font-size: 12px; line-height: 1.45; font-weight: 300; overflow-wrap: anywhere; }
.product-card-highlight dd { order: 1; margin: 0; color: #1c2b73; font-size: 19px; line-height: 1.3; font-weight: 400; overflow-wrap: anywhere; }
.product-card-highlight__image { display: flex; align-items: center; }
.product-card-highlight__image img { width: 50px; height: 50px; object-fit: contain; }
.product-page .product-hero__details { grid-area: auto; grid-column: 3; grid-row: 1; min-width: 0; padding: 0 0 0 24px; gap: 24px; border-left: 1px solid var(--card-line); height: 100%; }
.product-page .product-hero__price { color: #1c2b73; font-size: clamp(30px, 2vw, 40px); font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.product-page .product-hero__price--old { font-size: 19px!important; color: #8c9ab0; font-weight: 300; }
.product-page .product-hero__cashback { top: 0; font-size: 11px; line-height: 1.4; }
.product-page .product-additional-info { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.product-page .product-hero__actions,
.product-page .product-hero__actions--credit { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.product-page .product-hero__btn--icon { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; min-width: 0; }
.product-page .product-hero__btn--icon::before { display: none; }
.product-page .product-hero__btn--icon > svg { position: static; width: 21px; height: 21px; margin: 0; flex-shrink: 0; }
.product-page .product-hero__btn--icon > span { width: auto; min-width: 0; padding: 0; text-align: center; overflow-wrap: anywhere; }
.product-page .product-hero__btn { min-height: 56px; font-size: 14px; font-weight: 400; letter-spacing: .01em; }
.product-page .product-hero__extra-actions { gap: 10px; margin-top: 10px; padding: 0; border: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-page .product-hero__extra-actions .product-hero__btn { min-height: 52px; padding: 10px 8px; font-size: 11px; gap: 7px; }
@media (min-width: 901px) {
  .product-page .product-hero__grid.product-hero__grid--simple { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto; }
  .product-hero__grid--simple .product-card-content { grid-column: 2; grid-row: 1; display: grid; gap: 20px; min-width: 0; }
  .product-hero__grid--simple .product-card-overview { grid-column: auto; grid-row: auto; }
  .product-page .product-hero__grid--simple .product-hero__gallery { height: clamp(340px, 30vw, 460px); min-height: 0; align-self: start; }
  .product-page .product-hero__grid--simple .product-hero__details { grid-column: auto; grid-row: auto; height: auto; border: 0; padding: 0; gap: 16px; }
  .product-hero__grid--simple .product-hero__purchase { width: 100%; max-width: 440px; }
}
@media (max-width: 1279px) and (min-width: 901px) {
  .product-page .product-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 24px; }
  .product-page .product-hero__gallery { min-height: 360px; }
  .product-page .product-hero__details { grid-column: 2; grid-row: 2; border-left: 0; padding: 0; }
  .product-hero__grid:not(.product-hero__grid--simple) .product-card-overview { display: contents; }
  .product-page .product-hero__grid:not(.product-hero__grid--simple) .product-hero__summary { grid-column: 1 / -1; grid-row: auto; order: 1; }
  .product-page .product-hero__grid:not(.product-hero__grid--simple) .product-hero__gallery { grid-row: auto; order: 2; }
  .product-page .product-hero__grid:not(.product-hero__grid--simple) .product-hero__details { grid-row: auto; order: 3; }
  .product-hero__grid:not(.product-hero__grid--simple) .product-card-intro { grid-column: 1 / -1; order: 4; }
  .product-hero__grid:not(.product-hero__grid--simple) .product-card-highlights { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 5; }
  .product-page .product-hero__extra-actions .product-hero__btn { font-size: 12px; }
}
@media (max-width: 900px) {
  .product-page .product-hero__meta { display: flex !important; align-items: center; padding: 10px 20px; gap: 12px; }
  .product-page .product-hero__grid { display: flex; flex-direction: column; gap: 24px; padding: 24px 20px 32px; }
  .product-card-content, .product-card-overview { display: contents; }
  .product-page .product-hero__summary { order: 1; width: 100%; gap: 12px; }
  .product-page .product-hero__gallery { order: 2; width: 100%; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .product-page .product-hero__media { order: 1; flex: none; height: auto; aspect-ratio: 1; max-height: 560px; }
  .product-page .product-hero__video { object-fit: contain; }
  .product-page .product-hero__thumbs { position: static; order: 2; flex-direction: row; height: auto; max-height: none; width: 100%; gap: 8px; padding: 0; overflow-x: auto; }
  .product-page .product-hero__thumb { width: 60px; height: 60px; }
  .product-page .product-hero__details { order: 3; width: 100%; padding: 0; border: 0; gap: 20px; }
  .product-card-intro { order: 4; width: 100%; font-size: 15px; }
  .product-card-highlights { order: 5; width: 100%; }
  .product-page .product-hero__title { font-size: 27px; }
  .product-page .product-hero__price { font-size: 32px; }
  .product-page .product-hero__extra-actions .product-hero__btn { font-size: 12px; }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .product-page .product-hero__meta { display: flex !important; align-items: center; padding: 10px 24px; }
}
@media (max-width: 380px) {
  .product-page .product-hero__grid { padding-inline: 16px; }
  .product-page .product-hero__title { font-size: 24px; }
  .product-card-highlights { grid-template-columns: 1fr; }
  .product-card-highlight { padding: 14px; }
}
@media (min-width: 381px) and (max-width: 600px) {
  .product-card-highlight { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 16px; }
  .product-card-highlight dd { font-size: 17px; }
  .product-card-highlight__image img { width: 26px; height: 26px; }
}
