:root {
  --bg0: #06090f;
  --bg1: #0b1220;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #eef3fb;
  --muted: rgba(238, 243, 251, 0.62);
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --warn: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-display: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Segoe UI", Tahoma, "Arial", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(700px 420px at 0% 30%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(600px 360px at 70% 100%, rgba(245, 158, 11, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #080d16);
  background-attachment: fixed;
  overflow-x: hidden;
}
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .reveal { animation: none !important; }
}
.hero .reveal { opacity: 1; transform: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, calc(100% - 1.5rem)); margin-inline: auto; }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .glass:not(.site-header):not(.mobile-dock) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 16, 28, 0.92);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 9, 15, 0.55);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.header-inner {
  width: min(1180px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  letter-spacing: -0.03em;
}
.brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: .85rem;
  align-items: center;
}
.nav a {
  opacity: .78;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease, color .2s ease;
}
.nav a:hover { opacity: 1; color: var(--accent); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: currentColor; border-radius: 2px;
}

/* قائمة جانبية زجاجية تطلع من الشاشة */
.nav-backdrop[hidden],
.nav-panel[hidden] { display: none !important; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 14, .42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .25s ease;
}
.nav-panel {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-start: 0;
  width: min(84vw, 300px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem .9rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border-start-end-radius: 24px;
  border-end-end-radius: 24px;
  background: linear-gradient(
    165deg,
    rgba(14, 22, 36, 0.78) 0%,
    rgba(8, 14, 26, 0.72) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-inline-start: 0;
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow:
    -18px 0 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: drawerSlide .34s cubic-bezier(.22, 1, .36, 1);
}
.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  padding: .35rem .35rem .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-panel-head strong {
  font-family: Tajawal, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4f7fc;
  letter-spacing: -.01em;
}
.nav-panel-head span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eef3fa;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.nav-close:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.35);
}
.nav-panel a {
  display: block;
  padding: .78rem .9rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: .98rem;
  color: #f2f6fc;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-panel a:hover {
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent);
  transform: translateX(-3px);
}
[dir="ltr"] .nav-panel a:hover { transform: translateX(3px); }
.nav-panel .btn {
  margin-top: .35rem;
  justify-content: center;
}
.nav-panel .btn-block { width: 100%; }
.nav-panel .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f2f6fc;
}
body.nav-open { overflow: hidden; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawerSlide {
  from {
    opacity: .7;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[dir="ltr"] .nav-panel {
  animation-name: drawerSlideLtr;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  border-inline-end: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-start-start-radius: 24px;
  border-end-start-radius: 24px;
}
@keyframes drawerSlideLtr {
  from {
    opacity: .7;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 820px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: inline-grid; place-items: center; }
}
@media (min-width: 821px) {
  .nav-backdrop,
  .nav-panel { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; border: 0; cursor: pointer;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .22s ease, opacity .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #122033, #0f172a);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #14b8a6 55%, var(--accent-2));
  color: #041016;
  box-shadow: 0 12px 36px rgba(45, 212, 191, 0.28);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(45,212,191,.35); }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 1rem;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,9,15,.25) 0%, rgba(6,9,15,.55) 45%, rgba(6,9,15,.92) 100%),
    url('./hero-digital.svg') center/cover no-repeat,
    linear-gradient(135deg, #071018, #0b3a3a 50%, #0a2740);
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
  overflow: hidden;
}
.hero-media.has-photo {
  background: none;
  transform: none;
  animation: none;
  aspect-ratio: 16 / 9;
  min-height: min(56vw, 420px);
}
.hero-media.has-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,9,15,.25) 0%, rgba(6,9,15,.55) 45%, rgba(6,9,15,.92) 100%);
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-section-block {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
.crumbs {
  margin-bottom: 1rem;
  font-size: .9rem;
  opacity: .8;
}
.product-detail > .crumbs {
  grid-column: 1 / -1;
  margin-bottom: .5rem;
}
.adsense-slot {
  min-height: 90px;
}
.blog-cover-img{width:100%;height:auto;border-radius:12px;margin-bottom:1rem;display:block}

/* Blog index cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.blog-card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  overflow: hidden; transition: transform .28s ease, opacity .28s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card .blog-card-media { aspect-ratio: 16/9; overflow: hidden; display: block; }
.blog-card .blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.blog-card-body h2 { font-size: 1.05rem; margin: 0; font-family: var(--font-display); line-height: 1.35; }
.blog-card-body .lead { font-size: .88rem; color: var(--muted); margin: 0; }
.blog-card-chapters { margin: 0; padding: .65rem 1rem .85rem; padding-inline-start: 1.75rem; font-size: .85rem; border-top: 1px solid var(--glass-border); }
.blog-card-chapters li { margin-bottom: .25rem; }
.blog-card-chapters a { text-underline-offset: 2px; }

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
  background: transparent; pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}
.hero-orb {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(40px); opacity: .45; pointer-events: none;
}
.hero-orb.a { width: 280px; height: 280px; background: #2dd4bf; top: 18%; left: 8%; animation: floatY 7s ease-in-out infinite; }
.hero-orb.b { width: 220px; height: 220px; background: #38bdf8; bottom: 22%; right: 10%; animation: floatY 9s ease-in-out infinite reverse; }
.hero-content {
  padding: calc(var(--header-h) + 1.6rem) 0 2.2rem;
  max-width: 720px;
}
.hero-card {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 24px;
  max-width: 560px;
  min-height: 220px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.2vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 .65rem;
  letter-spacing: -0.03em;
  min-height: 2.15em;
}
.hero-kicker {
  margin: 0 0 .55rem;
  color: var(--accent);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
}
.hero-card > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-content { padding: calc(var(--header-h) + 1.1rem) 0 5.8rem; }
  .hero-cta .btn { flex: 1 1 auto; min-height: 46px; }
}

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { margin-bottom: 1.4rem; }
.section h2, .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  margin: 0 0 .35rem;
  letter-spacing: -0.02em;
}
.lead { margin: 0; color: var(--muted); line-height: 1.7; }

/* Products grid / list */
.toolbar {
  display: flex; flex-wrap: wrap; gap: .7rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.view-switch { display: inline-flex; gap: .35rem; }
.view-switch button {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--muted); cursor: pointer;
}
.view-switch button.active { color: var(--accent); border-color: rgba(45,212,191,.4); }

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}
.grid-products.is-list {
  grid-template-columns: 1fr;
}
.grid-products.is-list .product {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 720px) {
  .grid-products.is-list .product {
    grid-template-columns: 1fr;
  }
}

