.az-child-vns-product-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(150px, 17vw, 330px);
  color: #fff;
  background: var(--az-color-heading, #222);
}

.az-child-vns-product-banner__image,
.az-child-vns-product-banner::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.az-child-vns-product-banner__image { object-fit: cover; }
.az-child-vns-product-banner::after { content: ""; background: rgb(0 0 0 / 46%); }

.az-child-vns-product-banner__trail {
  position: relative;
  z-index: 1;
  padding-block: 20px;
}

.az-child-vns-product-banner__trail .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  color: inherit;
  font-size: clamp(14px, 1.3vw, 24px);
}

.az-child-vns-product-banner__trail .woocommerce-breadcrumb a { color: inherit; }
.az-child-vns-product-banner__trail .woocommerce-breadcrumb a:hover { text-decoration: underline; }
.az-child-vns-product-banner__trail .woocommerce-breadcrumb span { opacity: .65; }

.az-vns-site .az-main.az-child-vns-product {
  --az-vns-product-accent: #f7941d;
  --az-vns-product-price: var(--az-color-error, #b20000);
  display: grid;
  padding-block: clamp(20px, 2.6vw, 50px) 24px;
  gap: clamp(20px, 2.6vw, 50px);
}

.az-child-vns-product__summary,
.az-child-vns-product__content:not(:empty) {
  min-width: 0;
  padding: clamp(12px, 1.6vw, 28px);
  border: 1px solid var(--az-color-border);
  border-radius: 6px;
  background: var(--az-color-surface);
  box-shadow: 0 1px 5px rgb(0 0 0 / 6%);
}

.az-vns-site .az-child-vns-product__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 36px);
  align-items: start;
}

.az-child-vns-product__summary > .az-product-info:only-child { grid-column: 1 / -1; }
.az-child-vns-product__notices:not(:has(> :not(:empty))),
.az-child-vns-product__content:not(:has(> *)) { display: none; }

.az-child-vns-product__gallery { min-width: 0; }

.az-child-vns-product__summary.product .az-child-vns-product__gallery .woocommerce-product-gallery {
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  opacity: 1 !important;
}

.az-child-vns-product__gallery .woocommerce-product-gallery__image a {
  display: block;
}

.az-child-vns-product__summary.product .az-child-vns-product__gallery :is(.woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder) img {
  display: block;
  width: min(100%, 650px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-inline: auto;
}

.az-child-vns-product:has(.az-child-vns-product-photo-row) .az-child-vns-product__summary.product .woocommerce-product-gallery--with-images img.wp-post-image {
  aspect-ratio: auto;
}

.az-child-vns-product__gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > :not(:first-child) { display: none; }

.az-child-vns-product__summary.product .az-child-vns-product__gallery .flex-control-thumbs {
  display: flex;
  gap: clamp(6px, 1.3vw, 24px);
  margin: 14px 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.az-child-vns-product__summary.product .az-child-vns-product__gallery .flex-control-thumbs li {
  flex: 0 0 calc((100% - 3 * clamp(6px, 1.3vw, 24px)) / 4);
  width: auto;
  margin: 0;
}

.az-child-vns-product__gallery .flex-control-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-sizing: border-box;
  object-fit: contain;
  border: 1px solid var(--az-color-border);
  opacity: .65;
  cursor: pointer;
}

.az-child-vns-product__gallery .flex-control-thumbs img:is(.flex-active, :hover) { opacity: 1; }

.az-child-vns-product__summary.product .az-child-vns-product__gallery .woocommerce-product-gallery__trigger {
  top: 8px;
  right: auto;
  left: 8px;
  border: 1px solid var(--az-color-border);
}

.az-vns-site .az-child-vns-product__summary .az-product-info {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--az-color-text);
}

.az-vns-site .az-child-vns-product__summary .az-product-info h1 {
  margin: 0 0 12px;
  color: var(--az-color-heading);
  font-size: clamp(23px, 2vw, 38px);
  line-height: 1.23;
  font-weight: 700;
}

