/* HIMIK Cyber Shop - shared styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --cyber-dark: #090914;
  --cyber-darker: #05050b;
  --cyber-blue: #00eaff;
  --cyber-pink: #ff2bd6;
  --cyber-purple: #7a2bff;
  --cyber-green: #00ff9d;
  --cyber-red: #ff3b6f;
  --cyber-gray: #141427;
  --cyber-light: #e7e7ff;
  --cyber-text: #c8c6ff;
  --cyber-border: rgba(0, 234, 255, .28);
  --glow-blue: 0 0 18px rgba(0, 234, 255, .45), 0 0 34px rgba(0, 234, 255, .16);
  --glow-pink: 0 0 18px rgba(255, 43, 214, .45), 0 0 34px rgba(255, 43, 214, .16);
  --glow-green: 0 0 18px rgba(0, 255, 157, .45), 0 0 34px rgba(0, 255, 157, .16);
  --transition: all .25s cubic-bezier(.175, .885, .32, 1.275);
  /* Safe area variables */
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
  --radius: 16px;
}

html,
body {
  height: 100%
}

.hidden {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--cyber-dark);
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 234, 255, .16) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 43, 214, .12) 0%, transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0, rgba(255, 255, 255, .02) 1px, transparent 1px, transparent 28px),
    linear-gradient(180deg, var(--cyber-dark), var(--cyber-darker));
  color: var(--cyber-text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Fullscreen mobile fix */
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .05), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(0, 234, 255, .08), transparent 50%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 max(18px, var(--sal)) 0 max(18px, var(--sar));
}

button,
input,
select,
textarea {
  font: inherit
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 234, 255, .3), 0 0 15px rgba(0, 234, 255, .5);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 20, .92);
  backdrop-filter: blur(10px);
  overflow: visible;
  overflow: visible;
  /* Adjust sticky header for safe area */
  top: 0;
  padding-top: max(14px, var(--sat));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  /* A tiny bit of breathing room so the logo glow doesn't get clipped visually */
  padding-left: 6px;
  overflow: visible;
}

/* Fix: nav active border should not be covered by brand logo shadow */
.brand {
  position: relative;
  z-index: 2
}

.nav {
  position: relative;
  z-index: 3
}

.actions {
  position: relative;
  z-index: 4
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  /* Softer glow so it doesn't visually "eat" nearby UI */
  box-shadow: 0 0 18px rgba(0, 234, 255, .45);
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Subtle glow animation on hover */
@keyframes logoGlowPulse {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(0, 234, 255, .45)
  }

  50% {
    box-shadow: 0 0 26px rgba(0, 234, 255, .65)
  }
}

.brand:hover img {
  animation: logoGlowPulse 2.8s ease-in-out infinite;
  transform: translateY(-1px)
}

.brand-title {
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.35rem
}

.brand-sub {
  font-size: .85rem;
  opacity: .9;
  letter-spacing: 1px
}

.brand-sub-city,
.brand-sub-chem,
.brand-sub-chem span {
  display: inline
}

.brand-sub-chem span+span::before {
  content: " "
}

.brand-title span {
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0, 234, 255, .25);
}

.nav {
  display: flex;
  gap: 10px;
  /* Give extra breathing room so the active outline never touches the logo glow */
  padding-left: 14px;
  padding-bottom: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none
}

.nav a {
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: .92rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin: 4px 0;
  transition: var(--transition);
}

.nav a:hover {
  border-color: var(--cyber-border);
  color: var(--cyber-blue);
  text-shadow: 0 0 10px rgba(0, 234, 255, .6)
}

.nav a.active {
  border-color: var(--cyber-blue);
  box-shadow: var(--glow-blue);
  color: var(--cyber-blue);
  background: rgba(0, 234, 255, .08)
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, .18);
  background: rgba(20, 20, 35, .65);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .3px;
}

.header-phone:hover {
  box-shadow: var(--glow-blue);
  border-color: rgba(0, 234, 255, .45)
}

.header-phone .ico {
  opacity: .95
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20, 20, 35, .85);
  border: 1px solid var(--cyber-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(0, 234, 255, .12);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px)
}

.badge {
  position: relative;
}

.badge[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyber-red);
  color: #fff;
  font-weight: 900;
  font-size: .75rem;
  border: 2px solid var(--cyber-dark);
  box-shadow: 0 0 10px rgba(255, 59, 111, .6);
}

/* Layout */
main {
  padding: 28px 0 70px
}

main {
  animation: pageIn .6s ease both
}

.section-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 2.2rem;
  margin: 18px 0 12px;
  color: var(--cyber-blue);
  text-shadow: var(--glow-blue);
}

.section-sub {
  font-family: "Inter", "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 400;
  opacity: .85;
  max-width: 900px;
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: .95rem;
  letter-spacing: .2px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

body[data-page="products"] [data-products-grid],
body[data-page="products"] [data-favorites-grid] {
  gap: 12px
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 640px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }

  .brand {
    min-width: auto
  }
}

