/* ══════════════════════════════════════════════════════════════
   WeltPartner Wireframe System – Zentrale Styles
   ══════════════════════════════════════════════════════════════ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ── Typography ── */
.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 20px;
}

.text-2xl {
  font-size: 24px;
}

.text-3xl {
  font-size: 32px;
}

.text-4xl {
  font-size: 40px;
}

.text-5xl {
  font-size: 48px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.flex {
  display: flex;
}

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

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

.gap-48 {
  gap: 48px;
}

/* ── Wireframe Placeholder ── */
.placeholder {
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  overflow: hidden;
  position: relative;
}

.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.015) 10px,
      rgba(0, 0, 0, 0.015) 20px);
}

.placeholder-dark {
  background: #d1d5db;
}

/* ── Annotation (wireframe label) ── */
.annotation {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Header
   ══════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.header-top {
  height: 36px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
}

/* Row 1: Logo — Search — Über uns, Service, Icons */
.header-row1 {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-bar {
  height: 40px;
  background: #f3f4f6;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  font-size: 14px;
  color: #9ca3af;
  flex: 1;
  min-width: 120px;
}

.header-row1-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav links (Über uns / Service) */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover {
  border-bottom-color: #374151;
}

/* Icon buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  color: #374151;
}

/* Cart badge */
.cart-badge {
  position: relative;
}

.cart-badge::after {
  content: '3';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #374151;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row 2: Sub-navigation */
.header-row2 {
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.header-row2-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  height: 44px;
  overflow: visible;
}

.header-row2-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
}

.subnav-link:hover {
  background: #f3f4f6;
}

.subnav-link.sortiment-btn {
  background: #111;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subnav-link.sortiment-btn:hover {
  background: #333;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Desktop Inline Dropdown (Nav)
   Replaces the old slide-in overlay on desktop
   ══════════════════════════════════════════════════════════════ */

/* Wrapper for nav-link + dropdown */
.nav-dropdown-wrap {
  position: relative;
}

/* The trigger button */
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-dropdown-trigger:hover {
  border-bottom-color: #374151;
}

.nav-dropdown-trigger .chevron-icon {
  transition: transform 0.2s;
}

.nav-dropdown-wrap.open .nav-dropdown-trigger .chevron-icon {
  transform: rotate(180deg);
}

/* The dropdown panel */
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  z-index: 300;
  animation: dropdownFadeIn 0.15s ease-out;
}

.nav-dropdown-wrap.open .nav-dropdown-panel {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sortiment dropdown positioned differently (under row2 button) */
.sortiment-dropdown-wrap {
  position: relative;
}

.sortiment-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  max-height: 75vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  z-index: 300;
  animation: dropdownFadeIn 0.15s ease-out;
}

.sortiment-dropdown-wrap.open .sortiment-dropdown-panel {
  display: block;
}

/* Menu items shared between dropdown & slide-in */
.menu-category {
  margin-bottom: 20px;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.menu-category h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  color: inherit;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  color: #000;
}

.menu-item span {
  font-size: 15px;
  font-weight: 500;
}

.menu-item .menu-arrow {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

.menu-emoji {
  font-size: 18px;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Mega Menu Overlay (Mobile / slide-in fallback)
   ══════════════════════════════════════════════════════════════ */

.mega-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.3);
}

.mega-menu-overlay.active {
  display: flex;
}

.mega-menu {
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  padding: 32px;
  overflow-y: auto;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.1);
}

.mega-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mega-menu-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.mega-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 18px;
}

/* Desktop-only helper */
.desktop-only {}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  color: #374151;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.3);
}

.mobile-nav-overlay.active {
  display: flex;
  justify-content: flex-end;
}

.mobile-nav {
  width: 300px;
  height: 100%;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
}

.mobile-nav-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Buttons
   ══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: #111;
}

.btn-primary:hover {
  background: #f3f4f6;
}

