@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Orbitron:wght@600;700;800&family=Silkscreen:wght@400;700&display=swap');

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

:root,
body.theme-dark {
  --primary: #8b5cf6;
  --primary-light: #e07a3c;
  --primary-dark: #6d28d9;
  --secondary: #e07a3c;
  --background: #050507;
  --surface: #0e0c16;
  --surface-solid: #0e0c16;
  --surface-strong: #171326;
  --surface-light: #221c38;
  --surface-muted: rgba(139, 92, 246, 0.1);
  --text-primary: #f5f3ff;
  --text-secondary: #a59ec2;
  --accent: #e07a3c;
  --error: #f43f5e;
  --warning: #f59e0b;
  --success: #10b981;
  --whatsapp: #25D366;
  --border-color: #2c2447;
  --pill-border: #7c5dfa;
  --shadow: rgba(0, 0, 0, 0.72);
  --pixel-btn-face: #1b162d;
  --pixel-btn-hover: #272042;
  --pixel-bevel-light: #6d52b8;
  --pixel-bevel-dark: #08060e;
  --pixel-shadow-hard: #020204;
  --pixel-win-header: linear-gradient(90deg, #2e1860 0%, #5828a8 65%, #e07a3c 100%);
  --radius-lg: 4px;
  --radius-md: 3px;
  --radius-pill: 3px;
}

body.theme-light {
  --primary: #df6d2d;
  --primary-light: #9333ea;
  --primary-dark: #b84f14;
  --secondary: #9333ea;
  --background: #fff9f5;
  --surface: #fbeee4;
  --surface-solid: #fbeee4;
  --surface-strong: #f6decb;
  --surface-light: #f0ccb0;
  --surface-muted: rgba(223, 109, 45, 0.12);
  --text-primary: #21130b;
  --text-secondary: #6e4f3d;
  --accent: #d45b18;
  --border-color: #e2b596;
  --pill-border: #df6d2d;
  --shadow: rgba(140, 68, 24, 0.15);
  --pixel-btn-face: #f8e4d4;
  --pixel-btn-hover: #f3d4bc;
  --pixel-bevel-light: #ffffff;
  --pixel-bevel-dark: #9c4a1a;
  --pixel-shadow-hard: #5e290b;
  --pixel-win-header: linear-gradient(90deg, #c25115 0%, #df6d2d 65%, #f4a261 100%);
}

html {
  scroll-behavior: smooth;
}

body, input, select, textarea, p {
  font-family: 'Fredoka', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

h1, h2,
.logo-script,
.pixel-window-title,
.pixel-font {
  font-family: 'Silkscreen', monospace;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

h3, h4 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.btn,
.admin-tab,
.category-chip,
.nav-links a,
.table-panel th,
.timeline-circle,
.order-id {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.product-name,
.product-price,
.stat-card p,
.stat-card h3 {
  font-family: 'Fredoka', sans-serif;
  letter-spacing: 0.01em;
}

.pixel-window {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 4px 4px 0 var(--pixel-shadow-hard);
  margin-bottom: 1.25rem;
}

.pixel-window-bar {
  background: var(--pixel-win-header);
  color: #ffffff;
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pixel-bevel-dark);
  user-select: none;
}

.pixel-window-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.pixel-win-controls {
  display: flex;
  gap: 4px;
}

.pixel-win-btn {
  width: 20px;
  height: 20px;
  background: var(--pixel-btn-face);
  color: var(--text-primary);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.pixel-win-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.pixel-menubar {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-strong);
  border-bottom: 2px solid var(--border-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.pixel-menubar span,
.pixel-menubar a {
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.pixel-menubar span u,
.pixel-menubar a u {
  color: var(--primary-light);
  text-decoration: underline;
}

.pixel-menubar span:hover,
.pixel-menubar a:hover {
  color: var(--text-primary);
}

.pixel-window-body {
  padding: 1.15rem;
}

.btn {
  padding: 0.5rem 0.95rem;
  background: var(--pixel-btn-face);
  color: var(--text-primary);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 2px 2px 0 var(--pixel-shadow-hard);
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:hover {
  background: var(--pixel-btn-hover);
  color: var(--primary-light);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--pixel-shadow-hard);
  border-top-color: var(--pixel-bevel-dark);
  border-left-color: var(--pixel-bevel-dark);
  border-right-color: var(--pixel-bevel-light);
  border-bottom-color: var(--pixel-bevel-light);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-top-color: #c4b5fd;
  border-left-color: #c4b5fd;
  border-right-color: #3b0764;
  border-bottom-color: #3b0764;
}

body.theme-light .btn-primary {
  border-top-color: #ffd8be;
  border-left-color: #ffd8be;
  border-right-color: #7c2d12;
  border-bottom-color: #7c2d12;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text-primary);
}

.btn-outline {
  background: var(--pixel-btn-face);
  color: var(--text-primary);
}

.btn-danger {
  background: #9f1239;
  color: #ffffff !important;
  border-top-color: #fda4af;
  border-left-color: #fda4af;
  border-right-color: #4c0519;
  border-bottom-color: #4c0519;
}

.btn-xs-toggle {
  padding: 0.2rem 0.55rem;
  font-size: 0.64rem;
}

.pixel-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  color: var(--primary-light);
  background: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}

.pixel-pill {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.14rem 0.5rem;
  border: 1px solid var(--pill-border);
  color: var(--text-primary);
  background: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.15s ease;
}

a:hover {
  color: var(--primary-light);
}

header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface-solid);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 0 3px 0 var(--pixel-shadow-hard);
}

nav {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.5rem 0.7rem 5.6rem;
}

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

.logo-script {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.76rem;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  border-color: var(--pill-border);
  background: var(--surface-strong);
}

.nav-auth {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.cart-btn {
  position: relative;
  padding: 0.42rem 0.75rem;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--primary-light);
  color: #fff;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  border: 1px solid var(--pixel-shadow-hard);
}

.home-split-layout {
  max-width: 1340px;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1.25rem 0 5.6rem;
  display: grid;
  grid-template-columns: 1fr 315px;
  gap: 1.35rem;
  align-items: start;
}

.home-split-layout.info-collapsed {
  grid-template-columns: 1fr;
}

.products-first-column {
  min-width: 0;
}

.info-right-column {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aesthetic-box {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 4px 4px 0 var(--pixel-shadow-hard);
  position: relative;
}

.pixel-mascot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0 0.45rem;
  background: var(--surface-strong);
  border: 2px inset var(--border-color);
  margin-bottom: 0.75rem;
}

.pixel-sparkles {
  font-family: 'Silkscreen', monospace;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 5px;
  margin-bottom: 0.35rem;
  user-select: none;
}

.pixel-svg-fox {
  width: 112px;
  height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 var(--pixel-shadow-hard));
  margin-bottom: 0.5rem;
}

.info-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.timeline-circle {
  width: 40px;
  height: 40px;
  background: var(--pixel-btn-face);
  color: var(--primary-light);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-card {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  padding: 0.75rem 0.9rem;
}

.timeline-card h4 {
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline-card span {
  display: block;
  font-size: 0.66rem;
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.section, .products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem 5.6rem;
}

.section-header {
  margin-bottom: 0.95rem;
}

.catalog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.section-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.catalog-search-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.catalog-search-bar input {
  flex: 1;
  min-width: 170px;
  padding: 0.48rem 0.75rem;
  background: var(--background);
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
  color: var(--text-primary);
  font-size: 0.86rem;
  outline: none;
}

.catalog-search-bar select {
  padding: 0.48rem 0.75rem;
  background: var(--background);
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  outline: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 0.85rem;
}

.product-card {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.product-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pixel-shadow-hard);
  border-top-color: var(--primary-light);
  border-left-color: var(--primary-light);
}

.product-image {
  width: 100%;
  height: 145px;
  background: var(--surface-strong);
  overflow: hidden;
  position: relative;
  margin-bottom: 0.55rem;
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 6px;
  padding: 2px 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 10;
  border: 1px solid #000;
  color: #fff;
}

.card-badge-discount {
  left: 6px;
  background: var(--error);
}

.card-badge-top {
  right: 6px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.product-category {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.62rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-stock-chip {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-strong);
  padding: 1px 6px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-light);
}

.product-price-old {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.compact-variants-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.15rem 0;
}

.compact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.compact-variant-pill {
  padding: 2px 7px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.compact-add-btn {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.category-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.category-chip {
  padding: 0.35rem 0.75rem;
  background: var(--pixel-btn-face);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 2px 2px 0 var(--pixel-shadow-hard);
  color: var(--text-primary);
  font-size: 0.66rem;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.category-chip:hover,
.category-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-top-color: #c4b5fd;
  border-left-color: #c4b5fd;
}

footer {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  padding: 2rem 2rem 1.5rem 5.6rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-bottom: 1.25rem;
}

.footer-section h3 {
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  color: var(--primary-light);
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.4rem; font-size: 0.85rem; }
.footer-section ul a { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-section ul a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 5px 5px 0 var(--pixel-shadow-hard);
  overflow: hidden;
}

.auth-side {
  padding: 1.5rem;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid var(--pill-border);
}

.form-container { padding: 2rem; }
.form-group { margin-bottom: 0.95rem; }
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: var(--background);
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
  color: var(--text-primary);
  font-size: 0.9rem;
}

input[type="file"] {
  width: 100%;
  padding: 0.38rem 0.55rem;
  background: var(--surface-strong);
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
  color: var(--text-secondary);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: var(--primary);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem;
  margin-right: 0.65rem;
  border-top: 2px solid #c4b5fd;
  border-left: 2px solid #c4b5fd;
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 2px 2px 0 var(--pixel-shadow-hard);
  cursor: pointer;
  transition: background 0.15s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.dashboard-card h4 {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.dashboard-card p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--surface-strong);
  border-top: 2px solid var(--pixel-bevel-dark);
  border-left: 2px solid var(--pixel-bevel-dark);
  border-right: 2px solid var(--pixel-bevel-light);
  border-bottom: 2px solid var(--pixel-bevel-light);
}

.profile-avatar-frame {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  background: #0d0c12;
  overflow: hidden;
}

.profile-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.advanced-account-settings {
  margin-top: 2.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.78;
}

.advanced-account-settings summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}

.advanced-account-body {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
}

.deep-danger-zone summary {
  cursor: pointer;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.deep-danger-content {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-color);
}

.custom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9995;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.custom-modal-overlay.active {
  display: flex;
}

.custom-modal {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 5px 5px 0 var(--pixel-shadow-hard);
  max-width: 440px;
  width: 100%;
  padding: 1.4rem;
  text-align: center;
}

.custom-modal-icon {
  font-size: 2rem;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.custom-modal h3 {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.custom-modal p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.custom-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pixel-coverage-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.4rem;
  background: var(--surface-strong);
  border-top: 2px solid #FF6D00;
  border-left: 2px solid #FF6D00;
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 4px 4px 0 var(--pixel-shadow-hard);
}

.pixel-coverage-banner__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pixel-coverage-banner__content strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  color: #FF6D00;
  margin-bottom: 0.25rem;
}

.pixel-coverage-banner__content p {
  font-size: 0.86rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.45;
}

.pin-diecut-img,
.product-image img {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
}

.pos-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pos-prod-tile {
  background: var(--surface-strong);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.pos-prod-tile:hover,
.pos-prod-tile.selected {
  border-color: var(--primary-light);
  background: var(--surface-light);
  transform: translateY(-2px);
}

.pos-prod-tile img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  background: #0d0c12;
  border: 1px solid var(--border-color);
}

.pos-prod-tile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-prod-tile-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
}

.pos-selected-box {
  padding: 0.85rem;
  background: var(--surface-strong);
  border: 2px solid var(--primary);
}

.pos-weekly-card {
  padding: 0.85rem 0.95rem;
}

.pos-thumb-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: var(--surface);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.8);
  padding: 0.65rem 1rem;
}

.pos-thumb-bar__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pos-thumb-bar__methods {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.pos-method-btn {
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  background: var(--pixel-btn-face);
  color: var(--text-primary);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  font-size: 0.72rem;
  flex: 1;
  max-width: 240px;
}

.pos-method-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-top-color: #c4b5fd;
  border-left-color: #c4b5fd;
}

.pos-confirm-sale-btn {
  min-height: 48px;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.stat-card, .profile-panel, .summary-card, .dashboard-card {
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  padding: 1rem;
}

.stat-card p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-light);
}