@media (min-width: 1360px) {

  body[data-page="products"] [data-products-grid],
  body[data-page="products"] [data-favorites-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap
  }

  .brand {
    order: 1
  }

  .actions {
    order: 2;
    margin-left: auto
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
    flex: 0 0 100%
  }
}

.card {
  background: rgba(20, 20, 35, .88);
  border: 1px solid var(--cyber-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .32s cubic-bezier(.175, .885, .32, 1.275),
    box-shadow .32s ease,
    border-color .32s ease;
  animation: cardIn .5s ease both;
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 0 22px rgba(0, 234, 255, .35), 0 12px 40px rgba(0, 0, 0, .4);
  border-color: rgba(0, 234, 255, .6);
}

.hero {
  padding: 42px 34px;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 255, 157, .10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(122, 43, 255, .14) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 234, 255, .20), rgba(255, 43, 214, .12));
  border: 1px solid rgba(0, 234, 255, .30);
  box-shadow: 0 0 30px rgba(0, 234, 255, .18), 0 16px 48px rgba(0, 0, 0, .3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(1.3);
  padding: 48px 38px 20px;
}

/* Two-column hero layout */
.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-img {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 234, 255, .3), 0 0 80px rgba(0, 234, 255, .1);
  animation: heroImgFloat 4s ease-in-out infinite;
  border: 2px solid rgba(0, 234, 255, .25);
}

@keyframes heroImgFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

/* Brand logo buttons inside hero */
.hero-brands {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 234, 255, .12);
}

.hero-brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 52px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, .18);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
  text-decoration: none;
}

.hero-brand-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1) saturate(1.2);
  transition: filter .3s ease, transform .3s ease;
}

.hero-brand-btn:hover {
  border-color: rgba(0, 234, 255, .5);
  background: rgba(0, 234, 255, .1);
  box-shadow: 0 0 20px rgba(0, 234, 255, .25);
  transform: translateY(-3px) scale(1.06);
}

.hero-brand-btn:hover img {
  filter: brightness(1.3) saturate(1.4);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .hero-visual {
    display: none;
  }

  .hero-content .kicker {
    font-size: .72rem !important;
    letter-spacing: 1px !important;
  }

  .hero-layout {
    flex-direction: column;
    gap: 0;
  }

  .hero-brands {
    gap: 8px;
  }

  .hero-brand-btn {
    width: 58px;
    height: 42px;
    padding: 6px 8px;
    border-radius: 10px;
  }
}

/* Hero title — animated gradient */
.hero-title {
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1.08;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 14px 0 16px;
  background: linear-gradient(135deg, var(--cyber-blue), #00ff9d, var(--cyber-blue), var(--cyber-pink));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroGradient 5s ease infinite;
  filter: drop-shadow(0 0 18px rgba(0, 234, 255, .25));
}

@keyframes heroGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Hero features row */
.hero-features {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, .20);
  background: rgba(0, 234, 255, .06);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .3px;
  color: var(--cyber-light);
  backdrop-filter: blur(6px);
  transition: all .3s ease;
}

.hero-feature:hover {
  border-color: rgba(0, 234, 255, .45);
  background: rgba(0, 234, 255, .12);
  box-shadow: 0 0 14px rgba(0, 234, 255, .2);
  transform: translateY(-2px);
}

.hero-feature-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Hero CTA buttons */
.hero-cta-primary {
  padding: 15px 28px !important;
  font-size: .95rem !important;
  background: linear-gradient(135deg, rgba(0, 234, 255, .15), rgba(0, 234, 255, .05)) !important;
  border-color: var(--cyber-blue) !important;
  box-shadow: 0 0 20px rgba(0, 234, 255, .2);
}

.hero-cta-primary:hover {
  background: linear-gradient(135deg, rgba(0, 234, 255, .25), rgba(0, 234, 255, .10)) !important;
  box-shadow: 0 0 30px rgba(0, 234, 255, .4), 0 6px 24px rgba(0, 0, 0, .3) !important;
  transform: translateY(-3px) scale(1.03);
}

.hero-cta-secondary {
  padding: 15px 28px !important;
  font-size: .95rem !important;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 234, 255, .35);
  animation: particleFloat linear infinite;
}

.hero-particles .particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 12%;
  top: 20%;
  animation-duration: 7s;
  animation-delay: 0s;
}

.hero-particles .particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 70%;
  top: 60%;
  animation-duration: 9s;
  animation-delay: 1s;
  background: rgba(255, 43, 214, .3);
}

.hero-particles .particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 45%;
  top: 10%;
  animation-duration: 6s;
  animation-delay: 2s;
}

.hero-particles .particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 88%;
  top: 30%;
  animation-duration: 8s;
  animation-delay: 3s;
  background: rgba(0, 255, 157, .3);
}

.hero-particles .particle:nth-child(5) {
  width: 3px;
  height: 3px;
  left: 25%;
  top: 75%;
  animation-duration: 10s;
  animation-delay: 1.5s;
  background: rgba(122, 43, 255, .35);
}

