/* ===========================================================
   Variables
   =========================================================== */
:root {
  /* Color Palette - tuned to description (red, charcoal, gold, white, soft black) */
  --color-background: #0b0c10; /* soft black */
  --color-surface: #13151b; /* elevated surface */
  --color-surface-alt: #1b1e26;

  --color-text: #f5f5f7;
  --color-text-muted: #a1a5b0;
  --color-heading: #ffffff;

  --color-primary: #e1272a; /* energetic red for CTAs, discounts */
  --color-primary-soft: rgba(225, 39, 42, 0.15);
  --color-primary-hover: #ff3940;

  --color-success: #16a34a;
  --color-success-soft: rgba(22, 163, 74, 0.16);

  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.2);

  --color-danger: #dc2626;
  --color-danger-soft: rgba(220, 38, 38, 0.18);

  --color-gold: #f6c453; /* exclusivity accents */
  --color-gold-soft: rgba(246, 196, 83, 0.22);

  --color-border-subtle: #252835;
  --color-border-strong: #383c4a;

  /* Neutral grays for subtle structures */
  --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: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px - slightly elevated for readability */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii - slightly sharp for professional / premium feel */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadows - subtle depth for cards and CTAs */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft-glow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 34px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease;

  /* Layout */
  --container-max-width: 1200px;
  --container-gutter: var(--space-4);

  scroll-behavior: smooth;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

button {
  border: none;
  padding: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Remove default link styles baseline */
a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

/* Headings - bold, clear hierarchy, tuned for discount-focused layout */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 650;
  color: var(--color-heading);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 3vw, var(--font-size-5xl));
  letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 2.3vw, var(--font-size-4xl));
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-3);
  /* comfortable line length */
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-xs);
}

/* Links - confident but not noisy by default */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base),
              text-decoration-color var(--transition-base),
              opacity var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ===========================================================
   Accessibility utilities
   =========================================================== */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

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

/* ===========================================================
   Utilities
   =========================================================== */

/* Page container - center content with breathing room */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Flex utilities */
.flex {
  display: flex;
}

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

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-1);
}

.gap-sm {
  gap: var(--space-2);
}

.gap-md {
  gap: var(--space-3);
}

.gap-lg {
  gap: var(--space-4);
}

.gap-xl {
  gap: var(--space-6);
}

/* Grid utilities */
.grid {
  display: grid;
}

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

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

/* Simple spacing helpers */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: var(--space-2) !important; }
.mb-sm { margin-bottom: var(--space-2) !important; }
.mt-md { margin-top: var(--space-4) !important; }
.mb-md { margin-bottom: var(--space-4) !important; }
.mt-lg { margin-top: var(--space-6) !important; }
.mb-lg { margin-bottom: var(--space-6) !important; }

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

.text-muted {
  color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.badge--discount {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-color: rgba(225, 39, 42, 0.6);
}

.badge--exclusive {
  background: linear-gradient(135deg, #fdf4c5, #f6c453);
  color: #1c1305;
}

/* ===========================================================
   Components
   =========================================================== */

/* Buttons - bold CTAs with subtle premium feel */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-hover);
  --btn-text: #ffffff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background-color: var(--btn-bg);
  color: var(--btn-text)!important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.btn[disabled],
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.04);
  --btn-text: var(--color-text);
  --btn-border: var(--color-border-strong);
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--color-primary-soft);
  --btn-text: var(--color-primary);
  --btn-border: rgba(225, 39, 42, 0.4);
  box-shadow: none;
}

.btn--accent {
  --btn-bg: var(--color-gold);
  --btn-bg-hover: #ffdd7a;
  --btn-text: #1c1305;
}

/* Inputs - consistent, trustworthy form styling */
.input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: #05060a;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), 0 0 0 1px rgba(0, 0, 0, 0.7);
  background-color: #090b12;
}

.input[disabled],
select[disabled],
textarea[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Card - product / collection / promo base container */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.02), transparent 60%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft-glow);
  overflow: hidden;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
}

.card:hover {
  border-color: var(--color-primary-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
}

.card-footer {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Utility styling for price & discount elements (for aggregator context) */
.price {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price--current {
  font-size: var(--font-size-2xl);
  color: var(--color-gold);
}

.price--old {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price--discount {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary-hover);
}

/* Countdown / urgency container (structure only; animations project-specific) */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-danger-soft);
  color: #fee2e2;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown__unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
}

/* Smooth section separation for hierarchical layout */
.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section--alt {
  background: radial-gradient(circle at top, rgba(225, 39, 42, 0.12), transparent 55%),
              var(--color-background);
}

.section-header {
  margin-bottom: var(--space-5);
}

.section-header__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.section-header__title {
  font-size: clamp(var(--font-size-2xl), 2.4vw, var(--font-size-4xl));
}

.section-header__subtitle {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ===========================================================
   Misc structural helpers
   =========================================================== */

.hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-4) 0;
}

.tagline {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}


/* End of base.css */
