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

:root {
  --red:        #c0170f;
  --red-light:  #e82017;
  --red-muted:  rgba(192,23,15,0.08);
  --black:      #0f0f0f;
  --white:      #ffffff;
  --off-white:  #f7f6f4;
  --gray-100:   #f2f1ef;
  --gray-200:   #e4e2de;
  --gray-400:   #b0ada8;
  --gray-500:   #7a7672;
  --text:       #1e1c1a;
  --text-light: #5a5753;
  --max-width:  1300px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.1),  0 32px 64px rgba(0,0,0,0.1);
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-light); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section       { padding: 6rem 0; }
.section-alt   { background: var(--off-white); }
.text-center   { text-align: center; }

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title span {
  display: inline-block;
  background: var(--red-muted);
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 0.9rem;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 13px 28px;
  border-radius: 99px;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(192,23,15,0.35);
}
.btn-primary:hover {
  background: var(--red-light);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(192,23,15,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(192,23,15,0.35);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
  background: var(--red-muted);
  color: var(--red);
  border-color: transparent;
  border-radius: 99px;
  font-weight: 600;
}
.btn-sm:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
}
.logo img { height: 52px; width: auto; mix-blend-mode: multiply; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  align-items: center;
}
.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--red); background: var(--red-muted); }
.main-nav a.active { color: var(--red); font-weight: 600; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  box-shadow: 0 2px 8px rgba(192,23,15,0.3);
}
.nav-cta:hover {
  background: var(--red-light) !important;
  color: var(--white) !important;
}

/* ── Global header search ───────────────────────────────────── */
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.4rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}
.header-search-btn:hover { color: var(--red); background: var(--red-muted); }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,15,15,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 1rem;
}
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  color: var(--gray-500);
}
.search-overlay-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.search-overlay-bar input::placeholder { color: var(--gray-400); }
.search-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-500);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  line-height: 1;
}
.search-overlay-close:hover { color: var(--text); }
.search-overlay-results {
  background: var(--white);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--off-white); }
.search-result-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 0.775rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}
.search-result-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
  padding: 4px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--black);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('/images/hero-bg.webp') center 40%/cover no-repeat;
  filter: blur(6px);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.hero-actions .btn { padding: 16px 40px; font-size: 1rem; }

