/* ==========================================================================
   YT Digital Power — Shared components
   Buttons, links, marks, tabs, accordion, pagination, breadcrumbs, forms,
   product cards, CTA band and shared news/toolbar pieces.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--yt-btn-h);
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: var(--yt-radius);
  background: transparent;
  color: var(--yt-ink);
  font-family: inherit;
  font-size: var(--yt-fs-14);
  font-weight: var(--yt-fw-regular);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition:
    background-color var(--yt-dur-fast) var(--yt-ease),
    border-color var(--yt-dur-fast) var(--yt-ease),
    color var(--yt-dur-fast) var(--yt-ease),
    opacity var(--yt-dur-fast) var(--yt-ease);
}

.yt-btn:hover {
  color: var(--yt-red);
  border-color: var(--yt-red);
}

.yt-btn:active {
  transform: translateY(1px);
}

.yt-btn svg,
.yt-btn .yt-icon {
  width: 16px;
  height: 16px;
}

.yt-btn--primary {
  border-color: var(--yt-red);
  background: var(--yt-red);
  color: var(--yt-white);
}

.yt-btn--primary:hover {
  border-color: var(--yt-red-dark);
  background: var(--yt-red-dark);
  color: var(--yt-white);
}

.yt-btn--light {
  border-color: var(--yt-white);
  background: var(--yt-white);
  color: var(--yt-black);
}

.yt-btn--light:hover {
  border-color: var(--yt-bg-soft);
  background: var(--yt-bg-soft);
  color: var(--yt-black);
}

.yt-btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--yt-ink);
}

.yt-btn--ghost:hover {
  border-color: var(--yt-red);
  background: transparent;
  color: var(--yt-red);
}

.yt-btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--yt-white);
}

.yt-btn--ghost-light:hover {
  border-color: var(--yt-white);
  background: var(--yt-white);
  color: var(--yt-black);
}

.yt-btn--sm {
  height: 32px;
  padding: 0 16px;
  font-size: var(--yt-fs-13);
}

.yt-btn--block {
  display: flex;
  width: 100%;
}

.yt-btn[disabled],
.yt-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Links, icons and arrows
   -------------------------------------------------------------------------- */
.yt-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-link:hover {
  color: var(--yt-red);
}

.yt-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  text-decoration: none;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-link-arrow:hover {
  color: var(--yt-red);
}

.yt-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-link-arrow:hover .yt-arrow,
.yt-link-arrow:focus-visible .yt-arrow {
  transform: translateX(4px);
}

.yt-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.yt-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-icon-btn:hover {
  color: var(--yt-red);
}

.yt-icon-btn .yt-icon {
  width: 20px;
  height: 20px;
}

.yt-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--yt-ink);
  cursor: pointer;
  transition:
    color var(--yt-dur-fast) var(--yt-ease),
    border-color var(--yt-dur-fast) var(--yt-ease),
    background-color var(--yt-dur-fast) var(--yt-ease),
    opacity var(--yt-dur-fast) var(--yt-ease);
}

.yt-arrow-btn:hover {
  border-color: var(--yt-red);
  background: transparent;
  color: var(--yt-red);
}

.yt-arrow-btn[disabled],
.yt-arrow-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.yt-arrow-btn .yt-icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Marks
   -------------------------------------------------------------------------- */
.yt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: var(--yt-radius);
  background: var(--yt-red);
  color: var(--yt-white);
  font-size: var(--yt-fs-12);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-16);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.yt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: var(--yt-radius);
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--yt-dur-fast) var(--yt-ease),
    color var(--yt-dur-fast) var(--yt-ease),
    border-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-chip:hover {
  border-color: var(--yt-red);
  color: var(--yt-red);
}

.yt-chip.is-active,
.yt-chip[aria-current="true"],
.yt-chip[aria-pressed="true"] {
  border-color: var(--yt-red);
  background: var(--yt-red);
  color: var(--yt-white);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.yt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-bottom: 1px solid var(--yt-line);
}

.yt-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--yt-gray-60);
  font-family: inherit;
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-regular);
  line-height: var(--yt-lh-24);
  cursor: pointer;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--yt-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-tab:hover {
  color: var(--yt-ink);
}

.yt-tab.is-active,
.yt-tab[aria-selected="true"] {
  color: var(--yt-red);
  font-weight: var(--yt-fw-bold);
}

.yt-tab.is-active::after,
.yt-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Carousel dots
   -------------------------------------------------------------------------- */
