/* ==========================================================================
   Digital Products Bundle — products.css
   Multi-product hub components: product grid, demo video frame,
   flash-sale countdown, dual pricing plans, bonus grid, niche showcase.
   (Nav dropdown + trust badges live in style.css — used site-wide.)
   Loaded on: index.html, products.html, wa-sender.html, website-template-bundle.html
   ========================================================================== */

/* ==========================================================================
   Product grid / product cards (Home + Products catalog)
   ========================================================================== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
}
.product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:transparent;}
.product-badge{
  position:absolute;
  top:18px;
  left:18px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  padding:7px 13px;
  border-radius:100px;
  box-shadow:0 6px 14px -4px rgba(0,0,0,0.25);
}
.product-badge.is-popular{background:linear-gradient(135deg,var(--orange-500),var(--orange-600));color:#fff;}
.product-badge.is-new{background:var(--navy-900);color:#fff;}
.product-card-media{
  position:relative;
  aspect-ratio:16/10;
  background:linear-gradient(165deg,var(--navy-900),var(--navy-950));
  overflow:hidden;
}
.product-card-media img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .4s ease;}
.product-card:hover .product-card-media img{transform:scale(1.04);}
.product-card-media.is-templates{
  display:flex;
  align-items:center;
  justify-content:center;
}
.template-mini-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:22px;
  width:100%;
}
.template-mini-grid span{
  aspect-ratio:3/4;
  border-radius:8px;
  background:linear-gradient(160deg,rgba(255,255,255,0.14),rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.14);
}
.product-card-body{
  padding:26px 26px 28px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.product-cat{
  font-family:var(--font-mono);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--orange-600);
  font-weight:700;
}
.product-card-body h3{font-size:22px;margin-top:8px;}
.product-card-body p{color:var(--muted);font-size:14.5px;line-height:1.65;margin-top:8px;flex:1;}
.product-card-price{
  display:flex;
  align-items:baseline;
  gap:9px;
  margin:18px 0 16px;
}
.product-card-price .was{
  font-size:14.5px;
  color:var(--muted-2);
  text-decoration:line-through;
}
.product-card-price .now{
  font-family:var(--font-mono);
  font-size:26px;
  font-weight:700;
  color:var(--navy-900);
}
.product-card-price .per{font-size:12.5px;color:var(--muted);font-weight:600;}
.product-card-stars{
  display:flex;align-items:center;gap:7px;
  font-size:12.5px;color:var(--muted);
  margin-bottom:14px;
}
.product-card-stars .stars{color:var(--orange-500);letter-spacing:1px;}
.product-card .btn{margin-top:auto;}

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

/* Coming-soon teaser card, used to hint at future bundles */
.product-card.is-coming-soon{
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1.5px dashed var(--line);
  background:var(--bg-alt);
}
.product-card.is-coming-soon .product-card-body{
  align-items:center;
  justify-content:center;
  padding:50px 30px;
}
.product-card.is-coming-soon .soon-icon{
  width:52px;height:52px;border-radius:14px;
  background:var(--white);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--orange-600);margin-bottom:16px;
}
.product-card.is-coming-soon h3{font-size:18px;}
.product-card.is-coming-soon p{margin-top:6px;flex:none;}

/* ==========================================================================
   Demo video / "hero-style" product walkthrough panel
   ========================================================================== */
