:root {
  --bg: #07080c;
  --bg-elevated: #0c0e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 184, 255, 0.1);
  --border-strong: rgba(56, 189, 248, 0.28);
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --accent-3: #60a5fa;
  --text: #f5f7fa;
  --text-dim: #9aa4b5;
  --text-faint: #64748b;
  --glow: 0 0 24px rgba(56, 189, 248, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(50rem 35rem at 0% 20%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(37, 99, 235, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
}

/* Global Custom Scrollbar for all elements & containers */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) transparent;
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  border: 1px solid rgba(7, 8, 12, 0.4);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---------- Glowing page frame ---------- */
.glow-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.glow-edge {
  position: absolute;
  opacity: 0.9;
}

.glow-top,
.glow-bottom {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(56, 189, 248, 0.55);
}

.glow-top { top: 0; }
.glow-bottom { bottom: 0; }

.glow-left,
.glow-right {
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(56, 189, 248, 0.45);
}

.glow-left { left: 0; }
.glow-right { right: 0; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.55);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: var(--glow);
}

.btn-lg {
  padding: 0.95rem 2.1rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(2, 6, 18, 0.6);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  display: grid;
  place-items: center;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.cart-badge.bump {
  box-shadow: 0 0 20px rgba(56, 189, 248, 1);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1rem;
  background: rgba(10, 12, 18, 0.96);
}

.mobile-link {
  display: block;
  padding: 0.85rem 0.5rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(148, 184, 255, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--accent);
  padding-left: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
}

.hero-viewport {
  position: relative;
  height: min(88vh, 780px);
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0.55) 45%, rgba(7, 8, 12, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  background: linear-gradient(120deg, #fff 30%, #9ecbff 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-3);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(12, 14, 21, 0.55);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.hero-arrow.prev { left: 1.4rem; }
.hero-arrow.next { right: 1.4rem; }

.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s, width 0.3s var(--ease-out), box-shadow 0.3s;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section.tight {
  padding: 2.2rem 0;
}

.page-head {
  padding-bottom: 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head h2,
.page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 0.7rem;
}

.section-head p,
.page-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}

/* ---------- Trust strip (home) ---------- */
.trust-strip {
  padding: 3.2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.trust-chip:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.trust-chip-icon {
  font-size: 1.3rem;
}

.trust-chip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-chip span:last-child {
  font-size: 0.72rem;
  color: var(--text-faint);
  display: none;
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.4rem 1.2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.35s;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(14rem 8rem at 20% 0%, rgba(56, 189, 248, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.category-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 34px rgba(37, 99, 235, 0.28);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.category-card h3 {
  font-size: 1rem;
}

.category-card p {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.category-arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 14px 44px rgba(2, 6, 18, 0.7),
    0 0 32px rgba(56, 189, 248, 0.22);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d1017;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-media img {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.badge-flagship,
.badge-new {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.badge-best-seller {
  background: rgba(191, 90, 242, 0.16);
  border: 1px solid rgba(191, 90, 242, 0.4);
  color: #d8b4fe;
}

.badge-deal,
.badge-best-value {
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: #6ee7a0;
}

.badge-convertible {
  background: rgba(255, 159, 10, 0.14);
  border: 1px solid rgba(255, 159, 10, 0.4);
  color: #fbbf24;
}

.badge-low {
  top: auto;
  bottom: 0.8rem;
  left: 0.8rem;
  background: rgba(255, 69, 58, 0.16);
  border: 1px solid rgba(255, 69, 58, 0.45);
  color: #ff8a80;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}

.product-brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.25s;
}

.product-name:hover {
  color: var(--accent);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.stars {
  display: inline-flex;
  gap: 1px;
}

.star {
  fill: rgba(255, 255, 255, 0.15);
}

.star.filled {
  fill: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.5));
}

.rating-value {
  font-weight: 600;
}

.rating-count {
  color: var(--text-faint);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.7rem;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}

.price-old {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.save-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: #6ee7a0;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.chip.static {
  cursor: default;
}

/* ---------- Catalog ---------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(440px, 100%);
  color: var(--text-faint);
}

.search-box svg {
  position: absolute;
  left: 1.05rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.6rem 0.75rem 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-box input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), var(--glow);
}

.search-clear {
  position: absolute;
  right: 0.8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
}

.catalog-group {
  margin-bottom: 3.4rem;
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.group-head h2 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.group-count {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.no-results > span {
  font-size: 2.4rem;
}

.no-results p {
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.nf-code {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Featured spotlight ---------- */
.featured-grid {
  margin-top: 0.5rem;
}

.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
}

.spotlight-media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.spotlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.spotlight:hover .spotlight-media img {
  transform: scale(1.05);
}

.spotlight-body {
  padding: 2.6rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
}

.spotlight-body h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.spotlight-body p {
  color: var(--text-dim);
  max-width: 420px;
}

.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- Promo banner ---------- */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.8rem 3rem;
  background:
    radial-gradient(30rem 14rem at 90% 10%, rgba(56, 189, 248, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: var(--border-strong);
}

.promo-banner h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.4rem;
}

.promo-banner p {
  color: var(--text-dim);
}

/* ---------- Product detail ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0d1017;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, box-shadow 0.25s;
  padding: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-badges {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.detail-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.detail-short {
  color: var(--text-dim);
  font-size: 1.02rem;
}

.detail-price .price {
  font-size: 1.9rem;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.stock-dot.in {
  background: #30d158;
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.8);
}

.stock-dot.out {
  background: #ff453a;
}

.stock-in { color: #6ee7a0; }
.stock-out { color: #ff8a80; }

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.option-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.color-row {
  display: flex;
  gap: 0.7rem;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.color-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), var(--glow);
}

.buy-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.buy-row .btn-lg {
  flex: 1;
  min-width: 220px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.qty-stepper button {
  width: 42px;
  height: 46px;
  font-size: 1.15rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.qty-stepper button:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.qty-stepper span {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
}

.qty-stepper.small button {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

.qty-stepper.small span {
  min-width: 24px;
  font-size: 0.85rem;
}

.add-btn.added {
  box-shadow: 0 0 28px rgba(48, 209, 88, 0.5);
}

.detail-description {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}

.specs {
  padding: 1.5rem 1.7rem;
}

.specs h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.specs dl {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 184, 255, 0.07);
  font-size: 0.9rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  color: var(--text-faint);
  font-weight: 500;
}

.spec-row dd {
  color: var(--text);
}

/* ---------- Trust page ---------- */
.slogan-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  justify-content: center;
  padding: 1.8rem 2rem;
  border-color: var(--border-strong);
}

.slogan-band span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  background: linear-gradient(120deg, #fff, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-box {
  padding: 3rem clamp(1.4rem, 4vw, 3.4rem);
}

.trust-box-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.trust-box-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.trust-box-head p {
  color: var(--text-dim);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.trust-card {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.35s;
}

.trust-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 36px rgba(37, 99, 235, 0.25);
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.4rem;
  text-align: center;
}

/* ---------- Mini cart ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.66);
  backdrop-filter: blur(4px);
  z-index: 90;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  z-index: 91;
  display: flex;
  flex-direction: column;
  background: rgba(12, 14, 21, 0.92);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(2, 6, 18, 0.8);
}

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.mini-cart-head h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.75rem;
  font-weight: 700;
}

.mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

.cart-empty-icon {
  font-size: 2.6rem;
  opacity: 0.8;
}

.cart-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1017;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.cart-item-name:hover {
  color: var(--accent);
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--accent-3);
  font-weight: 600;
}

.icon-button.remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.mini-cart-foot {
  padding: 1.4rem 1.6rem 1.7rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
}

.cart-total-row span:last-child {
  font-size: 1.45rem;
  font-weight: 700;
}

.cart-note {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(12, 16, 28, 0.85));
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent), transparent);
  box-shadow: 0 0 26px 3px rgba(56, 189, 248, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.6fr;
  gap: 2.4rem;
}

.footer-tagline {
  margin: 1rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}

.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 0.35rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.footer-news p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.newsletter input:focus {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.payments span {
  padding: 0.3rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s;
}

.payments span:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(148, 184, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-media {
    min-height: 280px;
  }
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.4rem 1.6rem;
  }
  .trust-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, 100% - 2rem);
  }
  .section {
    padding: 3.4rem 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-viewport {
    min-height: 520px;
    height: 78vh;
  }
  .hero-arrow {
    width: 42px;
    height: 42px;
  }
  .hero-arrow.prev { left: 0.7rem; }
  .hero-arrow.next { right: 0.7rem; }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .buy-row .btn-lg {
    min-width: 100%;
  }
  .newsletter {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .trust-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PHP version — CSS-driven animations (replaces Framer Motion)
   ============================================================ */

body {
  animation: pageIn 0.5s ease both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s var(--ease-out) var(--d, 0ms),
    transform 0.55s var(--ease-out) var(--d, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero slider (crossfade + slide) ---------- */
.hero-slide {
  opacity: 0;
  transform: translateX(70px) scale(1.02);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-media img {
  animation: heroZoom 6s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 0.55s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroRise {
  to { opacity: 1; transform: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s var(--ease-out), opacity 0.3s, padding 0.32s;
}

.mobile-menu.open {
  max-height: 320px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  opacity: 1;
}

/* ---------- Mini cart slide ---------- */
.cart-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-overlay.show {
  opacity: 1;
}

.mini-cart {
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out);
}

.mini-cart.show {
  transform: none;
}

/* ---------- Gallery crossfade ---------- */
.gallery-main img {
  transition: opacity 0.25s ease;
}

/* ---------- Add-to-cart feedback ---------- */
.add-to-cart.flash {
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.35), 0 0 28px rgba(48, 209, 88, 0.5);
}

/* ---------- Checkout ---------- */

.checkout-wrap { padding: 3.5rem 0 5rem; }

.checkout-head h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
}
.checkout-head p { margin: 0 0 1.8rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: start;
}

.checkout-form, .checkout-summary { padding: 1.8rem; }
.checkout-form h2, .checkout-summary h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  margin: 0 0 1.2rem;
}

.field { display: block; margin-bottom: 1rem; }
.field > span {
  display: block;
  color: var(--muted, #9aa4b5);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #f5f7fa;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.field textarea { resize: vertical; }
.field select option { background: #0d0f16; }
.field-hint { color: #9aa4b5; font-size: 0.78rem; margin-top: 0.6rem; }

.flash {
  max-width: 720px;
  margin: 0 auto 1.4rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid;
  animation: flashIn 0.35s ease both;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash-error {
  color: #ff8a80;
  background: rgba(255, 138, 128, 0.08);
  border-color: rgba(255, 138, 128, 0.3);
}
.flash-success {
  color: #6ee7a0;
  background: rgba(110, 231, 160, 0.08);
  border-color: rgba(110, 231, 160, 0.3);
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.summary-row img {
  width: 52px; height: 52px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.summary-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.summary-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  color: #9aa4b5;
  font-size: 0.92rem;
}
.summary-total.grand {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f7fa;
  font-weight: 700;
  font-size: 1.05rem;
}
.summary-total.grand .num { color: #38bdf8; }

.checkout-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2.4rem;
  text-align: center;
}
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6ee7a0;
  background: rgba(110, 231, 160, 0.1);
  border: 1px solid rgba(110, 231, 160, 0.35);
  font-size: 1.8rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.checkout-success h1 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.5rem;
}
.checkout-sub { color: #9aa4b5; margin: 0 0 1.4rem; }
.order-no {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 1.6rem;
}
.order-no strong { color: #38bdf8; letter-spacing: 0.03em; }
.checkout-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-wrap { padding-top: 2.2rem; }
}


/* ============================================================
   NEW FEATURES — NexusTech Extensions
   ============================================================ */

/* ---------- 1. Toast notification system ---------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: rgba(12, 14, 21, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--glow), 0 8px 32px rgba(2, 6, 18, 0.7);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

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

.toast.hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-success { border-color: rgba(48, 209, 88, 0.45); }
.toast-error   { border-color: rgba(255, 69, 58, 0.45); }
.toast-info    { border-color: var(--border-strong); }

/* ---------- 2. Support widget ---------- */
.support-widget {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 100;
}

.support-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45), var(--glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.support-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.55), var(--glow);
}

.support-panel {
  position: absolute;
  bottom: calc(100% + 0.9rem);
  right: 0;
  width: 320px;
  max-height: 420px;
  border-radius: var(--radius);
  background: rgba(12, 14, 21, 0.95);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 56px rgba(2, 6, 18, 0.85), var(--glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.support-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.support-panel-head {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-panel-head h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-panel-body {
  flex: 1;
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.support-panel-foot {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
}

.support-panel-foot .btn {
  width: 100%;
}

/* ---------- 3. Touch-optimized interactions ---------- */
@media (hover: none) {
  .btn:active,
  .btn-primary:active,
  .btn-ghost:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .product-card:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .category-card:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .chip:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .trust-chip:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .trust-card:active {
    transform: scale(0.965);
    transition-duration: 0.1s;
  }

  .icon-button:active,
  .cart-button:active,
  .support-toggle:active,
  .quick-add-btn:active,
  .theme-toggle:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
  }
}

/* ---------- 4. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .toast,
  .support-panel,
  .mini-cart,
  .cart-overlay,
  .mobile-menu,
  .hero-slide,
  .reveal,
  .product-media img,
  .spotlight-media img,
  .hero-media img,
  .category-arrow,
  .notify-modal-content {
    transition: none !important;
    animation: none !important;
  }

  .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    animation: none !important;
  }
}

/* ---------- 5. Announcement bar ---------- */
.announcement-bar {
  width: 100%;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  z-index: 55;
  position: relative;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar a:hover {
  opacity: 0.85;
}

.announcement-close {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #bae6fd;
  cursor: pointer;
  z-index: 70;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ---------- 6. Theme toggle button ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s, background 0.25s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  color: var(--accent-3);
}

/* ---------- 7. Curated collections section ---------- */
.collections-section {
  padding: 5rem 0;
}

.collections-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.collections-tab {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.collections-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.collections-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.collections-rail {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.collections-rail::-webkit-scrollbar {
  display: none;
}

.collections-rail .product-card {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

/* ---------- 8. Editorial section ---------- */
.editorial-section {
  padding: 5rem 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.editorial-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-emblem {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: fit-content;
}

.editorial-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.editorial-copy p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

/* ---------- 9. Benefits strip ---------- */
.benefits-strip {
  padding: 3.5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.8rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.benefit-item:last-child {
  border-right: none;
}

.benefit-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.benefit-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- 10. Notify modal ---------- */
.notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.notify-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.notify-modal-content {
  width: min(440px, 90vw);
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  background: rgba(12, 14, 21, 0.96);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(2, 6, 18, 0.85), var(--glow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s var(--ease-out);
}

.notify-overlay.open .notify-modal-content {
  transform: scale(1) translateY(0);
}

.notify-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.notify-modal-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.notify-form input {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notify-form input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), var(--glow);
}

.notify-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.notify-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.notify-modal-content {
  position: relative;
}

/* ---------- 11. Product flags ---------- */
.product-media-wrap {
  position: relative;
  overflow: hidden;
}

.product-flags {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
  align-items: flex-end;
}

.product-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-flag svg {
  width: 12px;
  height: 12px;
}

.product-flag-top-seller,
.product-flag.seller {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.product-flag-hot,
.product-flag.hot {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.product-flag-featured,
.product-flag.highlight {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.45);
  color: var(--accent-3);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.product-card.is-highlighted {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

/* ---------- 12. Quick add button ---------- */
.quick-add-btn,
.quick-add {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.25s;
}

.product-card:hover .quick-add-btn,
.product-card:hover .quick-add,
.product-media:hover .quick-add-btn,
.product-media:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover,
.quick-add:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55), var(--glow);
  transform: scale(1.08) translateY(0);
}

/* ---------- 13. Sort dropdown ---------- */
.sort-dropdown {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa4b5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.sort-dropdown:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), var(--glow);
}

.sort-dropdown option {
  background: var(--bg-elevated);
  color: var(--text);
}

/* ---------- 14. Results count ---------- */
.results-count {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 400;
}

/* ---------- 15. Light mode ---------- */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: rgba(0, 0, 0, 0.035);
  --surface-strong: rgba(0, 0, 0, 0.06);
  --border: rgba(37, 99, 235, 0.12);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --glow: 0 0 24px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(50rem 35rem at 0% 20%, rgba(56, 189, 248, 0.04), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(37, 99, 235, 0.05), transparent 60%);
}

[data-theme="light"] .glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

[data-theme="light"] .navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.55) 45%, rgba(248, 250, 252, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

[data-theme="light"] .hero h1 {
  background: linear-gradient(120deg, #0f172a 30%, #1e40af 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .product-media,
[data-theme="light"] .gallery-main,
[data-theme="light"] .cart-item-img {
  background: #e2e8f0;
}

[data-theme="light"] .mobile-menu {
  background: rgba(248, 250, 252, 0.97);
}

[data-theme="light"] .mini-cart {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .cart-overlay {
  background: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .support-panel {
  background: rgba(255, 255, 255, 0.97);
}

[data-theme="light"] .notify-modal-content {
  background: rgba(255, 255, 255, 0.97);
}

[data-theme="light"] .announcement-bar {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.9));
}

[data-theme="light"] .glow-top,
[data-theme="light"] .glow-bottom {
  box-shadow: 0 0 12px 1px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .glow-left,
[data-theme="light"] .glow-right {
  box-shadow: 0 0 12px 1px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] ::selection {
  background: rgba(56, 189, 248, 0.25);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
}

[data-theme="light"] .field select option {
  background: #fff;
}

[data-theme="light"] .sort-dropdown {
  background-color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sort-dropdown option {
  background: #fff;
}

[data-theme="light"] .hero-arrow {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .slogan-band span {
  background: linear-gradient(120deg, #0f172a, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .product-card:hover {
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.08),
    0 0 24px rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .checkout-form,
[data-theme="light"] .checkout-summary {
  background: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Responsive overrides for new components (mobile ≤640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Toast */
  .toast-container {
    bottom: 1.2rem;
    left: 1rem;
    right: 1rem;
    transform: none;
  }
  .toast {
    font-size: 0.82rem;
    padding: 0.65rem 1.1rem;
    width: 100%;
    justify-content: center;
  }

  /* Support widget */
  .support-widget {
    bottom: 1rem;
    right: 1rem;
  }
  .support-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .support-panel {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    max-height: 360px;
  }

  /* Announcement bar */
  .announcement-bar {
    font-size: 0.75rem;
    padding: 0.5rem 2.4rem 0.5rem 0.8rem;
  }

  /* Theme toggle */
  .theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  /* Collections */
  .collections-section {
    padding: 3.4rem 0;
  }
  .collections-tabs {
    gap: 0.4rem;
    margin-bottom: 1.6rem;
  }
  .collections-tab {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .collections-rail .product-card {
    min-width: 240px;
  }

  /* Editorial */
  .editorial-section {
    padding: 3.4rem 0;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .editorial-copy h2 {
    font-size: 1.4rem;
  }

  /* Benefits strip */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .benefit-item {
    padding: 1.2rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .benefit-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .benefit-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .benefit-number {
    font-size: 1.5rem;
  }

  /* Notify modal */
  .notify-modal-content {
    padding: 2rem 1.4rem;
  }
  .notify-form {
    flex-direction: column;
  }

  /* Product flags */
  .product-flag {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  /* Quick add — always visible on mobile */
  .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  /* Sort dropdown */
  .sort-dropdown {
    font-size: 0.8rem;
    padding: 0.48rem 2rem 0.48rem 0.85rem;
  }

  /* Results count */
  .results-count {
    font-size: 0.76rem;
  }
}

@media (max-width: 860px) {
  /* Editorial */
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Benefits strip */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .benefit-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .benefit-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .benefit-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Collections */
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   SIMMTRON UPGRADE STYLES (Items 1, 2, 3, 5, 6, 7, 8, 9)
   ========================================================================== */

/* 1. Global Custom Scrollbars (Item 9 - Eliminated cheap white scrollbars) */
*, *::before, *::after {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(6, 9, 19, 0.7);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 9, 19, 0.7);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 2. Top Slim Gradient Blue Announcement Bar (Item 2 - Centered) */
.announcement-bar {
  width: 100% !important;
  padding: 0.38rem 2.5rem !important;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 25%, #0284c7 50%, #1e3a8a 75%, #0f172a 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 60 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 1px 15px rgba(56, 189, 248, 0.15) !important;
}
.announcement-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-align: center;
  flex-wrap: wrap;
}
.announcement-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}
.ann-perk {
  color: #bae6fd;
}
.announcement-sep {
  opacity: 0.65;
  color: #38bdf8;
}

/* Brand logo styling */
.brand-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}
.brand-logo-img.small {
  height: 24px;
}
.header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
}

/* Page scroll lock when cart is open */
html.cart-open,
body.cart-open {
  overflow: hidden !important;
  touch-action: none !important;
}

/* 3. Independent Cart Drawer Scrolling & Selection (Item 3) */
.mini-cart {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 440px !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #070a14 !important;
  border-left: 1px solid rgba(56, 189, 248, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 9999 !important;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden !important;
}
.mini-cart[hidden] {
  display: none !important;
}
.cart-overlay[hidden] {
  display: none !important;
}
.mini-cart.show {
  transform: translateX(0) !important;
}
.mini-cart-head {
  flex-shrink: 0 !important;
  padding: 1.1rem 1.4rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(10, 15, 28, 0.98) !important;
}
.cart-select-bar {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.6rem 1.4rem !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  font-size: 0.82rem !important;
}
.cart-check-all-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #e2e8f0;
  user-select: none;
}
.btn-text-link {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}
.btn-text-link:hover {
  text-decoration: underline;
}
.mini-cart-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 1rem 1.4rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent !important;
}

/* Sleek modern scrollbar for mini-cart body */
.mini-cart-body::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
.mini-cart-body::-webkit-scrollbar-track {
  background: transparent !important;
}
.mini-cart-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35) !important;
  border-radius: 999px !important;
}
.mini-cart-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.65) !important;
}

.mini-cart-foot {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  padding: 1.2rem 1.4rem 1.4rem !important;
  border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
  background: rgba(8, 12, 24, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  position: relative !important;
  z-index: 20 !important;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.7) !important;
}

/* Custom Checkbox inside cart items */
.cart-item {
  flex-shrink: 0 !important;
  min-height: 84px !important;
  display: grid !important;
  grid-template-columns: auto 64px 1fr auto !important;
  align-items: center !important;
  gap: 0.8rem !important;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.85rem 0.95rem !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.cart-item-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  min-width: 0 !important;
}

.cart-item-info .qty-stepper.small {
  margin-top: 0.25rem !important;
  align-self: flex-start !important;
}
.cart-item.selected {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
}
.cart-item-check-label {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cart-item-check-label input,
.cart-check-all-label input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* Cart taking a nap empty state */
.cart-empty-nap {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: auto 0;
}
.cart-empty-nap .nap-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.8rem;
  animation: float-nap 3s ease-in-out infinite;
}
@keyframes float-nap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cart-empty-nap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.cart-empty-nap p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

/* 4. Cash on Delivery Badge in footer (Item 5) */
.cod-pill-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  margin-top: 1rem;
}
.cod-badge-icon {
  font-size: 1.6rem;
}
.cod-badge-text {
  display: flex;
  flex-direction: column;
}
.cod-badge-text strong {
  font-size: 0.84rem;
  color: #ffffff;
}
.cod-badge-text span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* 5. Floating Live Chat Widget (Item 6 & 7) */
.live-chat-widget {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.live-chat-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5), 0 0 20px rgba(56, 189, 248, 0.4);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}
.live-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.65), 0 0 30px rgba(56, 189, 248, 0.6);
}
.chat-online-beacon {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #060913;
  box-shadow: 0 0 8px #22c55e;
}

/* Hide completely when cart is open (Item 7) */
body.cart-open .live-chat-widget,
body.cart-open .live-chat-bubble,
body.cart-open .live-chat-panel {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.9) !important;
}

.live-chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  background: #090e1d;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slide-up-chat 0.25s ease-out;
}
.live-chat-panel[hidden] {
  display: none !important;
}
@keyframes slide-up-chat {
  from { opacity: 0; transform: translateY(15px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-panel-head {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5), rgba(2, 132, 199, 0.2));
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.chat-agent-info h4 {
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
}
.chat-agent-info .status-indicator {
  font-size: 0.72rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-agent-info .status-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.chat-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.chat-panel-body {
  padding: 1.2rem;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.chat-channel-btn {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  gap: 0.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.chat-channel-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.chat-channel-btn.whatsapp {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}
.chat-channel-btn.messenger {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
}
.channel-icon {
  font-size: 1.3rem;
}
.channel-info strong {
  display: block;
  font-size: 0.82rem;
}
.channel-info small {
  font-size: 0.68rem;
  color: var(--text-dim);
}
.channel-arrow {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--accent);
}
.chat-subhead {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0.4rem 0 0.6rem;
}
.chat-faq-item {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-faq-item summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}
.chat-faq-item p {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.chat-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  margin-bottom: 0.5rem;
}
.chat-input:focus {
  border-color: var(--accent);
}

/* Global hidden rule */
[hidden] {
  display: none !important;
}

/* 6. Live Search Modal (Item 3 & 11) */
.search-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(3, 7, 18, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 3.5rem 1.2rem 1.5rem !important;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-modal-overlay[hidden] {
  display: none !important;
}
.search-modal-box {
  width: 100%;
  max-width: 640px;
  background: #090e1d;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
}
.search-modal-head {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.4rem;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  background: rgba(10, 15, 28, 0.98);
  flex-shrink: 0;
  margin: 0;
}
.search-modal-head input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: #fff;
  font-family: inherit;
}
.search-modal-head input::placeholder {
  color: var(--text-faint);
}
.search-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.search-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}
.search-results-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.8rem 1rem 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}
.search-results-list::-webkit-scrollbar {
  width: 6px;
}
.search-results-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}
.search-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0.8rem 0.5rem 0.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-group-title span.count-tag {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
}
.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.search-result-row:hover,
.search-result-row.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
.search-result-row img {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  background: #0d1222;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
}
.search-result-price {
  color: var(--accent);
  font-weight: 700;
}
.search-result-oldprice {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 0.78rem;
}
.search-category-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.search-category-row:hover,
.search-category-row.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
}
.search-cat-icon {
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.search-cat-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.search-highlight {
  color: var(--accent);
  font-weight: 800;
  background: rgba(56, 189, 248, 0.18);
  padding: 0 2px;
  border-radius: 3px;
}
.search-view-all-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.search-view-all-btn:hover,
.search-view-all-btn.selected {
  background: var(--accent);
  color: #060913;
}
.search-hint {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.search-suggest-box {
  margin-top: 1rem;
  text-align: left;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.search-suggest-box h5 {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.search-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-suggest-chips a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.search-suggest-chips a:hover {
  background: var(--accent);
  color: #000;
}
.search-loading-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-bottom: 0.6rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 7. Customer Google Auth Modal (Item 8 & 11) */
.customer-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(3, 7, 18, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.customer-modal-overlay[hidden] {
  display: none !important;
}
.customer-modal-card {
  width: 100%;
  max-width: 430px;
  background: #090e1d;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.15);
  position: relative;
  margin: auto;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.customer-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all 0.2s ease;
}
.customer-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}
.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-logo {
  height: 38px;
  margin-bottom: 0.8rem;
}
.auth-modal-header h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.auth-modal-header p {
  font-size: 0.84rem;
  color: var(--text-dim);
}
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-google-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.4rem 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-divider span {
  padding: 0 0.8rem;
}
.customer-auth-form .form-group {
  margin-bottom: 1rem;
}
.customer-auth-form label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.customer-auth-form input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}
.customer-profile-view {
  text-align: center;
}
.customer-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  border: 2px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  overflow: hidden;
  position: relative;
}
.customer-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.customer-avatar-initials-large {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
  font-family: var(--font-display, inherit);
}
.customer-email-line {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
.provider-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 1.5rem;
}
.provider-badge.google {
  background: rgba(66, 133, 244, 0.15);
  color: #60a5fa;
  border-color: rgba(66, 133, 244, 0.3);
}
.provider-badge.verified {
  background: rgba(48, 209, 88, 0.15);
  color: #34d399;
  border-color: rgba(48, 209, 88, 0.3);
}

/* Header Avatar & Initials Fallback */
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  display: block;
}
.header-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  letter-spacing: 0.5px;
}

/* Logged-in Customer Dropdown Menu */
.account-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: rgba(9, 14, 29, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 0.6rem 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(20px);
  z-index: 1000;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.account-dropdown-menu[hidden] {
  display: none !important;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.account-dropdown-header {
  padding: 0.6rem 1.1rem 0.75rem;
}
.account-dropdown-header strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-dropdown-header span {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.account-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.3rem 0;
}
.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.account-dropdown-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.account-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
}
.account-dropdown-item.text-danger {
  color: #f87171;
}
.account-dropdown-item.text-danger svg {
  color: #f87171;
}
.account-dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