.yt-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.yt-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition:
    width var(--yt-dur-fast) var(--yt-ease),
    background-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-dot:hover {
  background: var(--yt-red);
}

.yt-dot.is-active,
.yt-dot[aria-current="true"],
.yt-dot[aria-selected="true"] {
  width: 18px;
  border-radius: 0;
  background: var(--yt-red);
}

.yt-dots--light .yt-dot {
  background: rgba(255, 255, 255, 0.42);
}

.yt-dots--light .yt-dot:hover,
.yt-dots--light .yt-dot.is-active,
.yt-dots--light .yt-dot[aria-current="true"],
.yt-dots--light .yt-dot[aria-selected="true"] {
  background: var(--yt-white);
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.yt-accordion {
  border-top: 1px solid var(--yt-line);
}

.yt-accordion__item {
  border-bottom: 1px solid var(--yt-line);
}

.yt-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--yt-ink);
  font-family: inherit;
  font-size: var(--yt-fs-18);
  font-weight: var(--yt-fw-bold);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-accordion__trigger:hover {
  color: var(--yt-red);
}

.yt-accordion__trigger::after {
  content: "+";
  flex: none;
  width: 20px;
  color: var(--yt-gray-60);
  font-size: 24px;
  font-weight: var(--yt-fw-regular);
  line-height: 1;
  text-align: center;
}

.yt-accordion__trigger[aria-expanded="true"]::after {
  content: "\2212";
}

.yt-accordion__trigger:has(.yt-icon)::after {
  display: none;
}

.yt-accordion__trigger .yt-icon {
  width: 18px;
  height: 18px;
  color: var(--yt-gray-60);
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-accordion__trigger[aria-expanded="true"] .yt-icon {
  transform: rotate(180deg);
}

.yt-accordion__panel {
  padding: 0 0 24px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: 1.65;
}

.yt-accordion__panel > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.yt-pagination {
  margin-top: 48px;
}

.yt-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.yt-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.yt-pagination__item {
  margin: 0;
}

.yt-pagination__link,
.yt-pagination a,
.yt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--yt-radius);
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  text-decoration: none;
  transition:
    color var(--yt-dur-fast) var(--yt-ease),
    border-color var(--yt-dur-fast) var(--yt-ease),
    background-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-pagination__link:hover,
.yt-pagination a:hover,
.yt-pagination .page-numbers:hover {
  border-color: var(--yt-line);
  color: var(--yt-red);
}

.yt-pagination__item.is-active .yt-pagination__link,
.yt-pagination__item.is-active > span,
.yt-pagination [aria-current="page"],
.yt-pagination .current {
  border-color: var(--yt-red);
  background: var(--yt-red);
  color: var(--yt-white);
}

.yt-pagination .dots {
  border-color: transparent;
  color: var(--yt-gray-60);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.yt-breadcrumbs {
  color: var(--yt-gray);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.yt-breadcrumbs__sep {
  color: var(--yt-gray);
}

.yt-breadcrumbs__link {
  color: var(--yt-gray);
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-breadcrumbs__link:hover {
  color: var(--yt-red);
}

.yt-breadcrumbs__current,
.yt-breadcrumbs [aria-current="page"] {
  color: var(--yt-ink);
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */
.yt-empty {
  padding: 80px 24px;
  text-align: center;
}

.yt-empty__title {
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-24);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-32);
}

.yt-empty__text {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-empty .yt-btn {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .yt-empty {
    padding: 56px 20px;
  }

  .yt-empty__title {
    font-size: var(--yt-fs-20);
    line-height: 28px;
  }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.yt-form {
  display: grid;
  gap: 20px;
}

.yt-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.yt-field__label {
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-21);
}

.yt-field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius);
  background: var(--yt-white);
  color: var(--yt-ink);
  font-family: inherit;
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
  transition:
    border-color var(--yt-dur-fast) var(--yt-ease),
    box-shadow var(--yt-dur-fast) var(--yt-ease);
}

textarea.yt-field__input {
  min-height: 148px;
  padding: 12px 14px;
  resize: vertical;
}

select.yt-field__input {
  padding-right: 40px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--yt-ink) 50%),
    linear-gradient(135deg, var(--yt-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.yt-field__input:hover {
  border-color: #CCCCCC;
}

.yt-field__input:focus {
  outline: none;
  border-color: var(--yt-red);
  box-shadow: 0 0 0 1px var(--yt-red);
}

.yt-field__input::placeholder {
  color: var(--yt-gray);
  opacity: 1;
}

.yt-field.has-error .yt-field__input {
  border-color: var(--yt-red);
}

.yt-field__error {
  color: var(--yt-red);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-form__status {
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-form__status.is-error {
  color: var(--yt-red);
}

.yt-form__status.is-success {
  color: var(--yt-success);
}

.yt-form__success {
  padding: 20px 24px;
  border-left: 3px solid var(--yt-success);
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-hp {
  position: absolute !important;
  top: auto !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.yt-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  cursor: pointer;
}

.yt-checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--yt-red);
}

.yt-search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}

.yt-search-form .yt-field__input {
  flex: 1 1 auto;
  min-width: 0;
}

.yt-search-form .yt-btn {
  flex: none;
  height: 48px;
}

@media (max-width: 767px) {
  .yt-search-form {
    flex-wrap: wrap;
  }

  .yt-search-form .yt-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Shared product card
   Used by the archive, /search/ and product Related.
   -------------------------------------------------------------------------- */
.yt-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background-color: var(--yt-bg-soft);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  color: var(--yt-ink);
  transition: background-color var(--yt-dur) var(--yt-ease);
}

.yt-product-card:hover {
  background-color: #ECECEF;
}

.yt-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 24px;
  overflow: hidden;
}

.yt-product-card__img,
.yt-product-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform var(--yt-dur) var(--yt-ease);
}

