/* =========================
   Variables
   ========================= */
:root {
  /* Brand palette */
  --color-background: #ffffff; /* bright white */
  --color-surface: #ffffff;    /* cards, inputs */
  --color-text: #0b0b0f;       /* near jet black for crisp contrast */
  --color-primary: #1461ff;    /* electric blue */
  --color-success: #22c55e;    /* vibrant green */
  --color-warning: #f59e0b;    /* energetic amber */
  --color-danger: #ff1f3d;     /* vivid red */
  --color-border: #e5e7eb;     /* neutral border */

  /* Neutral grays */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --jet-black: #0a0a0a;

  /* Typography */
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-loose: 1.8;

  /* Spacing scale (0–96px, 4px steps) */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-13: 52px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;
  --space-17: 68px;
  --space-18: 72px;
  --space-19: 76px;
  --space-20: 80px;
  --space-21: 84px;
  --space-22: 88px;
  --space-23: 92px;
  --space-24: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 8px rgba(16, 24, 40, 0.10), 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.16), 0 2px 6px rgba(16, 24, 40, 0.08);
  --shadow-xl: 0 24px 48px rgba(16, 24, 40, 0.20), 0 6px 12px rgba(16, 24, 40, 0.12);
  --shadow-glow: 0 8px 20px rgba(20, 97, 255, 0.35);

  /* Transitions & ease */
  --transition-fast: 120ms;
  --transition-base: 220ms;
  --transition-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-6);

  /* Focus ring */
  --ring-primary: 0 0 0 3px rgba(20, 97, 255, 0.35);
}

/* Dark theme (opt-in) */
:root[data-theme="dark"], [data-theme="dark"] {
  --color-background: #0a0a0a; /* jet black */
  --color-surface: #111317;
  --color-text: #f3f4f6;
  --color-border: #2a2d33;
  /* keep brand accents vivid in dark */
}

/* Respect system dark, unless explicit light theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-background: #0a0a0a;
    --color-surface: #111317;
    --color-text: #f3f4f6;
    --color-border: #2a2d33;
  }
}


/* =========================
   Reset / Normalize
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================
   Base
   ========================= */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #ffffff;
  background: rgba(20, 97, 255, 0.85);
}

/* Headings - bold, expressive, scalable */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); margin-top: var(--space-8); margin-bottom: var(--space-4); }
h2 { font-size: clamp(1.875rem, 1.2rem + 1.8vw, 2.5rem); margin-top: var(--space-7); margin-bottom: var(--space-4); }
h3 { font-size: clamp(1.5rem, 1.05rem + 1.2vw, 2rem);   margin-top: var(--space-6); margin-bottom: var(--space-3); }
h4 { font-size: 1.25rem;  margin-top: var(--space-5); margin-bottom: var(--space-3); }
h5 { font-size: 1.125rem; margin-top: var(--space-4); margin-bottom: var(--space-2); }
h6 { font-size: 1rem;     margin-top: var(--space-3); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
}

strong { font-weight: 700; }
small { font-size: 0.875em; }

/* Links - sleek, with subtle underline on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--transition-base) var(--ease-in-out), text-shadow var(--transition-base) var(--ease-in-out);
}

a:hover { text-decoration: underline; }

a:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
  border-radius: var(--radius-xs);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}


/* =========================
   Utilities
   ========================= */
.container {
  max-width: var(--container-max);
  padding-inline: var(--container-padding);
  margin-inline: auto;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-3); }
.gap-md { gap: var(--space-5); }
.gap-lg { gap: var(--space-8); }

.grid-center { place-items: center; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.hidden { display: none !important; }

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================
   Components
   ========================= */
/* Buttons */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: calc(var(--space-2) + 2px) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-base) var(--ease-in-out), background-color var(--transition-base) var(--ease-in-out), color var(--transition-base) var(--ease-in-out);
}

.btn:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary), var(--shadow-md);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(20, 97, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-danger.btn-outline {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea,
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition-base) var(--ease-in-out), box-shadow var(--transition-base) var(--ease-in-out), background-color var(--transition-base) var(--ease-in-out);
}

input::placeholder, textarea::placeholder { color: var(--gray-500); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--ring-primary);
}

input:disabled, select:disabled, textarea:disabled, .input:disabled {
  background-color: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* Card */
.card {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-header { margin-bottom: var(--space-4); }
.card-footer { margin-top: var(--space-4); }


/* =========================
   Accessibility / Focus
   ========================= */
:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
}

[role="button" i]:focus-visible,
[tabindex]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
}

/* Details/Summary focus treatment */
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
  border-radius: var(--radius-xs);
}

/* Media elements responsive by default */
iframe {
  max-width: 100%;
}

/* Smooth scrolling on anchor jumps for engaging feel */
:target {
  scroll-margin-top: var(--space-16);
}


/* =========================
   Header & Footer styles
   ========================= */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: color-mix(in oklab, var(--color-background) 82%, transparent);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.brand-link {
  font-weight: 900;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--color-text);
}
.primary-nav { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  flex-direction: column;
}
.nav-toggle:focus-visible { box-shadow: var(--ring-primary); }
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  margin: 4px 2px;
  border-radius: 2px;
}
.nav-list { display: flex; gap: var(--space-6); align-items: center; }
.nav-list a { color: var(--color-text); }
.nav-list a:hover { text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--color-danger); color: #fff; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 800;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--color-primary); color: #fff; border-radius: var(--radius-sm); z-index: 100;
}

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding-block: var(--space-10); background: color-mix(in oklab, var(--color-surface) 90%, transparent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.footer-title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.footer-nav ul li, .footer-legal ul li { margin-bottom: 8px; }
.footer-news-form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); }
.footer-bottom { margin-top: var(--space-8); border-top: 1px solid var(--color-border); padding-top: var(--space-6); color: var(--gray-600); }

/* Cookie banner */
.cookie-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { margin: var(--space-4); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; }
.cookie-actions { display: inline-flex; gap: var(--space-3); }
.cookie-link { color: var(--gray-700); }

/* Responsive (header/footer/cookie) */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
    display: none; flex-direction: column; gap: var(--space-3);
    min-width: 220px;
  }
  .primary-nav.open .nav-list { display: flex; }
  .cookie-inner {  grid-template-columns: 1fr!important;  }

}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}


