/* public/css/product.css — product detail page layout.
   Color values use the shared CSS variables from style.css so dark mode
   applies automatically; sizing/spacing-only rules stay hardcoded here. */

.product-page{max-width:1200px;margin:auto;padding:24px}
.product-hero{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.product-gallery img{width:100%;border-radius:16px}
.product-main h1{font-size:28px;margin-bottom:8px}
.subtitle{color:var(--ink-400)}
.rating{margin:8px 0;color:var(--ink-600)}
.price-box{margin:16px 0;font-size:22px}
.price-box del{color:var(--ink-400);margin-left:8px}
.buy-btn{background:var(--brand-500);color:#fff;padding:9px 14px;border:none;border-radius:12px;font-size:16px;cursor:pointer}
.buy-btn:hover{background:var(--brand-600)}
.buy-btn.btn-free{background:#059669}
.buy-btn.btn-free:hover{background:#047857}
.trust{list-style:none;padding:0;margin-top:16px}
.trust li{margin:4px 0;color:var(--ink-600)}

/* Access-type badge (free / vip) shown inline near the product title —
   same color language as the card-grid corner badges in style.css, just
   sized for sitting next to a heading instead of floating on an image. */
.badge-inline{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 13px;border-radius:999px;font-size:12px;font-weight:800;color:#fff;
  margin-bottom:10px;
}
.badge-inline.badge-free{background:linear-gradient(135deg,#34d399,#059669)}
.badge-inline.badge-vip{background:linear-gradient(135deg,#fbd786,#b8860b);color:#2a1d00;text-shadow:0 1px 0 rgba(255,255,255,.25)}

.price-free{color:#059669}
.product-vip-note{margin:10px 0;font-size:13.5px;font-weight:700;color:#92650c}
.product-vip-note a{color:var(--brand-600);font-weight:700}

/* ============================================================
   Download Box — 2026 style: glassy card, gradient accent rail,
   icon + info + one clear action in a single compact row.
   ============================================================ */
.download-box{
  display:flex;align-items:center;gap:16px;
  margin:16px 0;padding:16px 20px;border-radius:20px;
  background:rgba(255,255,255,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  position:relative;overflow:hidden;
}
.download-box::before{
  content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:5px;
}
.download-box-icon{
  font-size:24px;width:50px;height:50px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:rgba(0,0,0,.04);
}
.download-box-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.download-box-info strong{font-size:15px;color:var(--ink-900)}
.download-box-info span{font-size:12.5px;color:var(--ink-500)}
.download-box-btn{
  flex-shrink:0;display:inline-flex;align-items:center;gap:6px;
  padding:11px 22px;border-radius:999px;font-weight:800;font-size:14px;
  color:#fff;white-space:nowrap;border:none;cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.14);
  transition:transform .15s ease,box-shadow .15s ease;
}
.download-box-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.18)}
.download-box-btn-outline{background:transparent;box-shadow:none}

/* Ready — the file can be downloaded right now (owned, free, or an
   active VIP subscriber viewing a VIP product) */
.download-box--ready::before{background:linear-gradient(180deg,#34d399,#059669)}
.download-box--ready .download-box-icon{background:rgba(5,150,105,.1);color:#059669}
.download-box--ready .download-box-btn{background:linear-gradient(135deg,#34d399,#059669)}

/* VIP, unlocked via an active subscription */
.download-box--vip::before{background:linear-gradient(180deg,#fbd786,#b8860b)}
.download-box--vip .download-box-icon{background:rgba(184,134,11,.12);color:#92650c}
.download-box--vip .download-box-btn{background:linear-gradient(135deg,#fbd786,#b8860b);color:#2a1d00}

/* VIP, locked — needs a subscription first (buying it outright is still
   offered separately via the normal buy button below the box) */
.download-box--locked{background:rgba(184,134,11,.05)}
.download-box--locked::before{background:linear-gradient(180deg,#fbd786,#b8860b)}
.download-box--locked .download-box-icon{background:rgba(184,134,11,.12);color:#92650c}
.download-box--locked .download-box-btn-outline{border:2px solid #b8860b;color:#92650c;padding:9px 20px}
.download-box--locked .download-box-btn-outline:hover{background:rgba(184,134,11,.1);transform:translateY(-2px)}

[data-theme="dark"] .download-box{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.09)}
[data-theme="dark"] .download-box-info strong{color:#fff}
[data-theme="dark"] .download-box-icon{background:rgba(255,255,255,.08)}

@media(max-width:560px){
  .download-box{flex-wrap:wrap}
  .download-box-btn{width:100%;justify-content:center}
}

.product-section h2{margin-bottom:16px;margin-top: 16px;}
.content{line-height:1.9;color:var(--ink-800);  margin-bottom: 1rem;}
.features{list-style:none;padding:0;color:var(--ink-700, var(--ink-800))}
.features li{margin:6px 0}

.bundle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}
.bundle-item{background:#fff;padding:16px;border-radius:12px;text-align:center}

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

/* =========================================================
   PRODUCT DEMO & PREVIEW
   ========================================================= */

.product-demo-section {
    margin-top: 42px;
    padding: 34px;
    background: #f7f9fd;
    border-radius: 22px;
    border: 1px solid #e8ecf5;
}

.product-demo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.product-demo-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #5b4df6;
}

.product-demo-header h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #111936;
}

.product-demo-header p {
    margin: 0;
    color: #7c8499;
    line-height: 1.9;
}

.product-demo-type {
    padding: 9px 15px;
    border-radius: 10px;
    background: #eeebff;
    color: #5b4df6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* LAYOUT */

.product-demo-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 250px;
    gap: 22px;
    align-items: stretch;
}


/* SIDEBAR */

.product-demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e3e7f0;
    border-radius: 13px;
    background: #fff;
    color: #1c2442;
    text-align: right;
    cursor: pointer;
    transition: .2s ease;
}

.demo-tab:hover {
    border-color: #7668ff;
    transform: translateY(-1px);
}

.demo-tab.active {
    border-color: #6254f5;
    box-shadow: 0 0 0 1px #6254f5;
}

.demo-tab-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #f0efff;
    color: #5b4df6;
    font-size: 19px;
}

.demo-tab strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.demo-tab small {
    display: block;
    color: #8b92a5;
    font-size: 11px;
}


/* INFO BOX */

.demo-info-box {
    margin-top: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e7f0;
    border-radius: 13px;
}

.demo-info-box h4 {
    margin: 0 0 12px;
    font-size: 13px;
}

.demo-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-info-box li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 12px;
    color: #444c63;
}

.demo-info-box li span {
    color: #28ad70;
    font-weight: 800;
}


/* MAIN */

.product-demo-main {
    min-width: 0;
    position: relative;
}

.demo-panel {
    display: none;
    width: 100%;
    height: 100%;
}

.demo-panel.active {
    display: block;
}


/* BROWSER */

.demo-browser {
    height: 100%;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #dfe4ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(24, 31, 58, .07);
}

.demo-browser-bar {
    height: 43px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid #e8ebf2;
    background: #f9fafc;
}

.demo-browser-bar > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8dce6;
}

.demo-browser-url {
    flex: 1;
    margin-right: 10px;
    padding: 6px 12px;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    color: #9aa1b1;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}

.demo-iframe-wrapper {
    height: 390px;
    background: #fff;
}

.demo-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}


/* INTERACTIVE */

.demo-interactive {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    border: 1px solid #e2e6ef;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.demo-interactive-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 20px;
    background: #efedff;
    color: #5b4df6;
    font-size: 30px;
}

.demo-interactive h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.demo-interactive p {
    max-width: 440px;
    margin: 0 0 22px;
    color: #7e8699;
    line-height: 1.9;
}

.demo-open-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #5b4df6;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


/* IMAGE */

.demo-image-preview {
    height: 100%;
    min-height: 430px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e6ef;
    border-radius: 15px;
    background: #fff;
}

.demo-image-preview img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}


/* VIDEO */

.demo-video-preview {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: #11152b;
}

.demo-video-preview video {
    width: 100%;
    max-height: 430px;
    display: block;
}


/* RIGHT COLUMN */

.product-demo-included {
    padding: 22px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #e3e7f0;
}

.product-demo-included h3 {
    margin: 0 0 20px;
    font-size: 17px;
    color: #17203d;
}

.demo-included-group {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.demo-included-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.demo-included-group h4 {
    margin: 0 0 11px;
    font-size: 13px;
    color: #626b80;
}

.demo-included-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-included-group li {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.7;
}

.demo-included-group li span {
    color: #27ae70;
    font-weight: 800;
}

.demo-format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.demo-format-list span {
    padding: 6px 10px;
    border-radius: 7px;
    background: #f2f3f8;
    color: #4f5870;
    font-size: 11px;
    font-weight: 700;
}

.demo-license {
    margin: 0;
    color: #6f778b;
    font-size: 12px;
    line-height: 1.9;
}


/* DEVICES */

.demo-devices {
    margin-top: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 14px;
    background: #eeefff;
}

.demo-devices-title strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.demo-devices-title span {
    color: #7d8499;
    font-size: 11px;
}

.demo-device-list {
    display: flex;
    gap: 9px;
}

.demo-device {
    min-width: 75px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    background: #fff;
    color: #666e82;
    font-size: 11px;
}

.demo-device.active {
    color: #5144dc;
    box-shadow: 0 0 0 1px rgba(91, 77, 246, .12);
}

.device-icon {
    font-size: 17px;
}


/* EXTRA */

.demo-extra-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.demo-extra-features span {
    padding: 7px 13px;
    border-radius: 20px;
    background: #e9faef;
    color: #22925c;
    font-size: 11px;
    font-weight: 700;
}


/* DOTS */

.demo-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.demo-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d5d9e5;
}

.demo-slider-dots span.active {
    width: 22px;
    border-radius: 20px;
    background: #5b4df6;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .product-demo-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .product-demo-included {
        grid-column: 1 / -1;
    }

}


@media (max-width: 760px) {

    .product-demo-section {
        padding: 20px;
        border-radius: 16px;
    }

    .product-demo-header {
        flex-direction: column;
    }

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

    .product-demo-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .demo-info-box {
        grid-column: 1 / -1;
    }

    .demo-browser,
    .demo-interactive,
    .demo-image-preview,
    .demo-video-preview {
        min-height: 300px;
    }

    .demo-iframe-wrapper {
        height: 260px;
    }

    .demo-devices {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-device-list {
        width: 100%;
    }

}


@media (max-width: 480px) {

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

    .demo-device-list {
        flex-wrap: wrap;
    }

}.demo-preview-frame{
    width:100%;
    margin:auto;
    transition:.3s ease;
}


.demo-preview-frame.device-desktop{
    width:100%;
}


.demo-preview-frame.device-tablet{
    width:768px;
    max-width:100%;
}


.demo-preview-frame.device-mobile{
    width:390px;
    max-width:100%;
}
.demo-frame-wrapper{
    display:flex;
    justify-content:center;
    transition:.3s;
}

#demoFrame{
    width:100%;
    height:650px;
    border:1px solid #ddd;
    border-radius:20px;
}


#demoFrame.mobile{
    width:375px;
}

#demoFrame.tablet{
    width:768px;
}

#demoFrame.desktop{
    width:100%;
}