.demo-wrap{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:56px;
  align-items:center;
}
.demo-copy p{color:var(--muted);font-size:16.5px;line-height:1.7;margin-top:14px;}
.demo-copy .hero-trust{border-top:none;padding-top:0;margin-top:26px;}
.demo-copy .hero-trust li{color:var(--muted);}
.demo-copy .hero-trust svg{color:var(--orange-600);}
.demo-frame-wrap{position:relative;}
.demo-frame{
  position:relative;
  background:linear-gradient(165deg,#152A46,#0E1D33);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px;
  padding:12px 12px 0;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.demo-frame-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 6px 12px;
}
.demo-frame-top .dot{width:9px;height:9px;border-radius:50%;}
.demo-frame-top .dot:nth-child(1){background:#F87171;}
.demo-frame-top .dot:nth-child(2){background:#FBBF24;}
.demo-frame-top .dot:nth-child(3){background:#4ADE80;}
.demo-frame-tag{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.05em;
  color:rgba(255,255,255,0.42);
}
.demo-frame video{
  display:block;
  width:100%;
  border-radius:12px 12px 0 0;
  background:#000;
}
.demo-badge-float{
  position:absolute;
  right:-14px;
  bottom:-16px;
  background:var(--navy-950);
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  padding:11px 18px;
  border-radius:100px;
  box-shadow:var(--shadow-lg);
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,0.14);
}
.demo-badge-float b{color:var(--orange-400);}
.demo-badge-float .live-dot{width:7px;height:7px;border-radius:50%;background:#4ADE80;animation:pulse-dot 1.6s ease-in-out infinite;}

@media (max-width:1000px){
  .demo-wrap{grid-template-columns:1fr;gap:36px;}
  .demo-frame-wrap{max-width:560px;width:100%;margin:0 auto;}
}
@media (max-width:640px){
  .demo-badge-float{position:static;display:inline-flex;margin-top:14px;}
}

/* ---- Compact teaser variant (used on Home, smaller than product-page demo) ---- */
.demo-wrap.is-compact .demo-copy h2{font-size:clamp(22px,3vw,30px);}

/* ==========================================================================
   Flash sale banner + auto-resetting countdown
   ========================================================================== */
.flash-sale-banner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:18px 26px;
  background:linear-gradient(120deg,#7A1E02,#DD5B0C 60%,#F0752A);
  border-radius:18px;
  padding:20px 28px;
  margin:0 auto 34px;
  max-width:720px;
  box-shadow:0 16px 34px -14px rgba(221,91,12,0.6);
}
.flash-sale-left{display:flex;flex-direction:column;gap:4px;}
.flash-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
  width:fit-content;
}
.flash-sale-text{font-size:13.5px;color:rgba(255,255,255,0.85);font-weight:600;}
.countdown{display:flex;align-items:center;gap:8px;}
.countdown-box{
  background:rgba(0,0,0,0.28);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:10px;
  padding:8px 10px 6px;
  min-width:52px;
  text-align:center;
}
.countdown-box span{
  display:block;
  font-family:var(--font-mono);
  font-size:22px;
  font-weight:700;
  color:#fff;
  line-height:1;
}
.countdown-box small{
  display:block;
  font-size:9px;
  letter-spacing:.06em;
  color:rgba(255,255,255,0.7);
  margin-top:4px;
  font-weight:700;
}
.countdown-sep{color:rgba(255,255,255,0.6);font-weight:700;font-size:18px;}
@media (max-width:560px){
  .flash-sale-banner{padding:18px 20px;}
  .countdown-box{min-width:44px;padding:6px 7px 5px;}
  .countdown-box span{font-size:18px;}
}

/* ==========================================================================
   Dual pricing plan cards (monthly / yearly, or single one-time)
   ========================================================================== */
.pricing-plans{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  max-width:840px;
  margin:0 auto;
  align-items:stretch;
}
.pricing-plans.is-single{
  grid-template-columns:minmax(0,420px);
  justify-content:center;
}
.pricing-plans .price-card{height:100%;display:flex;flex-direction:column;}
.pricing-plans .price-card-inner{flex:1;display:flex;flex-direction:column;}
.price-was-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:2px;
}
.price-was-row .was{
  font-family:var(--font-mono);
  font-size:16px;
  color:rgba(255,255,255,0.42);
  text-decoration:line-through;
}
.price-off-badge{
  background:rgba(74,222,128,0.16);
  color:#4ADE80;
  font-size:11px;
  font-weight:800;
  padding:3px 9px;
  border-radius:100px;
}
.price-card-inner .price-features{flex:1;}

@media (max-width:760px){
  .pricing-plans{grid-template-columns:1fr;max-width:460px;}
}

/* ==========================================================================
   Bonus grid (Website Template Bundle)
   ========================================================================== */
.bonus-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.bonus-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 18px;
  text-align:center;
}
.bonus-card .bonus-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:var(--orange-100);
  color:var(--orange-600);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 14px;
}
.bonus-card h4{font-size:14.5px;margin-bottom:6px;}
.bonus-card .bonus-value{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  color:#16A34A;
  background:#EFFBF3;
  padding:3px 10px;
  border-radius:100px;
  margin-top:6px;
}
@media (max-width:900px){.bonus-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.bonus-grid{grid-template-columns:1fr;}}