.hero-particles .particle:nth-child(6) {
  width: 4px;
  height: 4px;
  left: 60%;
  top: 25%;
  animation-duration: 7.5s;
  animation-delay: 4s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateY(-40px) translateX(15px) scale(1.4);
    opacity: .7;
  }

  90% {
    opacity: .2;
  }

  100% {
    transform: translateY(-80px) translateX(-10px) scale(.6);
    opacity: 0;
  }
}

/* Remove old hero h1 styles — replaced by .hero-title */
.hero .h1,
.hero h1 {
  font-size: 2.6rem;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
  }

  .hero {
    padding: 32px 22px 30px;
  }

  .hero-features {
    gap: 10px;
  }

  .hero-feature {
    padding: 6px 10px;
    font-size: .78rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 12px 20px !important;
    font-size: .85rem !important;
  }
}

/* Shimmer sweep */
.hero::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: translateX(-60%);
  animation: shine 3.2s infinite;
}

/* Decorative floating bubbles */
.hero::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -30px;
  top: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 234, 255, .12) 0%, transparent 70%);
  animation: heroBubble 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroBubble {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .7
  }

  100% {
    transform: translate(-20px, 15px) scale(1.15);
    opacity: .4
  }
}

/* Hex pattern decoration */
.hero .hero-decor {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 120px;
  height: 120px;
  opacity: .08;
  background-image:
    radial-gradient(circle, var(--cyber-blue) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-60%)
  }

  60% {
    transform: translateX(60%)
  }

  100% {
    transform: translateX(60%)
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

/* Staggered card animation delays */
.card:nth-child(1) {
  animation-delay: .05s;
}

.card:nth-child(2) {
  animation-delay: .10s;
}

.card:nth-child(3) {
  animation-delay: .15s;
}

.card:nth-child(4) {
  animation-delay: .20s;
}

.card:nth-child(5) {
  animation-delay: .25s;
}

.card:nth-child(6) {
  animation-delay: .30s;
}

.card:nth-child(7) {
  animation-delay: .35s;
}

.card:nth-child(8) {
  animation-delay: .40s;
}

.card:nth-child(9) {
  animation-delay: .45s;
}

/* Gradient badge styles */
.meta-chip.hot {
  background: linear-gradient(135deg, rgba(0, 255, 157, .18), rgba(0, 234, 255, .12));
  border-color: rgba(0, 255, 157, .45);
  color: var(--cyber-green);
  font-weight: 800;
}

.meta-chip.ok {
  background: linear-gradient(135deg, rgba(122, 43, 255, .18), rgba(255, 43, 214, .10));
  border-color: rgba(122, 43, 255, .45);
  color: var(--cyber-purple);
  font-weight: 800;
}

/* Product card image hover zoom */
.product .media img {
  transition: transform .35s cubic-bezier(.175, .885, .32, 1.275), filter .35s ease;
}

.card:hover .product .media img,
.product:hover .media img {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(0, 234, 255, .35));
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid rgba(0, 234, 255, .55);
  background: rgba(0, 234, 255, .05);
  color: var(--cyber-blue);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275),
    box-shadow .3s ease, background .3s ease, border-color .3s ease;
}

.btn.mini {
  padding: 8px 10px;
  font-size: .75rem;
  border-radius: 10px;
  letter-spacing: .6px
}

.btn.icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center
}

.btn:hover {
  background: rgba(0, 234, 255, .15);
  box-shadow: 0 0 20px rgba(0, 234, 255, .3);
  transform: translateY(-3px) scale(1.02);
}

.btn.secondary {
  border-color: rgba(255, 43, 214, .55);
  border-image: none;
  color: var(--cyber-pink)
}

.btn.secondary:hover {
  background: rgba(255, 43, 214, .15);
  box-shadow: 0 0 20px rgba(255, 43, 214, .3);
  transform: translateY(-3px) scale(1.02);
}

.btn.green {
  border-color: rgba(0, 255, 157, .55);
  border-image: none;
  color: var(--cyber-green)
}

.btn.green:hover {
  background: rgba(0, 255, 157, .15);
  box-shadow: 0 0 20px rgba(0, 255, 157, .3);
  transform: translateY(-3px) scale(1.02);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
}

body[data-page="products"] .toolbar {
  position: sticky;
  top: 182px;
  z-index: 34;
}

.filters-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 22px 0 10px
}

body[data-page="products"] .filters-panel {
  overflow: hidden;
  max-height: 620px;
  opacity: 1;
  transform: translateY(0);
  will-change: max-height, opacity, transform;
  transition:
    max-height .42s cubic-bezier(.22, .61, .36, 1),
    opacity .26s ease-out,
    transform .38s cubic-bezier(.22, .61, .36, 1);
}

body[data-page="products"] .filters-panel:not(.ready) {
  transition: none
}

body[data-page="products"].filters-collapsed .filters-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

body[data-page="products"] .toolbar.collapsible {
  display: flex
}

body[data-page="products"] .filters-panel .toolbar.collapsible {
  margin: 0 0 18px
}

