:root {
  --lux-ink: #10131f;
  --lux-muted: rgba(16, 19, 31, .62);
  --lux-line: rgba(16, 19, 31, .10);
  --lux-soft: #f7f8fb;
  --lux-card: rgba(255, 255, 255, .92);
  --lux-blue: #2563eb;
  --lux-green: #16a34a;
  --lux-gold: #c89b3c;
  --lux-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

html {
  scroll-behavior: smooth;
}

body.store-home,
body.salla-theme_3 {
  background:
    radial-gradient(900px 380px at 88% -90px, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(760px 340px at 12% -60px, rgba(22, 163, 74, .08), transparent 62%),
    #fff !important;
  color: var(--lux-ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.site-header .circle-action {
  border: 1px solid rgba(15, 23, 42, .10) !important;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.site-header .circle-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.salla-like-bar {
  background: #0f172a;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.salla-like-bar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.salla-like-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
}

.salla-like-bar span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.hp-hero,
.hp-banner {
  border-radius: 22px !important;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12) !important;
}

.portal-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 18px;
  padding: 34px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .14);
  border: 1px solid rgba(15, 23, 42, .10);
  isolation: isolate;
}

.portal-hero__media {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-hero__media img {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 36px 42px rgba(15, 23, 42, .20));
  animation: portalFloat 5.5s ease-in-out infinite;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 240px at 68% 46%, rgba(37, 99, 235, .18), transparent 70%),
    radial-gradient(420px 180px at 80% 62%, rgba(99, 102, 241, .12), transparent 70%);
  z-index: -1;
}

.portal-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8px 10px;
  color: #0f172a;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .09);
  border: 1px solid rgba(37, 99, 235, .18);
  backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: 12px;
  color: #0f172a;
}

.portal-hero h1,
.portal-feature h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0 !important;
}

.portal-hero p,
.portal-feature p {
  margin: 0;
  color: rgba(15, 23, 42, .68);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 700;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.portal-meta span,
.portal-points li {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  color: #0f172a;
  font-weight: 850;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.portal-hero__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
}

.portal-hero__price span {
  color: rgba(15, 23, 42, .42);
  text-decoration: line-through;
  font-weight: 900;
}

.portal-hero__price strong {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
  color: #0f172a;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.portal-buy,
.portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  text-decoration: none !important;
  font-weight: 950;
  transition: transform .18s ease, box-shadow .18s ease;
}

.portal-buy {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #111827);
  box-shadow: 0 18px 38px rgba(37, 99, 235, .28);
}

.portal-secondary {
  color: #0f172a !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.portal-orbit {
  position: absolute;
  width: min(92%, 680px);
  aspect-ratio: 1 / .38;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, .18), rgba(37, 99, 235, .04) 45%, transparent 68%);
  filter: blur(2px);
  transform: translateY(58px);
}

.portal-buy:hover,
.portal-secondary:hover {
  transform: translateY(-2px);
}

.portal-feature {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8faff);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .11);
}

.portal-feature__gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  min-height: 280px;
}

.portal-feature__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .10);
}

.portal-feature__gallery .main {
  min-height: 320px;
}

.portal-feature__content {
  padding: 14px 10px;
}

.portal-feature .portal-kicker {
  color: #0f172a;
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .18);
}

.portal-feature h2 {
  color: #0f172a;
  font-size: clamp(26px, 3.8vw, 44px);
}

.portal-feature p {
  color: rgba(15, 23, 42, .68);
}

.portal-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 12px;
}

.portal-price .was {
  color: rgba(15, 23, 42, .42);
  text-decoration: line-through;
  font-weight: 900;
}

.portal-price strong {
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
}

.portal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.portal-points li {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, .10);
}

.portal-buy.wide {
  width: 100%;
}

.hp-hero--secondary {
  margin-top: 18px;
}

.hp-hero img,
.hp-banner img {
  min-height: 170px;
  object-fit: cover;
}

.hp-trust {
  position: relative;
}

.hp-trust .t,
.hp-card,
.product,
.pd-shell,
.cardx,
.card {
  animation: luxRise .55s ease both;
}

