@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray-100: #e8e8e2;
  --gray-200: #d0d0c8;
  --gray-400: #999990;
  --gray-600: #555550;
  --accent: #c8ff00;
  --accent-rgb: 200, 255, 0;
  --red: #ff2200;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --border: 1px solid var(--black);
  --border-thick: 2px solid var(--black);
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Hide Admin link by default on all devices (mobile/tablet first) */
#admin-link-nav,
.admin-only-desktop {
  display: none !important;
}

@media (min-width: 1025px) {
  /* Admin panel link — desktop only (hidden on tablet & mobile) */
  #admin-link-nav {
    display: inline-block !important;
  }
}

@media (min-width: 1200px) {

  body,
  a,
  button,
  .product-card,
  .btn-primary,
  .btn-secondary,
  .product-card-wishlist {
    cursor: none !important;
  }
}

/* CUSTOM CURSOR */
.cursor {
  width: 12px;
  height: 12px;
  background: #803B0B;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100001;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 10px #803B0B;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid #803B0B;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  transition: transform 0.35s ease;
  box-shadow: 0 0 10px rgba(128, 59, 11, 0.5);
}

.cursor.hover {
  width: 8px;
  height: 8px;
  background: #803B0B;
  box-shadow: 0 0 10px #803B0B;
}

.cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: #803B0B;
  box-shadow: 0 0 10px rgba(128, 59, 11, 0.5);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--white);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.4;
}

/* MARQUEE STRIP */
.marquee-strip {
  background: var(--black);
  color: var(--white);
  padding: 6px 0;
  overflow: hidden;
  border-bottom: var(--border);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 32px;
}

.marquee-item::after {
  content: '//';
  margin-left: 32px;
  opacity: 0.4;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border-thick);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 24px;
  height: 110px;
}

.nav-left {
  display: flex;
  gap: 0;
}

.nav-left a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  padding: 6px 14px;
  border: var(--border);
  border-right: none;
  transition: var(--transition);
}

.nav-left a:last-child {
  border-right: var(--border);
}

.nav-left a:hover,
.nav-left a.active {
  background: var(--black);
  color: var(--white);
}

.nav-logo {
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--black);
  line-height: 1;
}

.nav-logo span {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.logo-img {
  max-height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-right a,
.nav-right button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-right: none;
  background: none;
  text-decoration: none;
  color: var(--black);
  transition: var(--transition);
  position: relative;
}

.nav-right a:last-child,
.nav-right button:last-child {
  border-right: var(--border);
}

.nav-right a:hover,
.nav-right button:hover {
  background: var(--black);
  color: var(--white);
}

.cart-count,
.wishlist-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 96px);
  border-bottom: var(--border-thick);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s ease both;
}

.hero-headline span {
  display: block;
}

.hero-headline .outline {
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  max-width: 320px;
  opacity: 0.7;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 0;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  border: var(--border-thick);
  border-right: none;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
}

.btn-secondary {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  border: var(--border-thick);
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

.hero-barcode {
  position: absolute;
  bottom: 40px;
  right: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-barcode img {
  mix-blend-mode: multiply;
}

.hero-barcode:hover {
  opacity: 1;
  transform: scale(1.05);
}

.hero-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 10s ease-out;
}

.hero:hover .hero-main-img {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 10, 10, 0.4));
  pointer-events: none;
}

.hero-floating-tags {
  position: absolute;
  top: 32px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.15em;
  line-height: 2;
  z-index: 2;
  mix-blend-mode: difference;
  color: var(--white);
}

.hero-year-bg {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 80px;
  opacity: 0.1;
  font-weight: 900;
  color: var(--black);
  pointer-events: none;
}

/* CATEGORY GRID SYSTEM */
.category-grid-container {
  padding: 60px 40px;
  border-bottom: var(--border-thick);
  background: var(--white);
}

.cats-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
  min-height: 560px;
}

/* General Card Stylings */
.cat-card {
  background: #ececec;
  border-radius: 24px;
  text-decoration: none;
  color: var(--black);
  overflow: hidden;
  position: relative;
  display: flex;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cat-card-tall {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
}

.cat-card-wide {
  flex: 1;
  display: flex;
  flex-direction: row;
}

.cat-grid-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cat-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}


.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  z-index: 2;
  transition: background 0.4s ease;
}

.cat-card:hover .cat-card-overlay {
  background: rgba(0, 0, 0, 0.5);
  /* Darkens on hover uniformly across all cards */
}

.cat-card:hover .cat-card-bg img {
  transform: scale(1.05);
}

/* Typography System Restore */
.cat-box-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--white);
}

.cat-card-tall .cat-box-content {
  justify-content: flex-end;
  padding-bottom: 40px;
}

.cat-card-wide .cat-box-content {
  justify-content: center;
}

.cat-box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  text-transform: uppercase;
}

.cat-box-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 64px);
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 0.4s ease, color 0.4s ease;
}

.cat-box-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.cat-card:hover .cat-box-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Interaction Logic */
.cat-card:hover .cat-box-title {
  color: var(--accent);
  transform: translateY(-5px);
}

.cat-card:hover .cat-box-btn {
  opacity: 1;
  transform: translateY(0);
}

/* END CATEGORY GRID */


/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .cats-grid-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid-stack {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .cats-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .cat-grid-stack {
    grid-column: span 1;
  }

  .category-grid-container {
    padding: 40px 20px;
  }

  .cat-card-wide {
    height: 250px;
    /* Standardize height when stacked */
  }
}

/* SECTION LABELS */
.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--black);
  opacity: 0.4;
}

/* PRODUCTS GRID */
.products-section {
  padding: 60px 40px;
  border-bottom: var(--border-thick);
  box-sizing: border-box;
}

.products-section .home-carousel {
  margin-left: 0;
  margin-right: 0;
  border-bottom: none;
}

.products-section .home-carousel .carousel-pagination {
  border-top: none;
}

@media (max-width: 1024px) {
  .products-section {
    padding: 48px 28px;
  }

  .products-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .products-title {
    font-size: 44px;
  }
}

@media (max-width: 600px) {
  .products-section {
    padding: 36px 20px 44px;
  }

  .products-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .products-title {
    font-size: 36px;
  }

  .products-section .view-all {
    padding: 8px 14px;
    font-size: 9px;
  }
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: var(--border);
}

.products-title {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.view-all {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: var(--border);
  transition: var(--transition);
}

.view-all:hover {
  background: var(--black);
  color: var(--white);
}

.view-all svg {
  transition: transform var(--transition);
}

.view-all:hover svg {
  transform: translateX(4px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border);
}

.product-card {
  border-right: var(--border);
  border-bottom: var(--border);
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  display: block;
}

.product-card:nth-child(4n) {
  border-right: none;
}

.product-card:hover {
  background: var(--black);
  color: var(--white);
}

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.product-card-img img,
.product-card-img video,
.product-card-img .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}

.product-card:hover .product-card-img img,
.product-card:hover .product-card-img video,
.product-card:hover .product-card-img .product-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.product-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.product-card-wishlist:hover {
  background: var(--black);
  color: var(--white);
}

.product-card-wishlist.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.product-annotation {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--black);
  padding: 2px 6px;
}

.product-card-info {
  padding: 16px;
  border-top: var(--border);
}

