:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --text: #111827;
  --muted: #6b7280;
  --primary: #ff4f33;
  --primary-dark: #e5482e;
  --accent-dark: #111827;
  --border: #e5e7eb;
  --header-bg: rgba(255, 255, 255, 0.94);
  --soft-red-bg: #fff4f1;
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  --radius: 18px;
  --btn-secondary-bg: #f8f9fb;
  --btn-secondary-hover: #f1f3f6;
  --btn-secondary-border: #e5e7eb;
  --header-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --section-space: 1.2rem;
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-alt: #1d222c;
  --text: #edf1f7;
  --muted: #a8b0bf;
  --primary: #ff4f33;
  --primary-dark: #ff6f59;
  --accent-dark: #f2f4f7;
  --border: #2b313d;
  --header-bg: rgba(15, 17, 21, 0.9);
  --soft-red-bg: #2a1b19;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --btn-secondary-bg: #1e2430;
  --btn-secondary-hover: #262d3a;
  --btn-secondary-border: #353d4d;
  --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --section-space: 1.2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--primary) 6%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 4%, transparent) 0%, transparent 22%);
  line-height: 1.55;
  letter-spacing: 0.003em;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

h3 {
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
}

p {
  line-height: 1.62;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  box-shadow: var(--header-shadow);
}

.site-header-main {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px) saturate(110%);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 54px;
}

.brand-link {
  text-decoration: none;
  color: var(--accent-dark);
}

.site-nav {
  display: flex;
  gap: 0.28rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.26rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
}

.site-header .actions {
  flex-wrap: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  border-radius: 999px;
  padding: 0.42rem 0.92rem;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  transform: translateY(0);
}

.site-nav a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 70%, #ffffff);
  outline-offset: 2px;
}

.site-nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 26%, transparent);
}

/* Ribbon: always light text on saturated orange (site.css may override background) */
.leanpay-strip {
  border-bottom: 1px solid color-mix(in srgb, #000 18%, transparent);
  background: linear-gradient(95deg, #e63d20 0%, #ff4f33 45%, #ff6a45 100%);
  color: #fff;
}

.leanpay-strip .container {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.leanpay-strip span {
  opacity: 0.98;
  color: #fff;
}

.leanpay-strip strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  color: var(--accent-dark);
}

.site-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 24%);
}

.admin-page main.container {
  width: min(1320px, 94vw);
}

.admin-header {
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
}

.admin-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

main {
  padding: 1.9rem 0 3.1rem;
}

.hero {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: var(--radius);
  padding: 2.1rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow);
}

.home-main {
  display: grid;
  gap: 1.25rem;
}

.home-page .home-hero {
  border-radius: 24px;
  padding: 2.4rem;
  border: 0;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--primary) 9%, var(--surface)) 0%, var(--surface) 56%),
    var(--surface);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.home-hero-copy {
  max-width: 62ch;
}

.home-kicker {
  margin: 0 0 0.55rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 1.65rem;
}

.home-band-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

.home-band-head p {
  margin: 0.48rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.home-band-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-block {
  padding: 1rem 0.2rem;
  border-right: 1px solid var(--border);
}

.home-block:last-child {
  border-right: 0;
}

.home-block h3 {
  margin: 0;
  font-size: 1.12rem;
}

.home-block p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.home-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.18rem 1.25rem;
}

.home-strip-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.home-strip h3 {
  margin: 0;
  font-size: 1.18rem;
}

.home-strip p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.catalog-main,
.about-main,
.contact-main {
  display: grid;
  gap: var(--section-space);
}

.page-shell {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.about-page .page-hero,
.contact-page .page-hero {
  border-top: 0;
  padding-top: 0.35rem;
}

.about-page .content-grid,
.contact-page .content-grid {
  gap: 1rem;
}

.about-page .content-grid > article,
.contact-page .content-grid > article {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0.4rem 1rem 0.5rem 0;
}

.about-page .content-grid > article:last-child,
.contact-page .content-grid > article:last-child {
  border-right: 0;
  padding-right: 0;
}

.contact-page .stack {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem;
  background: color-mix(in srgb, var(--surface-alt) 48%, var(--surface));
}

.contact-form-status {
  margin: 0.25rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form-status.success {
  color: #1f7a51;
}

.contact-form-status.error {
  color: #b32626;
}

.contact-page .content-grid > article h2,
.about-page .content-grid > article h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.contact-page .content-grid > article p,
.about-page .content-grid > article p {
  margin: 0.32rem 0 0;
}

.contact-page .content-grid > article p strong {
  display: inline-block;
  min-width: 88px;
}

.catalog-page .catalog-head {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding-top: 0.2rem;
  padding-bottom: 0.5rem;
}

.catalog-page .toolbar {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.7rem 0 0.9rem;
}

.catalog-page .catalog-actions {
  padding-bottom: 0.72rem;
  border-bottom: 1px solid var(--border);
}

.catalog-page .card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Final visual harmonization across all pages */
.hero,
.panel,
.home-strip,
.page-shell,
.catalog-page .toolbar,
.catalog-page .catalog-actions,
.catalog-page .card {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-alt));
}

