:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F7F3EE;
  --primary: #9C4F18;
  --primary-light: #C17A54;
  --primary-dark: #6E3810;
  --accent: #5E6B53;
  --text: #2A2320;
  --muted: #5E5149;
  --subtle: #7A6C61;
  --border: #E7DDD2;
  --border-strong: #D8C9B8;
  --success: #3F7D4E;
  --danger: #A4331F;
  --gold: #B08227;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1280px;
  --gap: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-success {
  background: var(--success);
}

.btn-success:hover {
  background: #2d5a39;
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container-narrow {
  max-width: 800px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.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-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
  gap: var(--gap);
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap);
  transition: all 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.product-badge.gerflor {
  background: var(--primary);
}

.product-badge.rubio {
  background: var(--accent);
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.buy-link {
  background: var(--success);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  white-space: nowrap;
}

.buy-link:hover {
  background: #2d5a39;
  transform: translateY(-1px);
}

.buy-link:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
}

.nav-link, .nav-dropdown-btn { font-size: 0.92rem; }

.logo .accent {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}

.cart-icon:hover {
  background: var(--surface-2);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s var(--ease);
}

.nav-dropdown-btn:hover {
  color: var(--primary);
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;            
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 18px 48px rgba(80,50,25,.18));
  padding: 1.5rem 1.75rem;
  width: max-content;
  max-width: min(840px, 94vw);
  z-index: 200;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem 1.75rem;
  align-content: start;
  
  display: none;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown-btn[aria-expanded="true"] ~ .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu--simple {
  grid-template-columns: 1fr;
  min-width: 200px;
  max-width: 240px;
}

.nav-desktop .nav-dropdown:first-of-type > .nav-dropdown-menu {
  left: 0;
  right: auto;
}

.nav-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-group-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-group-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-category-link {
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
  font-size: 0.875rem;
}

.nav-category-link:hover {
  color: var(--primary);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-link:hover {
  color: var(--primary);
}

.nav-mobile-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-mobile-group {
  border-bottom: 1px solid var(--border);
}

.nav-mobile-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.nav-mobile-toggle:hover {
  color: var(--primary);
}

.nav-mobile-arrow {
  font-weight: bold;
  transition: transform 0.2s var(--ease);
}

.nav-mobile-content {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.nav-mobile-subgroup {
  margin-bottom: 1rem;
}

.nav-mobile-subtitle {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--subtle);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-mobile-sublink {
  display: block;
  color: var(--muted);
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.nav-mobile-sublink:hover {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: none;
  }

  .nav.mobile-open .nav-mobile {
    display: flex;
  }

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

  .nav.mobile-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
}

@media (min-width: 1101px) {
  .nav-mobile {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
    gap: 1.25rem;
    align-items: center;
  }
}

.breadcrumb {
  margin: 2rem 0 1rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

.category-header {
  margin-bottom: 2rem;
}

.category-header h1 {
  margin-bottom: 1rem;
}

.cat-intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
}

.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.category-count {
  font-weight: 600;
  color: var(--text);
}

.category-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-sort label {
  font-size: 0.875rem;
  color: var(--muted);
}

.category-sort select {
  min-width: 150px;
}

.category-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.category-empty h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.category-empty p {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .category-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .category-sort {
    flex-direction: column;
    align-items: stretch;
  }

  .category-sort select {
    width: 100%;
  }
}

.hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.filter-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 0.875rem;
}

.filter-chip:hover {
  border-color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.search-input {
  border: none;
  background: none;
  font-size: 1rem;
  width: 100%;
  padding: 0.5rem;
}

.search-input:focus {
  outline: none;
}

.tools-grid {
  margin-top: 3rem;
}

.tool-card {
  text-align: center;
  padding: 2rem;
}

.tool-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.tool-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
  }
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0.5rem;
}

.cart-items {
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 600;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--primary);
}

.quiz-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--surface-2);
  font-weight: 600;
}

.comparison-table td {
  background: var(--surface);
}

.calculator-modes {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.calculator-mode {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.calculator-mode.active {
  background: var(--primary);
  color: white;
}

.calculator-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text);
}

.result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.result-label {
  color: var(--muted);
  margin-bottom: 1rem;
}

