/* ============================================================
   catalog.css
   Scope: NOE Formliners product catalog
   Structure:
     1. Design tokens (CSS custom properties)
     2. Reset & base
     3. Navigation  ← matches index.css exactly
     4. Mobile menu drawer  ← matches index.css exactly
     5. Hamburger button  ← matches index.css exactly
     6. Hero bar
     7. Layout shell
     8. Sidebar & filters
     9. Toolbar (search + sort)
    10. Product grid & cards
    11. Modal
    12. Pagination
    13. Utilities & animations
    14. Responsive
   ============================================================ */


/* ── 1. Design tokens ─────────────────────────────────────── */
:root {
  /* Brand — shared with index.css */
  --green-bright:  #b0fd30;
  --green-mid:     #98d92f;
  --green-dark:    #71a220;
  --dark-bg:       #272727;
  --white:         #ffffff;

  /* Catalog-specific neutrals — dark theme matching index services section */
  --color-bg:          #272727;
  --color-surface:     #333333;
  --color-border:      rgba(255,255,255,0.10);
  --color-border-dark: rgba(255,255,255,0.22);

  /* Catalog-specific text */
  --color-text-primary:   #ffffff;
  --color-text-secondary: rgba(232,229,220,0.75);
  --color-text-muted:     rgba(232,229,220,0.40);

  /* Catalog accent */
  --color-accent:      #b0fd30;
  --color-accent-dark: #98d92f;

  /* Typography */
  --font-base:    'Inter', sans-serif;          /* matches index */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Layout */
  --nav-height:    90px;   /* matches index */
  --sidebar-width: 260px;
  --content-max:   1440px;
  --page-padding:  40px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med:  240ms;
}


/* ── 2. Reset & base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

button, select, input { font-family: inherit; font-size: inherit; }


/* ── 3. Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 160;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.52);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 8, 0.97);
}

.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { height: 72px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links li { display: flex; align-items: center; }
.nav-links li + li::before {
  content: "";
  display: block; width: 1px; height: 44px;
  background: rgba(255,255,255,0.45);
  margin: 0 32px;
}
.nav-links a {
  font-family: var(--font-base);
  font-size: 22px; font-weight: 400;
  color: #ffffff;
  text-decoration: none; white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.nav-link--active { color: var(--green-bright); }

/* Dropdown — matches shared.css .nav-drop */
.nav-drop { position: relative; }
.nav-drop__menu {
  display: none; position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  min-width: 210px;
}
.nav-drop__menu-inner {
  background: #1e1e1a;
  border: 1px solid rgba(176,253,48,0.25);
  border-radius: 6px; padding: 6px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.nav-drop:hover .nav-drop__menu { display: block; }
.nav-drop__menu a {
  display: block; padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: rgba(232,229,220,0.50); text-decoration: none;
  text-transform: none; letter-spacing: 0;
  transition: color 0.15s, background 0.15s;
}
.nav-drop__menu a:hover { color: var(--green-bright); background: rgba(176,253,48,0.08); }


/* ── 4. Mobile menu drawer (matches shared.css) ────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(8,8,6,0.97);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu ul li:first-child { border-top: 1px solid rgba(255,255,255,0.12); }
.mobile-menu ul a {
  font-family: var(--font-base);
  font-size: 28px; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu ul a:active { color: var(--green-bright); }


/* ── 5. Hamburger button (matches shared.css) ──────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 6. Hero bar ──────────────────────────────────────────── */
.hero-bar {
  background: var(--color-surface);
  border-bottom: 2px solid rgba(176,253,48,0.20);
  margin-top: var(--nav-height); /* push below fixed nav */
}

.hero-bar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--page-padding) 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-bar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.hero-bar__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-bar__breadcrumb a:hover { color: var(--green-bright); }

.hero-bar__sep { color: var(--green-bright); opacity: 0.55; }

.hero-bar__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.hero-bar__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--green-bright);
}

.hero-bar__count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.hero-bar__subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}


/* ── 7. Layout shell ──────────────────────────────────────── */
.catalog-layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px var(--page-padding) 80px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 40px;
  align-items: start;
}