.hero,
.panel,
.home-strip {
  border-radius: 16px;
}

.catalog-page .catalog-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.catalog-meta {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-meta span {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 8px;
  padding: 0.26rem 0.62rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--text) 82%, var(--primary));
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
}

.catalog-page .toolbar {
  margin-top: 0.15rem;
  padding-top: 0.8rem;
  padding-bottom: 0.95rem;
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding-left: 0.62rem;
  padding-right: 0.62rem;
}

.catalog-page .catalog-actions {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-top: 0.25rem;
  padding-left: 0.62rem;
  padding-right: 0.62rem;
  padding-bottom: 0.62rem;
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface));
  border: 1px solid var(--border);
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.catalog-action-buttons {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.catalog-page .card {
  border-radius: 14px;
  padding: 0.9rem;
}

.catalog-page .toolbar input,
.catalog-page .toolbar select {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-alt));
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
}

.catalog-page .toolbar input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, var(--text));
}

.catalog-page .catalog-actions .btn-secondary {
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt));
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
}

.catalog-page .catalog-actions .btn-secondary:hover {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
}

.catalog-page .card h3 {
  text-transform: none;
  letter-spacing: -0.005em;
  min-height: auto;
}

.catalog-page .price {
  font-size: 1.28rem;
}

.catalog-page .card .price {
  margin-top: 0.1rem;
  font-weight: 750;
}

.catalog-page .card .card-description {
  line-height: 1.45;
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
}

.catalog-page .card button {
  margin-top: 0.15rem;
}

.catalog-page .category {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.catalog-page .card-image {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.catalog-page .chip {
  border-radius: 999px;
  font-weight: 600;
}

.about-page .content-grid,
.contact-page .content-grid {
  gap: 1rem;
}

.about-page .content-grid > article,
.contact-page .content-grid > article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-alt));
  padding: 1rem;
}

.about-main .page-shell,
.contact-main .page-shell {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.home-hero-side {
  display: grid;
  gap: 0.95rem;
}

.home-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-metric-grid > div {
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  padding: 0.58rem 0.62rem;
}

.home-metric-grid strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1;
}

.home-metric-grid span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.4rem;
  align-items: center;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
}

.hero p {
  margin: 0.82rem 0 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.03rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.hero-tags span {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--text) 92%, var(--primary));
}

