/* Alvport 2.3.17 — Shared quick-view visual system.
   Deliberately scoped to the existing card trigger and dialog markup.
   Avoids styling any other button or product image in the store. */

/* The same translucent green glass control in all product sections. */
body .alv-product-card .alv-product-card__quick,
body .alv-home-equip .alv-product-card .alv-product-card__quick {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 22px);
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 999px !important;
  background: linear-gradient(130deg, rgba(0,126,0,.82), rgba(0,110,0,.62)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  box-shadow: 0 9px 22px rgba(0,95,0,.2), inset 0 1px rgba(255,255,255,.22) !important;
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
body .alv-product-card .alv-product-card__quick > *,
body .alv-home-equip .alv-product-card .alv-product-card__quick > * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  visibility: visible;
}
body .alv-product-card:hover .alv-product-card__quick,
body .alv-product-card:focus-within .alv-product-card__quick,
body .alv-product-card .alv-product-card__quick:hover,
body .alv-product-card .alv-product-card__quick:focus-visible {
  background: linear-gradient(130deg, rgba(0,143,0,.93), rgba(0,105,0,.79)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Dialog styling repeated here intentionally: the homepage may be rendered
   dynamically and does not always enqueue the catalogue block stylesheet. */
body dialog.alv-quick-view {
  box-sizing: border-box;
  width: min(820px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 740px);
  margin: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px;
  background: #fff !important;
  color: #243247 !important;
  box-shadow: 0 30px 75px rgba(8,25,20,.3);
  overflow: auto;
}
body dialog.alv-quick-view::backdrop {
  background: rgba(10,25,27,.60);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body dialog.alv-quick-view .alv-quick-view__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  min-height: 375px;
}
body dialog.alv-quick-view .alv-quick-view__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 375px;
  padding: 30px;
  background: #fafbfc;
}
body dialog.alv-quick-view .alv-quick-view__media img {
  display: block;
  width: 100%;
  height: 305px;
  max-width: 100%;
  object-fit: contain;
}
body dialog.alv-quick-view .alv-quick-view__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 48px 36px 40px;
}
body dialog.alv-quick-view .alv-quick-view__meta {
  margin: 0 0 2px;
  color: #008200 !important;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .03em;
}
body dialog.alv-quick-view .alv-quick-view__content h2 {
  width: 100%;
  margin: 0 0 8px;
  color: #162b4c !important;
  font-size: clamp(1.5rem,2.4vw,2rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
body dialog.alv-quick-view .alv-quick-view__content p {
  margin: 0 0 13px !important;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.55;
}
body dialog.alv-quick-view .alv-quick-view__content a.alv-quick-view__link,
body dialog.alv-quick-view .alv-quick-view__content a.alv-quick-view__link:visited {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  box-sizing: border-box;
  min-height: 45px;
  margin: 2px 0 0;
  padding: 12px 24px;
  border: 0 !important;
  border-radius: 999px;
  background: #008200 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 12px 24px rgba(0,130,0,.18);
}
body dialog.alv-quick-view .alv-quick-view__content a.alv-quick-view__link:hover,
body dialog.alv-quick-view .alv-quick-view__content a.alv-quick-view__link:focus-visible {
  background: #006e00 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body dialog.alv-quick-view .alv-quick-view__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f5 !important;
  color: #607080 !important;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
body dialog.alv-quick-view .alv-quick-view__close:hover,
body dialog.alv-quick-view .alv-quick-view__close:focus-visible {
  background: #e6f3e8 !important;
  color: #008200 !important;
}

@media (max-width: 700px) {
  body dialog.alv-quick-view .alv-quick-view__panel {grid-template-columns: 1fr;}
  body dialog.alv-quick-view .alv-quick-view__media {min-height: 200px; padding: 22px 26px 4px;}
  body dialog.alv-quick-view .alv-quick-view__media img {height: min(38vh,235px);}
  body dialog.alv-quick-view .alv-quick-view__content {padding: 24px 26px 30px;}
  body dialog.alv-quick-view .alv-quick-view__content a.alv-quick-view__link {max-width: 100%;}
}
@media (prefers-reduced-motion: reduce) {
  body dialog.alv-quick-view, body .alv-product-card .alv-product-card__quick {transition: none !important;}
}