.btn-secondary {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Hero
   ══════════════════════════════════════════════════════════════ */

.hero {
  padding: 0;
}

.hero-banner {
  height: 480px;
  background: #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 60%);
  border-radius: 12px;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 24px;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Category Bar
   ══════════════════════════════════════════════════════════════ */

.category-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.category-chip:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d1d5db;
}

.category-chip span {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Product Card
   ══════════════════════════════════════════════════════════════ */

.product-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 1;
  background: #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  z-index: 1;
}

.product-badge.sale {
  background: #fef2f2;
  color: #b91c1c;
}

.product-badge.bio {
  background: #f0fdf4;
  color: #166534;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 1;
  transition: background 0.15s;
}

.product-wishlist:hover {
  background: #f3f4f6;
}

.product-wishlist svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.product-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card .product-origin {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.product-card .product-rating .stars {
  color: #f59e0b;
  letter-spacing: -1px;
}

.product-card .product-price {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.product-card .product-price .unit-price {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.product-card .product-price-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 6px;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Story / Card Grid
   ══════════════════════════════════════════════════════════════ */

.story-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.story-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.story-image {
  height: 240px;
  background: #d1d5db;
}

.story-content {
  padding: 24px;
}

.story-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 8px;
}

.story-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.story-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: 50/50 Split
   ══════════════════════════════════════════════════════════════ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-image {
  height: 400px;
  border-radius: 12px;
}

.split-content {
  max-width: 480px;
}

.split-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.2;
}

.split-content p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Grid Element (Trust / Impact)
   ══════════════════════════════════════════════════════════════ */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 40px 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
}

.trust-item span {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.impact-number {
  font-size: 40px;
  font-weight: 600;
  color: #111;
  line-height: 1;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 14px;
  color: #6b7280;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Banner CTA
   ══════════════════════════════════════════════════════════════ */

.banner-cta {
  background: #e5e7eb;
  border-radius: 16px;
  padding: 64px;
  text-align: center;
}

.banner-cta h2 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.banner-cta p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Section Header
   ══════════════════════════════════════════════════════════════ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111;
}

.section-header p {
  font-size: 15px;
  color: #6b7280;
  margin-top: 4px;
}

.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 2px;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Footer
   ══════════════════════════════════════════════════════════════ */

.footer {
  background: #111;
  color: #9ca3af;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  font-size: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.footer li:hover {
  color: #fff;
}

.footer-logo {
  width: 140px;
  height: 32px;
  background: #374151;
  border-radius: 4px;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer-certs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cert-badge {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #1f2937;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Breadcrumb
   ══════════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
  padding: 16px 0 0;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #111;
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.breadcrumb .current {
  color: #111;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════
   COMPONENT: Category Page specific
   ══════════════════════════════════════════════════════════════ */

.page-header {
  padding: 24px 0 32px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  color: #6b7280;
  max-width: 600px;
}

.page-header .product-count {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.filter-chip:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.filter-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0 64px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.pagination-btn:hover {
  background: #f3f4f6;
}

.pagination-btn.active {
  background: #111;
  color: #fff;
}

.pagination-btn.disabled {
  color: #d1d5db;
  cursor: default;
}

.pagination-btn.disabled:hover {
  background: none;
}


/* ══════════════════════════════════════════════════════════════
   CE-SPECIFIC: Table of Contents & Element style
   ══════════════════════════════════════════════════════════════ */

.page-label {
  background: #1e40af;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.toc a {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.toc a:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.options-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  color: #166534;
  line-height: 1.7;
}

.variant-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 32px 0 16px;
}

.element-description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.element-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Header mobile */
  .desktop-only {
    display: none !important;
  }

  .nav-dropdown-wrap.desktop-only {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-row1 {
    padding: 8px 16px;
    gap: 8px;
    justify-content: space-between;
  }

  .search-bar {
    display: none;
  }

  .search-icon-mobile {
    display: flex !important;
  }

  .header-row1-right {
    gap: 2px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .header-row2-inner {
    padding: 0 16px;
    gap: 2px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .subnav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Layout mobile */
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-banner {
    height: 360px;
    padding: 32px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .trust-bar {
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Category page mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

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