.hp-trust .t {
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff, #fafbff) !important;
}

.hp-card,
.product {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  background: linear-gradient(180deg, #fff, #fbfcff) !important;
  box-shadow: var(--lux-shadow) !important;
  overflow: hidden;
}

.hp-card:hover,
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(15, 23, 42, .16) !important;
}

.hp-media,
.img-cont,
.pd-image,
.item-img {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .05), rgba(22, 163, 74, .04)),
    #fff !important;
}

.hp-name,
.product-title,
.pd-title,
.item-title {
  letter-spacing: 0 !important;
}

.hp-new,
.price-after,
.pd-price .now,
.price {
  color: #0f172a !important;
}

.hp-old,
.price-before,
.pd-price .was {
  color: rgba(15, 23, 42, .42) !important;
}

.hp-add,
.product-add,
.btn-buy,
.btnx-primary,
.btn {
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .22) !important;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.hp-add:hover,
.product-add:hover,
.btn-buy:hover,
.btnx-primary:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(37, 99, 235, .28) !important;
}

.hp-badge,
.pill-discount,
.ribbon {
  background: linear-gradient(135deg, #16a34a, #2563eb) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(22, 163, 74, .20);
}

.pd-grid,
.cart-grid {
  gap: 18px !important;
}

.chip,
.pill,
.delivery-option,
.payOpt,
.inp,
.qty button,
.qty input,
.sumBody,
.total {
  border-color: rgba(15, 23, 42, .10) !important;
}

.delivery-option,
.payOpt {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.delivery-option:hover,
.payOpt:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}

.sub-nav {
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(18px);
}

.sub-nav a,
.main-menu a {
  color: #111827 !important;
}

.lux-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.lux-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lux-toast {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 99999;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, .94);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .26);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 800;
  font-size: 13px;
}

.lux-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cash-only-box,
.cash-only-checkout {
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(0, 163, 255, .07)) !important;
  border: 1px solid rgba(37, 99, 235, .18) !important;
  border-radius: 16px !important;
  color: #0f172a !important;
  box-shadow: 0 16px 34px rgba(2, 6, 23, .07) !important;
}

.cash-only-box h4 {
  color: #0f172a !important;
}

.cash-only-box p,
.cash-only-checkout {
  color: rgba(15, 23, 42, .72) !important;
  font-weight: 850 !important;
}

@media (max-width: 820px) {
  .site-header .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .hp-shell {
    padding-top: 8px !important;
  }

  .portal-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
  }

  .portal-hero__media {
    min-height: 230px;
    order: 1;
    padding: 8px 0;
  }

  .portal-hero::after {
    background:
      radial-gradient(420px 180px at 50% 28%, rgba(37, 99, 235, .18), transparent 70%);
  }

  .portal-hero__content {
    order: 2;
    width: 100%;
    padding: 10px 8px 8px;
    background: transparent;
  }

  .portal-meta span {
    width: 100%;
    justify-content: center;
  }

  .portal-actions,
  .portal-actions a {
    width: 100%;
  }

  .portal-feature {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
  }

  .portal-feature__gallery {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portal-feature__gallery img,
  .portal-feature__gallery .main {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .portal-price strong {
    font-size: 30px;
  }

  .hp-hero,
  .hp-banner,
  .hp-card,
  .product,
  .pd-shell,
  .cardx,
  .card {
    border-radius: 16px !important;
  }

  .hp-grid,
  .products-grid {
    gap: 12px !important;
  }

  .hp-body {
    padding: 10px !important;
  }

  .hp-name,
  .product-title {
    min-height: auto !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .hp-add {
    min-height: 42px;
  }

  .cart-head,
  .item {
    align-items: stretch !important;
  }

  .item {
    flex-direction: column;
  }

  .item-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .qty {
    display: grid !important;
    grid-template-columns: 42px 1fr 42px;
  }

  .qty .pill {
    grid-column: 1 / -1;
    margin-right: 0 !important;
    justify-content: center;
  }
}

@keyframes luxRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portalFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.015); }
}
