/* V74 — Tech logo wells + fixed-size brand gallery */

/* Keep the gallery window visually stable regardless of active filter */
.brand-gallery-dialog-v71{
  width:min(1160px,100%);
  height:min(88dvh,820px);
  max-height:min(88dvh,820px);
}
.brand-gallery-directory-v71{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  overflow:hidden;
  row-gap:0;
}
.brand-gallery-grid-v71{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  align-content:start;
}
.brand-gallery-empty-v71{
  align-self:start;
  padding:28px 0 0;
}
.brand-gallery-grid-v71::-webkit-scrollbar,
.brand-gallery-directory-v71::-webkit-scrollbar{width:10px}
.brand-gallery-grid-v71::-webkit-scrollbar-thumb,
.brand-gallery-directory-v71::-webkit-scrollbar-thumb{
  background:rgba(138,223,172,.22);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

/* Tech glass look for all logo panels */
.products-brands-v69 .brand-logo,
.products-brands-v69 .product-category-card[data-logo-tone="dark"] .brand-logo,
.brand-gallery-tile-logo-v71,
.brand-gallery-detail-logo-v71,
.product-modal-logo{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.26), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(138,223,172,.10), transparent 26%),
    linear-gradient(135deg, rgba(236,244,246,.96) 0%, rgba(214,226,229,.96) 35%, rgba(174,191,197,.94) 100%) !important;
  border:1px solid rgba(222,244,236,.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -10px 20px rgba(82,107,114,.10),
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 10px 26px rgba(0,0,0,.18),
    0 0 0 1px rgba(138,223,172,.07) !important;
  backdrop-filter:blur(14px) saturate(118%);
  -webkit-backdrop-filter:blur(14px) saturate(118%);
}

.products-brands-v69 .brand-logo::before,
.brand-gallery-tile-logo-v71::before,
.brand-gallery-detail-logo-v71::before,
.product-modal-logo::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.08) 22%, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px);
  mix-blend-mode:screen;
}

.products-brands-v69 .brand-logo::after,
.brand-gallery-tile-logo-v71::after,
.brand-gallery-detail-logo-v71::after,
.product-modal-logo::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 0 24px rgba(138,223,172,.08),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.products-brands-v69 .brand-logo img,
.brand-gallery-tile-logo-v71 img,
.brand-gallery-detail-logo-v71 img,
.product-modal-logo img{
  position:relative;
  z-index:1;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.35));
}

/* Subtle luminous accent, but not exaggerated */
.products-brands-v69 .product-category-card:hover .brand-logo,
.brand-gallery-tile-v71:hover .brand-gallery-tile-logo-v71,
.brand-gallery-detail-card-v71:hover .brand-gallery-detail-logo-v71,
.product-modal-content:hover .product-modal-logo{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -10px 22px rgba(82,107,114,.12),
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 14px 28px rgba(0,0,0,.20),
    0 0 16px rgba(138,223,172,.10) !important;
}

/* Make dark / pale wordmarks readable without changing files */
.products-brands-v69 .product-category-card[data-title="Blackmagic Design"] .brand-logo img,
.products-brands-v69 .product-category-card[data-title="Vector3"] .brand-logo img,
.products-brands-v69 .product-category-card[data-title="Laser Graphics"] .brand-logo img,
.products-brands-v69 .product-category-card[data-title="Tangent"] .brand-logo img,
.brand-gallery-tile-v71[data-title="Blackmagic Design"] img,
.brand-gallery-tile-v71[data-title="Vector3"] img,
.brand-gallery-tile-v71[data-title="Laser Graphics"] img,
.brand-gallery-tile-v71[data-title="Tangent"] img,
.brand-gallery-detail-logo-v71[data-title="Blackmagic Design"] img,
.brand-gallery-detail-logo-v71[data-title="Vector3"] img,
.brand-gallery-detail-logo-v71[data-title="Laser Graphics"] img,
.brand-gallery-detail-logo-v71[data-title="Tangent"] img{
  filter:brightness(.42) contrast(1.55) !important;
}

/* Product cards retain unified visual identity */
.products-brands-v69 .product-category-card h3::before{
  width:44px;
  background:linear-gradient(90deg, rgba(138,223,172,.95), rgba(138,223,172,.18) 72%, transparent);
  box-shadow:0 0 12px rgba(138,223,172,.14);
}

/* Modal detail stays coherent */
.brand-gallery-detail-card-v71,
.product-modal-content{
  background:
    radial-gradient(ellipse at 0 0, rgba(42,103,80,.24), transparent 58%),
    linear-gradient(145deg,#16282a,#0d191d 74%);
}
.brand-gallery-detail-card-v71::before,
.product-modal-content::before{
  box-shadow:0 0 12px rgba(138,223,172,.18);
}

@media(max-width:720px){
  .brand-gallery-dialog-v71{
    height:calc(100dvh - 24px);
    max-height:calc(100dvh - 24px);
  }
}