/* ─── Product Cards ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.product-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-100);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
}
.product-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.product-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  flex: 1;
  text-transform: none;
  letter-spacing: 0;
}
.product-card-body h3 a { color: var(--black); }
.product-card-body h3 a:hover { color: var(--red); }
.product-sku { font-size: 0.78rem; color: var(--gray-400); }
.product-card-body .btn-sm { align-self: flex-start; margin-top: 0.75rem; }

/* ─── Features Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--red-muted);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* ─── Page Banner ───────────────────────────────────────────── */
.page-banner {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(192,23,15,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner h1 { color: var(--white); }
.page-banner p  { color: rgba(255,255,255,0.65); margin-top: 0.6rem; font-size: 1.05rem; }

/* ─── Catalog Layout ────────────────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}
.catalog-sidebar { align-self: start; position: sticky; top: 90px; }

/* Brand page: toolbar is a direct grid child, placed above main */
.brand-catalog-layout {
  grid-template-areas:
    "sidebar toolbar"
    "sidebar products";
  grid-template-rows: auto 1fr;
}
.brand-catalog-layout .catalog-toolbar { grid-area: toolbar; }
.brand-catalog-layout .catalog-sidebar { grid-area: sidebar; }
.brand-catalog-layout .catalog-main   { grid-area: products; }

/* Mobile sidebar toggle (hidden on desktop) */
.sidebar-mobile-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem 0;
}
.sidebar-mobile-toggle svg { transition: transform var(--transition); }
.sidebar-mobile-toggle.open svg { transform: rotate(180deg); }
.sidebar-mobile-body { display: block; }

/* ─── Carousel ───────────────────────────────────────────────── */
.carousel-wrapper { position: relative; }
.product-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--black);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.carousel-btn:hover { background: var(--off-white); box-shadow: var(--shadow-md); }
.carousel-prev { left: -21px; }
.carousel-next { right: -21px; }
.brand-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.brand-carousel::-webkit-scrollbar { display: none; }
.brand-carousel .brand-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
.brand-logo-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}
.brand-logo-carousel::-webkit-scrollbar { display: none; }
.brand-logo-carousel .brand-logo-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
  color: var(--black);
}
.category-list { list-style: none; }
.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.category-list li a:hover,
.category-list li.active a {
  background: var(--red-muted);
  color: var(--red);
}
.category-list .count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.sidebar-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}
.sidebar-tab {
  flex: 1;
  padding: 0.5rem 0.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-tab:hover { color: var(--text); }
.sidebar-tab.active { color: var(--red); border-bottom-color: var(--red); }

.brand-show-more {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.brand-show-more:hover { color: var(--red-light); }
.brand-show-more svg { transition: transform 0.2s; }
.brand-show-more.open svg { transform: rotate(180deg); }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  gap: 1rem;
  flex-wrap: wrap;
}
.result-count { color: var(--gray-500); font-size: 0.875rem; }
.catalog-search input {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  font-size: 0.875rem;
  width: 460px;
  background: var(--gray-100);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.catalog-search input:focus {
  border-color: var(--red);
  background: var(--white);
}

/* ─── Product Single ────────────────────────────────────────── */
.product-single { padding: 2.5rem 0 5rem; }
.breadcrumb {
  font-size: 0.83rem;
  color: var(--gray-400);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder.large {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
}
.product-detail-info { padding-top: 0.5rem; }
.ai-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(15,15,15,0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  z-index: 2;
  cursor: default;
  user-select: none;
}
.ai-badge--detail {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.ai-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: var(--black);
  color: #e8e5e0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  letter-spacing: 0;
  z-index: 10;
  pointer-events: none;
}
.ai-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 1rem;
  border: 5px solid transparent;
  border-top-color: var(--black);
}
.ai-badge--detail:hover .ai-tooltip,
.ai-badge--detail:focus .ai-tooltip { display: block; }
.product-card-image { position: relative; }

.badge-special-order {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 1rem;
  animation: badge-flash 1.4s ease-in-out infinite;
}
@keyframes badge-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.product-detail-info .product-category {
  display: inline-block;
  background: var(--red-muted);
  color: var(--red);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.product-detail-info h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 1.5rem;
  text-transform: none;
  letter-spacing: -0.02em;
}
.product-meta {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-meta p { font-size: 0.9rem; margin: 0; }
.product-meta strong { color: var(--black); }
.spec-link { color: var(--red); font-weight: 500; text-decoration: none; }
.spec-link:hover { text-decoration: underline; }
.product-brand, .product-sku { font-size: 0.875rem; color: var(--gray-500); }
.product-description {
  margin: 1.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  line-height: 1.8;
  color: var(--text-light);
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.pagination li a,
.pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pagination li a:hover { background: var(--red-muted); color: var(--red); border-color: transparent; }
.pagination .active span { background: var(--red); color: var(--white); border-color: var(--red); }

/* ─── General Page ──────────────────────────────────────────── */
.page-content {
  max-width: 800px;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.page-content h2 { margin: 2.25rem 0 0.9rem; text-transform: none; letter-spacing: -0.02em; }
.page-content p  { margin-bottom: 1.1rem; color: var(--text-light); }
.page-content strong { color: var(--text); }

/* ─── About Layout ──────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-content h2 {
  margin: 2.25rem 0 0.9rem;
  text-transform: none;
  letter-spacing: -0.02em;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 1.1rem; color: var(--text-light); }
.about-content strong { color: var(--text); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.6);
  padding-top: 5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col img  { margin-bottom: 1.25rem; opacity: 0.9; }
.footer-col p    { font-size: 0.875rem; margin-bottom: 0.5rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul   { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ─── Hidden products (search) ──────────────────────────────── */
.product-card.hidden { display: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 210px 1fr; gap: 1.75rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.75rem 1rem; border-radius: var(--radius); }
  .site-header { position: relative; }
  .hero { min-height: 440px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%); }
  .hero-content { max-width: 100%; text-align: center; padding: 3rem 0; }
  .hero-content p { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: auto; text-align: center; padding: 14px 32px; font-size: 0.95rem; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; order: 2; }
  .catalog-main { order: 1; }
  .brand-catalog-layout { display: flex !important; flex-direction: column !important; }
  .brand-catalog-layout .catalog-sidebar { order: 1 !important; position: static !important; }
  .brand-catalog-layout .catalog-toolbar { order: 2 !important; }
  .brand-catalog-layout .catalog-main { order: 3 !important; }
  .sidebar-mobile-toggle { display: flex; }
  .sidebar-mobile-body { display: none; }
  .sidebar-mobile-body.open { display: block; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 340px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .section { padding: 4rem 0; }
}

/* ─── Map Embed ─────────────────────────────────────────────── */
.map-embed {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ─── Contact / Directions ──────────────────────────────────── */
.page-content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2.5rem 0;
}
.page-content h2 + p strong { color: var(--black); }

/* ─── Brand Grid ────────────────────────────────────────────── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.brand-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.brand-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.brand-card:hover .brand-card-img img { transform: scale(1.05); }
.brand-card-img--placeholder img { width: 50%; height: auto; opacity: 0.2; }
.brand-card-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-card-body strong { font-size: 0.85rem; line-height: 1.3; color: var(--black); }
.brand-card-body span  { font-size: 0.75rem; color: var(--gray-500); }

/* ─── Careers page ──────────────────────────────────────────── */
.careers-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.careers-intro { font-size: 1.05rem; line-height: 1.8; color: var(--text-light); }
.careers-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.careers-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.careers-form .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.careers-form label { font-size: 0.85rem; font-weight: 600; color: var(--black); }
.careers-form .req { color: var(--red); }
.careers-form input,
.careers-form select,
.careers-form textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--gray-100);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
.careers-form input:focus,
.careers-form select:focus,
.careers-form textarea:focus { border-color: var(--red); background: var(--white); }
.careers-form textarea { resize: vertical; }
.file-input-wrap input[type="file"] { display: none; }
.file-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: border-color var(--transition);
}
.file-label:hover { border-color: var(--red); color: var(--red); }
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.form-status--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-status--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 768px) {
  .careers-layout { grid-template-columns: 1fr; gap: 2rem; }
  .careers-form .form-row { grid-template-columns: 1fr; }
  .careers-form-wrap { padding: 1.5rem; }
}

/* ─── Brands logo grid ──────────────────────────────────────── */
.brands-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.brand-logo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-height: 100px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.brand-logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brand-logo-card img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.brand-logo-card:hover img { filter: grayscale(0%); }
.brand-logo-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--gray-500);
  line-height: 1.3;
  word-break: break-word;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand-logo-card:hover .brand-logo-text { color: var(--red); }