.product-card:hover .product-card-info {
  border-top-color: var(--gray-600);
}

.product-sku {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.5;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.product-name {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-sizes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.size-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border: var(--border);
  transition: var(--transition);
}

.filter-size:checked+.size-tag {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.product-card:hover .size-tag {
  border-color: var(--gray-600);
}

.size-tag.unavailable {
  opacity: 0.3;
  text-decoration: line-through;
}

/* FEATURES STRIP */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--border-thick);
}

/* Home page accent strip — desktop: single horizontal row */
.features-strip-home {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--black);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  overflow: hidden;
}

.features-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.features-strip-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.features-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}

.features-strip-title {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.features-strip-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  white-space: nowrap;
}

.features-strip-sep {
  opacity: 0.4;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}

.feature-item {
  padding: 32px 28px;
  border-right: var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.feature-title {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.5;
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 40px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  line-height: 1.8;
  max-width: 240px;
}

.footer-heading {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.5;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links a::before {
  content: '//';
  opacity: 0.3;
  font-size: 9px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.3;
  letter-spacing: 0.15em;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* PAGE LAYOUTS */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CATEGORY PILLS BAR — shop, technical / brutalist */
.top-category-bar {
  position: relative;
  padding: 12px 16px;
  border-bottom: var(--border-thick);
  background: var(--gray-100);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
}

.top-category-bar-viewport {
  position: absolute;
  inset: 12px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.top-category-bar-viewport::-webkit-scrollbar,
.top-category-bar::-webkit-scrollbar {
  display: none;
}

.top-category-bar-scroll {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  vertical-align: top;
}

@media (min-width: 1025px) {
  .top-category-bar {
    padding: 20px 40px;
    min-height: 0;
    overflow: visible;
  }

  .top-category-bar-viewport {
    position: static;
    inset: auto;
    overflow: visible;
  }

  .top-category-bar-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
}

.category-pill {
  cursor: pointer;
  display: block;
  flex-shrink: 0;
}

.category-pill .filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pill-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: var(--border);
  border-radius: 0;
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: none;
}

.pill-content:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

.filter-checkbox:checked + .pill-content {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: none;
}

.filter-checkbox:checked + .pill-content .pill-icon svg {
  stroke: var(--accent);
}

.pill-content:hover .pill-icon svg {
  stroke: var(--accent);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pill-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.pill-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: inherit;
}

/* CATALOG PAGE — mobile-first (full width); desktop grid at 1025px+ */
#page-catalog {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.catalog-layout {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 65px);
}

.catalog-sidebar.catalog-filter-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: 100%;
  max-height: 88vh;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-top: var(--border-thick);
  z-index: 3100;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  background: var(--white);
}

body.catalog-filters-open .catalog-sidebar.catalog-filter-panel {
  transform: translateY(0);
}

body.catalog-sort-open .catalog-sort-sheet {
  transform: translateY(0);
}

.catalog-sidebar-inner .sidebar-title {
  display: none;
}

.filter-clear-btn--inline {
  display: none;
}

.catalog-toolbar .catalog-sort-wrap {
  display: none;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  line-height: 1;
  padding-bottom: 16px;
  border-bottom: var(--border-thick);
}

.filter-group {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: var(--border);
}

.filter-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 14px;
  display: block;
}

.filter-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip-label {
  cursor: pointer;
  display: block;
}

.filter-chip-label .filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: var(--border);
  background: var(--white);
  transition: var(--transition);
  user-select: none;
}

.filter-chip-label:hover .filter-chip {
  border-color: var(--black);
  background: var(--gray-100);
}

.filter-size:checked + .filter-chip {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: none;
  transition: var(--transition);
}

.filter-option:hover {
  opacity: 0.7;
}

.filter-checkbox {
  width: 14px;
  height: 14px;
  border: var(--border);
  background: var(--white);
  cursor: none;
  appearance: none;
  position: relative;
  flex-shrink: 0;
}

.filter-checkbox:checked {
  background: var(--black);
}

.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.4;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.price-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.price-field-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
}

.price-range-sep {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  padding-bottom: 12px;
  text-align: center;
}

.price-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  outline: none;
  transition: var(--transition);
  -moz-appearance: textfield;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-input:focus {
  border: var(--border-thick);
  background: var(--gray-100);
}

.price-input::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

.filter-clear-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: var(--border-thick);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-clear-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* Mobile shop filter bar & sheets (Flipkart / Amazon pattern) */
.catalog-mobile-bar {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-bottom: var(--border-thick);
  position: sticky;
  top: 65px;
  z-index: 150;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-active-filters,
.catalog-sheet-backdrop,
.catalog-sheet-handle,
.catalog-sheet-header--filter,
.catalog-filter-sheet-footer {
  display: none;
}

.catalog-sheet-backdrop {
  display: block;
}

.catalog-sheet-handle,
.catalog-sheet-header--filter,
.catalog-filter-sheet-footer {
  display: none;
}

.catalog-sort-sheet {
  display: none;
}

.catalog-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: none;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
}

.catalog-mobile-btn:active {
  background: var(--gray-100);
}

.catalog-mobile-btn-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.catalog-mobile-divider {
  width: 1px;
  background: var(--black);
  opacity: 0.15;
  flex-shrink: 0;
}

.catalog-mobile-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-active-filters {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: var(--gray-100);
  border-bottom: var(--border);
}

.catalog-active-filters::-webkit-scrollbar {
  display: none;
}

.catalog-active-filters:not([hidden]) {
  display: flex;
}

.catalog-active-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-active-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  opacity: 0.6;
}

.catalog-active-chip-remove:hover {
  opacity: 1;
}

.catalog-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 3050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.catalog-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-400);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.catalog-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
  border-bottom: var(--border-thick);
  flex-shrink: 0;
}

.catalog-sheet-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
}

.catalog-sheet-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.catalog-sheet-close:hover {
  background: var(--black);
  color: var(--white);
}

.catalog-filter-sheet-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: var(--border-thick);
  background: var(--white);
  flex-shrink: 0;
}

.catalog-filter-sheet-footer .filter-clear-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 110px;
  margin-top: 0;
}

.filter-apply-btn {
  flex: 1;
  padding: 14px 16px;
  border: var(--border-thick);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-apply-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.catalog-sort-sheet {
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  max-height: 55vh;
  background: var(--white);
  z-index: 3100;
  border-top: var(--border-thick);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.catalog-sort-options {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.catalog-sort-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: none;
  border-bottom: var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
}

.catalog-sort-option:hover {
  background: var(--gray-100);
}

.catalog-sort-option.is-active {
  background: var(--black);
  color: var(--white);
}

.catalog-sort-option.is-active::after {
  content: '✓';
  font-size: 12px;
  color: var(--accent);
}

.catalog-main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 0 100px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 0 16px 10px;
  border-bottom: var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .catalog-toolbar {
    margin-bottom: 32px;
    padding: 0 0 16px;
  }
}

.catalog-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  opacity: 0.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
}