/* ==========================================================================
   Niche / template category showcase (product demo for Website Template Bundle)
   ========================================================================== */
.niche-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.niche-card{
  background:linear-gradient(165deg,var(--navy-900),var(--navy-950));
  border-radius:16px;
  padding:16px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.niche-card-frame{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:12px;
  margin-bottom:14px;
}
.niche-card-bars span{
  display:block;
  height:7px;
  border-radius:4px;
  background:rgba(255,255,255,0.14);
  margin-bottom:7px;
}
.niche-card-bars span:nth-child(1){width:60%;background:linear-gradient(90deg,var(--orange-400),var(--orange-600));}
.niche-card-bars span:nth-child(2){width:100%;}
.niche-card-bars span:nth-child(3){width:82%;}
.niche-card-bars span:last-child{margin-bottom:0;}
.niche-card-blocks{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;}
.niche-card-blocks span{display:block;height:20px;border-radius:5px;background:rgba(255,255,255,0.08);}
.niche-card h4{font-size:13.5px;color:#fff;font-weight:700;}
.niche-card span.niche-count{display:block;font-size:11.5px;color:rgba(255,255,255,0.45);margin-top:3px;}
@media (max-width:900px){.niche-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.niche-grid{grid-template-columns:1fr;}}

/* ---- What's-inside checklist (Website Template Bundle) ---- */
.include-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 28px;
}
.include-grid li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  padding:14px 16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
}
.include-grid li svg{flex:none;margin-top:2px;color:#16A34A;}
@media (max-width:700px){.include-grid{grid-template-columns:1fr;}}

/* ==========================================================================
   Bundle-stack hero visual — fanned real screenshots showing "a bundle",
   not a single product. Used on Home hero and both product-page heroes.
   ========================================================================== */
.bundle-stack{
  position:relative;
  width:100%;
  max-width:440px;
  margin:0 auto;
  aspect-ratio:1/0.92;
}
.bundle-stack .stack-card{
  position:absolute;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 24px 44px -16px rgba(0,0,0,0.55);
  border:4px solid var(--white);
  background:var(--white);
}
.bundle-stack .stack-card img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;}
.bundle-stack .stack-card.is-portrait{aspect-ratio:3/4;}
.bundle-stack .stack-card.is-landscape{aspect-ratio:16/10;}
.bundle-stack .card-back-left{width:46%;top:2%;left:0;transform:rotate(-10deg);z-index:1;}
.bundle-stack .card-back-right{width:46%;top:0;right:0;transform:rotate(9deg);z-index:1;}
.bundle-stack .card-front{width:62%;top:26%;left:19%;transform:rotate(-1.5deg);z-index:3;}
.bundle-stack .stack-tag{
  position:absolute;
  bottom:-14px;
  left:50%;
  transform:translateX(-50%);
  z-index:4;
  background:var(--navy-950);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:9px 18px;
  border-radius:100px;
  white-space:nowrap;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,0.14);
  display:flex;align-items:center;gap:7px;
}
.bundle-stack .stack-tag b{color:var(--orange-400);}
@media (max-width:480px){
  .bundle-stack{max-width:320px;}
}