.product {
  position: relative;
  display: flex; flex-direction: column; gap: .75rem;
  padding: .85rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .28s ease, opacity .28s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.product > a.product-media,
.product > .product-media {
  aspect-ratio: 16/11;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #101827, #0b3a3a);
  position: relative;
  display: block;
}
.product > a.product-media::after,
.product > .product-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,9,15,.55));
  pointer-events: none;
}
.product > a.product-media img,
.product > .product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.product:hover > a.product-media img,
.product:hover > .product-media img { transform: scale(1.06); }
.product h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  line-height: 1.35;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
}
.price s { color: var(--muted); font-weight: 500; margin-inline-start: .35rem; font-size: .9rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: rgba(45,212,191,.12);
  border: 1px solid rgba(45,212,191,.25);
  color: var(--accent);
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto;
  gap: .65rem;
  padding: .9rem;
  border-radius: 18px;
  margin-bottom: 1.25rem;
}
.filters input, .filters select,
.field {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: .75rem .85rem;
  outline: none;
  width: 100%;
}
.filters input:focus, .filters select:focus, .field:focus {
  border-color: rgba(45,212,191,.45);
  box-shadow: 0 0 0 3px rgba(45,212,191,.12);
}
@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
}

/* Banners */
.banner-strip { display: grid; gap: 1rem; }
.banner-item {
  position: relative;
  min-height: clamp(160px, 28vw, 240px);
  border-radius: 26px;
  overflow: hidden;
  display: grid; align-items: end;
  border: 1px solid var(--glass-border);
  background: linear-gradient(120deg, #0b1220, #0f2a2a);
}
.banner-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35;
}
.banner-item .txt {
  position: relative; z-index: 1;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(6,9,15,.75));
}
.banner-item h2 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.55rem); }