@media (min-width: 861px) {
  .filters-toggle-wrap {
    position: sticky;
    top: 118px;
    z-index: 46;
    margin: 20px 0 10px;
  }

  .filters-toggle-wrap .btn {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    background: rgba(9, 9, 20, .78);
    backdrop-filter: blur(8px);
  }
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.toolbar .filters[data-brand-pills],
.toolbar .filters[data-category-pills] {
  width: 100%
}

.toolbar .filters[data-brand-pills] {
  margin-top: 6px
}

.toolbar .filters[data-category-pills] {
  margin-top: 4px
}

.toolbar .brand-strip-wrap {
  position: static;
  top: auto;
  z-index: 1
}

.price-range {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.price-range .input {
  width: 120px
}

.filters-compact {
  gap: 8px
}

.active-filters {
  gap: 8px
}

.pill.pill-clear {
  font-weight: 700;
  text-transform: none;
  letter-spacing: .3px;
  background: rgba(0, 0, 0, .25);
}

.pill.pill-clear:hover {
  color: var(--cyber-blue)
}

.quick-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.products-summary {
  margin: 6px 0 10px;
  font-size: .95rem;
}

.empty-results {
  padding: 18px;
  border: 1px solid rgba(0, 234, 255, .22);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  display: grid;
  gap: 10px;
}

.empty-results .title {
  font-weight: 800;
  color: var(--cyber-light);
}

.category-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px
}

.category-card .h3 {
  font-size: 1.1rem
}

.news-preview {
  display: grid;
  gap: 12px;
  margin-top: 10px
}

.preview-line {
  padding: 12px;
  border: 1px solid rgba(0, 234, 255, .18);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2)
}

.preview-line .h3 {
  font-size: 1rem
}

.week-deals .product {
  min-height: auto
}

/* Brand strip (products page) */
.brand-strip-wrap {
  position: sticky;
  top: 76px;
  /* below header */
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 920px) {
  .brand-strip-wrap {
    top: 68px
  }
}

.brand-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border-radius: 16px;
  background: rgba(9, 9, 20, .88);
  border: 1px solid var(--cyber-border);
  backdrop-filter: blur(10px);
  flex: 1;
  scroll-snap-type: x proximity;
}

.brand-strip .pill {
  scroll-snap-align: start
}

.brand-strip::-webkit-scrollbar {
  height: 0
}

.brand-strip-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(20, 20, 35, .85);
  border: 1px solid var(--cyber-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.brand-strip-btn:hover {
  background: rgba(0, 234, 255, .12);
  box-shadow: var(--glow-blue);
  transform: translateY(-1px)
}

.brand-strip-btn:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
  transform: none
}

.brand-strip-wrap:not(.has-overflow) .brand-strip-btn {
  display: none
}

.input,
select {
  background: rgba(9, 9, 20, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--cyber-text);
  outline: none;
  font-size: .95rem;
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}

.input:focus,
select:focus {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 0 4px rgba(0, 234, 255, .15), inset 0 0 12px rgba(0, 234, 255, .1);
  background: rgba(0, 234, 255, .05);
  transform: translateY(-1px);
}

.input::placeholder {
  color: rgba(200, 198, 255, .4);
  font-weight: 500;
}

.pill {
  border: 1px solid rgba(0, 234, 255, .28);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-size: .8rem;
  background: rgba(20, 20, 35, .55);
  color: var(--cyber-text);
}

.pill.active,
.pill:hover {
  border-color: var(--cyber-blue);
  color: var(--cyber-blue);
  box-shadow: var(--glow-blue);
  background: rgba(0, 234, 255, .08)
}

/* Product cards */
.product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product .media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 234, 255, .14), rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, rgba(8, 8, 18, .92), rgba(12, 12, 25, .96));
  border-bottom: 1px solid rgba(0, 234, 255, .18);
  padding: 0;
  overflow: hidden;
}

.product .media img {
  width: 98%;
  height: 98%;
  opacity: .98;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)) drop-shadow(0 0 10px rgba(0, 234, 255, .26));
}

.product .body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1
}

.kicker {
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--cyber-blue)
}

.h3 {
  font-weight: 900;
  color: var(--cyber-light);
  letter-spacing: .8px;
  text-transform: uppercase
}

.product .h3 {
  font-size: .95rem;
  letter-spacing: .4px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

.muted {
  opacity: .9;
}

/* Product Card Description Truncation with Fade */
.product .body>.muted {
  position: relative;
  max-height: 4.8em;
  /* Exactly 3 lines at 1.6 line-height */
  overflow: hidden;
  line-height: 1.6;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Reset fade in Modals */
.modal-overlay .product .body>.muted,
.modal-overlay .muted {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.meta-chip {
  white-space: nowrap
}

.meta-chip {
  border: 1px solid rgba(0, 234, 255, .25);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .25px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .28);
}

.meta-chip.ok {
  color: var(--cyber-purple);
  border-color: rgba(122, 43, 255, .35)
}

.meta-chip.bad {
  color: var(--cyber-red);
  border-color: rgba(255, 59, 111, .35)
}

.meta-chip.hot {
  color: var(--cyber-green);
  border-color: rgba(0, 255, 157, .35)
}

.meta-chip.promo {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-blue));
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.meta-chip-pack {
  color: var(--cyber-blue)
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto
}

.price {
  font-weight: 900;
  color: var(--cyber-green);
  text-shadow: 0 0 10px rgba(0, 255, 157, .35);
  font-size: 1.08rem
}

.old {
  opacity: .7;
  text-decoration: line-through;
  font-size: .82rem;
  margin-left: 4px;
  color: var(--cyber-text)
}

.quick-actions {
  margin-top: 8px
}

.pill.disabled {
  opacity: .5;
  pointer-events: none
}

body[data-page="products"] .product .price-row .btn,
body[data-page="home"] .product .price-row .btn {
  padding: 8px 10px;
  font-size: .72rem;
  letter-spacing: .5px;
  border-radius: 12px;
  overflow: hidden;
}

.product .price-row .wish-btn {
  min-width: 44px;
  padding: 8px 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--cyber-pink);
  line-height: 1;
  transform: none !important;
}

