/* =========================================================
   ZYNN STORE V11 — RESPONSIVE FINAL FIX
   Tujuan: V10 rapi di HP, dan desktop tidak rusak oleh pseudo/gradient V9.
   Load PALING TERAKHIR.
   ========================================================= */
:root{
  --z11-cyan:#48f3ff;
  --z11-blue:#2b96ff;
  --z11-purple:#9b63ff;
  --z11-bg:#050f24;
  --z11-card:#061731;
  --z11-deep:#020817;
  --z11-line:rgba(72,243,255,.23);
  --z11-text:#f7fbff;
  --z11-muted:rgba(218,230,255,.74);
}

@keyframes z11FadeUp{from{opacity:0;transform:translate3d(0,18px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes z11FloatSoft{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-4px,0)}}
@keyframes z11GlowPulse{0%,100%{box-shadow:0 18px 48px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07)}50%{box-shadow:0 22px 58px rgba(0,0,0,.45),0 0 26px rgba(72,243,255,.12),inset 0 1px 0 rgba(255,255,255,.09)}}

html,body{overflow-x:hidden!important;scroll-behavior:smooth!important;}
body{-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision;}

/* RESET UTAMA: matikan pseudo gradient lama yang bikin blok cyan ungu besar di desktop */
.grid .card::before,
.grid .card::after,
.products-grid .product-card::before,
.products-grid .product-card::after,
.digital-products-grid .digital-product-card::before,
.digital-products-grid .digital-product-card::after{
  inset:auto!important;
  transform:none!important;
  opacity:1!important;
  pointer-events:none!important;
  box-shadow:none!important;
}

/* ===== APK CARD DESKTOP & TABLET ===== */
.section.category-section .grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
  gap:20px!important;
  align-items:stretch!important;
}

.section.category-section .grid .card{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:265px!important;
  height:auto!important;
  padding:24px 24px 76px!important;
  border-radius:28px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  text-align:left!important;
  background:
    radial-gradient(circle at 50% -12%,rgba(72,243,255,.15),transparent 44%),
    linear-gradient(180deg,rgba(8,25,58,.94),rgba(3,8,21,.99))!important;
  border:1px solid rgba(72,243,255,.22)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07)!important;
  transition:transform .28s cubic-bezier(.16,1,.3,1),border-color .28s ease,box-shadow .28s ease!important;
  animation:z11FadeUp .55s cubic-bezier(.16,1,.3,1) both!important;
}

.section.category-section .grid .card:hover{
  transform:translateY(-6px)!important;
  border-color:rgba(72,243,255,.44)!important;
  box-shadow:0 28px 72px rgba(0,0,0,.48),0 0 34px rgba(72,243,255,.13),inset 0 1px 0 rgba(255,255,255,.09)!important;
}

.section.category-section .grid .card img{
  position:relative!important;
  z-index:2!important;
  width:96px!important;
  height:96px!important;
  min-width:96px!important;
  min-height:96px!important;
  max-width:96px!important;
  max-height:96px!important;
  object-fit:contain!important;
  display:block!important;
  align-self:center!important;
  margin:42px auto 22px!important;
  padding:11px!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#fff,#edf4ff)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.35),0 0 22px rgba(72,243,255,.11)!important;
  filter:none!important;
  transition:transform .28s cubic-bezier(.16,1,.3,1),filter .28s ease!important;
}
.section.category-section .grid .card:hover img{transform:translateY(-3px) scale(1.045)!important;}

.section.category-section .grid .card span{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  color:var(--z11-text)!important;
  background:transparent!important;
  font-size:18px!important;
  line-height:1.12!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  min-height:40px!important;
  text-shadow:none!important;
}
.section.category-section .grid .card span::before{content:none!important;display:none!important;}
.section.category-section .grid .card span::after{
  content:attr(data-meta)!important;
  display:block!important;
  width:100%!important;
  margin-top:8px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:var(--z11-muted)!important;
  font-size:13px!important;
  line-height:1.22!important;
  font-weight:800!important;
  letter-spacing:0!important;
  white-space:normal!important;
}

