
/* =========================================================
   HOME CASE — RICH STOREFRONT PRODUCT MOCKUP
   A lightweight HTML/CSS product ecosystem for the demo case.
   ========================================================= */

.case-cinematic-grid{
  grid-template-columns:minmax(0,1.22fr) minmax(390px,.78fr);
  gap:clamp(3rem,6vw,6.5rem)
}

.case-product-visual{
  position:relative;
  min-height:620px;
  padding:36px 42px 54px 0;
  transform:perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,-2deg));
  transform-style:preserve-3d
}

.case-product-visual:before{
  content:"";
  position:absolute;
  inset:8% 4% 5% 8%;
  z-index:-1;
  border-radius:48%;
  background:
    radial-gradient(circle at 28% 36%,rgba(0,245,255,.13),transparent 28%),
    radial-gradient(circle at 74% 72%,rgba(139,92,246,.18),transparent 34%);
  filter:blur(34px)
}

.case-product-visual:after{
  content:"";
  position:absolute;
  left:6%;
  right:7%;
  bottom:1%;
  height:34px;
  z-index:-2;
  border-radius:50%;
  background:rgba(0,0,0,.42);
  filter:blur(18px)
}

.storefront-browser{
  position:relative;
  z-index:2;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(0,245,255,.18);
  background:#071126;
  box-shadow:
    0 42px 100px rgba(0,0,0,.40),
    0 0 70px rgba(85,114,255,.08),
    inset 0 1px 0 rgba(255,255,255,.045)
}

.storefront-browser-bar{
  height:44px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1rem;
  padding:0 14px;
  background:linear-gradient(90deg,#0b1731,#111432 60%,#161133);
  border-bottom:1px solid rgba(0,245,255,.09)
}

.storefront-window-dots{
  display:flex;
  gap:7px
}

.storefront-window-dots i{
  width:8px;height:8px;border-radius:50%;
  background:#596783
}

.storefront-window-dots i:nth-child(2){background:#7283a7}
.storefront-window-dots i:nth-child(3){background:#8b98b5}

.storefront-address{
  color:var(--ds-text-subtle-dark);
  font-size:.56rem;
  letter-spacing:.03em
}

.storefront-live{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:.35rem;
  color:var(--ds-text-muted-dark);
  font-size:.48rem;
  letter-spacing:.08em;
  font-weight:800
}

.storefront-live span{
  width:6px;height:6px;border-radius:50%;
  background:var(--acid);
  box-shadow:0 0 12px rgba(199,255,61,.55)
}

.storefront-app{
  display:grid;
  grid-template-columns:118px 1fr;
  min-height:470px;
  background:#edf2ff
}

.storefront-sidebar{
  position:relative;
  padding:18px 12px 14px;
  color:#fff;
  background:
    radial-gradient(circle at 20% 10%,rgba(0,245,255,.12),transparent 35%),
    linear-gradient(180deg,#192d62,#4e50c8 44%,#7953e0 100%)
}

.storefront-brandmark{
  width:34px;height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--plasma),#6d72ff 58%,var(--magenta));
  color:#fff;
  font-size:.64rem;
  font-weight:950;
  box-shadow:0 10px 25px rgba(0,0,0,.16)
}

.storefront-side-label{
  margin:18px 0 7px;
  color:var(--ds-text-subtle-dark);
  font-size:.42rem;
  letter-spacing:.14em;
  font-weight:900
}

.storefront-nav{
  display:flex;
  align-items:center;
  gap:.46rem;
  min-height:31px;
  padding:0 .52rem;
  border-radius:8px;
  color:var(--ds-text-muted-dark);
  font-size:.52rem
}

.storefront-nav i{
  width:7px;height:7px;border-radius:2px;
  background:rgba(255,255,255,.24)
}

.storefront-nav.active{
  color:#fff;
  background:rgba(255,255,255,.11);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)
}

.storefront-nav.active i{background:var(--acid)}

.storefront-sidebar-foot{
  position:absolute;
  left:12px;right:12px;bottom:14px;
  display:flex;
  gap:4px
}

.storefront-sidebar-foot span{
  flex:1;
  padding:.24rem 0;
  border-radius:5px;
  text-align:center;
  background:rgba(0,0,0,.14);
  color:rgba(255,255,255,.66);
  font-size:.4rem;
  font-weight:850
}

.storefront-main{
  padding:14px 16px 16px;
  overflow:hidden
}

.storefront-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.65rem;
  margin-bottom:12px
}

.storefront-search{
  height:34px;
  display:flex;
  align-items:center;
  gap:.45rem;
  padding:0 .68rem;
  border-radius:9px;
  background:#fff;
  border:1px solid #dfe5f3;
  color:var(--ds-text-subtle-light)
}

.storefront-search span{
  color:var(--ds-accent-text-light);
  font-size:.85rem
}

.storefront-search em{
  font-style:normal;
  font-size:.48rem
}

.storefront-toolbar-actions{
  display:flex;
  gap:.35rem;
  align-items:center
}

.storefront-toolbar-actions span,
.storefront-toolbar-actions b{
  min-height:31px;
  display:grid;
  place-items:center;
  padding:0 .48rem;
  border-radius:8px;
  background:#fff;
  border:1px solid #dfe5f3;
  color:#5d6882;
  font-size:.45rem;
  font-weight:750
}

.storefront-feature{
  position:relative;
  min-height:192px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  border-radius:15px;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.16),transparent 18%),
    linear-gradient(125deg,#0dbed4 0%,#466cff 38%,#8b5cf6 67%,#ff3cac 100%);
  box-shadow:0 16px 34px rgba(80,92,200,.15)
}