.brand-logo-card--dark { background: #1a1a1a; border-color: #333; }
.brand-logo-card--dark:hover { background: #252525; }
.brand-logo-card--dark img { filter: none !important; }

.sidebar-search { margin-bottom: 0.75rem; }
.sidebar-search input {
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--gray-100);
  outline: none;
}
.sidebar-search input:focus { border-color: var(--red); background: var(--white); }

@media (max-width: 480px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ─── Related Products ──────────────────────────────────────── */
.related-products {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}
.related-products h2 {
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

/* ─── Product Tags ──────────────────────────────────────────── */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}
.product-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--gray-200);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.product-tag:hover {
  background: var(--red-muted);
  color: var(--red);
  border-color: transparent;
}

/* ─── Theme Toggle Button ───────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--red-muted); border-color: var(--red); color: var(--red); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }
[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ─── Dark Mode (OS preference OR manual toggle) ────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --is-dark: 1; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
}
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dm: 1; } }

/* Apply dark styles when OS is dark (and not manually overridden to light),
   OR when manually set to dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --black: #f0ede8; --white: #1c1c1e; --off-white: #242426; --gray-100: #2a2a2c; --gray-200: #3a3a3c; --gray-400: #6e6e73; --gray-500: #8e8e93; --text: #e8e5e0; --text-light: #9a9691; --red-muted: rgba(192,23,15,0.18); --shadow-sm: 0 1px 4px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.3); --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 16px 40px rgba(0,0,0,0.4); --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 32px 64px rgba(0,0,0,0.5); }
}
[data-theme="dark"] { --black: #f0ede8; --white: #1c1c1e; --off-white: #242426; --gray-100: #2a2a2c; --gray-200: #3a3a3c; --gray-400: #6e6e73; --gray-500: #8e8e93; --text: #e8e5e0; --text-light: #9a9691; --red-muted: rgba(192,23,15,0.18); --shadow-sm: 0 1px 4px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.3); --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 16px 40px rgba(0,0,0,0.4); --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 32px 64px rgba(0,0,0,0.5); }

/* Shared dark element styles */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: #1c1c1e; } }
[data-theme="dark"] body { background: #1c1c1e; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header { background: rgba(28,28,30,0.88); border-bottom-color: rgba(255,255,255,0.07); }
  :root:not([data-theme="light"]) .sidebar-widget, :root:not([data-theme="light"]) .product-card, :root:not([data-theme="light"]) .feature-card, :root:not([data-theme="light"]) .careers-form-wrap, :root:not([data-theme="light"]) .brand-card, :root:not([data-theme="light"]) .brand-logo-card { background: #242426; border-color: #3a3a3c; }
  :root:not([data-theme="light"]) .catalog-search input, :root:not([data-theme="light"]) .sidebar-search input, :root:not([data-theme="light"]) .careers-form input, :root:not([data-theme="light"]) .careers-form select, :root:not([data-theme="light"]) .careers-form textarea, :root:not([data-theme="light"]) .file-label { background: #2a2a2c; border-color: #3a3a3c; color: #e8e5e0; color-scheme: dark; }
  :root:not([data-theme="light"]) .catalog-search input:focus, :root:not([data-theme="light"]) .sidebar-search input:focus, :root:not([data-theme="light"]) .careers-form input:focus, :root:not([data-theme="light"]) .careers-form select:focus, :root:not([data-theme="light"]) .careers-form textarea:focus { background: #1c1c1e; }
  :root:not([data-theme="light"]) .product-card-image, :root:not([data-theme="light"]) .product-placeholder, :root:not([data-theme="light"]) .product-detail-image, :root:not([data-theme="light"]) .product-placeholder.large, :root:not([data-theme="light"]) .brand-card-img { background: #2a2a2c; }
  :root:not([data-theme="light"]) .product-meta { background: #2a2a2c; }
  :root:not([data-theme="light"]) .catalog-toolbar { border-bottom-color: #3a3a3c; }
  :root:not([data-theme="light"]) .category-list .count { background: #3a3a3c; color: #8e8e93; }
  :root:not([data-theme="light"]) .pagination li a, :root:not([data-theme="light"]) .pagination li span { border-color: #3a3a3c; color: #e8e5e0; }
  :root:not([data-theme="light"]) .page-banner { background: #0a0a0a; }
  :root:not([data-theme="light"]) .page-banner h1 { color: #ffffff !important; }
  :root:not([data-theme="light"]) .page-banner p { color: rgba(255,255,255,0.65) !important; }
  :root:not([data-theme="light"]) .brand-card-body strong { color: #e8e5e0; }
  :root:not([data-theme="light"]) .brand-card-body span { color: #8e8e93; }
  :root:not([data-theme="light"]) .form-status--success { background: #052e16; color: #86efac; border-color: #166534; }
  :root:not([data-theme="light"]) .form-status--error { background: #2d0a0a; color: #fca5a5; border-color: #991b1b; }
  :root:not([data-theme="light"]) .section-alt { background: #242426; }
  :root:not([data-theme="light"]) .brand-logo-card img { filter: grayscale(20%) brightness(0.9); }
  :root:not([data-theme="light"]) .brand-logo-card:hover img { filter: grayscale(0%) brightness(1); }
}

[data-theme="dark"] .site-header { background: rgba(28,28,30,0.88); border-bottom-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .sidebar-widget, [data-theme="dark"] .product-card, [data-theme="dark"] .feature-card, [data-theme="dark"] .careers-form-wrap, [data-theme="dark"] .brand-card, [data-theme="dark"] .brand-logo-card { background: #242426; border-color: #3a3a3c; }
[data-theme="dark"] .catalog-search input, [data-theme="dark"] .sidebar-search input, [data-theme="dark"] .careers-form input, [data-theme="dark"] .careers-form select, [data-theme="dark"] .careers-form textarea, [data-theme="dark"] .file-label { background: #2a2a2c; border-color: #3a3a3c; color: #e8e5e0; color-scheme: dark; }
[data-theme="dark"] .catalog-search input:focus, [data-theme="dark"] .sidebar-search input:focus, [data-theme="dark"] .careers-form input:focus, [data-theme="dark"] .careers-form select:focus, [data-theme="dark"] .careers-form textarea:focus { background: #1c1c1e; }
[data-theme="dark"] .product-card-image, [data-theme="dark"] .product-placeholder, [data-theme="dark"] .product-detail-image, [data-theme="dark"] .product-placeholder.large, [data-theme="dark"] .brand-card-img { background: #2a2a2c; }
[data-theme="dark"] .product-meta { background: #2a2a2c; }
[data-theme="dark"] .catalog-toolbar { border-bottom-color: #3a3a3c; }
[data-theme="dark"] .category-list .count { background: #3a3a3c; color: #8e8e93; }
[data-theme="dark"] .pagination li a, [data-theme="dark"] .pagination li span { border-color: #3a3a3c; color: #e8e5e0; }
[data-theme="dark"] .page-banner { background: #0a0a0a; }
[data-theme="dark"] .page-banner h1 { color: #ffffff !important; }
[data-theme="dark"] .page-banner p { color: rgba(255,255,255,0.65) !important; }
[data-theme="dark"] .brand-card-body strong { color: #e8e5e0; }
[data-theme="dark"] .brand-card-body span { color: #8e8e93; }
[data-theme="dark"] .form-status--success { background: #052e16; color: #86efac; border-color: #166534; }
[data-theme="dark"] .form-status--error { background: #2d0a0a; color: #fca5a5; border-color: #991b1b; }
[data-theme="dark"] .section-alt { background: #242426; }
[data-theme="dark"] .brand-logo-card img { filter: grayscale(20%) brightness(0.9); }
[data-theme="dark"] .brand-logo-card:hover img { filter: grayscale(0%) brightness(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-tag { background: #2a2a2c; border-color: #3a3a3c; color: #9a9691; } }
[data-theme="dark"] .product-tag { background: #2a2a2c; border-color: #3a3a3c; color: #9a9691; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { mix-blend-mode: screen; } }
[data-theme="dark"] .logo img { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-content h1, :root:not([data-theme="light"]) .hero-content p { color: #ffffff; } }
[data-theme="dark"] .hero-content h1, [data-theme="dark"] .hero-content p { color: #ffffff; }