/* Badge kecil, bukan blok besar */
.section.category-section .grid .card[data-badge]::before{
  content:attr(data-badge)!important;
  position:absolute!important;
  top:18px!important;
  left:18px!important;
  right:auto!important;
  bottom:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  max-width:calc(100% - 36px)!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(72,243,255,.11)!important;
  border:1px solid rgba(72,243,255,.20)!important;
  color:rgba(220,252,255,.92)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  z-index:4!important;
}
.section.category-section .grid .card:not([data-badge])::before{content:none!important;display:none!important;}

/* Tombol harga kecil bawah card */
.section.category-section .grid .card[data-price]::after{
  content:attr(data-price)!important;
  position:absolute!important;
  left:24px!important;
  right:24px!important;
  bottom:22px!important;
  top:auto!important;
  width:auto!important;
  height:42px!important;
  min-width:0!important;
  max-width:none!important;
  padding:0 14px!important;
  border-radius:17px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(100deg,var(--z11-cyan),var(--z11-purple))!important;
  color:#061224!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.01em!important;
  z-index:3!important;
}
.section.category-section .grid .card:not([data-price])::after{content:none!important;display:none!important;}

/* Kategori lain yang pakai .card tapi tanpa data-price/badge tetap normal */
.section.category-section .grid .card:not([data-price]){padding-bottom:24px!important;}

/* ===== DESKTOP LAYOUT GUARD ===== */
@media(min-width:721px){
  body{padding-bottom:0!important;}
  .zynn-bottom-nav{display:none!important;}
  .section.category-section{overflow:visible!important;}
  .tab-switch,.ds-tabs{overflow:hidden!important;}
  .section.category-section .grid .card:nth-child(n){animation-delay:0s!important;}
  .section.category-section .grid .card{animation:z11FadeUp .5s cubic-bezier(.16,1,.3,1) both!important;}
}