.hero-logo-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.hero-logo-box img {
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 0.75rem;
  position: sticky;
  top: 5.8rem;
  z-index: 10;
  padding: 0.62rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.catalog-actions {
  margin-top: 0.7rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.catalog-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.catalog-head {
  margin-bottom: 0.9rem;
  padding: 0.45rem 0 0.2rem;
  border-bottom: 1px solid var(--border);
}

.catalog-breadcrumb {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.catalog-title {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 800;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  background: #fffdfc;
}

.result-count {
  color: var(--muted);
  margin: 0.95rem 0 1.05rem;
  font-weight: 520;
  font-size: 0.94rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.catalog-page .product-grid {
  gap: 1.05rem;
}

.product-grid.is-switching {
  opacity: 0.45;
  transform: translateY(2px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.1);
}

.card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.category {
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

/* Search-results like layout for product page */
.catalog-page .hero,
.catalog-page .feature-grid,
.catalog-page .feature-card {
  display: none;
}

.catalog-page .toolbar {
  position: static;
  top: auto;
  box-shadow: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 0.5rem 0 0.8rem;
}

.catalog-page .toolbar input,
.catalog-page .toolbar select {
  border-radius: 8px;
  padding: 0.58rem 0.72rem;
  font-size: 0.9rem;
}

.catalog-page .catalog-actions {
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
}

.catalog-page .chip {
  font-size: 0.75rem;
  padding: 0.24rem 0.56rem;
  border-radius: 6px;
  background: #f7f7f7;
}

.catalog-page .chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
}

.catalog-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.catalog-page .card {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  border: 1px solid var(--border);
  padding: 0.75rem;
  gap: 0.55rem;
}

.catalog-page .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.1);
}

.catalog-page .card-image,
.catalog-page .admin-product-image {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  aspect-ratio: 4 / 3;
}

.catalog-page .card h3 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  min-height: 2.5rem;
}

.catalog-page .price {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

.catalog-page .card-description {
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card button,
.btn-secondary {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}

.card button {
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.card button:hover {
  background: var(--primary-dark);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.32rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.28rem;
}

#authPanel {
  width: min(560px, 100%);
  margin-inline: auto;
}

.admin-auth-panel {
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.admin-auth-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(300px, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.admin-auth-brand {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 14px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface));
  padding: 1.1rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.admin-auth-brand .brand-logo {
  width: 52px;
  height: 52px;
}

.admin-auth-brand h2 {
  margin: 0;
  font-size: 1.45rem;
}

.admin-auth-brand p {
  margin: 0;
  color: var(--muted);
}

.admin-login-form {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
}

.admin-login-form h3 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-login-form .actions {
  justify-content: flex-start;
}

.admin-login-form .btn-primary {
  min-width: 138px;
}

.admin-auth-footer {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.password-field {
  display: grid;
  gap: 0.4rem;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.password-input-wrap .btn-secondary {
  min-width: 86px;
}

.panel > h2 {
  margin-top: 0;
  margin-bottom: 0.92rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.stack label {
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.stack input,
.stack textarea,
.stack select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.97rem;
  background: #fffdfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stack textarea {
  min-height: 110px;
  resize: vertical;
}

.stack input:focus,
.stack textarea:focus,
.stack select:focus,
.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: #ff6c50;
  box-shadow: 0 0 0 3px rgba(255, 79, 51, 0.16);
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.header-search {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--btn-secondary-border);
  border-radius: 999px;
  background: var(--btn-secondary-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.header-search-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.header-search-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] .header-search-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f4f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.header-search-form {
  width: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  transition: width 0.25s ease, opacity 0.18s ease;
}

.header-search-input {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-left: 0;
  width: 100%;
  min-width: 0;
  padding: 0.52rem 0.7rem 0.52rem 0.05rem;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: none;
}

.header-search-input:focus {
  outline: none;
}

.header-search.is-open .header-search-form {
  width: min(260px, 38vw);
  opacity: 1;
}

.space-between {
  justify-content: space-between;
  align-items: center;
}

#adminArea .space-between > .actions {
  justify-content: flex-end;
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.86rem;
  cursor: pointer;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 32%, transparent);
}

.btn-danger {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.86rem;
  cursor: pointer;
  font-weight: 700;
  background: #cf2f2f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(207, 47, 47, 0.28);
}

.btn-danger:hover {
  background: #b32626;
}

#adminArea .panel .actions {
  row-gap: 0.5rem;
}

.status {
  margin: 0.85rem 0 0;
}

.muted {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.admin-products {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

#adminArea .panel:first-child {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-alt) 56%, var(--surface)));
}

.admin-page #adminArea {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.admin-editor-panel,
.admin-list-panel {
  margin-bottom: 0;
}

.admin-product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.admin-product-form .full-row {
  grid-column: 1 / -1;
}

.admin-filters {
  margin-top: 0.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface));
}

.admin-bulk-actions {
  justify-content: flex-end;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.admin-stats span {
  background: var(--soft-red-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.85rem;
  color: var(--text);
}

.admin-filters label {
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-filters select {
  margin-left: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}

#productSearchInput {
  margin-left: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  min-width: 240px;
  background: var(--surface);
}

.admin-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.12);
}

.admin-page .status {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface));
}

.admin-page .status.success {
  border-color: #bfe2cf;
  color: #1f7a51;
  background: #eefaf3;
}

.admin-page .status.error {
  border-color: #f1c6c6;
  color: #a02222;
  background: #fff4f4;
}

.admin-page .status.info {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--text);
}

@media (max-width: 1150px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.85rem;
  }

  .site-header .actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-page .home-hero {
    padding: 2rem;
  }

  .admin-page #adminArea {
    grid-template-columns: 1fr;
  }
}

.admin-product-card h3 {
  margin: 0 0 0.45rem;
}

.admin-product-card p {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.admin-product-card .status-pill {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.published {
  color: #0f4b34;
  background: #e4f6ec;
}

.status-pill.draft {
  color: #7a4600;
  background: #fff0dc;
}

.admin-product-card .row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.image-preview-box {
  border: 1px dashed var(--primary);
  border-radius: 10px;
  padding: 0.6rem;
  background: var(--soft-red-bg);
}

.image-preview-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.upload-row {
  background: var(--soft-red-bg);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 0.7rem;
}

.upload-row.drag-over {
  background: #ffece5;
  border-color: #ff8e74;
}

.upload-row .actions {
  align-items: center;
}

.upload-row input[type="file"] {
  width: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  background: var(--surface);
}

.card-image,
.admin-product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  margin-bottom: 0.35rem;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.card:hover .card-image {
  transform: scale(1.018);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.card-image.placeholder,
.admin-product-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6f67;
  font-size: 0.88rem;
}

.dialog-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f2d2c8;
  margin-bottom: 0.9rem;
}

.product-dialog {
  width: min(520px, 90vw);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--surface);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.product-dialog::backdrop {
  background: rgba(22, 40, 58, 0.35);
}

.product-dialog h2 {
  margin-top: 0;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-tag {
  width: 38%;
  height: 18px;
  border-radius: 999px;
}

.skeleton-title {
  width: 76%;
  height: 22px;
}

.skeleton-price {
  width: 42%;
  height: 20px;
}

.skeleton-image {
  width: 100%;
  height: 130px;
}

.skeleton-line {
  width: 100%;
  height: 14px;
}

.skeleton-line.short {
  width: 74%;
}

.skeleton-button {
  margin-top: auto;
  width: 44%;
  height: 36px;
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border: 1px solid var(--btn-secondary-border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--btn-secondary-border);
  background: var(--btn-secondary-hover);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.header-search-toggle:focus-visible,
.stack input:focus-visible,
.stack textarea:focus-visible,
.stack select:focus-visible,
.toolbar input:focus-visible,
.toolbar select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 72%, #ffffff);
  outline-offset: 2px;
}

#closeDialogBtn {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.05rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.footer-grid nav {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-grid nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-grid nav a:hover {
  text-decoration: underline;
}

.footer-grid > div:first-child {
  justify-self: start;
}

.footer-grid > small {
  justify-self: end;
}

.footer-bottom {
  margin-top: 0.95rem;
  border-top: 1px solid var(--border);
  padding: 0.72rem 0 0.82rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-credit-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.footer-credit-link:hover {
  text-decoration: underline;
}

.footer-credit-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 72%, #ffffff);
  outline-offset: 2px;
  border-radius: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.06rem;
  background: var(--surface);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.14rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
}

.page-hero p {
  margin: 0.55rem 0 0;
  max-width: 65ch;
  color: var(--muted);
}

.content-grid > article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-alt) 45%, var(--surface));
}