.decor-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.decor-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.decor-tile:hover {
  transform: scale(1.02);
}

.decor-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  margin-top: clamp(48px, 7vw, 88px);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
}
.footer-brand .footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; max-width: 36ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--subtle);
}
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-link { color: var(--muted); font-size: 0.875rem; }
.footer-link:hover { color: var(--text); }
.footer-text { color: var(--muted); font-size: 0.875rem; text-align: center; }

.hidden {
  display: none;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--muted);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.breadcrumb {
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.spec-list {
  list-style: none;
  margin: 1rem 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
}

.spec-value {
  color: var(--muted);
}

.related-products {
  margin-top: 3rem;
}

.collection-select {
  max-width: 300px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2rem 0;
  }
  .hero {
    padding: 2rem 0;
  }
  .filters {
    padding: 1rem;
  }
  .filter-options {
    gap: 0.25rem;
  }
  .filter-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 1.5rem;
  }
  .comparison-table {
    font-size: 0.875rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-top: 1.5rem;
}
.shop-filter-toggle { display: none; }

.shop-filters {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 18px 18px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}
.facet-head {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 0 6px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 6px;
}
.facet { padding: 14px 0; border-bottom: 1px solid var(--border); }
.facet:last-child { border-bottom: none; }
.facet__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin: 0 0 0.6rem;
}
.facet__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; max-height: 240px; overflow-y: auto; }
.facet__opt { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.92rem; color: var(--text); padding: 2px 0; }
.facet__opt input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.facet__opt-label { flex: 1; }
.facet__opt:hover .facet__opt-label { color: var(--primary); }
.facet__count { color: var(--subtle); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.facet__price { display: flex; align-items: center; gap: 0.4rem; }
.facet__price input { width: 100%; min-width: 0; padding: 0.45rem 0.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; }
.facet__price-btn { padding: 0.45rem 0.8rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.facet__price-btn:hover { background: var(--primary-dark); }
.facet__empty { color: var(--muted); font-size: 0.9rem; padding: 1rem 0; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.shop-toolbar .category-count { font-weight: 600; color: var(--text); }
.shop-toolbar .category-sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.shop-toolbar select { padding: 0.4rem 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; background: var(--surface); cursor: pointer; }

.shop-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.shop-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.85rem; color: var(--text); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--primary-light); border-color: var(--primary); }
.chip--clear { background: transparent; border-style: dashed; color: var(--muted); }
.chip--clear:hover { color: var(--primary); background: transparent; }

.decor-tile { display: block; text-decoration: none; color: inherit; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filter-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius); padding: 0.7rem 1.2rem;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; margin-bottom: 0.5rem;
  }
  .shop-filters { display: none; position: static; max-height: none; }
  .shop-filters.is-open { display: block; }
}