/* ==========================================================================
   Product card media — "app window" frame variant (WA Sender screenshots)
   ========================================================================== */
.product-card-media.is-app-frame{
  background:linear-gradient(165deg,var(--navy-900),var(--navy-950));
  display:flex;
  flex-direction:column;
  padding:13px 13px 0;
}
.product-card-media.is-app-frame .mini-frame-top{
  display:flex;
  gap:6px;
  padding-bottom:10px;
  flex:none;
}
.product-card-media.is-app-frame .mini-frame-top span{
  width:7px;height:7px;border-radius:50%;
  background:rgba(255,255,255,0.28);
}
.product-card-media.is-app-frame img{
  width:100%;
  flex:1;
  object-fit:cover;
  object-position:top;
  border-radius:8px 8px 0 0;
  display:block;
}

/* Real thumbnails inside the template mini-grid (replaces placeholder spans) */
.template-mini-grid img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:top;
  border-radius:7px;
  border:1px solid rgba(255,255,255,0.16);
  display:block;
}

/* ==========================================================================
   Demo carousel — real template screenshots, sliding + clickable (lightbox)
   ========================================================================== */
.demo-carousel{position:relative;}
.demo-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:6px 6px 22px;
  scrollbar-width:none;
}
.demo-track::-webkit-scrollbar{display:none;}
.demo-slide{
  flex:none;
  width:230px;
  scroll-snap-align:start;
  cursor:pointer;
  border:none;
  padding:0;
  background:none;
  text-align:left;
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow-md);
  transition:transform .2s ease, box-shadow .2s ease;
  position:relative;
}
.demo-slide:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);}
.demo-slide img{width:100%;aspect-ratio:3/3.6;object-fit:cover;object-position:top;display:block;}
.demo-slide .demo-slide-tag{
  position:absolute;
  left:10px;bottom:10px;
  background:rgba(10,22,38,0.82);
  color:#fff;
  font-size:11.5px;
  font-weight:700;
  padding:6px 11px;
  border-radius:100px;
  backdrop-filter:blur(4px);
}
.demo-slide .zoom-hint{
  position:absolute;top:10px;right:10px;
  width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,0.92);
  color:var(--navy-900);
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  transition:opacity .18s ease;
}
.demo-slide:hover .zoom-hint{opacity:1;}
.demo-carousel-nav{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:6px;
}
.demo-carousel-nav button{
  width:40px;height:40px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--navy-800);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s,border-color .15s;
}
.demo-carousel-nav button:hover{background:var(--bg-alt);border-color:var(--orange-400);color:var(--orange-600);}

/* Lightbox */
.img-lightbox{
  position:fixed;inset:0;
  z-index:400;
  background:rgba(6,12,22,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}
.img-lightbox.is-open{display:flex;}
.img-lightbox img{
  max-width:min(520px,90vw);
  max-height:82vh;
  border-radius:14px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,0.7);
}
.img-lightbox .lightbox-close{
  position:absolute;top:22px;right:24px;
  width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.img-lightbox .lightbox-caption{
  position:absolute;
  bottom:28px;left:50%;transform:translateX(-50%);
  background:rgba(255,255,255,0.1);
  color:#fff;
  font-size:13px;font-weight:600;
  padding:8px 18px;
  border-radius:100px;
  border:1px solid rgba(255,255,255,0.16);
}

/* ==========================================================================
   Deliverable count callout ("6 folders" — Website Template Bundle)
   ========================================================================== */
.deliverable-count{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:center;
  margin:0 0 30px;
}
.deliverable-count .count-chip{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 22px;
  min-width:210px;
}
.deliverable-count .count-chip b{
  font-family:var(--font-mono);
  font-size:28px;
  color:var(--orange-600);
  line-height:1;
}
.deliverable-count .count-chip span{font-size:13px;color:var(--muted);font-weight:600;display:block;margin-top:2px;}