.product .price-row .wish-btn .wish-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product .price-row .wish-btn .wish-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product .price-row .wish-btn .wish-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}

.product .price-row .wish-btn .wish-icon.is-on path {
  fill: currentColor;
  stroke: currentColor;
}

body[data-page="products"] .product .price-row .wish-btn .wish-icon,
body[data-page="home"] .product .price-row .wish-btn .wish-icon {
  width: 20px;
  height: 20px;
}

.product .price-row .wish-btn:hover {
  background: rgba(255, 43, 214, .12);
  color: #ff59df;
  box-shadow: none;
  transform: none !important;
}

.product .price-row .wish-btn:active,
.product .price-row .wish-btn:focus,
.product .price-row .wish-btn:focus-visible {
  transform: none !important;
}

.cart-btn .label-short {
  display: none
}

/* Cart table */
.table {
  width: 100%;
  border-collapse: collapse
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 234, 255, .14);
  text-align: left;
  vertical-align: middle
}

.table th {
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyber-pink)
}

.table.compact th,
.table.compact td {
  padding: 10px;
  font-size: .9rem
}

.table.compact tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, .18)
}

.table thead th {
  white-space: nowrap
}

.cart-product {
  max-width: 280px
}

.cart-product strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-product .muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
}

body[data-page="cart"] .table th,
body[data-page="cart"] .table td {
  word-break: normal;
  overflow-wrap: normal;
}

body[data-page="cart"] .qty {
  white-space: nowrap
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1px solid rgba(0, 234, 255, .2);
}

.status-new {
  color: var(--cyber-blue);
  border-color: rgba(0, 234, 255, .35)
}

.status-processing {
  color: var(--cyber-purple);
  border-color: rgba(122, 43, 255, .35)
}

.status-shipped {
  color: var(--cyber-pink);
  border-color: rgba(255, 43, 214, .35)
}

.status-done {
  color: var(--cyber-green);
  border-color: rgba(0, 255, 157, .35)
}

.status-canceled {
  color: var(--cyber-red);
  border-color: rgba(255, 59, 111, .35)
}

.admin-table.sticky thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 9, 20, .95);
  z-index: 2;
}

.admin-table tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, .18)
}

.admin-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qty {
  display: flex;
  gap: 8px;
  align-items: center
}

.qty button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 234, 255, .10);
  border: 1px solid rgba(0, 234, 255, .35);
  color: var(--cyber-blue);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 900;
}

.qty button:hover {
  background: rgba(0, 234, 255, .22);
  box-shadow: var(--glow-blue)
}

.right {
  text-align: right
}

.total-box {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 234, 255, .25);
  background: rgba(20, 20, 35, .6);
}

.divider {
  height: 1px;
  background: rgba(0, 234, 255, .18);
  margin: 12px 0
}

.bonus-box .kicker {
  margin-bottom: 6px
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10050;
  min-width: 260px;
  max-width: 360px;
  background: rgba(20, 20, 35, .92);
  border: 1px solid rgba(0, 234, 255, .35);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: var(--glow-blue);
  color: var(--cyber-blue);
  transform: translateY(-10px);
  opacity: 0;
  transition: all .28s ease;
}

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

.toast small {
  display: block;
  color: var(--cyber-text);
  opacity: .95;
  margin-top: 6px
}

/* Brand logo snow effect removed */

/* Footer */
footer {
  border-top: 1px solid rgba(0, 234, 255, .18);
  background: rgba(5, 5, 11, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 0 32px;
  color: var(--cyber-text);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyber-blue), var(--cyber-pink), transparent);
}

.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-inner a {
  opacity: .85;
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s ease, opacity .2s ease;
}

.footer-inner a:hover {
  color: var(--cyber-blue);
  opacity: 1;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-info .footer-hours {
  font-size: .85rem;
  opacity: .7;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, .22);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all .25s ease;
}

.footer-social a:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 14px rgba(0, 234, 255, .35);
  transform: translateY(-2px);
}


/* MOBILE NAV OVERLAY */
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, .22);
  background: rgba(0, 0, 0, .18);
  color: inherit;
  cursor: pointer;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: none;
}

.mobile-nav-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  z-index: 9999;
  display: none;
  padding: 14px;
}

.mobile-nav-panel .nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* On mobile we hide header .nav with !important; ensure overlay nav stays visible */
.mobile-nav-panel .nav {
  display: flex !important;
}

