:root {
  --color-primary: #1e3a8a;
  --color-primary-dark: #172554;
  --color-accent: #fbbf24;
  --color-accent-dark: #d97706;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(15,23,42,.25); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-accent); color: #1f2937; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); background: #fff; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Always-on white frosted header so the logo text is readable over any hero */
[data-header] {
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.header-scrolled {
  background: rgba(255,255,255,1) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 8px 24px -16px rgba(15,23,42,.2);
}

/* Mobile nav: left-attached panel under the header (256px wide).
   Items live at the top; the white background then continues down to the
   bottom of the viewport via min-height. No scrollbars. */
@media (max-width: 767.98px) {
  [data-nav-menu] {
    min-height: calc(100vh - 4rem) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .25rem !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }
  [data-nav-menu] > a {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
}

.hero-gradient {
  background:
    linear-gradient(115deg, rgba(23,37,84,.92) 0%, rgba(30,58,138,.82) 55%, rgba(251,191,36,.55) 100%);
}

.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: .8rem;
  color: var(--color-accent-dark); font-weight: 700;
}

.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.25);
  border-color: #cbd5e1;
}

.product-card .product-img {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 1rem;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

.category-card {
  position: relative; overflow: hidden;
  border-radius: 1rem; min-height: 220px;
  display: flex; align-items: flex-end;
  background: #0f172a; color: #fff;
}
.category-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.category-card:hover .bg { transform: scale(1.07); }
.category-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.1) 0%, rgba(15,23,42,.85) 100%);
}
.category-card .content { position: relative; padding: 1.25rem 1.5rem; width: 100%; }

.brand-strip span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.25rem;
  color: #94a3b8;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.brand-strip span:hover { color: var(--color-primary); }

.filter-tab {
  padding: .55rem 1.1rem;
  border-radius: 9999px;
  font-weight: 600; font-size: .9rem;
  color: #475569;
  background: #f1f5f9;
  transition: all .2s ease;
  white-space: nowrap;
}
.filter-tab:hover { background: #e2e8f0; color: #0f172a; }
.filter-tab.active { background: var(--color-primary); color: #fff; }

.product-hidden { display: none !important; }

.input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: .65rem;
  background: #fff;
  font-family: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,58,138,.15); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