.content-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.clean-list {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.toast-host {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(22, 40, 58, 0.12);
  color: var(--text);
  padding: 0.68rem 0.84rem;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.success {
  border-color: #c8e9d9;
  background: #f1fcf6;
}

.toast.error {
  border-color: #f2c2c2;
  background: #fff4f4;
}

.toast.info {
  border-color: var(--border);
  background: var(--surface);
}

.theme-toggle {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.site-footer strong {
  font-size: 1.02rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0.48rem 0 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.theme-icon.moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a7 7 0 1 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] .theme-icon.moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f4f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a7 7 0 1 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

.theme-icon.sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] .theme-icon.sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f4f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.toast.hide {
  opacity: 0;
  transform: translateY(6px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 850px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
  }

  .feature-grid,
  .content-grid,
  .home-band-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
    top: 0.35rem;
  }

  .actions {
    justify-content: center;
  }

  .header-search.is-open .header-search-form {
    width: min(58vw, 230px);
  }

  .catalog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .leanpay-strip .container {
    justify-content: flex-start;
    gap: 0.45rem 0.9rem;
    padding: 0.45rem 0;
  }

  .admin-filters {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.72rem;
    padding: 0.72rem;
    flex-direction: column;
  }

  #productSearchInput {
    min-width: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid > div:first-child,
  .footer-grid > small {
    justify-self: center;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    padding: 0.44rem 0.82rem;
  }

  .footer-bottom {
    padding-bottom: 0.9rem;
  }

  .content-grid > article {
    padding: 0.9rem;
  }

  .hero {
    padding: 1.45rem;
  }

  .home-page .home-hero {
    padding: 1.7rem;
    border-radius: 18px;
  }

  .home-kicker {
    font-size: 0.72rem;
  }

  .home-block {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
  }

  .home-block:last-child {
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }

  .home-strip-grid {
    grid-template-columns: 1fr;
  }

  .home-metric-grid {
    grid-template-columns: 1fr;
  }

  .about-page .content-grid > article,
  .contact-page .content-grid > article {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
  }

  .about-page .content-grid > article:last-child,
  .contact-page .content-grid > article:last-child {
    padding-bottom: 0.8rem;
  }

  .contact-page .stack {
    padding: 0.75rem;
  }

  .admin-page #adminArea {
    grid-template-columns: 1fr;
  }

  .admin-auth-shell {
    grid-template-columns: 1fr;
  }

  .admin-product-form {
    grid-template-columns: 1fr;
  }

  .admin-bulk-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Home Page Mega Pass ===== */
.home-page .home-main {
  gap: 1.35rem;
  padding-bottom: 3.3rem;
}

.home-page .hp-section {
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-alt));
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.home-page .home-hero {
  padding: 2.2rem;
}

.home-page .home-hero-copy {
  gap: 0.35rem;
}

.home-page .home-hero-copy .actions {
  margin-top: 0.35rem;
}

.home-page .home-hero-side {
  min-height: 100%;
}

.home-page .hero-logo-box {
  min-height: 240px;
}

.hp-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.hp-pill {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 90%, var(--primary));
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface));
}

.hp-head {
  display: grid;
  gap: 0.28rem;
}

.hp-eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  color: var(--primary);
  font-weight: 800;
}

.hp-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.hp-showcase-copy h2 {
  margin: 0.1rem 0 0;
}

.hp-showcase-copy p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.hp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.hp-steps li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: color-mix(in srgb, var(--surface-alt) 70%, var(--surface));
  display: grid;
  gap: 0.22rem;
}

.hp-steps li strong {
  font-size: 0.96rem;
}

.hp-steps li span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hp-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hp-highlight-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 65%, var(--surface)), var(--surface));
}

.hp-stat {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hp-highlight-grid h3 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.03rem;
}

