@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=Michroma&display=swap");

:root {
  --font-body: "Exo 2", "Trebuchet MS", sans-serif;
  --font-display: "Michroma", "Orbitron", sans-serif;

  --bg-main: #010a04;
  --bg-deep: #020c04;
  --bg-panel: rgba(6, 20, 10, 0.86);

  --blue-glow: #00e87a;
  --blue-soft: #0a7a3e;
  --cyan: #a0ffcc;

  --text-main: #d7fbe8;
  --text-dim: #7aaa8c;

  --border-glow: rgba(0, 210, 100, 0.46);

  --text: var(--text-main);
  --muted: var(--text-dim);
  --chrome-1: #ddfff0;
  --chrome-2: #9dc2aa;
  --chrome-3: #0d2016;
  --line: rgba(0, 200, 100, 0.52);
  --panel: var(--bg-panel);
  --panel-soft: rgba(5, 14, 8, 0.92);
  --violet-glow: rgba(0, 210, 100, 0.4);
  --green-glow: rgba(0, 255, 120, 0.55);
  --cyan-glow: var(--cyan);
  --chrome-bright: rgba(210, 255, 233, 0.9);
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.015em;
  background-color: var(--bg-main);
  background-image: url("background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#main-content {
  flex: 1 0 auto;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

body::marker {
  display: none;
}

html::before {
  content: none;
}

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

.container {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  border-bottom: 1px solid rgba(0, 180, 80, 0.48);
  background: linear-gradient(180deg, rgba(5, 14, 8, 0.97), rgba(2, 8, 4, 0.99));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 150, 70, 0.15),
    rgba(0, 255, 140, 0.72) 50%,
    rgba(0, 150, 70, 0.15)
  );
  box-shadow: 0 0 8px rgba(0, 200, 100, 0.28);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.16rem;
}

.brand-title,
.logo-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: lowercase;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #cffce8 20%,
    #00e87a 40%,
    #00aa50 50%,
    #00e87a 65%,
    #d4fff0 80%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 2px #ffffff,
    0 0 6px #00ff88,
    0 0 12px #00b855,
    0 0 20px #00b855;
  position: relative;
  display: inline-block;
  transform: skewX(-10deg);
  animation: brand-glow-pulse 2.8s ease-in-out infinite;
}

.brand-title::after,
.logo-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0) 40%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.brand-title::before,
.logo-text::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 32%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  transform: skewX(-14deg);
  animation: brand-glow-sweep 4.6s linear infinite;
  pointer-events: none;
}

.brand-sub {
  margin: 0;
  color: #6aaa7e;
  font-size: 0.84rem;
}

.header-tools {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  width: min(420px, 100%);
}

[data-auth] {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

body.auth-ready [data-auth].visible {
  display: inline-block;
  opacity: 1;
  pointer-events: auto;
}

.main-nav.is-loading .container::after {
  content: "Loading account...";
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border: 1px dashed rgba(170, 196, 248, 0.42);
  border-radius: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: #c0eed4;
}

.search-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(360px, 100%);
}

.search-mini input {
  flex: 1;
  border: 1px solid rgba(0, 180, 90, 0.62);
  border-radius: 0.32rem;
  padding: 0.62rem 0.74rem;
  background: linear-gradient(180deg, rgba(10, 30, 18, 0.72), rgba(2, 10, 5, 0.9));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 225, 0.28),
    inset 0 -10px 18px rgba(1, 8, 4, 0.52),
    0 0 8px rgba(0, 150, 80, 0.2);
  outline: none;
}

.search-mini input:focus {
  border-color: #a0ffcc;
  box-shadow: 0 0 0 2px rgba(0, 230, 110, 0.24);
}

.btn,
.search-mini button,
.y2k-btn {
  border: 1px solid rgba(255, 200, 100, 0.7);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 180, 80, 0.8);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.search-mini button,
