/* Shared bottom navigation ring + Original Homepage Canonical Active Pill across Beranda, Keranjang, Pesanan, and Akun */
@property --istore-nav-ring-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes istoreNavRingWalk{from{--istore-nav-ring-angle:0deg}to{--istore-nav-ring-angle:360deg}}

body .bottom-nav-shell {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body .bottom-nav-shell .bottom-nav {
  border: 3px solid transparent !important;
  border-radius: clamp(25px, 3vw, 38px) !important;
  background: linear-gradient(var(--surface, #ffffff), var(--surface, #ffffff)) padding-box,
    conic-gradient(from var(--istore-nav-ring-angle), #7c3aed, #0ea5e9, #ec4899, #7c3aed) border-box !important;
  box-shadow: 0 10px 28px rgba(85, 48, 150, 0.14), 0 0 12px rgba(168, 85, 247, 0.14) !important;
  overflow: visible !important;
  min-height: clamp(64px, 7.8vw, 84px) !important;
  padding: clamp(6px, 0.9vw, 10px) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(3px, 0.7vw, 8px) !important;
}

html[data-theme="dark"] body .bottom-nav-shell .bottom-nav {
  background: linear-gradient(#0b1020, #0b1020) padding-box,
    conic-gradient(from var(--istore-nav-ring-angle), #bd86ff, #38bdf8, #f472b6, #bd86ff) border-box !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), 0 0 14px rgba(168, 85, 247, 0.18) !important;
}

/* Original Homepage Canonical Bottom Item & Rounded Purple Gradient Active Pill */
body .bottom-nav-shell .bottom-item {
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: clamp(5px, 0.75vw, 9px) 3px !important;
  border: 0 !important;
  border-radius: clamp(18px, 2vw, 26px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2px, 0.35vw, 4px) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #515968 !important;
  font-size: clamp(9px, 0.9vw, 11.5px) !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: visible !important;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease !important;
}

html[data-theme="dark"] body .bottom-nav-shell .bottom-item {
  color: #cbd5e1 !important;
}

body .bottom-nav-shell .bottom-item > .icon,
body .bottom-nav-shell .bottom-item > svg,
body .bottom-nav-shell .bottom-item > img {
  width: clamp(23px, 2.5vw, 30px) !important;
  height: clamp(23px, 2.5vw, 30px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  display: block !important;
  object-fit: contain !important;
}

body .bottom-nav-shell .bottom-item .bottom-label {
  display: block !important;
  width: 100% !important;
  font-size: clamp(9px, 0.9vw, 11.5px) !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transform: none !important;
  color: inherit !important;
}

body .bottom-nav-shell .bottom-item.active,
html[data-theme="dark"] body .bottom-nav-shell .bottom-item.active {
  background: linear-gradient(145deg, var(--accent, #7c3aed), color-mix(in srgb, var(--accent-2, #a855f7) 74%, var(--accent, #7c3aed))) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.28) !important;
}

body .bottom-nav-shell .bottom-item.active > .icon,
body .bottom-nav-shell .bottom-item.active > svg,
body .bottom-nav-shell .bottom-item.active .bottom-label,
html[data-theme="dark"] body .bottom-nav-shell .bottom-item.active > .icon,
html[data-theme="dark"] body .bottom-nav-shell .bottom-item.active > svg,
html[data-theme="dark"] body .bottom-nav-shell .bottom-item.active .bottom-label {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body .bottom-nav-shell .bottom-item .cart-badge,
body .bottom-nav-shell .bottom-item .bottom-badge {
  position: absolute !important;
  top: 2px !important;
  right: calc(50% - 23px) !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border-radius: 99px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  z-index: 6 !important;
}

body .bottom-nav-shell .bottom-item .cart-badge.zero,
body .bottom-nav-shell .bottom-item .cart-badge[hidden],
body .bottom-nav-shell .bottom-item .bottom-badge.zero,
body .bottom-nav-shell .bottom-item .bottom-badge[hidden] {
  display: none !important;
}

/* Canonical Unified Floating Zone (Scroll-to-Top + CS Chat) */
.floating-zone,
.float-stack {
  position: fixed !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  z-index: 88 !important;
  display: grid !important;
  justify-items: end !important;
  gap: 10px !important;
}

body[data-page="cart"] .floating-zone,
body[data-page="cart"] .float-stack {
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: calc(88px + env(safe-area-inset-bottom)) !important;
}

.floating-button,
.float-stack .float {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  border: 1.5px solid rgba(124, 58, 237, 0.22) !important;
  background: linear-gradient(145deg, #ffffff, #f5f3ff) !important;
  color: #5b21b6 !important;
  box-shadow: 0 12px 26px rgba(76, 29, 149, 0.18), inset 0 1px 0 #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

html[data-theme="dark"] .floating-button,
html[data-theme="dark"] .float-stack .float {
  background: linear-gradient(145deg, #172036, #0f172a) !important;
  border-color: rgba(168, 85, 247, 0.34) !important;
  color: #e9d5ff !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45) !important;
}

.floating-button .icon,
.float-stack .float .icon,
.floating-button svg,
.float-stack .float svg,
.floating-button img,
.float-stack .float img {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  object-fit: contain !important;
}

.floating-button.is-hidden,
.float-stack .float.hidden,
.float-stack .float.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
}

/* Luxury Official Content & Articles Styles (Konten & Artikel i-Store) */
.lux-content-page {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}
.lux-content-hero {
  padding: 20px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px -14px rgba(109, 40, 217, 0.42);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.lux-content-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.lux-content-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(18px, 4.2vw, 24px);
  line-height: 1.18;
  font-weight: 900;
}
.lux-content-hero p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.92;
}
.lux-content-hero-stats {
  display: grid;
  gap: 8px;
}
.lux-content-hero-stats > div {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}
.lux-content-hero-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
}
.lux-content-hero-stats small {
  font-size: 9.5px;
  opacity: 0.9;
}
.lux-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.lux-article-card {
  border-radius: 22px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: var(--card, #ffffff);
  box-shadow: 0 14px 32px -14px rgba(55, 26, 105, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
html[data-theme="dark"] .lux-article-card {
  background: #141b2d;
  border-color: rgba(167, 139, 250, 0.22);
}
.lux-article-card:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 18px 36px -12px rgba(109, 40, 217, 0.28);
}
.lux-article-cover {
  position: relative;
  height: 126px;
  padding: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.lux-article-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.lux-article-cat {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 800;
}
.lux-article-art {
  position: absolute;
  right: 8px;
  bottom: -6px;
  width: 84px;
  height: 84px;
  pointer-events: none;
}
.lux-article-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lux-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted, #64748b);
}
.lux-article-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.32;
  color: var(--ink, #1e1b4b);
}
html[data-theme="dark"] .lux-article-body h3 {
  color: #f8fafc;
}
.lux-article-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #64748b);
}
.lux-article-cta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 850;
}
html[data-theme="dark"] .lux-article-cta {
  color: #c084fc;
}
.lux-article-reader {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 14px;
  border: 1.5px solid rgba(124, 58, 237, 0.24);
}
.lux-reader-banner {
  padding: 20px 18px;
  color: #fff;
  display: grid;
  gap: 8px;
}
.lux-reader-back {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.lux-reader-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.lux-reader-banner h3 {
  margin: 0;
  font-size: clamp(18px, 4.2vw, 24px);
  line-height: 1.22;
}
.lux-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  opacity: 0.92;
}
.lux-reader-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink, #1e1b4b);
}
html[data-theme="dark"] .lux-reader-body {
  color: #e2e8f0;
}
.lux-reader-body p {
  margin: 0;
}
.lux-reader-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 560px) {
  .lux-content-hero {
    grid-template-columns: 1fr;
  }
  .lux-content-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  }


/* === Universal Centered Instant Progress Overlay (0% - 100%) === */
.istore-center-loader {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: grid;
  place-items: center;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}
.istore-center-loader.is-active {
  opacity: 1;
  visibility: visible;
}
.istore-center-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 14px 18px 13px;
  border-radius: 22px;
  background: rgba(17, 12, 34, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid rgba(168, 85, 247, 0.42);
  box-shadow: 0 20px 44px -12px rgba(15, 7, 38, 0.58), 0 0 24px rgba(124, 58, 237, 0.32);
  color: #ffffff;
  transform: scale(0.94);
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.istore-center-loader.is-active .istore-center-loader__card {
  transform: scale(1);
}
.istore-center-loader__ring {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#a855f7 calc(var(--istore-load-pct, 0) * 1%), rgba(255, 255, 255, 0.14) 0);
  padding: 4px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.istore-center-loader__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #18112c;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.istore-center-loader__inner img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.istore-center-loader__pct {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.6);
}
.istore-center-loader__bar {
  width: 96px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.istore-center-loader__bar > i {
  display: block;
  height: 100%;
  width: calc(var(--istore-load-pct, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #38bdf8);
  transition: width 0.06s linear;
}


/* Keep floating headset & scroll-top cleanly above Cart sticky checkout bar on mobile & desktop */
body[data-page="cart"] .floating-zone,
body[data-page="cart"] .float-stack {
  bottom: calc(242px + env(safe-area-inset-bottom, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
}