.sort-select {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 36px 10px 14px;
  border: var(--border);
  background: var(--white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
  transition: var(--transition);
}

.sort-select:hover,
.sort-select:focus {
  border: var(--border-thick);
  background-color: var(--gray-100);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: var(--border);
  border-left: none;
  border-right: none;
}

.catalog-grid .product-card:nth-child(2n) {
  border-right: none;
}

@media (min-width: 1025px) {
  .catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 96px);
  }

  .catalog-sidebar.catalog-filter-panel {
    position: sticky;
    top: 64px;
    left: auto;
    right: auto;
    bottom: auto;
    height: calc(100vh - 64px);
    max-height: none;
    padding: 32px 24px;
    border-right: var(--border-thick);
    border-top: none;
    transform: none;
    box-shadow: none;
    overflow-y: auto;
    z-index: auto;
  }

  body.catalog-filters-open .catalog-sidebar.catalog-filter-panel {
    transform: none;
  }

  .catalog-sidebar-inner .sidebar-title {
    display: block;
  }

  .filter-clear-btn--inline {
    display: block;
  }

  .catalog-toolbar .catalog-sort-wrap {
    display: flex;
  }

  .catalog-mobile-bar,
  .catalog-active-filters,
  .catalog-sheet-backdrop,
  .catalog-sheet-handle,
  .catalog-sheet-header--filter,
  .catalog-filter-sheet-footer,
  .catalog-sort-sheet {
    display: none !important;
  }

  .catalog-main {
    padding: 32px 40px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    border-left: var(--border);
    border-right: var(--border);
  }

  .catalog-grid .product-card:nth-child(2n) {
    border-right: var(--border);
  }

  .catalog-grid .product-card:nth-child(4n) {
    border-right: var(--border);
  }

  .catalog-grid .product-card:nth-child(3n) {
    border-right: none;
  }
}

/* RECOMMENDATION SECTIONS */
.product-recs-container {
  padding: 60px 40px;
  border-top: var(--border-thick);
  background: var(--white);
}

.rec-section-group {
  margin-bottom: 60px;
}

.rec-section-group:last-child {
  margin-bottom: 0;
}

.rec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: var(--border);
  padding-bottom: 12px;
}

.rec-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.rec-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.5;
  text-transform: uppercase;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border);
}

.rec-grid .product-card:nth-child(4n) {
  border-right: none;
}

@media (max-width: 1024px) {
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-grid .product-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .product-recs-container {
    padding: 40px 20px;
  }

  .rec-title {
    font-size: 28px;
  }
}

#cart-recommendations-container {
  margin-top: 60px;
  border-top: var(--border-thick);
  padding-top: 40px;
}

#cart-recommendations-container .cart-rec-carousel {
  border: var(--border);
  margin-top: 8px;
}

#cart-recommendations-container .cart-rec-carousel .carousel-track {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border: none !important;
}

#cart-recommendations-container .cart-rec-carousel .rec-grid {
  display: flex !important;
  grid-template-columns: unset !important;
}

#cart-recommendations-container .product-recs-container {
  padding: 0;
  border-top: none;
}

#cart-recommendations-container .rec-grid {
  grid-template-columns: repeat(3, 1fr);
}

#cart-recommendations-container .rec-grid .product-card:nth-child(3n) {
  border-right: none;
}

#cart-recommendations-container .rec-grid .product-card:nth-child(4n) {
  border-right: var(--border);
  /* Override default 4th collapse */
}

/* PRODUCT DETAIL PAGE */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 96px);
}

.product-gallery {
  border-right: var(--border-thick);
  padding: 40px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  background: var(--gray-100);
}

.product-main-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.product-thumbnails {
  display: flex;
  gap: 8px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border: var(--border);
  overflow: hidden;
  cursor: none;
  flex-shrink: 0;
  transition: var(--transition);
}

.product-thumb:hover,
.product-thumb.active {
  border-width: 2px;
  border-color: var(--black);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.product-info {
  padding: 40px;
  overflow-y: auto;
}

.product-breadcrumb {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-breadcrumb span {
  opacity: 0.6;
}

.product-detail-sku {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  color: var(--black);
  font-size: 12px;
  letter-spacing: 2px;
}

.rating-count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.5;
  text-decoration: underline;
  cursor: none;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: var(--border);
}

.option-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}

.color-options {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border: 2px solid transparent;
  cursor: none;
  transition: var(--transition);
  position: relative;
}

.color-swatch.active,
.color-swatch:hover {
  border-color: var(--black);
}

.color-swatch::after {
  content: attr(data-color);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.color-swatch:hover::after {
  opacity: 0.7;
}

.size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.size-btn {
  padding: 8px 14px;
  border: var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: none;
  transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
  background: var(--black);
  color: var(--white);
}

.size-btn.out {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.add-to-cart-row {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.qty-input {
  display: flex;
  align-items: center;
  border: var(--border-thick);
}

.qty-btn {
  width: 44px;
  height: 52px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: none;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.qty-btn:hover {
  background: var(--black);
  color: var(--white);
}

.qty-num {
  width: 48px;
  height: 52px;
  border: none;
  border-left: var(--border);
  border-right: var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--white);
  outline: none;
}

.add-btn {
  flex: 1;
  padding: 0 28px;
  background: var(--black);
  color: var(--white);
  border: var(--border-thick);
  border-left: none;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: var(--transition);
}

.add-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.wishlist-btn {
  width: 52px;
  height: 52px;
  border: var(--border-thick);
  border-left: none;
  background: none;
  cursor: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-btn:hover {
  background: var(--black);
  color: var(--white);
}

.product-specs {
  margin-top: 32px;
  border-top: var(--border);
  padding-top: 24px;
}

.spec-accordion {
  border-bottom: var(--border);
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: none;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-header svg {
  transition: transform 0.3s ease;
}

.spec-accordion.open .spec-header svg {
  transform: rotate(45deg);
}

.spec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.spec-accordion.open .spec-body {
  max-height: 400px;
}

.spec-body-inner {
  padding-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  opacity: 0.7;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.spec-list li::before {
  content: '[+]';
  opacity: 0.4;
  flex-shrink: 0;
}

/* CART PAGE */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 96px);
}

.cart-main {
  border-right: var(--border-thick);
  padding: 40px;
}

.cart-header {
  margin-bottom: 32px;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.cart-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border);
}

.cart-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  padding: 12px 16px;
  border-bottom: var(--border);
  text-align: left;
  font-weight: 400;
}

.cart-table td {
  padding: 16px;
  border-bottom: var(--border);
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: var(--border);
  filter: grayscale(20%);
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-100);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img,
.cart-item-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cart-item-name {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cart-item-specs {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: var(--border);
  background: none;
  cursor: none;
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--black);
  color: var(--white);
}

.cart-qty-num {
  font-family: var(--font-mono);
  font-size: 13px;
  min-width: 24px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  cursor: none;
  opacity: 0.3;
  transition: opacity 0.2s;
  font-family: var(--font-mono);
  font-size: 18px;
}

.cart-remove:hover {
  opacity: 1;
  color: var(--red);
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.cart-summary {
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
}

.summary-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.summary-line.total {
  font-size: 18px;
  font-weight: 700;
  border-bottom: var(--border-thick);
  padding: 14px 0;
  margin-top: 8px;
}

.summary-label {
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.promo-input-row {
  display: flex;
  margin: 20px 0;
}

.promo-input {
  flex: 1;
  padding: 10px 14px;
  border: var(--border-thick);
  border-right: none;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  background: var(--white);
}

.promo-btn {
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border: var(--border-thick);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: var(--transition);
}

.promo-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  border: var(--border-thick);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: var(--transition);
  margin-top: 8px;
}

.checkout-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.continue-shopping {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
  text-decoration: underline;
  cursor: none;
}

.continue-shopping:hover {
  opacity: 0.8;
}

/* CHECKOUT PAGE */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: calc(100vh - 96px);
}

.checkout-form-section {
  grid-column: 1;
  grid-row: 1;
  padding: 40px;
  border-right: var(--border-thick);
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.form-section {
  margin-bottom: 40px;
}

.form-section-title {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-title::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-bottom: none;
  border-right: none;
  position: relative;
}

.form-row .form-group:last-child {
  border-right: var(--border);
}

.form-group:last-child {
  border-bottom: var(--border);
}

.form-section>.form-row:first-of-type .form-group {
  border-top: var(--border);
}

.form-row+.form-row .form-group {
  border-top: none;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  padding: 8px 14px 0;
}

.form-input,
.form-select {
  border: none;
  outline: none;
  padding: 4px 14px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  background: transparent;
  color: var(--black);
  width: 100%;
}

.form-group:focus-within {
  background: rgba(200, 255, 0, 0.1);
  border-color: var(--black);
  border-width: 2px;
}

.payment-methods {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.payment-option {
  flex: 1;
  padding: 16px;
  border: var(--border);
  border-right: none;
  cursor: none;
  transition: var(--transition);
  text-align: center;
}

.payment-option:last-child {
  border-right: var(--border);
}

.payment-option.active,
.payment-option:hover {
  background: var(--black);
  color: var(--white);
}

.payment-option-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.payment-option-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-order-btn {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  border: var(--border-thick);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.1em;
  cursor: none;
  transition: var(--transition);
  margin-top: 32px;
}

.place-order-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.checkout-summary {
  grid-column: 2;
  grid-row: 1;
  padding: 40px;
  background: var(--gray-100);
}

.checkout-summary-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.checkout-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: var(--border);
}

.checkout-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
}

.checkout-item-thumb {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--gray-100);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-thumb img,
.checkout-item-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(20%);
}

.checkout-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  pointer-events: none;
}