.yt-product-card:hover .yt-product-card__img,
.yt-product-card:hover .yt-product-card__media img {
  transform: translateY(-6px) scale(1.01);
}

.yt-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--yt-red);
  color: var(--yt-white);
  font-size: var(--yt-fs-12);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-16);
}

.yt-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 20px 20px;
}

.yt-product-card__model {
  margin: 0 0 4px;
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-21);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.yt-product-card__title {
  margin: 0 0 6px;
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-regular);
  line-height: var(--yt-lh-24);
}

.yt-product-card__title a {
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-product-card__title a:hover {
  color: var(--yt-red);
}

.yt-product-card__cat {
  margin: 0 0 16px;
  color: var(--yt-gray);
  font-size: var(--yt-fs-12);
  line-height: 18px;
}

.yt-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--yt-line);
}

.yt-product-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  text-decoration: none;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-product-card__action:hover {
  color: var(--yt-red);
}

.yt-product-card__action .yt-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-product-card__action:hover .yt-arrow {
  transform: translateX(3px);
}

.yt-product-card__media .yt-media-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
}

@media (max-width: 767px) {
  .yt-product-card__media {
    height: 220px;
  }

  .yt-product-card__img,
  .yt-product-card__media img {
    max-height: 184px;
  }
}

/* --------------------------------------------------------------------------
   Shared CTA band
   -------------------------------------------------------------------------- */
.yt-cta {
  padding-block: 80px;
  background: var(--yt-black);
  color: var(--yt-white);
}

.yt-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--yt-container);
  margin-inline: auto;
  padding-inline: var(--yt-gutter);
}

.yt-cta__title {
  max-width: 720px;
  margin: 0;
  color: var(--yt-white);
  font-size: var(--yt-fs-32);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-48);
}

@media (max-width: 767px) {
  .yt-cta {
    padding-block: 56px;
  }

  .yt-cta__title {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }
}

/* --------------------------------------------------------------------------
   Shared news tabs / empty
   -------------------------------------------------------------------------- */
.yt-news__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.yt-news__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0 12px;
  border: 0;
  background: none;
  color: var(--yt-gray-60);
  font-family: inherit;
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-regular);
  line-height: var(--yt-lh-24);
  cursor: pointer;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-news__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--yt-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-news__tab:hover {
  color: var(--yt-ink);
}

.yt-news__tab.is-active,
.yt-news__tab[aria-selected="true"] {
  color: var(--yt-red);
  font-weight: var(--yt-fw-bold);
}

.yt-news__tab.is-active::after,
.yt-news__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.yt-news__empty {
  padding: 48px 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

@media (max-width: 767px) {
  .yt-news__tabs {
    gap: 24px;
  }

  .yt-news__tab {
    font-size: var(--yt-fs-15);
  }
}

/* --------------------------------------------------------------------------
   Shared result count label
   -------------------------------------------------------------------------- */
.yt-toolbar__count {
  margin: 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.yt-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--yt-line);
}

/* Target fidelity: the active news tab is red text only, no underline. */
.yt-news__tab::after {
  display: none;
}

/* Product cards use the square Huawei media frame (270×270 at desktop). */
.yt-product-card__media {
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  .yt-product-card__media {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