.storefront-feature-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px 8px 20px 22px;
  color:#fff
}

.storefront-feature-copy>span{
  color:rgba(255,255,255,.64);
  font-size:.4rem;
  letter-spacing:.14em;
  font-weight:900
}

.storefront-feature-copy strong{
  display:block;
  margin:.5rem 0 .45rem;
  max-width:13ch;
  font-size:1.18rem;
  line-height:.95;
  letter-spacing:-.045em
}

.storefront-feature-copy strong em{
  color:var(--acid);
  font-style:normal
}

.storefront-feature-copy p{
  max-width:270px;
  margin:0;
  color:rgba(255,255,255,.68);
  font-size:.48rem;
  line-height:1.45
}

.storefront-feature-actions{
  display:flex;
  gap:.38rem;
  margin-top:.7rem
}

.storefront-feature-actions b,
.storefront-feature-actions i{
  padding:.34rem .48rem;
  border-radius:7px;
  font-size:.42rem;
  font-style:normal
}

.storefront-feature-actions b{
  background:#fff;
  color:#3d4ec1
}

.storefront-feature-actions i{
  border:1px solid rgba(255,255,255,.24);
  color:rgba(255,255,255,.78)
}

.storefront-feature-art{
  position:relative;
  overflow:hidden
}

.sfa-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(.2px)
}

.sfa-one{
  width:106px;height:106px;
  right:28px;top:23px;
  background:radial-gradient(circle at 28% 24%,#eaff77,#4fe0d1 34%,#4557ed 67%,#5d2fac);
  box-shadow:0 18px 38px rgba(39,29,111,.25)
}

.sfa-two{
  width:54px;height:54px;
  right:10px;bottom:14px;
  background:radial-gradient(circle at 28% 28%,#ff8bce,#ff3cac 47%,#6835b7);
  opacity:.88
}

.sfa-card{
  position:absolute;
  width:88px;height:58px;
  border-radius:11px;
  background:rgba(8,14,41,.54);
  border:1px solid rgba(255,255,255,.21);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
  backdrop-filter:blur(8px)
}

.sfa-card:before,
.sfa-card:after{
  content:"";
  position:absolute;
  left:10px;
  border-radius:99px;
  background:rgba(255,255,255,.42)
}

.sfa-card:before{top:14px;width:38px;height:4px}
.sfa-card:after{top:25px;width:56px;height:3px;opacity:.52}

.sfa-card-a{right:72px;bottom:12px;transform:rotate(-7deg)}
.sfa-card-b{right:7px;top:18px;transform:rotate(8deg) scale(.86)}

.sfa-grid{
  position:absolute;
  inset:0;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.32) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.32) 1px,transparent 1px);
  background-size:24px 24px;
  mask-image:linear-gradient(90deg,transparent 10%,#000)
}

.storefront-section-row{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:1rem;
  margin:14px 1px 8px
}

.storefront-section-row small{
  display:block;
  color:var(--ds-text-muted-light);
  font-size:.39rem;
  letter-spacing:.12em
}

.storefront-section-row strong{
  display:block;
  color:#17213a;
  font-size:.68rem;
  margin-top:.1rem
}

.storefront-section-row>span{
  color:#5368db;
  font-size:.45rem
}

.storefront-products{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px
}