.checkout-item-name {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 1;
}

.checkout-item-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* EMPTY CART */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  gap: 20px;
}

.empty-icon {
  font-size: 64px;
  opacity: 0.1;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 48px;
  opacity: 0.3;
}

.empty-text {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.4;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--accent);
  z-index: 20000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 280px;
}

.toast.show {
  transform: translateX(0);
}

/* HERO PLACEHOLDER (SVG MODEL) */
.hero-svg-model {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

/* PRODUCT PLACEHOLDER IMAGES */
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gray-200);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
}

/* LOADING ANIMATION */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  animation: loadOut 0.5s 1.8s ease forwards;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 72px;
  color: #ffffff;
  letter-spacing: 0.1em;
  animation: loadPulse 0.6s ease infinite alternate;
}

.loading-bar-track {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--accent);
  animation: loadBar 1.5s ease forwards;
}

.loading-text {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes loadOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes loadPulse {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

@keyframes loadBar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* TEAM SECTION */
.team-section {
  padding: 100px 40px;
  background: var(--black);
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-thick);
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(200, 255, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.team-header {
  text-align: center;
  margin-bottom: 64px;
}

.team-title {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.2);
}

.team-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.3em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  position: relative;
  padding: 1px;
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card-inner {
  background: #0f0f0f;
  padding: 40px 32px;
  border-radius: 3px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.team-card:hover .team-card-inner::before {
  left: 200%;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.1) inset;
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  box-shadow: 0 0 30px rgba(200, 255, 0, 0.3) inset, 0 0 20px rgba(200, 255, 0, 0.2);
  transform: scale(1.1);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white);
  opacity: 0.5;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 8px;
}

.team-card:hover .team-role {
  color: var(--accent);
  opacity: 0.8;
}

.team-name {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-align: center;
}

.team-glitch-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.team-card:hover .team-glitch-line {
  width: 100%;
  box-shadow: 0 0 10px var(--accent);
}

/* TEAM DETAIL PAGE */
.team-detail-section {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 40px;
  border-bottom: var(--border-thick);
}

.team-detail-section:last-child {
  border-bottom: none;
}

.team-detail-section.reverse {
  flex-direction: row-reverse;
}

.team-detail-section.reverse .detail-text-content {
  text-align: right;
}

.team-detail-section.reverse .team-role {
  text-align: right;
}

.team-detail-avatar {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(200, 255, 0, 0.1) inset;
  transition: transform 0.4s ease;
}

.team-detail-section:hover .team-detail-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(200, 255, 0, 0.2) inset, 0 0 30px rgba(200, 255, 0, 0.1);
}

.detail-name {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.1);
}

.detail-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  opacity: 0.6;
  line-height: 1.8;
}

/* Light Theme Overrides for Team Page */
#page-team .team-title {
  color: var(--black);
  text-shadow: none;
}

#page-team .detail-name {
  color: var(--black);
  text-shadow: none;
}

#page-team .detail-desc {
  color: var(--black);
  opacity: 0.8;
}

#page-team .team-role {
  color: var(--black);
  opacity: 0.8;
}

#page-team .team-detail-avatar {
  border-color: var(--black);
  color: var(--black);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05) inset;
}

#page-team .team-detail-section:hover .team-detail-avatar {
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1) inset, 0 0 30px rgba(0, 0, 0, 0.05);
}

#page-team .team-subtitle {
  color: var(--black);
}

/* ZIG ZAG BACKGROUND FX */
.team-bg-fx {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

@keyframes fallDown {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(150vh) rotate(10deg);
    opacity: 0;
  }
}

.zz-1 {
  left: 15%;
  animation-duration: 14s;
  animation-delay: 0s;
}

.zz-2 {
  left: 35%;
  animation-duration: 18s;
  animation-delay: 3s;
  width: 20px;
  height: 200px;
}

.zz-3 {
  left: 60%;
  animation-duration: 12s;
  animation-delay: 1s;
  width: 40px;
  height: 400px;
}

.zz-4 {
  left: 85%;
  animation-duration: 16s;
  animation-delay: 5s;
  height: 350px;
}

.zz-5 {
  left: 20%;
  animation-duration: 20s;
  animation-delay: 8s;
  width: 15px;
  height: 180px;
}