/* ── 8. Sidebar & filters ─────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar__section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 20px 24px;
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar__heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.sidebar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 2px;
  line-height: 0;
  transition: transform 0.25s var(--ease-out), color 0.15s;
}
.sidebar__toggle:hover { color: var(--color-accent); }
.sidebar__toggle[aria-expanded="false"] { transform: rotate(-90deg); }

.sidebar__list.collapsed,
.sidebar__divider.collapsed { display: none; }

.sidebar__divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 14px;
}

.sidebar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--dur-fast);
  user-select: none;
}

.sidebar__item:hover { background: var(--color-bg); }

/* Custom checkbox */
.sidebar__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border-dark);
  border-radius: 3px;
  background: var(--color-surface);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.sidebar__checkbox:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.sidebar__checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.sidebar__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.3;
}

.sidebar__item--all .sidebar__label {
  font-weight: 600;
  color: var(--color-text-primary);
}

.sidebar__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 1px 6px;
  border-radius: 10px;
}


/* ── 9. Toolbar ───────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.toolbar__search {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.toolbar__search svg {
  position: absolute;
  left: 13px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.toolbar__search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast);
}

.toolbar__search input:focus      { border-color: var(--color-accent); }
.toolbar__search input::placeholder { color: var(--color-text-muted); }

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.toolbar__sort-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

.toolbar__sort select {
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b0fd30' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--dur-fast);
}

.toolbar__sort select:focus { border-color: var(--color-accent); }

.toolbar__results {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Filter chips ─────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(176,253,48,0.10);
  border: 1px solid rgba(176,253,48,0.28);
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  animation: chipIn 0.15s ease both;
  transition: background 0.15s, border-color 0.15s;
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.filter-chip:hover {
  background: rgba(176,253,48,0.18);
  border-color: var(--green-bright);
}

.filter-chip__x {
  font-size: 15px;
  line-height: 1;
  opacity: 0.65;
}

.filter-chip--clear {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: var(--color-text-secondary);
}

.filter-chip--clear:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: var(--color-text-primary);
}

/* ── 10. Product grid & cards ─────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-fast);
  animation: cardIn var(--dur-med) var(--ease-out) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.40);
  border-color: rgba(176,253,48,0.35);
}

.card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

.card:hover .card__image-wrap img { transform: scale(1.04); }

.card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1a;
  color: rgba(255,255,255,0.20);
}

/* 3D-only variant — dark tile so the badge pops */
.card__image-placeholder--3d {
  background: #1a1a1a;
  position: relative;
}

/* 3D badge — shown when a Sketchfab link exists */
.card__3d-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
}

/* Centred variant used inside the dark 3D-only placeholder tile */
.card__3d-badge--center {
  position: static;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
}

.card__body { padding: 14px 16px 16px; }

.card__part {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card__badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(176,253,48,0.12);
  color: var(--green-bright);
  letter-spacing: 0.02em;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__specs-preview {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: right;
  white-space: nowrap;
}

.card__more-sizes {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.10);
  color: rgba(232,229,220,0.60);
  margin-left: 4px;
  vertical-align: middle;
}

/* Empty state */
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
  color: var(--color-text-secondary);
}

.grid-empty__icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.grid-empty__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid rgba(176,253,48,0.35);
  border-radius: 4px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.grid-empty__reset:hover {
  background: rgba(176,253,48,0.08);
  border-color: var(--green-bright);
}

/* Card hover CTA */
.card__cta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--green-bright);
  text-align: right;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}

.card:hover .card__cta {
  opacity: 1;
  transform: translateY(0);
}


/* ── 11. Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay--open { display: flex; }

.modal {
  background: var(--color-surface);
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: modalIn var(--dur-med) var(--ease-out) both;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.modal__close:hover {
  background: rgba(255,255,255,0.10);
  color: var(--green-bright);
  border-color: rgba(255,255,255,0.25);
}

/* Modal left panel */
.modal__image-wrap {
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  background: var(--color-bg);
  min-height: 300px;
  display: flex;
  align-items: stretch;
}

.modal__image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__image-wrap > iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.modal__image-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #b5b2ae;
  font-size: 13px;
}

/* Modal right panel */
.modal__body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__part-no {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-top: -4px;
}