.table-panel {
  overflow-x: auto;
  background: var(--surface);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  padding: 0.9rem;
}

.table-panel table { width: 100%; border-collapse: collapse; }
.table-panel th, .table-panel td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.84rem;
}

.nav-profile-pic {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 2px solid var(--primary);
}

#theme-switch-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pixel-btn-face);
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  padding: 0.32rem 0.6rem;
}

.tsw-track { position: relative; width: 36px; height: 18px; cursor: pointer; }
.tsw-track input { opacity: 0; width: 0; height: 0; position: absolute; }
.tsw-thumb {
  position: absolute;
  inset: 0;
  background: var(--surface-strong);
  border: 2px solid var(--border-color);
}
.tsw-thumb::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  transition: transform 0.2s steps(4);
}
.tsw-track input:checked ~ .tsw-thumb::after {
  transform: translateX(18px);
  background: var(--primary-light);
}

.floating-whatsapp {
  position: fixed;
  bottom: 16px;
  right: 128px;
  z-index: 9990;
  background: var(--pixel-btn-face);
  color: var(--text-primary) !important;
  padding: 0.38rem 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.credit-card-preview {
  background: linear-gradient(135deg, #120d1d 0%, #4c1d95 55%, #e07a3c 100%);
  color: #fff;
  padding: 1.3rem;
  margin-bottom: 1.15rem;
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  font-family: 'Orbitron', sans-serif;
}
.credit-card-preview .cc-chip { width: 38px; height: 26px; background: #fbbf24; margin-bottom: 0.9rem; }
.credit-card-preview .cc-number { font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 0.9rem; }
.credit-card-preview .cc-bottom { display: flex; justify-content: space-between; font-size: 0.68rem; }

.toast-container { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast, .notification {
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-top: 2px solid var(--pixel-bevel-light);
  border-left: 2px solid var(--pixel-bevel-light);
  border-right: 2px solid var(--pixel-bevel-dark);
  border-bottom: 2px solid var(--pixel-bevel-dark);
  box-shadow: 3px 3px 0 var(--pixel-shadow-hard);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .home-split-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem 0 5rem;
  }
  .info-right-column {
    position: static;
  }
  nav, .section, .products-section, footer {
    padding-left: 5rem;
  }
  .auth-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-side { display: none; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 48px;
  }
  nav {
    padding: 0.45rem 0.6rem !important;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .nav-links,
  .nav-user-name,
  .cart-btn span:not(.cart-count) {
    display: none;
  }
  .logo-script {
    font-size: 0.82rem;
  }
  .nav-auth {
    gap: 0.35rem;
  }
  .nav-auth .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.6rem;
  }
  .home-split-layout,
  .section,
  .products-section,
  footer {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    margin-top: 0.65rem;
  }
  .pixel-window-body {
    padding: 0.75rem;
  }
  .pixel-menubar {
    gap: 0.65rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.62rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .section-header h2 {
    font-size: 1rem;
  }
  .section-header p {
    font-size: 0.78rem;
  }
  .category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 0.65rem;
    -webkit-overflow-scrolling: touch;
  }
  .category-chip {
    flex-shrink: 0;
    padding: 0.28rem 0.6rem;
    font-size: 0.6rem;
  }
  .catalog-search-bar {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .catalog-search-bar input {
    min-width: 100%;
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
  }
  .catalog-search-bar select {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.64rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .product-card {
    padding: 0.48rem;
  }
  .product-image {
    height: 118px;
    margin-bottom: 0.4rem;
  }
  .product-category {
    font-size: 0.54rem;
  }
  .product-stock-chip {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  .product-name {
    font-size: 0.8rem;
  }
  .product-price {
    font-size: 0.9rem;
  }
  .compact-variant-pill {
    padding: 1px 5px;
    font-size: 0.64rem;
  }
  .compact-add-btn {
    padding: 0.34rem 0.4rem;
    font-size: 0.62rem;
  }
  .auth-container {
    padding: 0.75rem;
  }
  .form-container {
    padding: 1.15rem;
  }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .profile-avatar-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem;
  }
  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .custom-modal {
    padding: 1.1rem;
  }
  #theme-switch-widget {
    bottom: 10px;
    right: 8px;
    padding: 0.22rem 0.45rem;
  }
  .floating-whatsapp {
    bottom: 10px;
    right: 102px;
    padding: 0.28rem 0.55rem;
    font-size: 0.58rem;
  }
}