.zz-6 {
  left: 75%;
  animation-duration: 15s;
  animation-delay: 6s;
  width: 25px;
  height: 280px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    border-right: none;
    border-bottom: var(--border-thick);
  }

  .hero-image-container {
    min-height: 400px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid .product-card:nth-child(4n) {
    border-right: var(--border);
  }

  .products-grid .product-card:nth-child(2n) {
    border-right: none;
  }

  .features-strip:not(.features-strip-home) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Home features: static 2×2 grid on tablet */
  .features-strip-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    overflow: visible;
    justify-content: stretch;
  }

  .features-strip-home .features-strip-sep {
    display: none;
  }

  .features-strip-home .features-strip-item {
    flex: none;
    justify-content: flex-start;
    padding: 20px 18px;
    border-right: var(--border);
    border-bottom: var(--border);
  }

  .features-strip-home .features-strip-item:nth-child(3),
  .features-strip-home .features-strip-item:nth-child(7) {
    border-right: none;
  }

  .features-strip-home .features-strip-item:nth-child(5),
  .features-strip-home .features-strip-item:nth-child(7) {
    border-bottom: none;
  }

  .features-strip-title,
  .features-strip-desc {
    white-space: normal;
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  #page-catalog {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  #page-catalog .catalog-layout {
    display: contents;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #page-catalog .catalog-main {
    width: 100%;
    max-width: 100%;
  }

  #page-catalog .top-category-bar,
  #page-catalog .catalog-mobile-bar,
  #page-catalog .catalog-active-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .catalog-mobile-bar {
    display: flex;
    position: sticky;
    top: 64px;
    z-index: 150;
  }

  .catalog-sheet-backdrop {
    display: block;
  }

  .catalog-sheet-handle,
  .catalog-sheet-header--filter,
  .catalog-filter-sheet-footer {
    display: flex;
  }

  .catalog-sort-sheet {
    display: none;
    flex-direction: column;
  }

  body.catalog-sort-open .catalog-sort-sheet {
    display: flex;
  }

  .catalog-sidebar.catalog-filter-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 88vh;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-top: var(--border-thick);
    z-index: 3100;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  }

  body.catalog-filters-open .catalog-sidebar.catalog-filter-panel {
    transform: translateY(0);
  }

  .catalog-sort-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 70vh;
    margin: 0;
    padding: 0;
    border: none;
    border-top: var(--border-thick);
    z-index: 3100;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--white);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  }

  body.catalog-sort-open .catalog-sort-sheet {
    transform: translateY(0);
  }

  .catalog-toolbar .catalog-sort-wrap {
    display: none;
  }

  .top-category-bar {
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    box-sizing: border-box;
  }

  .top-category-bar-viewport {
    inset: 12px 16px;
  }

  .catalog-main {
    padding: 16px 0 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .catalog-toolbar {
    padding: 0 16px;
    margin-bottom: 16px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
  }

  .catalog-grid .product-card:nth-child(2n) {
    border-right: none;
  }

  body[data-current-page="catalog"] footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 16px 8px;
    gap: 12px;
  }

  .nav-left {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-left::-webkit-scrollbar {
    display: none;
  }

  .nav-left a {
    flex: 1 0 auto;
    text-align: center;
    font-size: 9px;
    border-right: var(--border) !important;
  }

  .nav-left a:first-child {
    border-left: var(--border);
  }

  .nav-logo {
    order: 1;
    font-size: 24px;
    text-align: center;
  }

  .nav-logo span {
    font-size: 8px;
  }

  .nav-right {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .nav-right form {
    flex: 1;
    max-width: 150px;
  }

  .nav-search-input {
    width: 100% !important;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-headline {
    font-size: 52px;
  }

  .features-strip:not(.features-strip-home) {
    grid-template-columns: 1fr;
  }

  .features-strip-home .features-strip-item {
    padding: 18px 14px;
  }

  .feature-item {
    border-right: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-title {
    font-size: 52px;
  }

  .team-detail-section,
  .team-detail-section.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .team-detail-section .detail-text-content,
  .team-detail-section.reverse .detail-text-content {
    text-align: center;
  }

  .team-detail-section .team-role,
  .team-detail-section.reverse .team-role {
    text-align: center;
  }
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 48px;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.loading-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--accent);
  animation: loadingBar 2s infinite ease-in-out;
}

@keyframes loadingBar {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

.loading-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ffffff;
  opacity: 0.5;
  letter-spacing: 0.2em;
}



@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ LOCATION SUB-BAR (GLASSY) ══════════════════════════════ */
.location-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(10, 10, 10, 0.75);
  /* Premium semi-transparent dark glass */
  backdrop-filter: blur(12px) saturate(180%);
  /* Hardware accelerated glass blur */
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  /* Soft glowing white edge */
  position: sticky;
  top: 110px;
  z-index: 99;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: fadeUp 0.3s ease both;
}

.location-subbar .loc-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-subbar .loc-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.location-subbar .loc-text {
  opacity: 0.9;
}

.location-subbar .loc-text strong {
  color: var(--accent);
  font-weight: 700;
}

.location-subbar .loc-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-subbar .change-loc-btn {
  background: rgba(255, 255, 255, 0.08);
  /* Translucent button background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.location-subbar .change-loc-btn:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* CUSTOM MODAL FOR CHANGING LOCATION (GLASSY) */
.loc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100002;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.loc-modal {
  background: rgba(255, 255, 255, 0.85);
  /* Light glass background */
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  color: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 30px;
  width: 400px;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.loc-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border-bottom: var(--border);
  padding-bottom: 10px;
}

.loc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--black);
  transition: var(--transition);
}

.loc-modal-close:hover {
  color: var(--red);
}

.loc-form-group {
  margin-bottom: 15px;
}

.loc-form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 5px;
}

.loc-form-input {
  width: 100%;
  padding: 8px 12px;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  background: transparent;
  color: var(--black);
  outline: none;
}

.loc-form-input:focus {
  border-color: var(--black);
  background: var(--gray-100);
}

.loc-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  border: var(--border-thick);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.loc-submit-btn:hover {
  background: var(--accent);
  color: var(--black);
}

/* Adjust sticky positions for pages with non-standard sticky tops if needed */
@media (max-width: 1024px) {
  .location-subbar {
    top: auto;
    position: relative;
  }
}




/* ─── PROFILE NAV (MOBILE / TABLET) ─────────────────────────── */
.nav-profile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--black);
  display: block;
  flex-shrink: 0;
}

.mobile-bottom-nav .nav-profile-avatar {
  width: 20px;
  height: 20px;
}

.mobile-profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-profile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-profile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 9999;
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: var(--border-thick);
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

.mobile-profile-menu.open {
  transform: translateY(0);
}

.mobile-profile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.mobile-profile-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  color: var(--black);
}

.mobile-profile-menu a {
  display: block;
  padding: 20px;
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-profile-menu a:last-child {
  color: var(--red);
}

/* ─── ACCOUNT PAGE ─────────────────────────────────────────── */
.account-page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.account-page-label {
  margin-bottom: 8px;
}

.account-page-title {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.9;
  margin-bottom: 48px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--border-thick);
  background: var(--white);
}

.account-panel {
  padding: 40px;
  border-right: var(--border);
}

.account-panel:last-child {
  border-right: none;
}

.account-panel-full,
.account-panel-register-form {
  grid-column: 1 / -1;
  border-right: none;
}

.account-panel-register-intro {
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: none;
}

