@font-face {
  font-family: poppins;
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
}

/* Variable for easy styling */
:root {
  /* ===== Font Family ===== */
  --ff-primary:
    "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ff-secondary: "Inter", system-ui, sans-serif;

  /* ===== Brand / Accent Colors ===== */
  --clr-primary: rgb(45, 25, 221);
  --clr-primary-hover: rgb(22, 17, 159);
  --clr-primary-soft: rgba(13, 29, 255, 0.12);
  --clr-primary-rgb: 61, 33, 219;

  /* Secondary accent */
  --clr-secondary: #00aa04;
  --clr-secondary-soft: rgba(0, 170, 4, 0.12);

  /* ===== Neutral / Surface Colors (Light Theme) ===== */
  --clr-bg: #ffffff;
  --clr-bg-elevated: #f8f9fa;
  --clr-bg-soft: #f1f3f5;
  --clr-surface: #ffffff;

  /* Text */
  --clr-text: #2f2e3d;
  --clr-text-muted: #6c757d;
  --clr-text-subtle: #959dad;
  --clr-heading: #1a1a2e;

  /* Borders & Dividers */
  --clr-border: rgba(0, 0, 0, 0.08);
  --clr-border-strong: rgba(0, 0, 0, 0.15);

  /* ===== Semantic Colors ===== */
  --clr-success: #28a745;
  --clr-warning: #ffc107;
  --clr-danger: #dc3545;
  --clr-info: #17a2b8;

  /* ===== Typography Scale ===== */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 4.5rem;

  /* Legacy aliases */
  --big-font: var(--fs-6xl);
  --h2-font: var(--fs-3xl);
  --p-font: var(--fs-md);
  --fs-100: var(--fs-base);
  --fs-200: var(--fs-lg);
  --fs-300: var(--fs-xl);
  --fs-400: var(--fs-2xl);
  --fs-500: var(--fs-3xl);
  --fs-600: var(--fs-4xl);
  --fs-700: var(--fs-5xl);
  --fs-800: var(--fs-6xl);
  --fs-900: 5rem;

  /* ===== Spacing Scale ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ===== Border Radius ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Legacy rounded aliases */
  --rounded-1: var(--radius-lg);
  --rounded-2: var(--radius-xl);
  --rounded-3: var(--radius-2xl);
  --rounded-4: 2rem;
  --rounded-5: 2.5rem;

  /* ===== Shadows ===== */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 4px 20px rgba(var(--clr-primary-rgb), 0.25);

  /* Legacy */
  --shadow-clr: var(--shadow-primary);

  /* ===== Transitions ===== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* ===== Layout / Container ===== */
  --container-max: 1280px;
  --header-height: 80px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

/* Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html {
  font-size: 14px;
}

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

html,
body {
  height: 100%;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-primary);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

a {
  text-decoration: none;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* Remove all animations for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

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

.sr-only-focusable:focus,
.sr-only-focusable:active {
  clip: auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  height: auto !important;
  margin: auto !important;
  overflow: visible !important;
  width: auto !important;
  white-space: normal !important;
}

/* Remove default scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* ======= Global helpers ====== */
.section-padding-inline {
  padding-inline: 1em;
}

@media screen and (min-width: 820px) {
  .section-padding-inline {
    padding-inline: 7% !important;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--clr-primary);
  color: #fff;
  font-size: var(--p-font);
  font-weight: 500;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.button:hover {
  background: var(--clr-primary-hover);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.button i {
  vertical-align: middle;
}

.center-text-container {
  margin-inline: auto;
}

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

.middle-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.middle-text h2 {
  font-size: var(--h2-font);
  line-height: 1.3;
  color: var(--clr-heading);
  margin-bottom: 0.75em;
}

.middle-text p {
  color: var(--clr-text-muted);
  max-width: 700px;
  margin-inline: auto;
  font-size: var(--fs-md);
}

/* ======= Header ======= */
.primary-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: transparent;
  transition: all 0.35s ease;
}

.primary-header.sticky {
  padding-block: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.primary-header .logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-heading);
  font-size: 1.35rem;
  font-weight: 700;
  transition: font-size 0.3s ease;
}

.primary-header.sticky .logo {
  font-size: 1.2rem;
}

.primary-header .logo i {
  color: var(--clr-primary);
  font-size: 1.45rem;
}

.primary-header nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-header nav .nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color 0.25s ease;
}

.primary-header nav .nav-links a:hover,
.primary-header nav .nav-links a.active {
  color: var(--clr-primary);
}

.primary-header nav .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-btn {
  display: none; /* hidden on mobile */
  padding: 0.6rem 1.35rem;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.header-btn:hover {
  background: var(--clr-primary-hover);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  color: var(--clr-heading);
  cursor: pointer;
}

/* Mobile Header */
@media screen and (max-width: 850px) {
  .menu-icon {
    display: block;
  }

  .primary-header nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  .primary-header nav .nav-links.mobile-open {
    max-height: 400px;
    padding: 1.5rem 1.5rem 2rem;
  }

  .primary-header nav .nav-links li {
    width: 100%;
  }

  .primary-header nav .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--clr-border);
  }

  .primary-header nav .nav-links a.active::after {
    display: none;
  }
}

@media screen and (min-width: 851px) {
  .header-btn {
    display: inline-flex;
  }
}

/* ======= Category Selector  ========= */
.category-selector {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.category-selector::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.category-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-soft);
}

.category-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 159, 13, 0.25);
}

/* Optional: make category bar stickier on larger screens */
@media screen and (min-width: 992px) {
  .category-selector {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    margin-bottom: 3rem;
  }
}

/* ======== Banner / Products  ======= */
.banner {
  width: 100%;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4em;
  background: var(--clr-bg);
}

.banner .banner-container {
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Section header */
.banner-header {
  text-align: center;
  margin-bottom: 3rem;
}

.banner-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.banner-header p {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Product Grid - Mobile first (1 column) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* Tablet: 2 columns */
@media screen and (min-width: 650px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* Desktop: 3 columns */
@media screen and (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--clr-border-strong);
  border-radius: var(--radius-xl);
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
}

.no-products code {
  background: var(--clr-bg-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
}

/* Product Card */
.product-card {
  background: var(--clr-bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card .card-image {
  background: #fff;
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.product-card .card-image img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.product-card:hover .card-image img {
  transform: scale(1.04);
}

.product-card .card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.6em;
}

.product-card .card-body p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25em;
  flex-grow: 1;
}

.product-card .card-body .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-primary);
  transition: gap var(--transition-fast);
}

.product-card .card-body .card-btn:hover {
  gap: 0.7em;
}

.product-card .card-body .card-btn i {
  font-size: 1rem;
}

/* ======== Footer ======= */
.site-footer {
  background: var(--clr-heading);
  color: #fff;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer-container {
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand .logo i {
  color: var(--clr-primary);
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-col ul a:hover {
  color: var(--clr-primary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Responsive */
@media screen and (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.4fr 1.6fr;
    align-items: start;
  }

  .footer-bottom {
    text-align: left;
  }
}