.az-child-vns-product__brand { margin-bottom: 8px; }
.az-child-vns-product__brand a { color: var(--az-color-primary); }

.az-child-vns-product__summary .az-price--detail {
  margin: 0 0 12px;
  color: var(--az-vns-product-price);
  font-size: clamp(20px, 1.55vw, 30px);
}

.az-child-vns-product .az-price ins { color: inherit; }
.az-child-vns-product .az-price del { color: inherit; opacity: .6; }
.az-child-vns-product__summary .az-product-detail-price[hidden],
.az-child-vns-product__summary .az-product-detail-price:empty,
.az-child-vns-product__summary .az-product-detail-price:not([hidden], :empty) + .az-child-vns-product__base-price { display: none; }

.az-vns-site .az-child-vns-product__summary .az-product-short {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--az-color-heading);
  font: 400 clamp(16px, 1.17vw, 22px)/1.6 Georgia, "Times New Roman", serif;
}

.az-vns-site .az-child-vns-product__summary .az-product-actions { margin: 12px 0 0; }
.az-child-vns-product__summary .stock { margin-block: 0 8px; }

.az-vns-site .az-child-vns-product__summary .az-product-actions :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
}

.az-vns-site .az-child-vns-product__summary .az-product-quantity-row { margin: 0; }
.az-vns-site .az-child-vns-product__summary .az-product-quantity-label { position: absolute; clip-path: inset(50%); }
.az-vns-site .az-child-vns-product__summary .az-product-quantity-row .quantity .qty { width: 44px; }
.az-vns-site .az-child-vns-product__summary .az-product-actions .az-quantity-step { width: 32px; }

.az-vns-site .az-child-vns-product__summary .az-product-info .az-product-actions form.cart :is(.single_add_to_cart_button, .az-product-buy-now) {
  width: auto;
  min-height: 44px;
  height: auto;
  padding-inline: 16px;
  color: #fff;
  background: var(--az-color-primary);
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 700;
}

.az-vns-site .az-child-vns-product__summary .az-product-info .az-product-actions form.cart .az-product-buy-now {
  color: var(--az-color-primary);
  background: var(--az-color-surface);
  box-shadow: inset 0 0 0 1px currentColor;
}

.az-vns-site .az-child-vns-product__summary .az-product-info .az-product-actions form.cart :is(.single_add_to_cart_button, .az-product-buy-now):is(:hover, :focus-visible) {
  background: var(--az-color-primary-dark);
  color: #fff;
}

.az-child-vns-product__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.az-child-vns-product__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 5px;
  background: var(--az-vns-product-accent);
  color: #231605;
  font-weight: 700;
}

.az-child-vns-product__contact a:is(:hover, :focus-visible) { background: var(--az-color-primary-dark); color: #fff; }

.az-child-vns-product__facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--az-color-primary) 9%, var(--az-color-surface));
}

.az-child-vns-product__facts :is(dt, dd) { display: inline; margin: 0; }
.az-child-vns-product__facts dt { font-weight: 700; }

.az-child-vns-product__content .wc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 12px 0;
  border-bottom: 2px solid var(--az-vns-product-accent);
  list-style: none;
}

.az-child-vns-product__content .wc-tabs a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--az-color-text);
  font-size: clamp(13px, 1.02vw, 19px);
  font-weight: 700;
  text-transform: uppercase;
}

