/* Product pages, purchase/download controls and media viewers. */

/* --- Product page --- */
.crumbs{ margin: 18px 0 10px; }
.product-page{ padding-bottom: 22px; }
.product-eyebrow{
  margin:0 0 8px;
  color:var(--green);
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.product-hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:start;
}
.product-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin: 14px 0 6px;
}
.product-body{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bullets{ padding-left: 18px; }
.bullets li{ margin: 8px 0; }

.purchase-details{
  align-self:start;
}
.product-section-spacer{ height:12px; }
.catalog-card-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.trust-list,
.product-body ul.bullets{
  list-style:none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 10px;
}

.trust-list li,
.product-body ul.bullets li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  color: var(--text);
  margin: 0;
}

.trust-list li::before,
.product-body ul.bullets li::before{
  content:"";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: .55em;
  background: var(--green);
  box-shadow: 0 0 14px rgba(44,255,143,.35);
}

@media (max-width: 900px){
  .product-hero{ grid-template-columns: 1fr; }
  .product-body{ grid-template-columns: 1fr; }
}

/* --- Purchased download chooser --- */
.download-choice-dialog{
  width:min(620px, calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  padding:0;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius2);
  color:var(--text);
  background:#0b1119;
  box-shadow:0 28px 90px rgba(0,0,0,.72);
  overflow:hidden;
}
.download-choice-dialog::backdrop{
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(6px);
}
.download-choice-panel{ padding:clamp(20px, 5vw, 32px); }
.download-choice-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.download-choice-eyebrow{
  margin:0 0 7px;
  color:var(--green);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.download-choice-head h2{
  margin:0;
  font-size:clamp(25px, 5vw, 34px);
  line-height:1.1;
}
.download-choice-close{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:50%;
  color:var(--text);
  background:rgba(255,255,255,.04);
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.download-choice-close:hover{ background:rgba(255,255,255,.09); }
.download-choice-help{
  margin:16px 0 20px;
  color:var(--muted);
  line-height:1.55;
}
.download-choice-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.download-choice-option{
  display:grid;
  gap:8px;
  min-height:128px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:15px;
  color:var(--text);
  background:linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.download-choice-option:hover,
.download-choice-option:focus-visible{
  border-color:rgba(44,255,143,.58);
  background:rgba(44,255,143,.075);
  outline:none;
  box-shadow:0 0 0 3px rgba(44,255,143,.09);
}
.download-choice-option strong{ color:var(--green); font-size:17px; }
.download-choice-option span{ color:var(--muted); font-size:13px; line-height:1.5; }

@media (max-width: 560px){
  .download-choice-list{ grid-template-columns:1fr; }
  .download-choice-option{ min-height:0; }
}

/* --- Product media thumbnails + lightbox --- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  align-items: start;
}

.product-seo-media{
  width:100%;
  aspect-ratio:16 / 10;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(0,0,0,.35);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.product-seo-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10; 
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
  position: relative;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .15s ease;
}

.media-thumb:hover img {
  transform: scale(1.03);
}

.media-thumb .media-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
}

/* Lightbox modal */
.media-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  padding: 12px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.media-lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox .lb-panel {
  width: min(1100px, 100%);
  height: min(760px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  margin: 0;
  border-radius: 18px;
  background: rgba(10,14,16,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .media-lightbox .lb-panel {
    height: min(760px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }
}

.media-lightbox .lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.media-lightbox .lb-title {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-lightbox .lb-close {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.media-lightbox .lb-main {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
}

.media-lightbox .lb-main img,
.media-lightbox .lb-main iframe,
.media-lightbox .lb-main video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

.media-lightbox .lb-main video {
  display: block;
}

.media-lightbox .lb-main iframe {
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - 190px) * 16 / 9));
  height: auto;
}

@supports (height: 100dvh) {
  .media-lightbox .lb-main iframe {
    width: min(100%, calc((100dvh - 190px) * 16 / 9));
  }
}

.media-video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0,0,0,.35);
  font-weight: 700;
}

.media-lightbox .lb-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  align-items: center;
}

.media-lightbox .lb-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.media-lightbox .lb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
}

.media-lightbox .lb-strip::-webkit-scrollbar { height: 10px; }
.media-lightbox .lb-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.media-lightbox .lb-strip::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.media-lightbox .lb-thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}

.media-lightbox .lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-lightbox .lb-thumb.active {
  outline: 2px solid rgba(46, 204, 113, .6);
}

@media (max-width: 640px), (max-height: 620px) {
  .media-lightbox {
    padding: 8px;
  }

  .media-lightbox .lb-panel {
    width: 100%;
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  @supports (height: 100dvh) {
    .media-lightbox .lb-panel {
      height: calc(100dvh - 16px);
      max-height: calc(100dvh - 16px);
    }
  }

  .media-lightbox .lb-top {
    padding: 8px 10px;
  }

  .media-lightbox .lb-main {
    padding: 8px;
  }

  .media-lightbox .lb-bottom {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 8px;
  }

  .media-lightbox .lb-thumb {
    width: 88px;
  }
}

.btn:disabled:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}

.btn:disabled,
.btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  filter: saturate(.25);

  /* IMPORTANT: lets the wrapper receive hover for tooltip */
  pointer-events: none;
}

/* --- Tooltips (for disabled Buy buttons) --- */
.tooltip{ position: relative; display: inline-flex; }
.tooltip[data-tip=""]::after,
.tooltip[data-tip=""]::before{ display:none; }

.tooltip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.82);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 35px rgba(0,0,0,.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.tooltip::before{
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0,0,0,.82);
  opacity: 0;
  transition: opacity .12s ease;
}

.tooltip:hover::after,
.tooltip:hover::before{
  opacity: 1;
}