.btn-primary,
.y2k-btn {
  background:
    linear-gradient(180deg, #ffd08f, #ffb347 48%, #e07818 75%, #b85e00);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.86),
    inset 0 -10px 14px rgba(100, 40, 0, 0.5),
    0 0 8px rgba(255, 160, 50, 0.36);
  border: 1px solid rgba(255, 190, 80, 0.7);
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.65);
}

.btn-secondary {
  background:
    linear-gradient(180deg, rgba(200, 255, 220, 0.3), rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.01) 54%),
    linear-gradient(180deg, #3a6648, #1e3d28 56%, #0f2018);
  box-shadow:
    inset 0 1px 2px rgba(200, 255, 220, 0.4),
    inset 0 -10px 16px rgba(4, 14, 8, 0.6),
    0 8px 14px rgba(0, 0, 0, 0.48),
    0 0 10px rgba(0, 200, 90, 0.2);
  color: #d4fce8;
  text-shadow: 0 0 4px rgba(0, 180, 90, 0.5);
}

.btn:hover,
.search-mini button:hover,
.y2k-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 180, 60, 0.6);
}

.main-nav {
  min-height: 70px;
  overflow: visible;
  border-top: 1px solid rgba(0, 180, 80, 0.4);
  border-bottom: 1px solid rgba(0, 160, 70, 0.35);
  background: linear-gradient(180deg, #040e06, #020806 55%, #020704);
  box-shadow:
    0 0 18px rgba(0, 100, 40, 0.42),
    inset 0 1px 0 rgba(180, 255, 210, 0.2),
    inset 0 -18px 28px rgba(1, 5, 2, 0.64);
  position: relative;
}

.main-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.75;
}

.glow-text {
  color: var(--cyan);
  text-shadow:
    0 0 6px var(--blue-glow),
    0 0 12px var(--blue-soft);
}

.main-nav .container {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  min-height: 70px;
  padding: 0.55rem 1rem;
  overflow: visible;
  white-space: nowrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.38rem 0.74rem;
  border: 1px solid rgba(0, 180, 90, 0.5);
  border-radius: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #c0f0d0;
  text-shadow: 0 0 1px rgba(180, 240, 200, 0.22);
  background: linear-gradient(180deg, rgba(10, 50, 25, 0.32), rgba(3, 14, 7, 0.72));
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-color: rgba(100, 255, 160, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 30%),
    linear-gradient(135deg, #00c864, #00a050 50%, #006628);
  box-shadow: 0 0 12px rgba(0, 200, 100, 0.6);
}

.auth-user-block {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding-left: 0.6rem;
}

body.auth-ready .auth-user-block.visible {
  display: inline-flex;
}

.auth-user-name {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 180, 80, 0.5);
  border-radius: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  color: #c8ffe0;
  background: linear-gradient(180deg, rgba(15, 55, 28, 0.32), rgba(4, 14, 7, 0.75));
}

.nav-logout {
  padding: 0.4rem 0.68rem;
  font-size: 0.65rem;
  line-height: 1;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.2rem;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 230, 0.9);
  font-size: 0.68rem;
  color: #0d2e18;
  background: linear-gradient(135deg, #a0ffd0, #50ffaa);
}

main {
  padding: 1.2rem 0 2rem;
}

.section {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 180, 90, 0.52);
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, rgba(180, 255, 210, 0.06), rgba(255, 255, 255, 0.01) 24%),
    linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 220, 0.2),
    inset 0 -1px 0 rgba(30, 70, 40, 0.8),
    var(--shadow);
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 200, 100, 0.04) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 26px 26px, auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.hero h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: #d4ffe8;
  text-shadow: 0 0 8px #0f8, 0 0 16px #0c6, 0 0 24px var(--green-glow);
}

.hero p {
  margin: 0;
  color: #b8f0cc;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.kpi {
  border: 1px solid rgba(0, 200, 100, 0.45);
  border-radius: 0.34rem;
  padding: 0.68rem;
  background:
    linear-gradient(180deg, rgba(200, 255, 220, 0.15), rgba(255, 255, 255, 0.02) 33%),
    linear-gradient(135deg, rgba(10, 60, 30, 0.55), rgba(3, 14, 7, 0.95));
}

.kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #e0fff0;
  text-shadow: 0 0 11px var(--green-glow);
}

.kpi span {
  color: var(--muted);
  font-size: 0.88rem;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.title-row h3,
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.title-row p,
.muted {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

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

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

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

.panel,
.card {
  padding: 0.8rem;
  border: 1px solid var(--border-glow);
  border-radius: 0.35rem;
  background: var(--bg-panel);
  box-shadow:
    0 0 16px rgba(0, 100, 50, 0.34),
    inset 0 0 14px rgba(0, 50, 20, 0.22);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 200, 120, 0.55);
  background:
    radial-gradient(circle at 70% 15%, rgba(0, 220, 120, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 24% 78%, rgba(0, 180, 80, 0.24) 0%, transparent 42%),
    repeating-linear-gradient(45deg, rgba(0, 220, 120, 0.09) 0 10px, rgba(2, 10, 5, 0.08) 10px 20px),
    linear-gradient(135deg, #103028, #081a10 52%, #030d07);
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 220, 0.33),
    inset 0 -16px 26px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(0, 200, 100, 0.28);
}

.thumb.has-photo {
  background: #0d1324;
  overflow: hidden;
}

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

.price {
  color: #c6ffcd;
  font-size: 1.02rem;
  font-weight: 700;
  text-shadow: 0 0 8px var(--green-glow);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #101527;
  background: linear-gradient(135deg, #a8ffd5, #50ffa0);
  border: 1px solid rgba(243, 255, 255, 0.9);
  border-radius: 0.26rem;
  padding: 0.22rem 0.46rem;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.78rem;
}

.breadcrumbs a {
  color: #90e8b8;
}

.layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

.stack {
  display: grid;
  gap: 0.72rem;
}

[hidden] {
  display: none !important;
}

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

.table th,
.table td {
  text-align: left;
  padding: 0.56rem 0.35rem;
  border-bottom: 1px solid rgba(0, 200, 100, 0.28);
}

.table th {
  color: #a0f0c4;
  font-weight: 600;
}

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

.field {
  display: grid;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  color: #b0f0cc;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  border: 1px solid rgba(0, 200, 100, 0.55);
  border-radius: 0.3rem;
  padding: 0.62rem 0.67rem;
  color: var(--text);
  font: inherit;
  background: linear-gradient(180deg, rgba(10, 50, 25, 0.62), rgba(2, 12, 6, 0.94));
  box-shadow: inset 0 1px 0 rgba(200, 255, 220, 0.2);
}

.field select {
  color: #d7fbe8;
}

.field select option {
  color: #0b1a11;
  background: #e9fff2;
}

.field select option[value=""] {
  color: #4c6b59;
}

.field input[type="file"] {
  padding: 0.3rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  border: 1px solid rgba(255, 190, 80, 0.7);
  border-radius: 6px;
  padding: 0.38rem 0.8rem;
  margin-right: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(180deg, #ffd08f, #ffb347 48%, #e07818 75%, #b85e00);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    inset 0 -6px 10px rgba(100, 40, 0, 0.4),
    0 0 6px rgba(255, 160, 50, 0.3);
  cursor: pointer;
  transition: filter 140ms ease;
}

.field input[type="file"]::file-selector-button:hover {
  filter: brightness(1.1);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #80ffb8;
  box-shadow: 0 0 0 2px rgba(0, 210, 100, 0.26);
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.22);
}

.field-error-msg {
  font-size: 0.78rem;
  color: #ff8a8a;
  margin-top: 0.18rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #70a882;
  opacity: 1;
}

.auth-intro {
  color: #b8f0cc;
  font-size: 0.95rem;
}

.auth-tabs {
  display: inline-flex;
  border: 1px solid rgba(0, 200, 100, 0.5);
  border-radius: 0.35rem;
  overflow: hidden;
  margin-top: 0.7rem;
}

.auth-tab-btn {
  border: 0;
  background: linear-gradient(180deg, rgba(15, 55, 28, 0.55), rgba(4, 14, 7, 0.82));
  color: #c0eed4;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.auth-tab-btn.is-active {
  background: linear-gradient(135deg, #00c864, #009948 45%, #00b855);
  color: #ffffff;
}

.auth-panel {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 180, 90, 0.3);
}

.auth-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-panel-actions .btn-primary {
  min-width: 170px;
}

.btn.btn-link {
  border: 0;
  background: transparent;
  color: #90f0c0;
  text-decoration: underline;
  padding: 0.2rem 0.1rem;
  box-shadow: none;
}

.btn.btn-link:hover {
  color: #ffffff;
  background: transparent;
}

.btn.btn-inline {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.32rem 0.68rem;
  font-size: 0.84rem;
}

.orders-empty a {
  color: #d0fff0;
  text-decoration: underline;
}

.orders-empty .btn {
  text-decoration: none;
}

.orders-empty .btn.btn-inline {
  color: #0d2018;
  text-shadow: 0 1px 0 rgba(220, 255, 235, 0.78);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

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

.catalog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.catalog-actions .btn {
  width: 100%;
}

.empty-panel {
  grid-column: 1 / -1;
}

.catalog-empty-panel h3 {
  margin-bottom: 0.45rem;
}

.feedback {
  margin-top: 0.75rem;
  color: #90f0c0;
  min-height: 1.2rem;
}

.qty-input {
  width: 5rem;
}

.compact-actions {
  margin-top: 0.55rem;
}

.pill-danger {
  color: #2f1010;
  background: linear-gradient(135deg, #ffb8b8, #ffc9a4);
}

.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #00e87a;
  outline-offset: 2px;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.46rem;
}

.list-clean li {
  border: 1px solid rgba(0, 180, 90, 0.42);
  border-radius: 0.28rem;
  padding: 0.55rem 0.62rem;
  background: linear-gradient(180deg, rgba(10, 60, 30, 0.33), rgba(3, 14, 7, 0.84));
}

.empty {
  border: 1px dashed rgba(0, 180, 90, 0.52);
  border-radius: 0.32rem;
  padding: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 160, 70, 0.44);
  background: linear-gradient(180deg, rgba(5, 18, 9, 0.9), rgba(2, 8, 4, 0.98));
}

.site-footer .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #6aaa80;
  font-size: 0.9rem;
}

.reveal {
  animation: rise 420ms ease both;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

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

@keyframes brand-glow-pulse {
  0% {
    text-shadow:
      0 0 2px #ffffff,
      0 0 6px #00ff88,
      0 0 12px #00b855,
      0 0 20px #00b855;
    filter: brightness(0.96);
  }
  50% {
    text-shadow:
      0 0 3px #ffffff,
      0 0 10px #00ff9c,
      0 0 18px #00d86c,
      0 0 28px #00b855;
    filter: brightness(1.08);
  }
  100% {
    text-shadow:
      0 0 2px #ffffff,
      0 0 6px #00ff88,
      0 0 12px #00b855,
      0 0 20px #00b855;
    filter: brightness(0.96);
  }
}

@keyframes brand-glow-sweep {
  0% {
    left: -35%;
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  42% {
    left: 115%;
    opacity: 0;
  }
  100% {
    left: 115%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.62rem 0;
  }

  .header-tools {
    justify-items: stretch;
    width: 100%;
  }

  .main-nav a {
    font-size: 0.7rem;
  }

  .main-nav .container {
    overflow-x: auto;
    overflow-y: visible;
  }

  .auth-user-block {
    gap: 0.28rem;
    margin-left: 0;
  }

  .auth-user-name {
    font-size: 0.62rem;
  }

  .nav-logout {
    padding: 0.36rem 0.56rem;
    font-size: 0.58rem;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-actions {
    justify-content: flex-start;
  }

  .site-footer .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0;
  }
}

/* ====================================================
   ADMIN PANEL — full-width dashboard
   ==================================================== */
.admin-panel {
  width: 100%;
  background: linear-gradient(180deg, #071507 0%, #040c04 100%);
  border-top: 1px solid rgba(0, 200, 80, 0.28);
  border-bottom: 1px solid rgba(0, 200, 80, 0.18);
  padding: 1.6rem 2.5rem 2.5rem;
  box-sizing: border-box;
  margin-top: 0;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0, 190, 70, 0.22);
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.admin-panel-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-user-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
}

.admin-panel-header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.admin-stats-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  font-size: 0.8rem;
  color: rgba(0, 210, 80, 0.65);
}

.admin-stats-bar li {
  white-space: nowrap;
}

.admin-stats-bar span {
  color: #00e870;
  font-weight: 700;
}

.admin-image-preview {
  display: block;
  max-height: 160px;
  max-width: 260px;
  border: 1px solid rgba(0, 200, 80, 0.35);
  border-radius: 3px;
  margin-top: 0.4rem;
  object-fit: contain;
  background: rgba(0, 40, 10, 0.4);
}

.admin-search-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-search-input {
  flex: 1;
  max-width: 420px;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 30, 10, 0.7);
  border: 1px solid rgba(0, 180, 70, 0.4);
  color: #d0ffd8;
  font-family: inherit;
  font-size: 0.87rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.18s;
}

.admin-search-input:focus {
  border-color: rgba(0, 240, 80, 0.65);
}

.admin-panel-title {
  font-size: 1.5rem;
  text-transform: lowercase;
  color: #00f060;
  text-shadow: 0 0 14px rgba(0, 240, 96, 0.35);
  margin: 0;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(0, 180, 80, 0.32);
  color: rgba(0, 200, 80, 0.65);
  font-family: inherit;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.admin-tab-btn:hover {
  border-color: rgba(0, 255, 80, 0.55);
  color: #00e870;
  background: rgba(0, 255, 80, 0.05);
}

.admin-tab-btn.is-active {
  background: rgba(0, 200, 80, 0.13);
  border-color: rgba(0, 220, 80, 0.7);
  color: #00f060;
  box-shadow: 0 0 8px rgba(0, 255, 80, 0.15);
}

/* Form panel */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.6rem;
  align-items: start;
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.3rem;
}

.req {
  color: #f0a000;
  font-size: 0.9em;
}

/* Products table */
.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.admin-products-table th {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(0, 200, 80, 0.3);
  color: rgba(0, 220, 80, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-products-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(0, 180, 80, 0.1);
  vertical-align: middle;
}

.admin-products-table tr:hover td {
  background: rgba(0, 200, 80, 0.04);
}

.thumb-mini {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 200, 80, 0.25);
  display: block;
}

.thumb-mini-placeholder {
  width: 44px;
  height: 44px;
  background: rgba(0, 150, 50, 0.1);
  border: 1px solid rgba(0, 200, 80, 0.2);
  border-radius: 2px;
  display: block;
}

/* Orders table */
.admin-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.admin-orders-table th {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(0, 200, 80, 0.3);
  color: rgba(0, 220, 80, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-orders-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(0, 180, 80, 0.1);
  vertical-align: middle;
}

.admin-orders-table tr:hover td {
  background: rgba(0, 200, 80, 0.04);
}

.admin-status-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-status-btns .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.admin-status-btns .btn[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 860px) {
  .admin-panel {
    padding: 1.1rem 1rem 1.8rem;
  }
  .admin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-products-table th:nth-child(4),
  .admin-products-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-products-table th:nth-child(3),
  .admin-products-table td:nth-child(3) {
    display: none;
  }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  border-left: 4px solid;
  background: rgba(10, 15, 12, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  pointer-events: all;
  word-wrap: break-word;
}

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

.toast-success {
  border-left-color: #00e870;
  color: #00f060;
}

.toast-error {
  border-left-color: #ff4444;
  color: #ff6666;
}

.toast-warning {
  border-left-color: #ffaa00;
  color: #ffbb33;
}

.toast-info {
  border-left-color: #00b8ff;
  color: #33ccff;
}

/* ============================================================
   TABLE SORTING
   ============================================================ */
table th {
  user-select: none;
  transition: opacity 0.2s;
}

table th:hover {
  opacity: 0.8;
}

table th::after {
  content: ' ⇅';
  opacity: 0.3;
  font-size: 0.75em;
}

/* ============================================================
   RICH TEXT EDITOR
   ============================================================ */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(0, 40, 15, 0.5);
  border: 1px solid rgba(0, 200, 80, 0.3);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  align-items: center;
}

.editor-btn {
  padding: 6px 10px;
  background: rgba(0, 100, 40, 0.4);
  border: 1px solid rgba(0, 200, 80, 0.3);
  color: #00e870;
  cursor: pointer;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
}

.editor-btn:hover {
  background: rgba(0, 150, 60, 0.6);
  border-color: rgba(0, 220, 100, 0.5);
}

.editor-btn:active {
  transform: scale(0.95);
}

.editor-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 200, 80, 0.2);
  margin: 0 2px;
}

/* ============================================================
   DATE PICKER
   ============================================================ */
.date-picker-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.date-picker-calendar {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: rgba(5, 20, 10, 0.97);
  border: 1px solid rgba(0, 200, 80, 0.4);
  border-radius: 4px;
  padding: 12px;
  z-index: 1000;
  min-width: 240px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.date-picker-header {
  text-align: center;
  font-weight: 700;
  color: #00e870;
  padding: 8px;
  border-bottom: 1px solid rgba(0, 200, 80, 0.2);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(0, 200, 80, 0.5);
  font-weight: 600;
}

.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-day {
  padding: 6px 2px;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  font-size: 0.85rem;
  background: rgba(0, 100, 50, 0.2);
  border: 1px solid rgba(0, 150, 70, 0.2);
  color: #7aaa8c;
  transition: all 0.2s;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-picker-day:not(.empty):hover {
  background: rgba(0, 200, 80, 0.3);
  color: #00f060;
  border-color: rgba(0, 200, 80, 0.5);
  transform: scale(1.1);
}

.date-picker-day.empty {
  cursor: default;
  background: transparent;
  border: none;
}

/* ============================================================
   FORM VALIDATION
   ============================================================ */
.field-error {
  display: block;
  color: #ff6666;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
}

.field-invalid {
  border-color: #cc3333 !important;
  background: rgba(200, 0, 0, 0.05) !important;
}

.field-invalid::placeholder {
  color: rgba(255, 100, 100, 0.5);
}

/* ==============================================================
   PRODUCT CARDS — visual hierarchy + hover
   ============================================================== */

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition:
    transform 200ms cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(0, 255, 120, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 255, 120, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(0, 220, 100, 0.22);
}

.card-thumb-wrap {
  position: relative;
}

.product-card .thumb {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(0, 200, 100, 0.25);
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  pointer-events: none;
}

.card-badge-stock {
  background: rgba(0, 160, 60, 0.88);
  color: #ccffe0;
  border: 1px solid rgba(0, 255, 100, 0.4);
}

.card-badge-oos {
  background: rgba(100, 0, 0, 0.88);
  color: #ffb0b0;
  border: 1px solid rgba(255, 50, 50, 0.3);
}

.card-meta {
  margin: 0.55rem 0.75rem 0.1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.trust-badges {
  margin: 0.25rem 0.75rem 0.1rem;
  display: flex;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.trust-badge {
  font-family: var(--font-display);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bfffd8;
  border: 1px solid rgba(0, 220, 100, 0.28);
  background: rgba(0, 90, 40, 0.22);
  border-radius: 99px;
  padding: 2px 8px;
}

.card-brand {
  font-family: var(--font-display);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0a000;
  background: rgba(255, 160, 0, 0.1);
  border: 1px solid rgba(255, 160, 0, 0.32);
  border-radius: 3px;
  padding: 2px 7px;
}

.card-pn {
  font-size: 0.72rem;
  color: #4a8060;
  letter-spacing: 0.02em;
}

.card-title {
  margin: 0.35rem 0.75rem 0.15rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  color: #e0fff0;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-transform: none;
}

.card-value-point {
  margin: 0.1rem 0.75rem 0.35rem;
  color: #8ac9a7;
  font-size: 0.75rem;
  line-height: 1.45;
}

.card-price {
  margin: 0.05rem 0.75rem 0.55rem;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 800;
  color: #ffcc44;
  text-shadow:
    0 0 8px rgba(255, 200, 50, 0.55),
    0 0 20px rgba(255, 140, 0, 0.28);
  letter-spacing: 0.02em;
}

.card-actions {
  margin-top: auto;
  padding: 0.5rem 0.75rem 0.7rem;
  display: flex;
  gap: 0.38rem;
  align-items: center;
  border-top: 1px solid rgba(0, 200, 100, 0.1);
}

.card-btn-cart {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.7rem;
}

.card-btn-open {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 0.7rem;
}

.btn-icon {
  border: 1px solid rgba(0, 180, 80, 0.35);
  background: transparent;
  color: #3a7050;
  padding: 7px 10px;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, text-shadow 150ms ease;
  font-family: inherit;
}

.btn-icon:hover {
  color: #ff5577;
  border-color: rgba(255, 60, 100, 0.5);
  text-shadow: 0 0 6px rgba(255, 60, 100, 0.5);
}

.product-card.is-favorite .btn-icon {
  color: #ff4466;
  border-color: rgba(255, 50, 80, 0.5);
  text-shadow: 0 0 8px rgba(255, 50, 80, 0.6);
}

/* ==============================================================
   CATEGORY CARDS — interactive tiles with icon
   ============================================================== */

.category-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 0.9rem 1.1rem;
  gap: 0.55rem;
  transition:
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(0, 255, 120, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 255, 120, 0.18),
    0 10px 36px rgba(0, 0, 0, 0.72),
    0 0 32px rgba(0, 230, 100, 0.3);
}

.category-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 230, 100, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 240, 100, 0.2), transparent 60%),
    rgba(0, 30, 12, 0.55);
  box-shadow:
    0 0 14px rgba(0, 200, 80, 0.22),
    inset 0 1px 0 rgba(200, 255, 220, 0.18);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.category-card:hover .category-icon-wrap {
  border-color: rgba(0, 255, 120, 0.7);
  box-shadow:
    0 0 26px rgba(0, 255, 100, 0.55),
    inset 0 1px 0 rgba(200, 255, 220, 0.28);
}

.category-icon {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 0 3px rgba(0, 220, 80, 0.65));
}

.category-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #c0f0d0;
  margin: 0;
}