/* Product detail */
.product-detail {
  display: grid; gap: 1.25rem;
}
@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.product-detail .product-media {
  display: grid;
  gap: .7rem;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  position: relative;
}
.product-detail .product-media::after {
  content: none;
  display: none;
}
.product-stage {
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, #101827, #0b2f2f);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.product-stage img,
.product-stage video,
.product-stage iframe {
  width: 100%; height: 100%; object-fit: contain; display: block; min-height: 280px; border: 0;
}
.product-stage iframe { object-fit: unset; background: #000; }
.product-options { display: grid; gap: .65rem; margin: 1rem 0; }
.product-option-card {
  display: block; cursor: pointer; border: 1px solid var(--glass-border);
  border-radius: 16px; padding: .85rem 1rem; background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
}
.product-option-card input { position: absolute; opacity: 0; pointer-events: none; }
.product-option-card.is-selected,
.product-option-card:has(input:checked) {
  border-color: var(--accent, #2dd4bf);
  background: rgba(45,212,191,.08);
}
.product-option-card .opt-body { display: grid; gap: .25rem; }
.product-option-card .opt-diff { color: var(--muted); font-size: .88rem; }
.product-option-card .opt-price { font-weight: 800; color: var(--accent, #2dd4bf); }
.product-thumbs {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .15rem;
  scrollbar-width: thin;
}
.product-thumbs .thumb {
  flex: 0 0 72px; height: 72px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
  padding: 0; cursor: pointer; position: relative; color: #fff;
}
.product-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs .thumb.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; background: rgba(0,0,0,.35); }
.thumb-label { position: absolute; bottom: 4px; inset-inline: 0; text-align: center; font-size: .65rem; opacity: .9; }
.product-buy {
  padding: 1.25rem;
  border-radius: 28px;
}
.product-buy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 .6rem;
  letter-spacing: -0.02em;
}
.product-buy .price { font-size: 1.55rem; margin: 1rem 0; }
.product-desc-section { padding-top: 0; }
.desc-block {
  margin-top: 0;
  padding: 1.25rem 1.35rem;
  border-radius: 24px;
  color: var(--muted);
  line-height: 1.9;
}
.desc-block h2 {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--font-display);
}
.rich-content p { margin: 0 0 .85rem; }
.rich-content h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin: 1.6rem 0 .65rem;
  line-height: 1.35;
  color: var(--text);
}
.rich-content h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 .5rem;
}
.rich-content ul,
.rich-content ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
  display: grid;
  gap: .35rem;
}
.rich-content li { margin: 0; line-height: 1.55; }
.rich-content img, .rich-content video, .rich-content iframe {
  max-width: 100%; border-radius: 16px; margin: .75rem 0;
}
.rich-content iframe { width: 100%; min-height: 280px; border: 0; }
.blog-related { padding-inline-start: 1.25rem; display: grid; gap: .35rem; }
.blog-series-list a { text-underline-offset: 2px; }
.pay-method-pick { display: grid; gap: .55rem; }
.pay-option {
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem .9rem; border-radius: 14px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.03);
  cursor: pointer; font-weight: 700;
}
.pay-option input { width: auto; margin: 0; }

/* Cart / checkout */
.checkout-box, .cart-box { display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .checkout-box, .cart-box { grid-template-columns: 1.2fr .8fr; }
}
.panel {
  padding: 1.2rem;
  border-radius: var(--radius);
}
.line-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--glass-border);
}

/* Mobile dock */
.mobile-dock {
  display: none;
  position: fixed;
  inset-inline: .7rem;
  bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  padding: .4rem .35rem;
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.dock-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: .18rem;
  padding: .45rem .2rem .4rem;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease;
  text-decoration: none;
  position: relative;
}
.dock-item:hover {
  color: var(--text);
  transform: translateY(-3px);
  background: rgba(255,255,255,.05);
}
.dock-item.active {
  color: #041016;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(45,212,191,.3);
  transform: translateY(-4px);
}
.dock-item.active .dock-label { color: inherit; font-weight: 800; }
.dock-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  position: relative;
}
.dock-ico svg { width: 22px; height: 22px; }
.dock-label { font-size: .68rem; font-weight: 700; line-height: 1; }
.dock-badge {
  position: absolute; top: -6px; inset-inline-start: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #f59e0b; color: #111;
  font-size: .65rem; font-weight: 800; display: grid; place-items: center;
  font-style: normal;
}

/* Search modal */
.search-modal[hidden] { display: none !important; }
.search-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; align-items: end;
}
.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.search-sheet {
  position: relative;
  margin: 0 .75rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  padding: 1rem 1rem 1.15rem;
  border-radius: 22px;
  animation: sheetUp .35s cubic-bezier(.22,1,.36,1);
}
.search-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .85rem;
}
.search-sheet-head h3 { margin: 0; font-family: var(--font-display); }
.search-form { display: grid; gap: .7rem; }
.search-form input {
  width: 100%;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: .95rem 1rem;
  outline: none;
}
.search-form input:focus { border-color: rgba(45,212,191,.5); }

/* Filters mobile */
.filters-mobile { display: grid !important; grid-template-columns: 1fr !important; gap: .7rem; }
.filter-row { display: grid; gap: .55rem; }
.filter-grid { grid-template-columns: 1fr 1fr; }
.filter-search input { width: 100%; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .8rem; font-size: .85rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .55rem; }

