@font-face {
  font-family: 'Fixture Condensed';
  src: url('../fonts/Fixture-CondensedMedium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Fixture Condensed';
  src: url('../fonts/Fixture-CondensedSemiBold.otf') format('opentype');
  font-weight: 600;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Light.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Regular_2.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Medium_2.otf') format('opentype');
  font-weight: 500;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Bold_2.otf') format('opentype');
  font-weight: 700;
}

:root {
  --color-black: #000000;
  --color-accent: #D6FE51;
  --color-bg: #FFFFFF;
  --color-soft: #F5F5F5;
  --color-soft-2: #FAFAFA;
  --color-border: #EAEAEA;
  --color-text-muted: #666666;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius-card: 18px;
  --radius-btn: 12px;
  --container-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Neue Montreal', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-black);
}

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

.container {
  width: min(var(--container-width), calc(100% - 32px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.print-only {
  display: none !important;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 0 18px;
}

.header-brand {
  display: contents;
}

.site-logo {
  width: 220px;
  height: auto;
  justify-self: start;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.header-copy {
  text-align: center;
  justify-self: center;
}

.header-copy h1 {
  margin: 0;
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0.15px;
}

.header-copy p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--color-text-muted);
}

.header-updated {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Hero */

.hero {
  padding: 42px 0 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 34px;
}

.hero-copy h2 {
  margin: 0;
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 62px;
  line-height: 0.95;
  max-width: 11ch;
}

.hero-copy p {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.hero-actions {
  margin-top: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.stat-card .label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card .value {
  margin: 0;
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.value-date {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-family: 'Neue Montreal', Arial, sans-serif !important;
}

.active-category-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-black);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

/* Primary buttons */

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--color-black);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-download-btn:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

/* Categories home */

.categories-home-section {
  padding: 4px 0 10px;
}

.categories-home-panel {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 26px 28px;
}

.categories-home-copy h2 {
  max-width: none;
  font-size: 54px;
}

.categories-home-copy p {
  max-width: 72ch;
}

.categories-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-chip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
  color: var(--color-black);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-chip-card:hover {
  transform: translateY(-2px);
  border-color: #d9d9d9;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.category-chip-name {
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: 0.2px;
}

.category-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-black);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.categories-home-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

/* Toolbar / filters */

.catalog-toolbar {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.toolbar-top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
}

.search-box input,
.filter-group select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: 'Neue Montreal', Arial, sans-serif;
  font-size: 14px;
}

.search-box input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #cfcfcf;
  box-shadow: 0 0 0 3px rgba(214, 254, 81, 0.22);
}

.filter-toggle,
.btn-secondary {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  color: var(--color-black);
  font-family: 'Neue Montreal', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.filter-toggle:hover,
.btn-secondary:hover {
  background: #fafafa;
  border-color: #d7d7d7;
  transform: translateY(-1px);
}

.filters-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.filter-stock-toggle {
  display: flex;
  align-items: end;
  justify-content: end;
}

.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  color: var(--color-black);
  white-space: nowrap;
}

.stock-toggle input {
  width: 16px;
  height: 16px;
}

.stock-toggle input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000000;
  border: 1px solid #000000;
  background: #ffffff;
  flex: 0 0 18px;
}

/* Results / chips */

.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fcfcfc;
}

.results-summary p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.btn-clear-filters {
  min-height: 40px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  color: #222;
}

.no-results {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.no-results p {
  margin: 0 0 14px;
  max-width: 60ch;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.product-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 255px;
  padding: 14px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f3f3f3 100%);
  border-bottom: 1px solid var(--color-border);
}

.product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-image-placeholder {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}

.product-code {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 29px;
  line-height: 0.96;
  letter-spacing: 0.15px;
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.product-name-link:hover {
  opacity: 0.78;
}

.product-price {
  margin: 2px 0 0;
  font-family: 'Fixture Condensed', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.15px;
  color: var(--color-black);
}

.product-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-badge-out {
  background: var(--color-accent);
  color: var(--color-black);
}

.product-badge-in {
  background: #f1f5f1;
  color: #1f6b2b;
  border: 1px solid #d7e8d9;
}

.product-stock {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #2e7d32;
}

.product-stock-low {
  color: #b45309;
}

.product-description {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #252525;
  min-height: 62px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-soft);
  font-size: 12px;
  color: #333;
}

.product-meta-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--color-black) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-meta a.product-category-link,
.product-meta .product-category-link {
  text-decoration: none;
  color: inherit;
}

body[data-is-category-page="true"] .product-meta-category {
  display: none !important;
}

.product-cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  background: var(--color-black);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.product-cta:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

.product-card:hover .product-cta {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.load-more-section {
  display: flex;
  justify-content: center;
  padding: 4px 0 40px;
}

.load-more-btn {
  min-width: 220px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 1180px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

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

  .categories-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }

  .header-copy,
  .header-actions {
    justify-self: center;
  }

  .site-logo {
    width: 200px;
  }

  .header-copy h1 {
    font-size: 38px;
  }

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

  .hero-copy h2 {
    font-size: 46px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--container-width));
  }

  .site-header {
    position: static;
    box-shadow: none;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 14px;
    gap: 14px;
  }

  .header-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-logo.site-logo {
    width: 160px;
    height: auto;
    justify-self: center;
    margin: 0 auto;
  }

  .header-copy h1 {
    font-size: 32px;
  }

  .header-copy p {
    font-size: 14px;
  }

  .header-chip {
    min-height: 38px;
    font-size: 11px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-download-btn {
    width: 100%;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-copy h2 {
    font-size: 38px;
  }

  .results-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
  }

  .results-summary p {
    order: 2;
  }

  .results-summary .active-filters {
    order: 1;
  }

  .btn-clear-filters {
    order: 3;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-image-wrap {
    height: 220px;
  }

  .product-name {
    font-size: 26px;
    min-height: auto;
  }

  .product-description {
    min-height: auto;
  }

  .toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

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

  .filters-panel {
    display: none;
    grid-template-columns: 1fr;
  }

  .filters-panel.open {
    display: grid;
  }

  .categories-home-panel {
    padding: 18px;
    gap: 16px;
  }

  .categories-home-copy h2 {
    font-size: 38px;
  }

  .categories-chip-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-chip-card {
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .category-chip-name {
    font-size: 22px;
  }

  .category-chip-count {
    min-width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .categories-home-actions {
    justify-content: stretch;
  }

  .categories-home-actions .pdf-download-btn {
    width: 100%;
  }

  .active-category-hero-badge {
    min-height: 30px;
    padding: 7px 12px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .load-more-section {
    padding: 4px 0 28px;
  }

  .load-more-btn {
    width: 100%;
  }
}

@media (min-width: 641px) {
  .filter-toggle {
    display: none;
  }

  .filters-panel {
    display: grid !important;
  }
}