.category-usecase {
  margin: 0;
  color: #7db594;
  font-size: 0.68rem;
  line-height: 1.35;
}

.category-count {
  font-size: 0.72rem;
  color: #3a7050;
  margin: 0;
}

/* ==============================================================
   CATALOG COUNT BADGE
   ============================================================== */

[data-catalog-count] {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #3a7050;
  padding: 3px 12px;
  border: 1px solid rgba(0, 160, 70, 0.28);
  border-radius: 20px;
  background: rgba(0, 30, 10, 0.4);
  white-space: nowrap;
}

/* ==============================================================
   FILTER SECTION — labels + hover
   ============================================================== */

.filters-grid .field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a8a6a;
  font-weight: 700;
}

.filters-grid .field input,
.filters-grid .field select {
  border-color: rgba(0, 160, 80, 0.38);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.filters-grid .field input:hover,
.filters-grid .field select:hover {
  border-color: rgba(0, 220, 100, 0.55);
}

/* ==============================================================
   BUTTON MICRO-ANIMATIONS — shimmer on primary
   ============================================================== */

.btn-primary,
.y2k-btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.y2k-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 500ms ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.y2k-btn:hover::after {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(0) scale(0.96) !important;
  filter: brightness(0.92) !important;
  transition: transform 60ms ease, filter 60ms ease !important;
}

.btn-secondary:hover {
  border-color: rgba(100, 255, 160, 0.75);
  box-shadow:
    inset 0 1px 2px rgba(200, 255, 220, 0.4),
    0 0 16px rgba(0, 220, 100, 0.4);
}

/* ==============================================================
   EMPTY STATE — catalog no products
   ============================================================== */

.catalog-empty-panel {
  text-align: center;
  padding: 3rem 2rem;
  grid-column: 1 / -1;
}

.catalog-empty-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 0.9rem;
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(0, 200, 80, 0.4));
  line-height: 1;
}