/* Cart polish */
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.cart-head h2 { margin: 0; font-family: var(--font-display); }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.cart-thumb {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
  background: #101827;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-empty { text-align: center; padding: 1.5rem .5rem; display: grid; gap: .7rem; place-items: center; }
.cart-empty .dock-ico { width: 42px; height: 42px; color: var(--accent); }
.cart-empty .dock-ico svg { width: 42px; height: 42px; }
.cart-summary h3 { margin-top: 0; font-family: var(--font-display); }
@media (max-width: 560px) {
  .cart-box { grid-template-columns: 1fr !important; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-remove { grid-column: 1 / -1; }
  .cart-remove .btn { width: 100%; }
}

/* Side drawer nav - handled above */

@media (max-width: 820px) {
  .mobile-dock { display: grid; }
  .site-footer { padding-bottom: 7.2rem; }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 5.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; }
.footer-links a:hover { color: var(--accent); }

/* Alerts */
.alert {
  padding: .9rem 1rem; border-radius: 14px; margin: 1rem 0;
  background: rgba(45,212,191,.12);
  border: 1px solid rgba(45,212,191,.28);
}
.alert-error {
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.3);
}

/* Reveal animations — opacity only to avoid CLS from transform */
.reveal {
  opacity: 0;
  transition: opacity .5s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in {
  opacity: 1;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Account menu */
.account-menu { position: relative; }
.account-trigger {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  border-radius: 999px;
  padding: .55rem .95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + .45rem);
  inset-inline-end: 0;
  min-width: 220px;
  padding: .45rem;
  border-radius: 16px;
  display: grid;
  gap: .15rem;
  z-index: 70;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a, .account-dropdown .logout-btn {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: right;
  width: 100%;
  cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown .logout-btn:hover {
  background: rgba(45,212,191,.12);
  color: var(--accent);
}
.play-link, .play-btn { display: inline-flex; align-items: center; gap: .4rem; }
.play-btn svg, .play-link svg { flex: 0 0 auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-8px); }
}
@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}

/* Pagination */
nav[role="navigation"] span, nav[role="navigation"] a {
  display: inline-flex; padding: .45rem .7rem; margin: .15rem;
  border-radius: 10px; border: 1px solid var(--glass-border);
}

/* Promo banner + offers + downsell */
.promo-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  align-items: center;
  background: linear-gradient(135deg, rgba(45,212,191,.12), rgba(14,22,36,.55));
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 820px) {
  .promo-banner { grid-template-columns: 1fr; }
}
.promo-banner h2 {
  margin: .2rem 0 .45rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.promo-banner-list {
  display: grid;
  gap: .55rem;
}
.promo-pill {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.promo-pill:hover {
  border-color: rgba(45,212,191,.4);
  background: rgba(45,212,191,.1);
}
.promo-pill-code strong {
  letter-spacing: .06em;
  color: var(--accent);
}
.offer-pieces {
  margin: 0 0 1rem;
  padding: .8rem .9rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
}
.offer-pieces ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.compare {
  opacity: .55;
  text-decoration: line-through;
  margin-inline-start: .45rem;
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem; }
.coupon-form .field {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
}
.downsell-modal[hidden] { display: none !important; }
.downsell-modal {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center;
  padding: 1rem;
}
.downsell-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,6,14,.55);
  backdrop-filter: blur(4px);
}
.downsell-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 22px;
  animation: menuDrop .3s cubic-bezier(.22,1,.36,1);
}
.downsell-sheet h3 {
  margin: .25rem 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.downsell-x {
  position: absolute;
  top: .75rem;
  inset-inline-end: .75rem;
}

/* Brand / locale tools */
.brand { display:inline-flex; align-items:center; gap:.55rem; }
.brand-logo {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
  content-visibility: auto;
}
.brand-text { font-family: var(--font-display); font-weight:800; }
.header-tools {
  display:flex; align-items:center; gap:.45rem; margin-inline-start:auto; margin-inline-end:.55rem;
}
.lang-switch { display:inline-flex; gap:.2rem; border:1px solid var(--glass-border); border-radius:999px; padding:.15rem; background:rgba(255,255,255,.03); }
.lang-switch form { margin:0; display:contents; }
.lang-switch button {
  padding:.28rem .55rem; border-radius:999px; font-size:.8rem; font-weight:700; opacity:.7;
  border:0; background:transparent; color:inherit; cursor:pointer; font:inherit;
}
.lang-switch button.active, .lang-switch button:hover { background:rgba(45,212,191,.16); color:var(--accent); opacity:1; }
.lang-switch--panel { display:flex; gap:.4rem; padding:.4rem .2rem; border:0; background:transparent; }
.lang-switch--panel form { display:block; margin:0; }
.pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.5rem; }
.pagination-meta { font-size:.9rem; opacity:.75; }
.pagination-links { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.pagination-btn { min-width:2.4rem; text-decoration:none; }
.pagination-btn.is-disabled { opacity:.45; pointer-events:none; cursor:default; transform:none !important; }
.pagination-btn.is-current { pointer-events:none; cursor:default; transform:none !important; }
.pagination-ellipsis { padding:0 .35rem; opacity:.55; font-weight:700; }
.country-switch select {
  appearance:none; border:1px solid var(--glass-border); background:rgba(255,255,255,.04);
  color:var(--text); border-radius:999px; padding:.35rem .7rem; font:inherit; font-size:.8rem; max-width:140px;
}
@media (max-width: 820px) {
  .header-tools { display:none; }
}

/* Dark selects (fix white dropdowns) */
select,
.filters select,
.country-switch select,
.field,
.coupon-form .field {
  background: #101a28 !important;
  color: #eef3fa !important;
  color-scheme: dark;
}
select option,
select optgroup {
  background: #0d1520;
  color: #eef3fa;
}

/* Product features + offers + sticky buy */
.feature-list {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
}
.feature-item {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
}
.feature-item strong { color: var(--text); font-size: .95rem; }
.feature-item span { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.product-offers {
  display: grid;
  gap: .55rem;
  margin: .85rem 0 1rem;
}
.offer-card-mini {
  display: block;
  padding: .8rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(45,212,191,.35);
  background: linear-gradient(135deg, rgba(45,212,191,.12), rgba(255,255,255,.03));
  color: var(--text);
}
.offer-card-mini .ttl { font-weight: 800; margin: 0 0 .2rem; }
.offer-card-mini .sub { color: var(--muted); font-size: .86rem; }
.product-card-badges {
  display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .15rem;
}
.badge-deal {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  background: rgba(45,212,191,.16); border: 1px solid rgba(45,212,191,.35); color: var(--accent);
}
.discount-applied {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  padding: .75rem .9rem; border-radius: 14px; margin: 0 0 1rem;
  background: rgba(45,212,191,.14); border: 1px solid rgba(45,212,191,.35); color: #9af0e0;
  font-weight: 700;
}
.sticky-buy {
  display: none;
}
@media (max-width: 820px) {
  .product-detail { gap: .9rem; padding-bottom: 5.5rem; }
  .product-stage { border-radius: 20px; min-height: 240px; }
  .product-stage img { min-height: 240px; }
  .product-buy { padding: 1rem; border-radius: 20px; }
  .product-buy .desktop-add { display: none; }
  .sticky-buy {
    display: flex;
    position: fixed;
    inset-inline: .75rem;
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    gap: .5rem;
    padding: .65rem;
    border-radius: 18px;
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    align-items: center;
  }
  .sticky-buy .price { margin: 0; font-size: 1rem; flex: 1; }
  .sticky-buy .btn { flex: 1.2; padding: .7rem .8rem; }
}
.product-add-row { display:flex; gap:.6rem; flex-wrap:wrap; margin:1.1rem 0; }

/* Home product layouts */
.product-carousel { position: relative; }
.carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .35rem .2rem 1rem; scrollbar-width: thin;
}
.carousel-slide { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
.carousel-slide .product { height: 100%; }
.carousel-nav {
  position: absolute; top: 40%; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(8,12,20,.85); color: var(--text);
  cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.carousel-nav.prev { inset-inline-start: .15rem; }
.carousel-nav.next { inset-inline-end: .15rem; }
.product-stack { display: grid; gap: 1rem; max-width: 520px; margin-inline: auto; }
.grid-products.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .grid-products.is-two { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .carousel-slide { flex-basis: min(86%, 260px); }
}

/* Payment methods strip */
.pay-methods {
  margin: .75rem 0 .35rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #f3f4f6;
}
.pay-methods img {
  display: block; width: 100%; height: auto;
}

.wa-order-btn {
  border-color: rgba(37, 211, 102, .45) !important;
  color: #9dffc0 !important;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 126, .4);
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px rgba(18,140,126,.5); filter: brightness(1.05); }
.wa-float svg { display: block; }
@media (min-width: 900px) {
  .wa-float { bottom: 1.4rem; width: 60px; height: 60px; }
}
.footer-contact { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.55rem; color: var(--muted); font-size:.9rem; }