.shop-main .grid-auto { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .shop-main .grid-auto { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .shop-main .grid-auto { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .shop-main .grid-auto { grid-template-columns: 1fr; } }

.shop-main .product-card { display: flex; flex-direction: column; height: 100%; }
.shop-main .product-image { aspect-ratio: 4 / 3; }
.shop-main .product-info { display: flex; flex-direction: column; flex: 1; padding: 0.85rem 0.9rem 1rem; }
.shop-main .product-title {
  font-size: 0.9rem; line-height: 1.3; margin-bottom: 0.4rem;
  min-height: 2.34em;                 
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-main .product-title a { color: var(--text); }
.shop-main .product-title a:hover { color: var(--primary); }
.shop-main .product-price { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.shop-main .product-meta { font-size: 0.78rem; color: var(--subtle); margin-bottom: 0.7rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shop-main .product-actions { margin-top: auto; display: flex; gap: 0.4rem; align-items: stretch; }
.shop-main .btn-view { flex: 1; text-align: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.shop-main .btn-view:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.shop-main .btn-add-cart { width: 42px; flex-shrink: 0; padding: 0.5rem; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1; }

.shop-toolbar .category-sort { white-space: nowrap; }
.shop-toolbar .category-sort label { white-space: nowrap; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }

.product-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.5rem auto 0; max-width: var(--maxw); padding: 1.1rem var(--gap) 0; border-top: 1px solid var(--border); }
.product-cats__label { font-weight: 600; color: var(--subtle); font-size: 0.9rem; }
.product-cats a { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.88rem; color: var(--text); }
.product-cats a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-sisters { margin: 0.4rem 0 1.4rem; font-size: 0.92rem; color: var(--muted); }
.cat-sisters__label { font-weight: 600; color: var(--text); }
.cat-sisters a { font-weight: 600; }

.facet__title, .nav-group-title, .nav-mobile-subtitle, .facet-head { text-transform: none; letter-spacing: normal; }

.product-card { position: relative; }
.product-image { display: block; }
.product-title { margin: 0 0 0.4rem; }
.product-title a.product-link { color: var(--text); text-decoration: none; font-weight: 600; }

.product-title a.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card:hover .product-title a.product-link { color: var(--primary); }

.btn-add-cart { position: relative; z-index: 2; }
.shop-main .product-info { display: flex; flex-direction: column; flex: 1; }
.shop-main .btn-add-cart { width: 100%; margin-top: auto; }

.nav-desktop .nav-link, .nav-desktop .nav-dropdown-btn {
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); background: transparent; transform: none;
}
.nav-desktop .nav-dropdown-btn[aria-expanded="true"] {
  background: var(--primary); color: #fff; transform: none;
}

@media (hover: hover) {
  .nav-desktop .nav-link:hover, .nav-desktop .nav-dropdown-btn:hover {
    background: var(--primary); color: #fff; transform: none;
  }
}
.nav-desktop .nav-link.active { color: var(--primary); }
@media (hover: hover) { .nav-desktop .nav-link.active:hover { color: #fff; } }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-image { aspect-ratio: 4 / 3; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 0.85rem 0.9rem 1rem; }
.product-title { font-size: 0.92rem; line-height: 1.3; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 1.05rem; }
.product-meta { font-size: 0.78rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.btn-add-cart { width: 100%; margin-top: auto; }

.product-usps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; }
.product-usps li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.85rem; color: var(--text); font-weight: 500; }
.product-usps li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.product-sticky-atc { display: none; }
@media (max-width: 768px) {
  .product-sticky-atc {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 0.7rem 1rem; box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  }
  .product-sticky-price { font-weight: 700; font-size: 1.15rem; color: var(--primary); white-space: nowrap; }
  .product-sticky-atc .buy-link { flex: 1; text-align: center; }
}

.nav-desktop .nav-dropdown-btn[aria-expanded="true"] { color: #fff !important; }
@media (hover: hover) {
  .nav-desktop .nav-link:hover,
  .nav-desktop .nav-dropdown-btn:hover { color: #fff !important; }
}

:root { color-scheme: only light; }

h1, h2, h3, h4, .product-title, .facet__title, .blog-card h3, .article-header h1 { text-wrap: balance; }
p, .article-content p, .product-pitch, .cat-intro, .hero-subtitle, .blog-hero p { text-wrap: pretty; }

.product-card { content-visibility: auto; contain-intrinsic-size: auto 360px; }

.footer-social { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.8rem; font-weight: 600; font-size: 0.9rem; }

.cat-seo { padding: clamp(32px,5vw,56px) 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.cat-seo .container { max-width: 820px; }
.cat-seo h2 { font-family: var(--font-heading); font-size: clamp(1.4rem,3vw,1.9rem); margin: 2rem 0 0.6rem; }
.cat-seo p { margin: 0 0 1rem; line-height: 1.75; }
.cat-seo ul, .cat-seo ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.cat-seo li { margin-bottom: 0.5rem; }
.cat-seo a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cat-faq { margin-top: 2.5rem; }
.cat-faq > h2 { margin-bottom: 1rem; }
.cat-faq .faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.cat-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq .faq-answer { padding: 0 18px 16px; color: var(--muted); }
.cat-faq .faq-answer p { margin: 0; }

.quiz-option, .calculator-mode, .quiz-restart, .quiz-back, .compare-toggle, .comparator-toggle { color: var(--text); }
.quiz-option.selected, .calculator-mode.active, .compare-toggle.active, .comparator-toggle.active { color: #fff; }