.catalog-empty-panel h3 {
  font-size: 1.1rem;
  color: #90d0a8;
  margin-bottom: 0.45rem;
}

.catalog-empty-panel .muted {
  max-width: 44ch;
  margin: 0 auto 1.1rem;
  line-height: 1.6;
}

/* ============================================================== 
   MINI CART
   ============================================================== */

.mini-cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mini-cart-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  max-width: 360px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 190, 90, 0.42);
  border-radius: 0.35rem;
  background: rgba(2, 12, 6, 0.97);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.64);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 40;
}

.mini-cart-wrap:hover .mini-cart-panel,
.mini-cart-wrap:focus-within .mini-cart-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mini-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mini-cart-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(0, 160, 80, 0.2);
  padding-bottom: 0.25rem;
  color: #c8f5dc;
}

.mini-cart-subtotal {
  margin: 0.55rem 0 0.4rem;
  color: #d8ffe8;
}

.mini-cart-actions {
  justify-content: flex-end;
}

.mini-cart-empty {
  margin: 0;
}

/* ============================================================== 
   CHECKOUT
   ============================================================== */

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

.checkout-summary-card {
  position: sticky;
  top: 1rem;
}

.offer-box {
  border: 1px solid rgba(255, 190, 80, 0.34);
  border-radius: 0.32rem;
  background: linear-gradient(180deg, rgba(255, 180, 80, 0.07), rgba(255, 255, 255, 0.01));
  padding: 0.55rem 0.65rem;
}