.mobile-nav-panel .nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, .18);
  background: rgba(0, 0, 0, .22);
}

/* Shared modal (used by quick views/details) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .62);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(0, 238, 255, .2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.modal-head {
  flex: 0 0 auto;
  background: rgba(9, 9, 20, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 234, 255, .15);
  padding: 14px 14px 10px;
}

.modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 14px 16px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .modal-overlay {
    padding: 8px
  }

  .modal-shell {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .modal-content {
    padding-bottom: 22px
  }
}

body.nav-open .mobile-nav-overlay {
  display: block;
}

body.nav-open .mobile-nav-panel {
  display: block;
}

@media (max-width: 860px) {
  body[data-page="products"] .toolbar {
    position: static;
  }

  .filters-toggle-wrap {
    position: sticky;
    top: 96px;
    z-index: 56;
    margin: 6px 0 8px;
  }

  .filters-toggle-wrap .btn {
    background: rgba(9, 9, 20, .78);
    backdrop-filter: blur(8px);
  }

  header .nav {
    display: none !important;
  }

  .burger-btn {
    display: flex;
  }

  .header-phone {
    padding: 10px;
  }

  .header-phone .text {
    display: none;
  }

  body[data-page="admin"] .header-phone {
    display: none;
  }

  .header-inner {
    gap: 8px;
    padding: 8px 0;
  }

  /* Hide heart & cart from header on mobile — they're in bottom bar */
  .actions .badge {
    display: none !important;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  /* Make common grids single column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  body[data-page="products"] [data-products-grid],
  body[data-page="products"] [data-favorites-grid],
  body[data-page="home"] [data-products-grid],
  body[data-page="home"] [data-week-deals] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="products"] .product,
  body[data-page="home"] .product {
    min-height: 214px;
    border-radius: 12px;
  }

  body[data-page="products"] .product .body,
  body[data-page="home"] .product .body {
    padding: 8px;
    gap: 6px;
  }

  body[data-page="products"] .product .media,
  body[data-page="home"] .product .media {
    height: 156px;
    border-bottom: 0;
    padding: 0;
  }

  body[data-page="products"] .product .media img,
  body[data-page="home"] .product .media img {
    width: 92%;
    height: 92%
  }

  body[data-page="products"] .product .kicker,
  body[data-page="home"] .product .kicker {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .62rem;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="products"] .product .kicker .brand-kicker-dot,
  body[data-page="home"] .product .kicker .brand-kicker-dot,
  body[data-page="products"] .product .kicker span:last-child,
  body[data-page="home"] .product .kicker span:last-child {
    display: none;
  }

  body[data-page="products"] .product .h3,
  body[data-page="home"] .product .h3 {
    font-size: .76rem;
    line-height: 1.2;
    min-height: 2.15em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body[data-page="products"] .product .body>.muted,
  body[data-page="home"] .product .body>.muted {
    display: none
  }

  body[data-page="products"] .product .meta-row,
  body[data-page="home"] .product .meta-row {
    display: none
  }

  body[data-page="products"] .product .meta-chip,
  body[data-page="home"] .product .meta-chip {
    font-size: .58rem;
    padding: 2px 6px;
    letter-spacing: .1px;
  }

  body[data-page="products"] .product .meta-chip-barcode,
  body[data-page="home"] .product .meta-chip-barcode {
    display: none
  }

  body[data-page="products"] .product .meta-chip.ok,
  body[data-page="products"] .product .meta-chip.bad,
  body[data-page="home"] .product .meta-chip.ok,
  body[data-page="home"] .product .meta-chip.bad {
    display: none
  }

  body[data-page="products"] .product .price,
  body[data-page="home"] .product .price {
    font-size: .98rem
  }

  body[data-page="products"] .product .old,
  body[data-page="home"] .product .old {
    display: none
  }

  body[data-page="products"] .product .price-row,
  body[data-page="home"] .product .price-row {
    gap: 6px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body[data-page="products"] .product .price-row>div:first-child,
  body[data-page="home"] .product .price-row>div:first-child {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  body[data-page="products"] .product .price-row>div:last-child,
  body[data-page="home"] .product .price-row>div:last-child {
    gap: 4px !important;
    display: grid !important;
    grid-template-columns: 30px 1fr;
    width: 100%;
  }

  body[data-page="products"] .product .price-row .btn,
  body[data-page="home"] .product .price-row .btn {
    padding: 6px 8px;
    font-size: .62rem;
    letter-spacing: .2px;
    border-width: 1px;
    white-space: nowrap;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  body[data-page="products"] .product .price-row .btn.secondary,
  body[data-page="home"] .product .price-row .btn.secondary {
    width: 30px;
    min-width: 30px;
    padding: 0;
    justify-content: center;
  }

  body[data-page="products"] .product .price-row .wish-btn,
  body[data-page="home"] .product .price-row .wish-btn {
    width: 36px;
    min-width: 36px;
    padding: 0;
    line-height: 1;
  }

  body[data-page="products"] .product .price-row .wish-btn .wish-icon,
  body[data-page="home"] .product .price-row .wish-btn .wish-icon {
    width: 16px;
    height: 16px;
  }

  body[data-page="products"] .product .price-row .btn.cart-btn,
  body[data-page="home"] .product .price-row .btn.cart-btn {
    width: 100%;
  }

  body[data-page="products"] .product .price-row .btn.cart-btn .label-full,
  body[data-page="home"] .product .price-row .btn.cart-btn .label-full {
    display: inline;
  }

  body[data-page="products"] .product .price-row .btn.cart-btn .label-short,
  body[data-page="home"] .product .price-row .btn.cart-btn .label-short {
    display: none;
  }

  /* buttons/inputs full width inside forms on mobile */
  .row-actions {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
  }

  .btn.mini,
  .btn.secondary.mini {
    width: auto;
  }

  .mini-cart-actions .btn {
    width: auto
  }

  .product .price-row .btn {
    width: auto;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: .78rem;
    letter-spacing: .6px;
  }

  .input {
    width: 100%;
  }

  /* Improve tables readability */
  .table {
    min-width: 0;
    width: 100%;
    font-size: .92rem;
  }

  .table th,
  .table td {
    white-space: normal;
    word-break: break-word;
  }

  .cart-product {
    max-width: 180px
  }

  .cart-product strong {
    white-space: normal
  }

  .cart-product .muted {
    word-break: normal
  }

  body[data-page="cart"] .table.cart-table thead {
    display: none
  }

  body[data-page="cart"] .table.cart-table,
  body[data-page="cart"] .table.cart-table tbody,
  body[data-page="cart"] .table.cart-table tr {
    display: block;
    width: 100%
  }

  body[data-page="cart"] .table.cart-table tr {
    border: 1px solid rgba(0, 234, 255, .18);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 6px;
  }

  body[data-page="cart"] .table.cart-table td {
    padding: 8px 10px;
    font-size: .86rem;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: start;
  }

  body[data-page="cart"] .table.cart-table td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--cyber-blue);
  }

  body[data-page="cart"] .table.cart-table td>* {
    grid-column: 2
  }

  body[data-page="cart"] .cart-product {
    max-width: none
  }

  body[data-page="cart"] .cart-product .muted {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  body[data-page="account"] .table.orders-table thead {
    display: none
  }

  body[data-page="account"] .table.orders-table,
  body[data-page="account"] .table.orders-table tbody,
  body[data-page="account"] .table.orders-table tr {
    display: block;
    width: 100%
  }

  body[data-page="account"] .table.orders-table tr {
    border: 1px solid rgba(0, 234, 255, .18);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 6px;
  }

  body[data-page="account"] .table.orders-table td {
    padding: 8px 10px;
    font-size: .86rem;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: start;
  }

  body[data-page="account"] .table.orders-table td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--cyber-blue);
  }

  body[data-page="account"] .table.orders-table td>* {
    grid-column: 2
  }
}