.account-panel-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.account-panel-heading {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.95;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.account-panel-heading-sm {
  font-size: 32px;
  margin-bottom: 24px;
}

.account-panel-text {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.65;
  margin-bottom: 28px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.account-field {
  display: flex;
  flex-direction: column;
  border: var(--border);
  background: var(--white);
  margin-bottom: 16px;
}

.account-field-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  opacity: 0.45;
  padding: 10px 14px 0;
  text-transform: uppercase;
}

.account-field-input {
  border: none;
  padding: 6px 14px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
}

.account-field-input::placeholder {
  color: var(--gray-400);
  opacity: 0.8;
}

.account-btn {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.account-btn-primary {
  background: var(--black);
  color: var(--white);
  margin-bottom: 16px;
}

.account-btn-primary:hover {
  background: var(--accent);
  color: var(--black);
}

.account-btn-outline {
  background: transparent;
  color: var(--black);
  border: var(--border-thick);
}

.account-btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.account-form-footer {
  text-align: center;
}

.account-btn-link {
  background: transparent;
  color: var(--black);
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  opacity: 0.5;
  cursor: pointer;
  padding: 8px 4px;
  transition: opacity 0.2s;
}

.account-btn-link:hover {
  opacity: 1;
}

/* Account & profile pages — tablet */
@media (max-width: 1024px) {
  .account-page-wrap {
    padding: 100px 24px 56px;
    max-width: 100%;
  }

  .account-page-title {
    font-size: 52px;
    margin-bottom: 32px;
    text-align: center;
  }

  .account-page-label {
    justify-content: center;
  }

  .account-grid {
    grid-template-columns: 1fr;
    border: var(--border);
  }

  .account-panel {
    padding: 32px 24px;
    border-right: none;
    border-bottom: var(--border);
  }

  .account-panel:last-child,
  .account-panel-register-intro {
    border-bottom: none;
  }

  .account-panel-register-intro {
    text-align: center;
    align-items: center;
    padding: 40px 24px;
    min-height: auto;
  }

  .account-panel-register-intro .account-panel-text {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .account-panel-register-form {
    padding: 32px 20px 40px;
    background: var(--white);
  }

  .account-panel-register-form .account-panel-heading {
    text-align: center;
  }

  .account-panel-register-form .account-panel-step {
    text-align: center;
  }

  .account-form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .account-field-input {
    font-size: 16px;
  }

  body[data-current-page="profile"] .page.active {
    padding: 100px 20px 120px !important;
    min-height: auto !important;
  }

  body[data-current-page="profile"] .page.active h1 {
    font-size: 44px !important;
    margin-bottom: 32px !important;
  }

  body[data-current-page="profile"] #profile-form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  body[data-current-page="profile"] .page.active > div > div[style*="padding:40px"] {
    padding: 24px !important;
  }

  body[data-current-page="profile"] .page.active > div > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 600px) {
  .account-page-wrap {
    padding: 24px 16px 110px;
  }

  .account-page-title {
    font-size: 40px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .account-grid {
    border-left: none;
    border-right: none;
  }

  .account-panel {
    padding: 28px 20px;
  }

  .account-panel-register-intro {
    padding: 36px 20px;
    background: var(--gray-100);
  }

  .account-panel-heading {
    font-size: 28px;
  }

  .account-panel-heading-sm {
    font-size: 26px;
  }

  .account-panel-register-form {
    padding: 28px 16px 36px;
  }

  .account-field {
    margin-bottom: 14px;
  }

  .account-field-input {
    font-size: 16px;
    min-height: 44px;
  }

  .account-btn {
    min-height: 56px;
    padding: 18px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .account-btn-outline {
    border-radius: 12px;
    border-width: 2px;
  }

  .account-btn-primary {
    border-radius: 12px;
    margin-bottom: 14px;
  }

  body[data-current-page="profile"] .page.active h1 {
    font-size: 36px !important;
  }
}

/* --- TRUE MOBILE APP INTERFACE --- */
.mobile-top-nav,
.mobile-bottom-nav,
.mobile-drawer {
  display: none;
}

@media (max-width: 768px) {

  /* Core Overrides */
  .navbar,
  .cursor,
  .cursor-ring,
  body::before {
    display: none !important;
  }

  .marquee-strip {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    background: var(--black) !important;
    color: var(--white) !important;
    margin-top: 65px !important;
    position: relative;
    z-index: 1500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    overflow: hidden !important;
  }

  .marquee-track {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    animation-duration: 30s !important;
  }

  .marquee-item {
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.15em !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .marquee-item::after {
    content: "///" !important;
    margin-left: 20px !important;
    color: var(--accent) !important;
    font-weight: bold !important;
    opacity: 0.8;
  }

  body {
    background: var(--white) !important;
    font-size: 16px !important;
    -webkit-font-smoothing: antialiased;
  }

  .page {
    padding-top: 65px !important;
    padding-bottom: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
  }

  /* Typography */
  h1,
  h2,
  h3 {
    line-height: 1.1 !important;
    text-align: center;
    padding: 0 20px;
  }

  .section-label {
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 20px;
  }

  .section-label::before {
    display: none;
  }

  /* App Navigation */
  .mobile-top-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-logo {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.05em;
    color: var(--black);
    text-decoration: none;
    text-align: center;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-logo span {
    display: block;
    font-size: 7px;
    font-family: var(--font-mono);
    opacity: 0.5;
    margin-top: 4px;
    letter-spacing: 0.05em;
    font-weight: 400;
  }

  .mobile-logo .logo-img {
    max-height: 45px;
  }

  .mobile-hamburger {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--black);
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
  }

  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #a0a0a0;
    flex: 1;
    height: 100%;
    transition: 0.2s;
  }

  .mobile-bottom-nav .nav-item.active {
    color: var(--black);
    font-weight: 700;
  }

  .mobile-bottom-nav span {
    font-size: 10px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 500;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    background: var(--white);
    z-index: 9999;
    transform: translateX(-101%);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .mobile-close {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--black);
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
  }

  .mobile-drawer-links a {
    padding: 24px 20px;
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-condensed);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Hero Section Redesign */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 40px;
    background: none !important;
    border: none !important;
  }

  .hero-content {
    padding: 60px 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .hero-headline {
    font-size: 48px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .hero-headline span {
    display: block;
  }

  .hero-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
    opacity: 0.7;
    margin-bottom: 32px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .hero-tag {
    margin-bottom: 16px !important;
    justify-content: center !important;
  }

  .hero-tag::before {
    display: none;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: center !important;
  }

  .hero-barcode {
    position: relative !important;
    bottom: 0 !important;
    right: 0 !important;
    margin: 40px auto 0 !important;
    opacity: 0.8;
    display: flex !important;
    justify-content: center !important;
  }

  .hero-image-container {
    height: 520px !important;
    width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
    margin: 0 !important;
    border-top: var(--border-thick);
  }

  .hero-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-year-bg {
    font-size: 120px !important;
    bottom: 20px !important;
    right: 20px !important;
    opacity: 0.1 !important;
  }

  /* Product Cards & Grids */
  .products-section {
    padding: 36px 20px 44px !important;
  }

  .products-header {
    margin-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .products-section .home-carousel {
    border-left: var(--border) !important;
    border-right: var(--border) !important;
  }

  .products-grid:not(#wishlist-grid) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .product-card {
    background: var(--white);
    border-radius: 0 !important;
    border: none !important;
    border-bottom: var(--border) !important;
    box-shadow: none !important;
    transition: 0.3s;
  }

  .product-card-img {
    border-radius: 0 !important;
    overflow: hidden;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }

  .product-card-img img,
  .product-card-img video,
  .product-card-img .product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Home product carousels — keep compact carousel cards (not full-width grid) */
  .products-section .home-carousel .carousel-track .product-card {
    border: var(--border) !important;
    box-shadow: none !important;
  }

  .products-section .home-carousel .carousel-track .product-card-img {
    aspect-ratio: 3 / 4 !important;
    max-height: 280px !important;
    min-height: unset !important;
  }

  /* Shop catalog: 2-column mobile grid */
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    border-left: none !important;
    border-right: none !important;
  }

  .catalog-grid .product-card {
    border-right: var(--border) !important;
    border-bottom: var(--border) !important;
  }

  .catalog-grid .product-card:nth-child(2n) {
    border-right: none !important;
  }

  /* Shop page — full-bleed mobile (match home app layout) */
  body[data-current-page="catalog"] {
    overflow-x: clip !important;
  }

  #page-catalog {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }

  #page-catalog .catalog-layout {
    display: contents !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #page-catalog .top-category-bar,
  #page-catalog .catalog-mobile-bar,
  #page-catalog .catalog-active-filters {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #page-catalog .top-category-bar {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 12px 16px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
  }

  #page-catalog .top-category-bar-viewport {
    position: absolute !important;
    inset: 12px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #page-catalog .top-category-bar-scroll {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    vertical-align: top !important;
  }

  #page-catalog .top-category-bar .category-pill {
    display: block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  #page-catalog .catalog-main {
    padding: 0 0 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #page-catalog .catalog-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #page-catalog .catalog-toolbar {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body[data-current-page="catalog"] footer {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Filter / sort bar — icons aligned with bottom nav */
  .catalog-mobile-btn {
    gap: 10px !important;
    padding: 14px 10px !important;
    min-width: 0 !important;
  }

  .catalog-mobile-btn-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
  }

  .catalog-mobile-btn-icon,
  .catalog-mobile-btn-icon svg {
    display: block !important;
  }

  .mobile-hamburger svg,
  .mobile-close svg,
  .mobile-bottom-nav .nav-item svg {
    display: block !important;
    flex-shrink: 0 !important;
  }

  .toast {
    right: 16px !important;
    left: 16px !important;
    max-width: none !important;
    width: auto !important;
  }

  .toast:not(.show) {
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(120%) !important;
  }

  .toast.show {
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Wishlist: 2-column mobile grid */
  #wishlist-grid.products-grid,
  #page-wishlist .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  #wishlist-grid .product-card,
  #page-wishlist .products-grid .product-card {
    border-right: var(--border) !important;
    border-bottom: var(--border) !important;
  }

  #wishlist-grid .product-card:nth-child(2n),
  #page-wishlist .products-grid .product-card:nth-child(2n) {
    border-right: none !important;
  }

  #page-wishlist .product-card-info {
    padding: 16px 12px !important;
  }

  #page-wishlist .product-name {
    font-size: 14px !important;
  }

  .catalog-grid .product-card-info {
    padding: 16px 12px !important;
  }

  .catalog-grid .product-name {
    font-size: 14px !important;
  }

  /* Wishlist page */
  #page-wishlist > div {
    padding: 32px 0 !important;
    max-width: 100% !important;
  }

  #page-wishlist h1 {
    font-size: 48px !important;
    padding: 0 16px !important;
    margin-bottom: 24px !important;
  }

  #page-wishlist .products-grid {
    border-left: none !important;
    border-right: none !important;
  }

  .product-card-info {
    padding: 24px 20px !important;
  }

  .product-name {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .product-price {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--black);
  }

  /* Shop Page — mobile filter bar + bottom sheets */
  .catalog-mobile-bar {
    display: flex !important;
    position: sticky;
    top: 65px;
    z-index: 150;
  }

  .catalog-sheet-backdrop {
    display: block;
  }

  body.catalog-filters-open .catalog-sheet-backdrop,
  body.catalog-sort-open .catalog-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body[data-current-page="catalog"] .top-category-bar,
  #page-catalog .top-category-bar {
    padding: 12px 16px !important;
    gap: 0 !important;
    border-bottom: var(--border) !important;
    background: var(--white) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
  }

  body[data-current-page="catalog"] .top-category-bar-viewport,
  #page-catalog .top-category-bar-viewport {
    position: absolute !important;
    inset: 12px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  body[data-current-page="catalog"] .top-category-bar-scroll,
  #page-catalog .top-category-bar-scroll {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    vertical-align: top !important;
  }

  body[data-current-page="catalog"] .top-category-bar .category-pill,
  #page-catalog .top-category-bar .category-pill {
    display: block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .pill-content {
    padding: 8px 12px !important;
  }

  .pill-label {
    font-size: 9px !important;
  }

  .catalog-sidebar.catalog-filter-panel {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 88vh;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: var(--border-thick) !important;
    z-index: 3100;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  }

  body.catalog-filters-open .catalog-sidebar.catalog-filter-panel {
    transform: translateY(0);
  }

  .catalog-sheet-handle,
  .catalog-sheet-header--filter,
  .catalog-filter-sheet-footer {
    display: flex;
  }

  .catalog-sheet-header--filter {
    display: flex !important;
  }

  .catalog-sidebar-inner {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 20px;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-sidebar-inner .sidebar-title {
    display: none !important;
  }

  .filter-clear-btn--inline {
    display: none !important;
  }

  .filter-group {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: var(--border) !important;
    width: 100% !important;
  }

  .filter-group-title {
    margin-bottom: 12px !important;
    font-size: 9px !important;
  }

  .filter-size-grid {
    gap: 8px !important;
  }

  .filter-chip {
    min-width: 48px !important;
    padding: 12px 16px !important;
    font-size: 10px !important;
  }

  .price-range {
    gap: 8px !important;
  }

  .price-input {
    padding: 12px 14px !important;
    font-size: 12px !important;
  }

  .catalog-sort-sheet {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.catalog-sort-open .catalog-sort-sheet {
    display: flex !important;
    transform: translateY(0);
  }

  .catalog-main {
    padding: 0 0 100px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .catalog-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .catalog-toolbar {
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: var(--border) !important;
  }

  .catalog-toolbar .catalog-sort-wrap {
    display: none !important;
  }

  #page-catalog {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .catalog-count {
    font-size: 10px !important;
    width: 100%;
  }

  /* Full Width Mobile Buttons */
  .btn-primary,
  .btn-secondary,
  .checkout-btn,
  .place-order-btn,
  .copy-code-btn {
    width: 100% !important;
    height: 64px !important;
    line-height: 64px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: var(--border-thick) !important;
  }

  .btn-secondary {
    background: var(--gray-100) !important;
    color: var(--black) !important;
  }

  /* Category Grid Stack */
  /* Category Grid (Rounded 2x2 Mobile) */
  .category-grid-container {
    padding: 10px !important;
    margin: 0 !important;
    width: 100% !important;
    background: var(--white);
  }

  .cats-grid-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cat-grid-stack {
    display: contents !important;
  }

  .cat-card {
    width: 100% !important;
    height: 280px !important;
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    position: relative;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .cat-card-tall, .cat-card-wide {
    padding-bottom: 0 !important;
  }

  .cat-box-content {
    justify-content: center !important;
    padding: 20px !important;
    align-items: center !important;
    text-align: center !important;
    color: var(--white) !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .cat-box-title {
    font-size: 32px !important;
    color: var(--white) !important;
  }

  .cat-box-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin-top: 5px;
    font-size: 10px !important;
    padding: 2px 0 !important;
    background: none !important;
    color: var(--white) !important;
    border-bottom: 1px solid var(--white) !important;
    border-radius: 0 !important;
  }

  /* Team Section */
  .team-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .team-card-inner {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: var(--border);
    margin: 0 !important;
  }

  /* Footer App View */
  footer {
    padding: 60px 0 100px !important;
    background: #000 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    padding: 0 32px !important;
    text-align: left !important;
    gap: 48px !important;
  }

  .footer-logo {
    font-size: 40px !important;
    line-height: 0.9 !important;
    margin-bottom: 16px !important;
  }

  .footer-tagline {
    margin: 0 0 16px 0 !important;
    text-align: left !important;
    max-width: 280px !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px !important;
  }

  .footer-links li {
    margin: 0 !important;
  }

  .footer-links a {
    justify-content: flex-start !important;
  }

  .footer-top div:last-child div[style*="display:flex"] {
    justify-content: flex-start !important;
    max-width: 320px !important;
    margin: 12px 0 0 0 !important;
  }

  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 32px 0 !important;
  }

  /* Cart & Checkout Adjustments */
  .cart-layout,
  .checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .cart-summary,
  .checkout-summary {
    position: static !important;
    width: 100% !important;
    order: 1 !important;
  }

  .checkout-form-section {
    order: 2 !important;
    border-right: none !important;
    border-top: var(--border-thick) !important;
  }

  .cart-main {
    padding: 24px 16px !important;
    border-right: none !important;
  }

  .cart-title {
    font-size: 40px !important;
  }

  .cart-summary {
    padding: 24px 16px !important;
    border-top: var(--border-thick);
  }

  /* Cart: card layout so thumbnails are not crushed by table columns */
  .cart-table {
    border: none !important;
  }

  .cart-table thead {
    display: none !important;
  }

  .cart-table tbody tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 16px !important;
    padding: 20px 0 !important;
    border-bottom: var(--border) !important;
  }

  .cart-table td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top !important;
  }

  .cart-table td:first-child {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .cart-table td:first-child > div {
    align-items: flex-start !important;
  }

  .cart-item-thumb,
  .cart-table td:first-child > div > div:first-child {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    min-height: 112px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border: var(--border) !important;
    background: var(--gray-100) !important;
  }

  .cart-item-thumb img,
  .cart-item-thumb video,
  .cart-table td:first-child img,
  .cart-table td:first-child video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Hide redundant description column on small screens */
  .cart-table td:nth-child(2) {
    display: none !important;
  }

  .cart-table td:nth-child(3) {
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }

  .cart-table td:nth-child(4) {
    flex: 0 0 auto !important;
  }

  .cart-table td:nth-child(5) {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  /* Checkout order summary thumbnails */
  .checkout-items-list .checkout-item,
  .checkout-summary .checkout-item {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .checkout-item-img,
  .checkout-items-list .checkout-item-img {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  .checkout-item-thumb,
  .checkout-item-img > .checkout-item-thumb {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .checkout-item-qty {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    top: -6px !important;
    right: -6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    z-index: 3 !important;
  }

  .checkout-item-thumb img,
  .checkout-item-thumb video,
  .checkout-item-img img,
  .checkout-item-img video,
  .checkout-items-list .checkout-item-img img,
  .checkout-items-list .checkout-item-img video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .checkout-form-section,
  .checkout-summary {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .checkout-title {
    font-size: 40px !important;
  }

  /* Product Detail App View */
  .product-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  .product-gallery {
    padding: 0 !important;
    border-right: none !important;
    border-bottom: var(--border) !important;
    height: 500px !important;
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    background: var(--white) !important;
  }

  .product-main-img img {
    object-fit: cover !important;
  }

  .product-info {
    padding: 40px 20px !important;
    width: 100% !important;
  }

  /* Offers Section */
  .offers-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .offers-header {
    padding: 100px 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .offers-title-wrapper {
    text-align: center !important;
    width: 100% !important;
  }

  .offers-nav {
    display: none !important;
  }

  .offers-container {
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .offer-card {
    border-radius: 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .offers-carousel-container {
    border-radius: 0 !important;
  }

  /* Disable animations that feel "laggy" on mobile */
  .loading-overlay {
    background: #000 !important;
  }

  .loading-logo,
  .loading-text {
    color: #fff !important;
  }

  .loading-bar-track {
    background: rgba(255, 255, 255, 0.15) !important;
  }
}

/* ═══ DARK MODE ═══════════════════════════════════════════════ */

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] {
  --black: #f0f0ea;
  --white: #0c0c0c;
  --gray-100: #161614;
  --gray-200: #242420;
  --gray-400: #8a8a82;
  --gray-600: #b8b8b0;
  --accent-rgb: 200, 255, 0;
}

body,
.navbar,
.product-card,
.mobile-drawer,
.footer,
.form-input,
.form-select,
.toast,
.modal-content,
.catalog-sidebar,
.filter-panel,
.cart-item,
.order-card,
.account-panel,
.hero,
.section-header,
.loading-overlay {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.theme-toggle .theme-icon {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle.is-dark .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.theme-toggle.is-dark .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle.is-animating .theme-toggle-inner {
  animation: theme-toggle-spin 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes theme-toggle-spin {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.35) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.nav-right .theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-right: none;
  color: var(--black);
  transition: var(--transition), background-color 0.35s ease, color 0.35s ease;
}

.nav-right .theme-toggle:hover {
  background: var(--black);
  color: var(--white);
}

.theme-toggle--mobile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: var(--transition), background-color 0.35s ease;
}

.theme-toggle--mobile:active {
  transform: scale(0.92);
}

.theme-toggle--mobile:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

/* Brief invert flash on theme switch */
.theme-flash {
  position: fixed;
  inset: 0;
  z-index: 100002;
  pointer-events: none;
  background: var(--black);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.theme-flash.active {
  opacity: 0.07;
  animation: theme-flash-pulse 0.5s ease forwards;
}

@keyframes theme-flash-pulse {
  0% { opacity: 0; }
  25% { opacity: 0.12; }
  100% { opacity: 0; }
}

[data-theme="dark"] .hero-headline .outline {
  -webkit-text-stroke-color: var(--black);
}

[data-theme="dark"] .product-card-img {
  filter: brightness(0.92);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--gray-100);
  color: var(--black);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--gray-400);
}

[data-theme="dark"] .nav-search-input {
  color: var(--black);
}

@media (max-width: 1024px) {
  [data-theme="dark"] .mobile-top-nav {
    background: rgba(12, 12, 12, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(12, 12, 12, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.35);
  }

  [data-theme="dark"] .mobile-bottom-nav .nav-item {
    color: var(--gray-400);
  }

  [data-theme="dark"] .mobile-bottom-nav .nav-item.active {
    color: var(--black);
  }

  [data-theme="dark"] .mobile-drawer {
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.5);
  }

  [data-theme="dark"] .mobile-drawer-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  [data-theme="dark"] .loading-overlay {
    background: #000000 !important;
  }

  [data-theme="dark"] .loading-logo,
  [data-theme="dark"] .loading-text {
    color: #ffffff !important;
  }

  [data-theme="dark"] .loading-bar-track {
    background: rgba(255, 255, 255, 0.15) !important;
  }
}