body {
  line-height: 1.72;
}

.page-shell.section-space {
  padding-block: clamp(22px, 3.4vw, 36px);
}

.main-header nav {
  gap: 4px;
}

.main-header nav a {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-header nav a:hover,
.main-header nav a.active {
  background: #f5eee4;
}

app-home h2,
app-products h2,
app-home h3,
app-products h3 {
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

app-products .products-hero .page-shell {
  padding-block: 34px;
}

app-products .products-hero h1 {
  font-weight: 500;
  line-height: 1.35;
}

app-products .products-hero p {
  line-height: 1.7;
}

app-products .category-breadcrumb {
  gap: 7px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}

app-products .filters {
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

app-products .results-row {
  margin: 14px 0 10px;
}

app-products .products-grid,
app-home .product-grid,
app-home .new-products,
app-products .subcategory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.6vw, 18px);
}

app-products .subcategory-section {
  margin-bottom: 22px;
}

app-products .subcategory-grid {
  align-items: stretch;
}

app-products .subcategory-card {
  min-width: 0;
  padding-bottom: 12px;
  border-radius: 15px;
  box-shadow: 0 5px 16px rgba(90, 67, 39, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

app-products .subcategory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 67, 39, 0.08);
}

app-products .subcategory-card > img {
  height: clamp(100px, 17vw, 150px);
}

app-products .subcategory-icon {
  width: 36px;
  height: 36px;
  margin-top: -18px;
}

app-products .subcategory-card h3 {
  margin: 9px 7px 5px;
  font-size: clamp(0.8rem, 1.2vw, 0.98rem);
  line-height: 1.5;
}

app-products .subcategory-card > span:last-child {
  font-size: 0.74rem;
}

app-product-card .product-card {
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(90, 67, 39, 0.045);
}

app-product-card .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(90, 67, 39, 0.09);
}

app-product-card .product-content {
  padding: 13px;
}

app-product-card .product-content h3 {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
}

app-product-card .product-content p {
  margin-bottom: 6px;
  line-height: 1.65;
}

app-product-card .product-content strong {
  margin-bottom: 10px;
  font-weight: 600;
}

app-product-card .add-button {
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.lurevia-category-navigation {
  box-shadow: 0 5px 18px rgba(90, 67, 39, 0.04);
}

@media (max-width: 720px) {
  .page-shell.section-space {
    padding-block: 26px;
  }

  .main-header nav {
    gap: 2px;
  }

  .main-header nav a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  app-products .products-hero:not(.lurevia-managed-banner) {
    min-height: 280px;
  }

  app-products .products-hero .page-shell {
    padding-block: 24px;
  }

  app-products .products-hero[data-managed-banner="true"],
  app-products .lurevia-managed-banner[data-page="products"] {
    min-height: 300px !important;
  }

  app-products .results-row {
    gap: 8px;
    margin: 18px 0 12px;
  }

  app-products .products-grid,
  app-home .product-grid,
  app-home .new-products,
  app-products .subcategory-grid {
    gap: 9px;
  }

  app-products .subcategory-card {
    padding-bottom: 9px;
    border-radius: 13px;
  }

  app-products .subcategory-card > img {
    height: clamp(74px, 23vw, 104px);
  }

  app-products .subcategory-icon {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    font-size: 0.78rem;
  }

  app-products .subcategory-card h3 {
    min-height: 3em;
    margin: 7px 5px 4px;
    font-size: clamp(0.68rem, 2.8vw, 0.8rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  app-products .subcategory-card > span:last-child {
    font-size: clamp(0.58rem, 2.2vw, 0.68rem);
    line-height: 1.4;
  }

  app-product-card .product-image {
    height: clamp(112px, 32vw, 150px);
  }

  app-product-card .product-content {
    padding: 9px 7px 10px;
  }

  app-product-card .product-content h3 {
    min-height: 2.8em;
    margin-bottom: 4px;
    font-size: clamp(0.7rem, 2.75vw, 0.82rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  app-product-card .product-content p {
    display: none;
  }

  app-product-card .product-content strong {
    margin-bottom: 7px;
    font-size: 0.9rem;
  }

  app-product-card .favorite-button {
    top: 7px;
    inset-inline-end: 7px;
    width: 32px;
    height: 32px;
  }

  app-product-card .badge-new {
    top: 7px;
    inset-inline-start: 7px;
    padding: 3px 8px;
  }

  app-product-card .add-button {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-header nav a,
  app-products .subcategory-card,
  app-product-card .product-card {
    transition: none;
  }
}


/* v2: tighten home / products gaps around category blocks */
#categories.categories-section.section-space,
#categories.section-space {
  padding-block: 18px 8px;
}

.featured.section-space {
  padding-block-start: 8px;
  padding-block-end: clamp(22px, 3.2vw, 34px);
}

app-home .featured.section-space .page-shell,
app-home .featured > .page-shell {
  padding-block-start: 0;
}

.lurevia-category-navigation {
  margin-top: 12px;
  margin-bottom: 14px;
  box-shadow: 0 5px 18px rgba(90, 67, 39, 0.04);
}

app-products .results-row {
  margin: 14px 0 10px;
}

@media (max-width: 720px) {
  #categories.categories-section.section-space,
  #categories.section-space {
    padding-block: 12px 4px;
  }

  .page-shell.section-space {
    padding-block: 20px;
  }

  .featured.section-space {
    padding-block-start: 6px;
    padding-block-end: 22px;
  }

  app-products .products-hero .page-shell {
    padding-block: 20px;
  }

  app-products .results-row {
    margin: 10px 0 8px;
  }
}
