/* ELGATEC product view 1.1.0 */
body.elgtf-store-product-view .portal-page > .page-hero { display: none !important; }
body.elgtf-store-product-view .elgtf-product-page > .elgtf-breadcrumbs { display: none !important; }
body.elgtf-store-product-view .elgtf-product-page { padding-top: 0 !important; }

/* Navegación de tienda recuperada sin alterar el bloque de producto. */
.elgpv-tools {
  position: relative;
  z-index: 45;
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
}
.elgpv-family-shell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a1e2a, #123746);
  box-shadow: 0 12px 34px rgba(7,21,34,.10);
}
.elgpv-family-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(5,19,29,.58);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.elgpv-family-arrow:hover { border-color: #8de5fa; background: #0b6f91; }
.elgpv-family-arrow:disabled { opacity: .32; cursor: default; }
.elgpv-family-viewport { overflow: hidden; min-width: 0; outline: 0; }
.elgpv-family-track {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  padding: 2px 1px 4px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.elgpv-family-track::-webkit-scrollbar { display: none; }
.elgpv-family-track > a {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(177,146,32,.42);
  border-radius: 999px;
  background: linear-gradient(120deg,#fff0a8 0%,#dff7a8 22%,#ffe39a 50%,#d2f1a4 78%,#ffeab1 100%);
  background-size: 280% 280%;
  color: #403400 !important;
  box-shadow: 0 5px 15px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.88);
  text-decoration: none !important;
  animation: elgpv-chameleon 6s ease-in-out infinite;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.elgpv-family-track > a:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.8); }
.elgpv-family-track > a.is-active {
  border-color: #8ce5fb;
  background: linear-gradient(135deg,#c1f3ff 0%,#66d0ed 48%,#45b6db 100%);
  color: #032b3b !important;
  box-shadow: 0 8px 22px rgba(0,117,159,.32), inset 0 1px 0 rgba(255,255,255,.76);
  animation: none;
}
.elgpv-family-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
}
.elgpv-family-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.elgpv-family-copy { display: grid; line-height: 1.05; }
.elgpv-family-copy strong { max-width: 220px; overflow: hidden; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.elgpv-family-copy small { margin-top: 4px; color: currentColor; font-size: 8px; font-weight: 750; opacity: .72; }
@keyframes elgpv-chameleon { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

.elgpv-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(220px,auto) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,21,34,.07);
}
.elgpv-search {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #cfe1e7;
  border-radius: 13px;
  background: #f4f9fa;
}
.elgpv-search-icon { display: grid; color: #0782aa; }
.elgpv-search label { flex: 1; }
.elgpv-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #18313e; font: inherit; }
.elgpv-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.elgpv-filterbox { position: relative; min-width: 220px; }
.elgpv-filterbox > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border: 1px solid #cfe1e7;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.elgpv-filterbox > summary::-webkit-details-marker { display: none; }
.elgpv-filter-summary { display: flex; align-items: center; gap: 10px; color: #0782aa; }
.elgpv-filter-summary > span { display: grid; color: #071522; line-height: 1.1; }
.elgpv-filter-summary strong { font-size: 12px; }
.elgpv-filter-summary small { margin-top: 4px; color: #677b86; font-size: 8px; }
.elgpv-filterbox > summary > b { padding: 4px 7px; border-radius: 999px; background: #eaf6fa; color: #087ea5; font-size: 8px; }
.elgpv-filter-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  right: 0;
  width: min(680px, calc(100vw - 38px));
  padding: 20px;
  border: 1px solid #d2e2e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(7,21,34,.18);
}
.elgpv-filter-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.elgpv-filter-head span { color: #0782aa; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.elgpv-filter-head h3 { margin: 4px 0 0; color: #071522; font-size: 23px; }
.elgpv-filter-head p { max-width: 260px; margin: 0; color: #687d87; font-size: 11px; }
.elgpv-filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.elgpv-filter-grid fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid #d9e7eb; border-radius: 14px; }
.elgpv-filter-grid legend { padding: 0 5px; color: #213d49; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.elgpv-options { display: flex; flex-wrap: wrap; gap: 7px; }
.elgpv-options label { cursor: pointer; }
.elgpv-options input { position: absolute; opacity: 0; pointer-events: none; }
.elgpv-options span { display: inline-flex; min-height: 30px; align-items: center; padding: 6px 9px; border: 1px solid #d6e4e9; border-radius: 999px; background: #fff; color: #46606c; font-size: 9px; font-weight: 800; }
.elgpv-options input:checked + span { border-color: #7ed9ef; background: #dff5fb; color: #075f7d; }
.elgpv-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.elgpv-price-fields label > span { display: block; margin-bottom: 5px; color: #697c86; font-size: 9px; }
.elgpv-price-fields label > div { display: flex; min-height: 38px; align-items: center; border: 1px solid #d6e4e9; border-radius: 9px; padding: 0 9px; }
.elgpv-price-fields input { width: 100%; min-width: 0; border: 0; outline: 0; }
.elgpv-filter-grid select { width: 100%; min-height: 38px; border: 1px solid #d6e4e9; border-radius: 9px; padding: 0 9px; background: #fff; }
.elgpv-filter-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3ecef; }
.elgpv-filter-footer button { min-height: 38px; padding: 8px 13px; border-radius: 10px; font-weight: 850; cursor: pointer; }
.elgpv-filter-footer .is-clear { border: 1px solid #d1e1e6; background: #fff; color: #46606c; }
.elgpv-filter-footer .is-apply { border: 0; background: #071522; color: #fff; }
.elgpv-cart { min-width: 126px; justify-content: center; }

body.elgtf-store-product-view .elgtf-product { margin-top: clamp(22px,3vw,34px); }

/* Galería real con miniaturas intercambiables. */
body.elgtf-store-product-view .elgtf-gallery__main { position: relative; }
.elgpv-gallery-nav {
  position: absolute;
  z-index: 7;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7,21,34,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #071522;
  box-shadow: 0 8px 24px rgba(7,21,34,.14);
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.elgpv-gallery-nav:hover { border-color: #087ea5; color: #087ea5; }
.elgpv-gallery-nav--prev { left: 12px; }
.elgpv-gallery-nav--next { right: 12px; }
.elgpv-gallery-count {
  position: absolute;
  z-index: 6;
  right: 13px;
  bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(7,21,34,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
body.elgtf-store-product-view .elgtf-gallery__thumbs {
  display: flex !important;
  overflow-x: auto;
  grid-template-columns: none !important;
  gap: 9px;
  margin-top: 10px;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}
body.elgtf-store-product-view .elgtf-gallery__thumbs button {
  flex: 0 0 82px;
  width: 82px;
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid #d5e4e9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
body.elgtf-store-product-view .elgtf-gallery__thumbs button.is-active { border: 2px solid #087ea5; box-shadow: 0 0 0 3px rgba(8,126,165,.09); }
body.elgtf-store-product-view .elgtf-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 820px) {
  .elgpv-tools { width: calc(100% - 20px); margin-top: 14px; }
  .elgpv-toolbar { grid-template-columns: 1fr auto; }
  .elgpv-search { grid-column: 1 / -1; }
  .elgpv-filterbox { min-width: 0; }
  .elgpv-cart { min-width: 108px; }
  .elgpv-filter-panel { position: fixed; z-index: 100002; top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; max-height: min(78vh,700px); overflow-y: auto; }
  .elgpv-filter-grid { grid-template-columns: 1fr; }
  .elgpv-filter-head { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 620px) {
  .elgpv-family-shell { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 5px; padding: 6px; }
  .elgpv-family-arrow { width: 31px; height: 31px; font-size: 20px; }
  .elgpv-family-track > a { min-height: 44px; padding: 6px 11px; }
  .elgpv-family-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .elgpv-family-icon svg { width: 17px; height: 17px; }
  .elgpv-family-copy strong { max-width: 165px; font-size: 10px; }
  .elgpv-toolbar { padding: 8px; }
  .elgpv-search { min-height: 48px; }
  .elgpv-filterbox > summary { min-height: 48px; }
  .elgpv-cart { min-width: 92px; }
  .elgpv-gallery-nav { width: 36px; height: 36px; font-size: 21px; }
  .elgpv-gallery-nav--prev { left: 8px; }
  .elgpv-gallery-nav--next { right: 8px; }
  body.elgtf-store-product-view .elgtf-gallery__thumbs button { flex-basis: 66px; width: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .elgpv-family-track > a { animation: none !important; }
}


/* V1.0.2: navegación de tienda montada físicamente justo debajo del menú global. */
body.elgtf-store-product-view > .elgpv-tools,
body.elgtf-store-product-view .site-header + .elgpv-tools {
  display: block !important;
  width: min(1320px, calc(100% - 28px));
  margin: 12px auto 8px !important;
}
body.elgtf-store-product-view .elgpv-tools.is-mounted-under-menu {
  position: relative;
  z-index: 120;
}
body.elgtf-store-product-view [data-elgpv-tools-bootstrap] { display: none !important; }
@media (max-width: 820px) {
  body.elgtf-store-product-view > .elgpv-tools,
  body.elgtf-store-product-view .site-header + .elgpv-tools {
    width: calc(100% - 16px);
    margin-top: 8px !important;
  }
}


/* Galería 1.1.0: ampliación limpia y sin imágenes inferidas. */
.elgpv-gallery-zoom {
  position:absolute; z-index:8; right:13px; top:13px; display:grid; width:38px; height:38px;
  place-items:center; padding:0; border:1px solid rgba(7,21,34,.14); border-radius:50%;
  background:rgba(255,255,255,.94); color:#071522; box-shadow:0 8px 24px rgba(7,21,34,.12);
  font-size:20px; line-height:1; cursor:pointer; backdrop-filter:blur(8px);
}
.elgpv-gallery-zoom:hover { border-color:#087ea5; color:#087ea5; }
body.elgpv-lightbox-open { overflow:hidden!important; }
.elgpv-lightbox {
  position:fixed; z-index:1000500; inset:0; display:grid; place-items:center; padding:clamp(18px,4vw,52px);
  background:rgba(2,12,19,.88); backdrop-filter:blur(12px);
}
.elgpv-lightbox img { display:block; max-width:min(1200px,94vw); max-height:88vh; object-fit:contain; border-radius:16px; background:#fff; box-shadow:0 30px 100px rgba(0,0,0,.4); }
.elgpv-lightbox__close {
  position:fixed; z-index:2; top:18px; right:18px; display:grid; width:44px; height:44px; place-items:center;
  border:1px solid rgba(255,255,255,.35); border-radius:50%; background:rgba(7,21,34,.72); color:#fff;
  font-size:30px; line-height:1; cursor:pointer;
}
@media(max-width:620px){.elgpv-gallery-zoom{width:34px;height:34px;right:8px;top:8px}.elgpv-lightbox{padding:12px}.elgpv-lightbox__close{top:10px;right:10px}}