.offer-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #ffd18a;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.offer-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.offer-box li {
  font-size: 0.78rem;
  color: #b8e5ca;
}

.what-inside-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.24rem;
}

.what-inside-list li {
  font-size: 0.76rem;
  color: #9fd6b6;
  padding-left: 0.9rem;
  position: relative;
}

.what-inside-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7bffa8;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

/* ============================================================== 
   REVIEWS + TRACKING
   ============================================================== */

.review-card {
  margin-bottom: 0.65rem;
}

.review-card p {
  margin: 0.25rem 0;
}

.tracking-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.tracking-timeline li {
  text-align: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.2rem;
  border: 1px solid rgba(0, 160, 80, 0.25);
  border-radius: 0.25rem;
  color: #4f8463;
  background: rgba(0, 40, 15, 0.2);
}

.tracking-timeline li.is-active {
  border-color: rgba(0, 255, 120, 0.5);
  color: #cbffe1;
  background: rgba(0, 160, 70, 0.2);
  box-shadow: 0 0 10px rgba(0, 220, 90, 0.25);
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-card {
    position: static;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mini-cart-panel {
    right: -12px;
    min-width: 270px;
  }

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

/* ============================================================== 
   PRODUCT PAGE UPGRADES
   ============================================================== */

.product-buy-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.product-qty-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4a8a6a;
}

.product-qty-input {
  width: 90px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.recent-card .thumb {
  margin-bottom: 0.15rem;
}

.recent-card-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #d8f8e8;
  font-family: var(--font-body);
}

@media (max-width: 980px) {
  .product-page-recent .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-buy-row {
    width: 100%;
    justify-content: space-between;
  }

  .product-qty-input {
    width: 110px;
  }
}