.modal__badge {
  display: inline-block;
  background: rgba(176,253,48,0.12);
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.modal__specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.modal__specs tr          { border-bottom: 1px solid var(--color-border); }
.modal__specs tr:last-child { border-bottom: none; }

.modal__specs td {
  padding: 9px 0;
  font-size: 13.5px;
  vertical-align: middle;
}

.modal__specs td:first-child {
  color: var(--color-text-secondary);
  width: 48%;
  padding-right: 12px;
}

.modal__specs td:last-child {
  color: var(--color-text-primary);
  font-weight: 500;
}

.modal__specs tr:first-child td:first-child { color: var(--green-bright); }

.modal__size-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
}

.modal__enquire {
  display: block;
  margin-top: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(176,253,48,0.35);
  border-radius: 6px;
  color: var(--green-bright);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.modal__enquire:hover {
  background: rgba(176,253,48,0.08);
  border-color: var(--green-bright);
}


/* ── 12. Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--dur-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
}

.pagination__btn--active {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #1a1a18;
  font-weight: 600;
}

.pagination__btn--active:hover {
  background: var(--green-bright) !important;
  color: #1a1a18 !important;
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination__ellipsis {
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 0 4px;
}


/* ── 13. Utilities & animations ───────────────────────────── */
.card:nth-child(1)   { animation-delay: 0ms; }
.card:nth-child(2)   { animation-delay: 30ms; }
.card:nth-child(3)   { animation-delay: 60ms; }
.card:nth-child(4)   { animation-delay: 90ms; }
.card:nth-child(5)   { animation-delay: 120ms; }
.card:nth-child(6)   { animation-delay: 150ms; }
.card:nth-child(7)   { animation-delay: 180ms; }
.card:nth-child(8)   { animation-delay: 210ms; }
.card:nth-child(n+9) { animation-delay: 240ms; }

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


/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 4px;
  border: 1px solid var(--color-border-dark);
  background: var(--dark-bg);
  color: #9a9691;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  transform: translateY(-2px);
}


/* ── 14. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-links a { font-size: 18px; }
  .nav-links li + li::before { margin: 0 20px; }
}

@media (max-width: 768px) {
  /* Nav — matches index.css mobile behaviour */
  .nav { padding: 0 20px; height: 70px; }
  .nav-logo img { height: 54px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Update nav-height for mobile */
  :root { --nav-height: 70px; }

  /* Catalog layout */
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .sidebar__list:not(.collapsed) { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar__toggle { display: flex; align-items: center; }

  /* Hero bar */
  .hero-bar__title { font-size: 36px; }
  .hero-bar__subtitle { font-size: 12px; }

  /* Modal */
  .modal { grid-template-columns: 1fr; max-width: 420px; }
  .modal__image-wrap { border-radius: 12px 12px 0 0; min-height: 220px; }
}

@media (max-width: 480px) {
  :root { --page-padding: 16px; }
  .sidebar__list { grid-template-columns: 1fr; }
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  background: #3e3e3e;
  color: #fff;
  padding: 50px 60px 40px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
.site-footer .footer-col h4 {
  font-size: 20px; font-weight: 700; margin-bottom: 22px;
}
.site-footer .footer-col ul { list-style: none; }
.site-footer .footer-col ul li { margin-bottom: 14px; font-size: 16px; }
.site-footer .footer-col ul a {
  color: #fff; text-decoration: none; transition: color 0.2s;
}
.site-footer .footer-col ul a:hover { color: #b0fd30; }
.site-footer .footer-company h4 { font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.site-footer .footer-company a { color: #fff; text-decoration: none; transition: color 0.2s; }
.site-footer .footer-company a:hover { color: #b0fd30; text-decoration: underline; }
.site-footer .footer-contact { display: flex; flex-direction: column; gap: 14px; }
.site-footer .footer-contact-row { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; line-height: 1.6; }
.site-footer .footer-contact-label { font-weight: 700; color: #fff; min-width: 48px; padding-top: 1px; flex-shrink: 0; }
.site-footer .footer-address { font-style: normal; display: flex; flex-direction: column; gap: 2px; }
.site-footer .footer-address span { color: rgba(255,255,255,0.85); }
.site-footer .footer-address span:first-child { color: #fff; font-weight: 500; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 20px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
@media (max-width: 768px) {
  .site-footer { padding: 40px 20px 32px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .footer-col h4, .site-footer .footer-company h4 { font-size: 18px; }
  .site-footer .footer-contact-row { font-size: 15px; }
}