.hp-highlight-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hp-faq .hp-head {
  margin-bottom: 0.75rem;
}

.hp-faq-grid {
  display: grid;
  gap: 0.6rem;
}

.hp-faq-grid details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface));
}

.hp-faq-grid summary {
  cursor: pointer;
  font-weight: 700;
}

.hp-faq-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

@media (max-width: 1150px) {
  .hp-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-showcase,
  .hp-highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .home-page .home-main {
    gap: 0.95rem;
  }

  .home-page .hp-section {
    padding: 0.9rem;
    border-radius: 14px;
  }

  .hp-trust-strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hp-pill {
    text-align: left;
    font-size: 0.8rem;
  }
}

/* ===== Visual Refresh v2: header/footer/home cleanup ===== */
.site-header.site-header-main {
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  background: color-mix(in srgb, var(--header-bg) 90%, var(--surface));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.site-header .nav-wrap {
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
}

.site-nav {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 0.8rem;
  align-items: center;
}

.site-nav a {
  border-radius: 10px;
  padding: 0.44rem 0.7rem;
}

.site-nav a.active {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  box-shadow: none;
}

.site-header .actions {
  gap: 0.5rem;
}

.nav-search {
  margin-left: 0.2rem;
}

.nav-search .header-search-toggle {
  width: 34px;
  height: 34px;
}

.nav-search.is-open .header-search-form {
  width: min(230px, 24vw);
}

@media (min-width: 981px) {
  .nav-search .header-search-form {
    width: min(240px, 22vw);
    opacity: 1;
  }

  .nav-search .header-search-input {
    padding-left: 0;
  }
}

.theme-toggle {
  min-width: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  gap: 0;
}

.theme-toggle .theme-icon {
  width: 17px;
  height: 17px;
  background-size: 17px 17px;
}

.home-main {
  gap: 1.55rem;
}

.home-page .home-hero {
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  border-radius: 22px;
  padding: 2.7rem;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--primary) 13%, transparent) 0%, transparent 42%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface-alt) 72%, var(--surface)), var(--surface));
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
}

.home-band {
  border-top: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  padding: 1.2rem 0 1.25rem;
}

.home-band-grid {
  gap: 1rem;
  margin-top: 1rem;
}

.home-block {
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  border-radius: 16px;
  padding: 1.05rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 74%, var(--surface)), var(--surface));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.home-strip {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-alt) 70%, var(--surface)));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--surface-alt)), var(--surface));
}

.footer-grid {
  grid-template-columns: 1.15fr auto auto;
  align-items: start;
  gap: 1.15rem;
  padding-top: 0.7rem;
}

.footer-grid nav {
  justify-content: center;
  gap: 1rem;
}

.footer-grid > small {
  margin-top: 0.25rem;
  color: var(--muted);
}