/* ===== MOBILE FINAL ===== */
@media(max-width:720px){
  body{padding-bottom:112px!important;}
  .app,main,.container,.section{overflow-x:hidden!important;}

  .search-wrapper,.ds-search-wrap{
    width:calc(100% - 24px)!important;
    max-width:430px!important;
    height:68px!important;
    margin:16px auto 18px!important;
    padding:0 16px!important;
    border-radius:24px!important;
    overflow:hidden!important;
    background:linear-gradient(180deg,rgba(8,29,67,.92),rgba(3,13,34,.96))!important;
    border:1px solid rgba(72,243,255,.18)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 46px rgba(0,0,0,.28)!important;
  }
  .search-wrapper::before,.ds-search-wrap::before{content:none!important;display:none!important;}
  #searchInput,.ds-search{height:100%!important;border:0!important;outline:0!important;border-radius:24px!important;background:transparent!important;box-shadow:none!important;}

  .banner-wrapper,.cyber-home-hero{width:calc(100% - 24px)!important;max-width:430px!important;margin-left:auto!important;margin-right:auto!important;}
  .banner-slider{border-radius:25px!important;overflow:hidden!important;}

  .tab-switch,.ds-tabs{
    width:calc(100% - 24px)!important;
    max-width:430px!important;
    height:64px!important;
    margin:20px auto 26px!important;
    padding:5px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    border-radius:25px!important;
    background:rgba(8,22,48,.72)!important;
    border:1px solid rgba(72,243,255,.16)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 40px rgba(0,0,0,.28)!important;
    overflow:hidden!important;
  }
  .tab-btn,.ds-tab{height:100%!important;min-width:0!important;border-radius:20px!important;font-size:15px!important;font-weight:950!important;white-space:nowrap!important;}
  .tab-btn.active,.ds-tab.active{background:linear-gradient(100deg,var(--z11-cyan),var(--z11-purple))!important;color:#051126!important;box-shadow:0 10px 28px rgba(72,243,255,.19),0 0 24px rgba(155,98,255,.13)!important;}

  .section.category-section,.section{width:calc(100% - 24px)!important;max-width:430px!important;margin-left:auto!important;margin-right:auto!important;padding-bottom:30px!important;overflow:visible!important;}
  .section.category-section h2,.section h2,.ds-section-title{margin:0 0 18px!important;font-size:28px!important;line-height:1.06!important;letter-spacing:-.045em!important;}

  .section.category-section .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:0 0 26px!important;}
  .section.category-section .grid .card{
    min-height:228px!important;
    padding:13px 12px 58px!important;
    border-radius:24px!important;
    animation:z11FadeUp .58s cubic-bezier(.16,1,.3,1) both,z11GlowPulse 6s ease-in-out infinite!important;
  }
  .section.category-section .grid .card:hover{transform:none!important;}
  .section.category-section .grid .card:active{transform:scale(.975)!important;}
  .section.category-section .grid .card img{width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;max-width:82px!important;max-height:82px!important;margin:34px auto 16px!important;padding:9px!important;border-radius:22px!important;animation:z11FloatSoft 5s ease-in-out infinite!important;}
  .section.category-section .grid .card span{font-size:15px!important;min-height:34px!important;}
  .section.category-section .grid .card span::after{font-size:11.2px!important;margin-top:7px!important;}
  .section.category-section .grid .card[data-badge]::before{top:10px!important;left:10px!important;max-width:calc(100% - 20px)!important;padding:5px 8px!important;font-size:9px!important;}
  .section.category-section .grid .card[data-price]::after{left:12px!important;right:12px!important;bottom:12px!important;height:34px!important;border-radius:14px!important;font-size:11.5px!important;}

  .ds-service-row{width:calc(100% - 24px)!important;max-width:430px!important;margin:0 auto 24px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
  .ds-service-box{min-height:104px!important;padding:14px!important;border-radius:22px!important;display:flex!important;align-items:center!important;gap:10px!important;overflow:hidden!important;}
  .ds-service-icon{width:48px!important;height:48px!important;min-width:48px!important;border-radius:16px!important;}
  .ds-service-title{writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;font-size:12.4px!important;line-height:1.08!important;letter-spacing:-.02em!important;}
  .ds-service-text::after{font-size:10.5px!important;white-space:normal!important;}

  .ds-grid{width:calc(100% - 24px)!important;max-width:430px!important;margin-left:auto!important;margin-right:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding-bottom:110px!important;}
  .ds-card{border-radius:24px!important;min-height:286px!important;overflow:hidden!important;animation:z11FadeUp .58s cubic-bezier(.16,1,.3,1) both!important;}
  .ds-media{aspect-ratio:1/1!important;min-height:154px!important;padding:12px!important;background:#050a17!important;}
  .ds-media img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:18px!important;transform:none!important;}
  .ds-meta{padding:13px 13px 58px!important;min-height:124px!important;}
  .ds-title{font-size:14.3px!important;line-height:1.08!important;-webkit-line-clamp:2!important;}
  .price-new{left:13px!important;right:13px!important;bottom:13px!important;height:36px!important;border-radius:14px!important;font-size:12.8px!important;}

  .zynn-bottom-nav{width:calc(100% - 28px)!important;max-width:410px!important;height:74px!important;left:50%!important;transform:translateX(-50%) translateZ(0)!important;bottom:18px!important;border-radius:26px!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;}
  #cs-pill,#cs-bubble{animation:z11FloatSoft 4.8s ease-in-out infinite!important;}
}

@media(max-width:390px){
  .section.category-section .grid .card{min-height:214px!important;padding:12px 11px 55px!important;border-radius:22px!important;}
  .section.category-section .grid .card img{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;margin-top:33px!important;margin-bottom:14px!important;border-radius:20px!important;}
  .section.category-section .grid .card span{font-size:14.2px!important;min-height:32px!important;}
  .section.category-section .grid .card span::after{font-size:10.5px!important;}
  .section.category-section .grid .card[data-badge]::before{font-size:8.2px!important;padding:5px 7px!important;}
  .section.category-section .grid .card[data-price]::after{height:32px!important;left:11px!important;right:11px!important;bottom:11px!important;font-size:10.8px!important;}
  .ds-media{min-height:142px!important;}
  .ds-card{min-height:270px!important;}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
