.products-page {
  background: #ffffff;
  padding-bottom: 4rem;
}

.products-hero {
  padding: 8rem 0 3.25rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.9)),
    radial-gradient(ellipse at 22% 44%, rgba(197, 160, 89, 0.24), transparent 55%),
    radial-gradient(ellipse at 84% 18%, rgba(197, 160, 89, 0.18), transparent 52%),
    var(--products-hero-image, none);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  color: #ffffff;
}

.products-hero--catalog {
  --products-hero-image: url('../../images/hero/pages/products.webp');
}

.products-hero--category {
  --products-hero-image: url('../../images/hero/pages/products.webp');
}

.products-hero--product {
  --products-hero-image: url('../../images/hero/pages/products.webp');
}

.products-hero--notfound {
  --products-hero-image: url('../../images/hero/pages/products.webp');
}

.products-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c5a059;
}

.products-title {
  margin: 0 0 0.9rem;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
}

.products-copy {
  margin: 0;
  max-width: 46rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.7;
}

.products-breadcrumb {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.products-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.products-body {
  margin-top: -1.7rem;
  position: relative;
  z-index: 2;
}

.products-toolbar {
  margin-bottom: 2rem;
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.products-toolbar-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.products-toolbar-kicker {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5a059;
}

.products-toolbar-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: #0f172a;
}

.products-search {
  width: 100%;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border-radius: 9999px;
  border: 1px solid #dbe3ec;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
}

.products-search:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.11);
}

.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.products-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.62rem 0.88rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.products-filter:hover {
  border-color: rgba(197, 160, 89, 0.45);
}

.products-filter.is-selected {
  border-color: #c5a059;
  background: #c5a059;
  color: #ffffff;
}

.products-filter-count {
  min-width: 1.18rem;
  height: 1.18rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.1);
  font-size: 0.58rem;
  color: #334155;
}

.products-filter.is-selected .products-filter-count {
  background: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.95);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.85rem;
  row-gap: 3.2rem;
}

.product-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  max-width: 280px;
  margin-inline: auto;
  margin-top: 2.45rem;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.09);
}

.product-card.is-hidden {
  display: none;
}

.product-card-hit {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  overflow: visible;
  min-height: 100%;
  background: inherit;
}

.product-card-hit:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

.product-card-image-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: -2.35rem;
  height: 9rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.1rem;
  pointer-events: none;
}

.product-card-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.04) translateY(-1px);
}

.product-card-body {
  padding: 6.65rem 0.72rem 0.7rem;
}

.product-card-meta {
  margin: 0 0 0.24rem;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5a059;
}

.product-card-title {
  margin: 0 0 0.4rem;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
}

.product-card-desc {
  margin: 0 0 0.55rem;
  color: #64748b;
  font-size: 0.6rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.product-card-variations {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
  text-transform: none;
}

.product-card-link {
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a;
}

.product-card-link:hover {
  color: #c5a059;
}

.product-card-link--icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dde6;
  background: #ffffff;
  color: #64748b;
  flex-shrink: 0;
}

.product-card:hover .product-card-link--icon {
  border-color: #c5a059;
  color: #c5a059;
}

.products-empty {
  margin-top: 1rem;
  padding: 1.1rem 1rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
  color: #64748b;
  font-size: 0.9rem;
}

.products-empty.is-hidden {
  display: none;
}

.product-detail {
  margin-top: -1.7rem;
  position: relative;
  z-index: 2;
}

.product-detail-layout {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.product-detail-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-summary {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  padding: 1.1rem;
  background: #ffffff;
}

.product-detail-summary.has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.product-detail-summary.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--overview-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  z-index: 0;
}

.product-detail-summary.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.92));
  z-index: 1;
}

.product-detail-summary.has-bg > * {
  position: relative;
  z-index: 2;
}

.product-detail-summary h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  color: #0f172a;
}

.product-detail-summary p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.92rem;
}

.product-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.1rem;
}

.product-stat {
  border-radius: 0.75rem;
  padding: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-stat-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #64748b;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.product-stat strong {
  font-size: 0.82rem;
  color: #0f172a;
}

.product-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none;
  background: #c5a059;
  border: 1px solid #c5a059;
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-detail-cta:hover {
  background: #0f172a;
  border-color: #0f172a;
}

.variations-title {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: #0f172a;
}

.variation-visuals {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.variation-visual {
  flex: 0 0 170px;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.variation-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.variation-visual-name {
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.08s; }
.delay-200 { transition-delay: 0.16s; }
.delay-300 { transition-delay: 0.24s; }

@media (min-width: 640px) {
  .products-title {
    font-size: 2.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.9rem;
    row-gap: 3.3rem;
  }

  .product-card-image-wrap {
    height: 9.4rem;
  }

}

@media (min-width: 768px) {
  .products-hero {
    padding-top: 9rem;
    padding-bottom: 4.2rem;
  }

  .products-toolbar {
    padding: 1.7rem;
  }

  .products-toolbar-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
    align-items: end;
  }

  .product-detail-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 3.4rem;
  }

}

@media (max-width: 767px) {
  .variation-visual {
    flex-basis: 150px;
  }
}