@media (max-width: 1150px) {
  .site-header .nav-wrap {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: center;
  }

  .site-nav,
  .footer-grid nav {
    justify-content: center;
  }

  .nav-search {
    margin-left: 0;
  }

  .site-header .actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 850px) {
  .home-page .home-hero {
    padding: 1.55rem;
  }

  .home-band-grid {
    gap: 0.72rem;
  }

  .home-block {
    padding: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .catalog-action-buttons {
    width: 100%;
  }

  .catalog-action-buttons .btn-secondary {
    flex: 1 1 100%;
  }

  .catalog-page .toolbar,
  .catalog-page .catalog-actions {
    border-radius: 10px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-search.is-open .header-search-form {
    width: min(58vw, 210px);
  }

  .footer-grid > div:first-child,
  .footer-grid > small {
    justify-self: center;
  }
}

/* ===== Final premium balance ===== */
.home-page .home-hero h1 {
  font-size: clamp(1.95rem, 3.85vw, 3rem);
  line-height: 1.05;
}

.home-page .home-hero-copy > p:not(.home-kicker) {
  max-width: 54ch;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

.home-page .home-hero .actions {
  margin-top: 0.2rem;
  justify-content: flex-start;
  gap: 0.55rem;
}

.site-nav a {
  font-weight: 600;
  letter-spacing: 0.005em;
}

.site-header .actions .theme-toggle {
  width: 34px;
  height: 34px;
}

.footer-grid > div:first-child strong {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.footer-grid > div:first-child p {
  margin-top: 0.34rem;
  line-height: 1.48;
}

.footer-bottom {
  padding-top: 0.62rem;
  padding-bottom: 0.72rem;
}

@media (max-width: 850px) {
  .home-page .home-hero .actions {
    justify-content: center;
  }
}

/* ===== Pass 2: Large-scale visual upgrade ===== */

/* Header system */
.site-header.site-header-main {
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-header .brand-title strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a.active {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.nav-search {
  border-radius: 999px;
  overflow: hidden;
}

.nav-search .header-search-input {
  font-size: 0.88rem;
}

/* Home premium structure */
.home-main {
  gap: 1.7rem;
}

.home-page .home-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
}

.home-page .home-hero-copy {
  display: grid;
  gap: 0.55rem;
}

.home-kicker {
  opacity: 0.88;
}

.home-page .home-hero-copy .hero-tags {
  margin-top: 0.25rem;
}

.home-page .home-hero-copy .actions {
  margin-top: 0.25rem;
}

.home-band-head {
  display: grid;
  gap: 0.25rem;
}

.home-band-head p {
  max-width: 74ch;
}

.home-block {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-block:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.home-strip {
  padding: 1.25rem 1.3rem;
}

.home-strip .actions .btn-primary,
.home-strip .actions .btn-secondary {
  min-height: 38px;
}

/* Catalog system */
.catalog-main {
  gap: 1.15rem;
}

.catalog-page .catalog-head {
  display: grid;
  gap: 0.35rem;
}

.catalog-page .catalog-breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.catalog-page .catalog-title {
  line-height: 1.04;
}

.catalog-meta span {
  font-weight: 600;
}

.catalog-page .toolbar {
  display: grid;
  align-items: center;
}

.catalog-page .toolbar input,
.catalog-page .toolbar select {
  min-height: 40px;
}

.catalog-action-buttons .btn-secondary {
  min-height: 36px;
}

.catalog-page .product-grid {
  align-items: stretch;
}

.catalog-page .card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
}

.catalog-page .card-image {
  aspect-ratio: 4 / 2.8;
}

.catalog-page .card .card-description {
  min-height: 2.6em;
}

/* About & contact polish */
.about-main,
.contact-main {
  gap: 1.15rem;
}

.about-page .page-hero,
.contact-page .page-hero {
  padding-bottom: 0.95rem;
}

.about-page .content-grid > article,
.contact-page .content-grid > article {
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.contact-page .stack .btn-primary {
  min-width: 150px;
}

/* Admin polish */
.admin-page main.container {
  gap: 1rem;
}

.admin-header .brand-title h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.admin-auth-brand h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.admin-product-form {
  gap: 0.9rem;
}

.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select {
  min-height: 42px;
}

.admin-product-form textarea {
  min-height: 120px;
}

.admin-bulk-actions .btn-primary,
.admin-bulk-actions .btn-secondary,
.admin-bulk-actions .btn-danger {
  min-height: 36px;
}

.admin-products {
  gap: 1.05rem;
}

/* Footer premium consistency */
.site-footer {
  padding-top: 1.12rem;
}

.footer-grid {
  padding-bottom: 0.2rem;
}

.footer-grid nav a {
  opacity: 0.9;
}

.footer-grid nav a:hover {
  opacity: 1;
}

.footer-bottom {
  font-size: 0.84rem;
}

@media (max-width: 1150px) {
  .home-page .home-hero {
    min-height: auto;
  }

  .catalog-page .card {
    grid-template-rows: auto auto auto auto auto auto;
  }
}

@media (max-width: 850px) {
  .home-main,
  .catalog-main,
  .about-main,
  .contact-main {
    gap: 1rem;
  }

  .home-page .home-hero {
    min-height: auto;
    padding: 1.5rem;
  }

  .home-strip {
    padding: 0.95rem;
  }

  .catalog-page .catalog-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .catalog-meta span {
    font-size: 0.74rem;
  }

  .catalog-page .toolbar input,
  .catalog-page .toolbar select {
    min-height: 38px;
  }

  .admin-auth-panel {
    padding: 1rem;
  }

  .admin-auth-brand {
    padding: 0.9rem;
  }

  .footer-grid nav {
    justify-content: center;
  }
}

/* ===== Home minimalist override (remove boxy look) ===== */
.home-page .hp-section {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 10%, var(--border));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 1.25rem 0;
}

.home-page .hp-pill {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  color: var(--muted);
  padding: 0.32rem 0.68rem;
  font-size: 0.78rem;
}

.home-page .home-band {
  border: 0;
  padding: 1.05rem 0 1.15rem;
}

.home-page .home-block {
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 1rem 0.4rem;
}

.home-page .home-block:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-page .hp-showcase .hp-steps li {
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.home-page .hp-highlight-grid article {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 0.15rem 0.3rem;
}

.home-page .hp-faq-grid details {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0.1rem 0.65rem;
}

.home-page .home-strip {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 850px) {
  .home-page .hp-section {
    padding: 0.9rem 0;
  }

  .home-page .home-block {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 0.72rem 0 0.2rem;
  }
}

/* ===== Tight footer/about-contact spacing fix ===== */
.about-page main,
.contact-page main {
  padding-top: 1.2rem !important;
  padding-bottom: 1rem !important;
}

.site-footer {
  margin-top: 0.35rem !important;
  padding-top: 0.55rem !important;
}

.site-footer .footer-grid {
  align-items: center !important;
  gap: 0.75rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer .footer-grid > small {
  margin-top: 0 !important;
}

.site-footer p {
  margin-top: 0.2rem !important;
  margin-bottom: 0 !important;
}

.site-footer .footer-bottom {
  margin-top: 0.45rem !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.55rem !important;
}

@media (max-width: 850px) {
  .about-page main,
  .contact-page main {
    padding-bottom: 0.75rem !important;
  }

  .site-footer .footer-grid {
    gap: 0.5rem !important;
  }
}

/* ===== Contact page final redesign ===== */
.contact-page main {
  padding-top: 1.1rem !important;
}

.contact-page .page-hero {
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.2rem 0 0.9rem !important;
  background: transparent !important;
  box-shadow: none !important;
}

.contact-page .page-hero h1 {
  font-size: clamp(2rem, 4.1vw, 2.9rem);
  margin-bottom: 0.15rem;
}

.contact-page .content-grid.page-shell {
  border: 0 !important;
  padding: 0.85rem 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 0.9rem;
}

.contact-page .content-grid > article {
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border)) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-alt)) !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.07) !important;
  padding: 1rem !important;
}

.contact-page .content-grid > article h2 {
  margin: 0 0 0.8rem !important;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.contact-page .content-grid > article p {
  margin: 0.38rem 0 0 !important;
  line-height: 1.5;
}

.contact-page .content-grid > article p strong {
  min-width: 78px !important;
  color: var(--text);
}

.contact-page .stack {
  margin-top: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.contact-page .stack input,
.contact-page .stack textarea {
  background: color-mix(in srgb, var(--surface-alt) 65%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--primary) 16%, var(--border)) !important;
}

.contact-page .stack textarea {
  min-height: 120px;
}

.contact-page #contactSubmitBtn {
  width: auto;
  min-width: 170px;
  justify-self: start;
  margin-top: 0.2rem;
}

.contact-page .contact-form-status {
  margin-top: 0.05rem;
}

@media (max-width: 850px) {
  .contact-page .content-grid > article {
    padding: 0.85rem !important;
    border-radius: 12px !important;
  }

  .contact-page #contactSubmitBtn {
    width: 100%;
    justify-self: stretch;
  }
}

/* ===== HARD RESET: clean unified UI ===== */
body {
  background-image: none !important;
}

.site-header.site-header-main {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.site-header .nav-wrap {
  gap: 0.85rem !important;
}

.site-nav {
  gap: 0.45rem !important;
}

.site-nav a,
.site-nav a.active {
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.site-nav a.active {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.site-nav a::after {
  display: none !important;
}

.theme-toggle {
  border: 1px solid var(--border) !important;
  background: var(--surface-alt) !important;
}

.header-search,
.nav-search {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.home-page .home-main,
.catalog-main,
.about-main,
.contact-main {
  gap: 0.9rem !important;
}

.home-page .home-hero,
.home-page .hp-section,
.catalog-page .toolbar,
.catalog-page .catalog-actions,
.catalog-page .card,
.about-page .content-grid > article,
.contact-page .content-grid > article,
.contact-page .stack,
.page-shell,
.panel {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.home-page .home-hero {
  padding: 1.35rem !important;
}

.home-page .hp-section {
  padding: 1rem !important;
}

.home-page .home-block,
.home-page .hp-highlight-grid article,
.home-page .hp-faq-grid details {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0.75rem !important;
  background: var(--surface-alt) !important;
}

.catalog-page .catalog-head {
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 0.55rem !important;
}

.catalog-page .toolbar {
  padding: 0.55rem !important;
}

.catalog-page .catalog-actions {
  padding: 0.55rem !important;
}

.catalog-page .toolbar input,
.catalog-page .toolbar select,
.contact-page .stack input,
.contact-page .stack textarea,
.stack input,
.stack textarea,
.stack select {
  background: var(--surface-alt) !important;
  border: 1px solid var(--border) !important;
}

.site-footer {
  margin-top: 0.5rem !important;
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  padding: 0.7rem 0 0 !important;
}

.site-footer .footer-grid {
  gap: 0.6rem !important;
  align-items: center !important;
}

.site-footer .footer-bottom {
  margin-top: 0.45rem !important;
  padding: 0.45rem 0 0.55rem !important;
}

@media (max-width: 850px) {
  .site-header .nav-wrap {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}

/* ===== Admin login page cleanup ===== */
.admin-login-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 72%, var(--bg)), var(--bg));
}

.admin-login-page .admin-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.admin-login-page main.container {
  width: min(980px, 92vw) !important;
  padding-top: 1.2rem !important;
  padding-bottom: 1.8rem !important;
}

.admin-login-page .admin-auth-panel {
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border)) !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1) !important;
  padding: 1rem !important;
}

.admin-login-page .admin-auth-shell {
  grid-template-columns: 1.05fr 1.2fr !important;
  gap: 0.8rem !important;
}

.admin-login-page .admin-auth-brand {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--surface-alt) 70%, var(--surface)) !important;
  padding: 0.9rem !important;
}