/* MOBILE HEADER (sticky + compact) */
@media (max-width: 860px) {
  header {
    position: sticky;
    top: 0;
    z-index: 9990;
    backdrop-filter: blur(8px);
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    min-width: 0
  }

  .actions {
    justify-self: end
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand-title {
    font-size: 18px;
    line-height: 1.1;
  }

  .brand-sub {
    font-size: 11px;
    letter-spacing: .6px;
    opacity: .8;
    white-space: normal;
    line-height: 1.25;
    max-width: 160px;
  }

  .brand-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-start
  }

  .brand-sub-city {
    display: block
  }

  .brand-sub-chem {
    display: inline-block
  }

  .brand-sub-chem span {
    display: block
  }

  .brand-sub-chem span+span::before {
    content: ""
  }

  .brand-sub-chem span:last-child {
    text-align: center
  }

  .brand {
    align-items: flex-start
  }

  main {
    padding-top: 10px;
  }
}

/* MOBILE BOTTOM NAV */
.bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 10px;
    z-index: 9991;
    border-radius: 22px;
    border: 1px solid rgba(0, 234, 255, .15);
    background: rgba(9, 9, 20, .88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    padding: 6px 4px;
    gap: 2px;
    box-shadow:
      0 -2px 20px rgba(0, 234, 255, .08),
      0 10px 40px rgba(0, 0, 0, .5);
  }

  .bottom-nav a {
    position: relative;
    flex: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1;
    transition: all .25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav a .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: transform .25s cubic-bezier(.175, .885, .32, 1.275), filter .25s ease;
  }

  .bottom-nav a .ico svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav a.active {
    color: var(--accent);
    background: rgba(0, 234, 255, .08);
    border-color: rgba(0, 234, 255, .2);
    box-shadow: 0 0 12px rgba(0, 234, 255, .15);
  }

  .bottom-nav a.active .ico {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(0, 234, 255, .4));
  }

  .bottom-nav a:active {
    transform: scale(.92);
  }

  /* avoid overlap with bottom bar */
  body {
    padding-bottom: 88px;
  }
}

[data-count="0"]::after {
  display: none;
}