.az-child-vns-product__content .wc-tabs .active a { background: var(--az-color-primary); color: #fff; }
.az-child-vns-product__content .wc-tabs a:is(:hover, :focus-visible) { background: var(--az-color-primary-dark); color: #fff; }
.az-child-vns-product__content .wc-tab { min-width: 0; overflow-wrap: anywhere; }

.az-child-vns-product__content .woocommerce-Tabs-panel--description {
  color: var(--az-color-heading);
  font: 400 clamp(16px, 1.15vw, 22px)/1.65 Georgia, "Times New Roman", serif;
}

.az-child-vns-product__content .wc-tab :is(img, figure, .wp-caption) { max-width: 100%; }
.az-child-vns-product__content .wc-tab img { height: auto; }
.az-child-vns-product__content .wc-tab .aligncenter { display: block; margin-inline: auto; }
.az-child-vns-product__content .wc-tab iframe { display: block; max-width: 100%; margin-inline: auto; }
.az-child-vns-product__content .wc-tab table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.az-child-vns-product__content .wc-tab :is(th, td) { overflow-wrap: anywhere; }
.az-child-vns-product__content .wc-tab [id] { scroll-margin-top: 110px; }

.az-child-vns-product__content .az-child-vns-product-photo-heading {
  margin-block: clamp(20px, 2.5vw, 42px) clamp(14px, 2.2vw, 32px);
  padding-block: 4px;
  border-block: 1px solid var(--az-color-border);
  font: 700 clamp(17px, 1.55vw, 30px)/1.35 var(--az-font-heading, Arial, sans-serif);
  text-align: center;
  text-transform: uppercase;
}

.az-child-vns-product-photo-row {
  display: grid;
  grid-template-columns: repeat(var(--az-vns-photo-columns), minmax(0, 1fr));
  gap: 5px;
  margin-block-end: clamp(10px, 1.2vw, 24px);
}

.az-child-vns-product-photo-row img {
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
}

@media (max-width: 640px) {
  .az-child-vns-product-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.az-child-vns-product-toc {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid var(--az-color-border);
  border-radius: 4px;
  background: var(--az-color-page);
  color: var(--az-color-text);
  font: 400 clamp(14px, .95vw, 18px)/1.45 var(--az-font-sans, Arial, sans-serif);
}

.az-child-vns-product-toc summary,
.az-child-vns-product__videos summary { cursor: pointer; }
.az-child-vns-product-toc ol { margin: 8px 0 0; padding-inline-start: 24px; }
.az-child-vns-product-toc a { color: inherit; }
.az-child-vns-product-toc a:hover { color: var(--az-color-primary-dark); }
.az-child-vns-product-toc__level-3 { margin-inline-start: 14px; }
.az-child-vns-product-toc__level-4 { margin-inline-start: 28px; }

.az-child-vns-product__videos,
.az-child-vns-product-cards { margin-top: clamp(24px, 3.5vw, 64px); }

.az-child-vns-product__videos iframe {
  display: block;
  width: min(100%, 800px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 8px auto 20px;
  border: 0;
}

.az-child-vns-product-cards h2 {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--az-color-primary);
  color: #fff;
  font-size: clamp(15px, 1.4vw, 26px);
  text-transform: uppercase;
}

.az-child-vns-product-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 26px);
}

.az-child-vns-product-cards__track {
  --az-vns-card-count: 4;
  --az-vns-card-gap: clamp(10px, 1.5vw, 26px);
  padding-block: 4px 8px;
  scroll-snap-type: x mandatory;
}

.az-child-vns-product-cards__track:focus-visible { outline-offset: -2px; }

.az-child-vns-product-cards :is(.az-child-vns-product-cards__grid, .az-child-vns-product-cards__track) .az-product-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.az-child-vns-product-cards .az-product-card__body { padding: 8px 0; }
.az-child-vns-product-cards .az-product-card__price { color: var(--az-vns-product-price); min-height: 0; }

@media (max-width: 960px) {
  .az-child-vns-product-cards__track { --az-vns-card-count: 3; }
}

@media (max-width: 760px) {
  .az-vns-site .az-child-vns-product__summary { grid-template-columns: minmax(0, 1fr); }
  .az-child-vns-product__content .wc-tabs { justify-content: flex-start; }
  .az-child-vns-product__content .wc-tabs a { padding: 8px 10px; }
  .az-child-vns-product-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-child-vns-product-cards__track { --az-vns-card-count: 2; }
}