.admin-login-page .admin-auth-brand h2 {
  margin: 0 0 0.35rem !important;
  font-size: 1.55rem !important;
}

.admin-login-page .admin-auth-brand p {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.admin-login-page .admin-login-form {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 0.9rem !important;
  background: var(--surface) !important;
}

.admin-login-page .admin-login-form h3 {
  margin: 0 !important;
  font-size: 1.22rem !important;
}

.admin-login-page .admin-login-form .muted {
  margin-top: 0.25rem !important;
  margin-bottom: 0.65rem !important;
}

.admin-login-page .admin-login-form input {
  min-height: 42px !important;
}

.admin-login-page .password-input-wrap {
  grid-template-columns: 1fr auto !important;
  gap: 0.45rem !important;
}

.admin-login-page #togglePasswordBtn {
  min-width: 84px !important;
  min-height: 42px !important;
}

.admin-login-page .admin-login-form .btn-primary {
  min-width: 140px !important;
  min-height: 42px !important;
}

.admin-login-page #authStatus {
  margin-top: 0.55rem !important;
}

.admin-login-page .admin-auth-footer {
  margin-top: 0.5rem !important;
  padding-top: 0.45rem !important;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
}

@media (max-width: 850px) {
  .admin-login-page .admin-auth-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-login-page main.container {
    padding-top: 0.8rem !important;
  }
}

