.product-page{
  padding-block:42px 68px;
}

.product-page__breadcrumb{
  margin-bottom:20px;
}

.product-showcase{
  display:grid;
  grid-template-columns:minmax(420px,.96fr) minmax(0,1.04fr);
  grid-template-areas:"commerce details";
  align-items:start;
  gap:30px;
  direction:ltr;
}

.product-showcase__commerce{
  grid-area:commerce;
  min-width:0;
  direction:ltr;
  position:sticky;
  top:calc(var(--header-height) + 18px);
}

.product-showcase__details{
  grid-area:details;
  min-width:0;
  direction:ltr;
}

html[dir="rtl"] .product-showcase__commerce,
html[dir="rtl"] .product-showcase__details{
  direction:rtl;
}

.product-title-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.product-showcase__details h1{
  margin-top:13px;
  font-size:clamp(2rem,4.1vw,3.75rem);
  line-height:1.14;
  letter-spacing:-.035em;
}

.product-lead{
  max-width:66ch;
  margin-top:15px;
  color:var(--muted);
  font-size:1.02rem;
  line-height:1.95;
}

.sale-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface-soft);
  font-size:.74rem;
  font-weight:950;
}

.sale-type-badge--open_source{
  color:#087a4b;
  background:color-mix(in srgb,#18a66a 10%,var(--surface));
  border-color:color-mix(in srgb,#18a66a 28%,var(--border));
}

.sale-type-badge--licensed_obfuscated{
  color:var(--primary);
  background:color-mix(in srgb,var(--primary) 8%,var(--surface));
  border-color:color-mix(in srgb,var(--primary) 24%,var(--border));
}

.sale-type-badge--tebex{
  color:#2366b1;
  background:color-mix(in srgb,#3b82f6 9%,var(--surface));
  border-color:color-mix(in srgb,#3b82f6 25%,var(--border));
}

.product-frameworks{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.product-framework-tag{
  min-height:33px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--surface-soft);
  color:var(--text);
  font-size:.78rem;
  font-weight:900;
  direction:ltr;
}

button.product-framework-tag{
  cursor:pointer;
}

.product-framework-tag--standalone{
  color:var(--primary);
  border-color:color-mix(in srgb,var(--primary) 28%,var(--border));
  background:color-mix(in srgb,var(--primary) 8%,var(--surface));
}

.product-framework-tag__chevron{
  font-size:.64rem;
  transition:transform .2s ease;
}

.product-framework-tag--standalone[aria-expanded="true"] .product-framework-tag__chevron{
  transform:rotate(180deg);
}

.framework-standalone-explanation{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:12px;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--success) 25%,var(--border));
  border-radius:16px;
  background:color-mix(in srgb,var(--success) 7%,var(--surface));
}

.framework-standalone-explanation[hidden]{
  display:none;
}

.framework-standalone-explanation>i{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:color-mix(in srgb,var(--success) 13%,var(--surface));
  color:var(--success);
}

.framework-standalone-explanation p{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
}

.framework-standalone-explanation strong{
  font-size:.88rem;
}

.framework-standalone-explanation span{
  color:var(--muted);
  font-size:.8rem;
  line-height:1.8;
}

.product-copy-section{
  margin-top:32px;
  padding-top:25px;
  border-top:1px solid var(--border);
}

.product-copy-section h2{
  font-size:1.25rem;
}

.product-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.product-meta-grid>div{
  min-width:0;
  padding:16px;
  border:1px solid var(--border);
  border-radius:17px;
  background:var(--surface-soft);
  display:flex;
  flex-direction:column;
  gap:7px;
}

.product-meta-grid span{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:850;
}

.product-meta-grid strong{
  font-size:.9rem;
  line-height:1.65;
}

.product-commerce-card{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:26px;
  background:var(--surface);
  padding:12px;
  box-shadow:var(--shadow);
}

.product-gallery__stage{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/9;
  border-radius:18px;
  background:#180d22;
}

.product-gallery__panel{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.product-gallery__panel[hidden]{
  display:none;
}

.product-gallery__panel img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-gallery__video iframe{
  width:100%;
  height:100%;
  border:0;
  background:#000;
}

.product-gallery__thumbs{
  display:flex;
  gap:9px;
  margin-top:10px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:thin;
}

.product-gallery__thumb{
  flex:0 0 86px;
  height:58px;
  overflow:hidden;
  border:2px solid transparent;
  border-radius:13px;
  background:var(--surface-soft);
  opacity:.68;
  transition:.2s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active{
  opacity:1;
  border-color:var(--primary);
}

.product-gallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-gallery__thumb--video{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--primary);
  font-weight:900;
}

.product-gallery__thumb--video i{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:.7rem;
}

.product-gallery__thumb--video span{
  font-size:.72rem;
}

.product-commerce-card__divider{
  height:1px;
  margin:15px 4px 0;
  background:var(--border);
}

.product-purchase-box{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px 8px 8px;
}

.product-purchase-box__price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

.product-purchase-box .purchase-box__price{
  margin:0;
}

.delivery-notice{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-block:2px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:17px;
  background:var(--surface-soft);
}

.delivery-notice>i{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--surface);
  color:var(--primary);
}

.delivery-notice strong{
  display:block;
  font-size:.88rem;
}

.delivery-notice p{
  margin-top:4px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.75;
}

.delivery-notice--open_source>i{
  color:#087a4b;
}

.delivery-notice--tebex>i{
  color:#2366b1;
}

.product-buy-button{
  margin-top:2px;
}

.product-buy-button[disabled]{
  cursor:not-allowed;
  opacity:.62;
  transform:none;
}

.product-purchase-box>.button{
  width:100%;
}

@media(max-width:980px){
  .product-showcase{
    grid-template-columns:1fr;
    grid-template-areas:"commerce" "details";
  }

  .product-page{
    padding-top:26px;
  }

  .product-showcase__commerce,
  .product-showcase__details{
    max-width:760px;
    width:100%;
    margin-inline:auto;
  }

  .product-showcase__commerce{
    position:static;
  }
}

@media(max-width:560px){
  .product-page{
    padding-bottom:48px;
  }

  .product-showcase{
    gap:20px;
  }

  .product-showcase__details h1{
    font-size:2rem;
  }

  .product-meta-grid{
    grid-template-columns:1fr;
  }

  .product-commerce-card{
    padding:8px;
    border-radius:19px;
  }

  .product-gallery__stage{
    border-radius:14px;
  }

  .product-gallery__thumb{
    flex-basis:72px;
    height:50px;
  }

  .product-purchase-box{
    padding:15px 5px 5px;
  }

  .product-purchase-box__price-row{
    align-items:flex-start;
    flex-direction:column;
  }
}
.product-gallery__video--local video{width:100%;height:100%;display:block;object-fit:contain;background:#09070d}