/* DESKTOP UTILITY BUTTONS */
.desktop-utils {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10040;
  display: none;
  gap: 10px;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.desktop-utils .util-btn {
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, .28);
  background: rgba(9, 9, 20, .78);
  backdrop-filter: blur(8px);
  color: var(--cyber-blue);
  font-weight: 800;
  letter-spacing: .3px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
}

.desktop-utils .util-btn.filters {
  display: none !important
}

.desktop-utils .util-btn:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.desktop-utils .util-btn.to-top {
  display: none
}

body.show-scroll-top .desktop-utils .util-btn.to-top {
  display: inline-flex
}

@media (min-width: 861px) {
  .desktop-utils {
    display: flex
  }
}

@media (max-width: 860px) {
  .desktop-utils {
    display: flex !important;
    right: 12px;
    bottom: 108px;
    gap: 8px;
  }

  .desktop-utils .util-btn {
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: .85rem;
  }
}


/* MOBILE CATALOG PANEL */
.catalog-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(6px);
  z-index: 9996;
  display: none;
}

.catalog-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 88px;
  bottom: 84px;
  /* above bottom-nav */
  z-index: 9997;
  display: none;
  padding: 0;
  overflow: hidden;
}

body.catalog-open .catalog-panel-overlay {
  display: block;
}

body.catalog-open .catalog-panel {
  display: flex;
  flex-direction: column;
}

body.catalog-open .scroll-to-top {
  display: none !important;
}

.catalog-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 20, 0.5);
  flex-shrink: 0;
}

.catalog-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  /* smooth scrolling */
  -webkit-overflow-scrolling: touch;
}

.catalog-panel-footer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 20, 0.95);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.catalog-panel .toolbar {
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 1 !important;
}

/* Hide the inner reset button since we have a sticky one in the footer */
.catalog-panel .pill-clear {
  display: none !important;
}

.catalog-panel .toolbar.card:hover {
  transform: none;
  box-shadow: none;
}

@media (min-width: 861px) {
  .catalog-panel {
    left: max(16px, calc(50vw - 560px));
    right: max(16px, calc(50vw - 560px));
    top: 84px;
    bottom: 20px;
    transform: none;
    width: auto;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
  }
}

@media (max-width:860px) {
  .toolbar .filters {
    gap: 10px;
  }

  .toolbar select[data-sort] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 234, 255, .18);
    background: rgba(0, 0, 0, .22);
    color: inherit;
  }
}


/* BRAND LOGO PILLS */
.pill.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  height: 56px;
  box-sizing: border-box;
}

.pill.brand-pill .brand-pill-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
  transform: translateY(0);
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pill.brand-pill .brand-pill-logo-abc {
  transform: scale(1.35);
}

.pill.brand-pill .brand-pill-logo-kalyon {
  transform: scale(1.5);
}

.pill.brand-pill .brand-pill-logo-bingo {
  transform: translateY(6px) scale(1.3);
}

.pill.brand-pill .brand-pill-text {
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--cyber-text);
  text-shadow: none;
  line-height: 1;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-kicker-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.brand-kicker-dot {
  opacity: .6;
}

.pill.brand-pill.active .brand-pill-text {
  color: var(--cyber-blue);
}

/* --- Mini cart drawer --- */
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 3000;
  animation: none;
}

.mini-cart-panel {
  position: fixed;
  right: 14px;
  top: 14px;
  width: min(420px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  transform: translateX(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 3001;
  animation: none;
}

body.mini-cart-open .mini-cart-overlay {
  opacity: 1;
  pointer-events: auto
}

body.mini-cart-open .mini-cart-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0)
}

.mini-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(0, 234, 255, .12)
}

.mini-cart-body {
  padding: 12px;
  overflow: auto;
  max-height: calc(100vh - 190px)
}

.mini-cart-foot {
  padding: 12px;
  border-top: 1px solid rgba(0, 234, 255, .12);
  display: grid;
  gap: 10px
}

.mini-cart-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between
}

.mini-line {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0, 234, 255, .12);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.mini-line+.mini-line {
  margin-top: 10px
}

.mini-line-info {
  flex: 1;
  min-width: 0
}

.mini-line-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mini-line-qty {
  display: flex;
  align-items: center;
  gap: 8px
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 234, 255, .18);
  background: rgba(0, 0, 0, .25);
  color: inherit;
  cursor: pointer
}

.qty-btn:hover {
  box-shadow: var(--glow-blue);
  background: rgba(0, 234, 255, .10)
}

@media (max-width: 860px) {
  .mini-cart-panel {
    right: 10px;
    top: 10px;
    width: calc(100% - 20px)
  }
}

/* Loading Spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  color: var(--cyber-blue);
  font-weight: 500;
  animation: pageIn 0.5s ease both;
}

.loading-spinner::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 234, 255, 0.2);
  border-top-color: var(--cyber-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Order Status Chips */
.order-status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.order-status-new {
  background: rgba(0, 238, 255, 0.15);
  color: #00eeff;
  border: 1px solid rgba(0, 238, 255, 0.3);
}

.order-status-processing {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.order-status-shipped {
  background: rgba(156, 39, 176, 0.15);
  color: #e040fb;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.order-status-done {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.order-status-canceled {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}