.storefront-products article{
  overflow:hidden;
  min-width:0;
  border-radius:11px;
  background:#fff;
  border:1px solid #dfe6f3;
  box-shadow:0 7px 16px rgba(60,72,120,.05)
}

.storefront-product-media{
  position:relative;
  height:84px;
  overflow:hidden
}

.storefront-product-media:before,
.storefront-product-media:after{
  content:"";
  position:absolute;
  border-radius:50%
}

.storefront-product-media:before{
  width:58px;height:58px;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 14px 25px rgba(0,0,0,.12)
}

.storefront-product-media:after{
  width:90px;height:18px;
  left:50%;bottom:6px;
  transform:translateX(-50%);
  background:rgba(0,0,0,.14);
  filter:blur(7px)
}

.spm-one{background:linear-gradient(145deg,#dff7f2,#a9d7ff)}
.spm-one:before{background:radial-gradient(circle at 30% 28%,#dfff76,#5cc96d 58%,#225a33)}
.spm-two{background:linear-gradient(145deg,#e7e5ff,#d6bcff)}
.spm-two:before{background:radial-gradient(circle at 30% 28%,#9cf4ff,#4f75ff 55%,#5533ab)}
.spm-three{background:linear-gradient(145deg,#ffe3f1,#ffd6c4)}
.spm-three:before{background:radial-gradient(circle at 30% 28%,#ff94ca,#ff4e91 55%,#8c2762)}

.storefront-product-media span{
  position:absolute;
  z-index:2;
  left:7px;top:7px;
  padding:.18rem .25rem;
  border-radius:5px;
  background:rgba(8,14,41,.72);
  color:#fff;
  font-size:.32rem;
  letter-spacing:.06em
}

.storefront-product-meta{
  padding:8px 8px 9px
}

.storefront-product-meta b{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#1a243d;
  font-size:.5rem
}

.storefront-product-meta small{
  display:block;
  margin-top:.15rem;
  color:var(--ds-text-subtle-light);
  font-size:.37rem
}

/* floating admin panel */
.storefront-admin-panel{
  position:absolute;
  z-index:4;
  left:-24px;
  bottom:8px;
  width:225px;
  padding:12px;
  border-radius:16px;
  background:linear-gradient(145deg,rgba(8,18,43,.94),rgba(23,12,61,.92));
  border:1px solid rgba(0,245,255,.16);
  box-shadow:0 24px 55px rgba(0,0,0,.36);
  backdrop-filter:blur(14px);
  transform:translateZ(80px)
}

.sap-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem
}

.sap-head span{
  color:#7f8db0;
  font-size:.42rem;
  letter-spacing:.1em
}

.sap-head b{
  color:var(--acid);
  font-size:.38rem;
  letter-spacing:.08em
}

.sap-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:10px
}

.sap-metrics div{
  position:relative;
  min-height:52px;
  padding:8px;
  overflow:hidden;
  border-radius:9px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.055)
}

.sap-metrics small{
  display:block;
  color:var(--ds-text-subtle-dark);
  font-size:.34rem;
  letter-spacing:.08em
}

.sap-metrics strong{
  display:block;
  margin-top:.2rem;
  color:#fff;
  font-size:.62rem
}

.sap-metrics i{
  position:absolute;
  right:-6px;bottom:-7px;
  width:28px;height:28px;border-radius:50%;
  background:radial-gradient(circle,var(--plasma),transparent 68%);
  opacity:.23
}

.sap-chart{
  height:42px;
  display:flex;
  align-items:end;
  gap:4px;
  margin-top:9px
}

.sap-chart i{
  flex:1;
  height:var(--h);
  border-radius:3px 3px 1px 1px;
  background:linear-gradient(to top,#4d64ff,var(--plasma))
}

.sap-foot{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  color:var(--ds-text-subtle-dark);
  font-size:.34rem
}

/* floating phone */
.storefront-phone{
  position:absolute;
  z-index:5;
  right:-4px;
  bottom:0;
  width:126px;
  min-height:250px;
  overflow:hidden;
  padding:15px 8px 9px;
  border-radius:24px;
  background:#071126;
  border:4px solid #182342;
  box-shadow:0 26px 60px rgba(0,0,0,.42),0 0 35px rgba(139,92,246,.1);
  transform:translateZ(110px) rotate(4deg)
}

.storefront-phone-notch{
  position:absolute;
  left:50%;top:5px;
  width:42px;height:7px;
  transform:translateX(-50%);
  border-radius:999px;
  background:#02050e
}

.storefront-phone-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 2px 8px;
  color:#fff
}

.storefront-phone-head b{
  font-size:.44rem;
  letter-spacing:.1em
}

.storefront-phone-head span{
  color:var(--plasma);
  font-size:.36rem
}

.storefront-phone-hero{
  min-height:96px;
  padding:12px 10px;
  border-radius:13px;
  background:
    radial-gradient(circle at 78% 24%,rgba(255,255,255,.22),transparent 16%),
    linear-gradient(140deg,#00c3d4,#4c6cff 43%,#8b5cf6 70%,#ff3cac);
  color:#fff
}

.storefront-phone-hero small{
  color:rgba(255,255,255,.62);
  font-size:.3rem;
  letter-spacing:.1em
}

.storefront-phone-hero strong{
  display:block;
  margin-top:.32rem;
  font-size:.78rem;
  line-height:.92;
  letter-spacing:-.04em
}

.storefront-phone-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin-top:7px
}

.storefront-phone-cards i{
  height:51px;
  border-radius:9px
}

.spc-one{background:linear-gradient(145deg,#dff7f2,#5f8cff)}
.spc-two{background:linear-gradient(145deg,#e8d7ff,#ff69b7)}

.storefront-phone-cta{
  margin-top:7px;
  padding:.45rem 0;
  border-radius:8px;
  text-align:center;
  background:linear-gradient(90deg,var(--plasma),#6f72ff);
  color:#071126;
  font-size:.4rem;
  font-weight:900
}

/* micro chips */
.storefront-floating-chip{
  position:absolute;
  z-index:6;
  display:flex;
  align-items:center;
  gap:.38rem;
  padding:.4rem .55rem;
  border-radius:999px;
  background:rgba(8,18,43,.88);
  border:1px solid rgba(255,255,255,.08);
  color:#a5b2cf;
  font-size:.42rem;
  letter-spacing:.04em;
  box-shadow:0 14px 32px rgba(0,0,0,.28);
  backdrop-filter:blur(12px)
}

.storefront-floating-chip span{
  width:5px;height:5px;border-radius:50%;
  background:var(--acid);
  box-shadow:0 0 10px rgba(199,255,61,.6)
}

.sfc-a{right:72px;top:13px}
.sfc-b{left:20px;top:16px}

@media(max-width:1180px){
  .case-cinematic-grid{grid-template-columns:1fr}
  .case-product-visual{
    width:min(900px,100%);
    margin-inline:auto;
    padding-right:48px
  }
}

@media(max-width:760px){
  .case-product-visual{
    min-height:510px;
    padding:18px 18px 62px 0
  }

  .storefront-app{
    grid-template-columns:86px 1fr;
    min-height:390px
  }

  .storefront-sidebar{
    padding:14px 8px 11px
  }

  .storefront-nav{
    padding:0 .35rem;
    font-size:.43rem
  }

  .storefront-main{
    padding:10px
  }

  .storefront-feature{
    grid-template-columns:1fr;
    min-height:170px
  }

  .storefront-feature-art{
    position:absolute;
    inset:0 0 0 48%;
    opacity:.72
  }

  .storefront-feature-copy{
    width:67%;
    padding-left:16px
  }

  .storefront-products{
    grid-template-columns:repeat(2,1fr)
  }

  .storefront-products article:nth-child(3){
    display:none
  }

  .storefront-admin-panel{
    width:190px;
    left:-6px;
    bottom:4px
  }

  .storefront-phone{
    width:108px;
    min-height:220px;
    right:0;
    bottom:-4px
  }

  .sfc-a,.sfc-b{display:none}
}

@media(max-width:520px){
  .case-product-visual{
    min-height:430px;
    padding-right:0
  }

  .storefront-browser{
    border-radius:17px
  }

  .storefront-browser-bar{
    grid-template-columns:auto 1fr;
    height:38px
  }

  .storefront-live{display:none}
  .storefront-address{justify-self:end}

  .storefront-app{
    grid-template-columns:1fr;
    min-height:338px
  }

  .storefront-sidebar{
    display:none
  }

  .storefront-feature{
    min-height:158px
  }

  .storefront-products{
    gap:6px
  }

  .storefront-product-media{
    height:70px
  }

  .storefront-admin-panel{
    left:-3px;
    bottom:-28px;
    width:172px;
    transform:none
  }

  .storefront-phone{
    right:4px;
    bottom:-34px;
    transform:rotate(3deg)
  }
}

@media(prefers-reduced-motion:reduce){
  .case-product-visual,
  .runway-stage{
    transition:none!important
  }
}