/* ===== Zaho-style clean override ===== */
:root {
  --radius-clean: 10px;
}

body {
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.site-header.site-header-main {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.site-header .nav-wrap {
  min-height: 48px !important;
}

.brand-title strong {
  font-weight: 800 !important;
  font-size: 0.98rem !important;
}

.site-nav a {
  padding: 0.34rem 0.58rem !important;
  font-size: 0.86rem !important;
  border-radius: 6px !important;
}

.site-nav a.active {
  background: transparent !important;
  color: var(--primary) !important;
}

.home-page main.container {
  width: min(1120px, 92vw) !important;
}

.home-page .home-main {
  gap: 0.7rem !important;
  padding-top: 0.7rem !important;
}

.home-page .home-hero {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-clean) !important;
  background: var(--surface) !important;
  padding: 1.15rem !important;
}

.home-page .hero h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.02 !important;
}

.home-page .hero p {
  font-size: 1.02rem !important;
  color: var(--muted) !important;
}

.home-page .hero-tags span {
  border-radius: 999px !important;
  padding: 0.2rem 0.52rem !important;
  font-size: 0.73rem !important;
  background: #f5f6f8 !important;
  border: 1px solid #ebeef2 !important;
}

.home-page .hero-logo-box {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-clean) !important;
  background: #f7f8fa !important;
  padding: 0.7rem !important;
}

.home-page .hp-trust-strip,
.home-page .home-band,
.home-page .hp-showcase,
.home-page .hp-highlight,
.home-page .home-strip,
.home-page .hp-faq {
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.85rem 0 !important;
}

.home-page .hp-pill {
  border: 1px solid var(--border) !important;
  background: #fafbfc !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
}

.home-page .home-block,
.home-page .hp-highlight-grid article,
.home-page .hp-faq-grid details {
  border: 1px solid #edf0f3 !important;
  border-radius: 8px !important;
  background: #fafbfc !important;
  box-shadow: none !important;
  padding: 0.65rem !important;
}

.site-footer {
  margin-top: 0.25rem !important;
  border-top: 1px solid var(--border) !important;
  background: var(--surface) !important;
  padding-top: 0.5rem !important;
}

.site-footer .footer-grid {
  grid-template-columns: 1fr auto auto !important;
  gap: 0.65rem !important;
  align-items: start !important;
}

.site-footer .footer-grid p {
  margin-top: 0.2rem !important;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
}

.site-footer .footer-bottom {
  margin-top: 0.35rem !important;
  padding: 0.35rem 0 0.45rem !important;
  font-size: 0.78rem !important;
}

@media (max-width: 850px) {
  .home-page .home-hero {
    padding: 0.9rem !important;
  }

  .home-page .hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem) !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}

/* ===== Home hard override (non-boxy, final) ===== */
.home-page .home-hero {
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border)) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 1.2rem 0 1.35rem !important;
}

.home-page .hero-logo-box {
  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: auto !important;
  padding: 0.2rem 0 0.2rem 1.15rem !important;
}

.home-page .hero-logo-box img {
  width: min(100%, 280px) !important;
  filter: none !important;
}

.home-page .hp-trust-strip {
  gap: 0.5rem !important;
}

.home-page .hp-pill {
  border-color: var(--border) !important;
  background: transparent !important;
}

.home-page .home-band,
.home-page .hp-showcase,
.home-page .hp-highlight,
.home-page .hp-faq,
.home-page .home-strip {
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-page .home-block,
.home-page .hp-highlight-grid article,
.home-page .hp-faq-grid details {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 850px) {
  .home-page .home-hero {
    padding: 0.95rem 0 1.1rem !important;
  }

  .home-page .hero-logo-box {
    border-left: 0 !important;
    border-top: 1px solid var(--border) !important;
    padding: 0.7rem 0 0 !important;
  }
}
