/* Products page specific styles */
.products-page .container {
  width: min(1240px, 92vw);
}

.products-page .page-head {
  padding: 44px 0 18px;
}

.products-page .section {
  padding-bottom: 64px;
}

.products-page .section-top-pad {
  padding-top: 10px;
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

html[lang^="en"] .page-head .products-head-intro,
html[lang^="en"] .page-head p.products-head-intro,
.page-head .products-head-intro {
  max-width: none !important;
  width: 100% !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.products-page .page-head h1 {
  max-width: none;
}

.products-sidebar {
  position: sticky;
  top: 92px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(29, 57, 89, 0.12);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.88rem;
}

.products-sidebar h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.products-search {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.products-search input {
  width: 100%;
  border: 1px solid rgba(29, 57, 89, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #2a3c50;
  padding: 10px 12px;
  font: inherit;
}

.products-search .btn {
  width: 100%;
}

.products-search-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.products-tools .products-search-top .btn {
  width: auto;
  min-width: 108px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 12px;
}

.products-search-top .btn:hover {
  color: #0e7f9e;
}

.products-search-top input {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.98rem;
}

.products-cats-nav {
  display: grid;
  gap: 4px;
}

.products-cats-nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #35516c;
  border: 1px solid transparent;
  font-size: 0.81rem;
  line-height: 1.35;
}

.products-cats-nav a span {
  color: #668099;
  font-size: 0.76rem;
}

.products-cats-nav a:hover,
.products-cats-nav a.is-active {
  color: #0e7f9e;
  border-color: rgba(14, 127, 158, 0.28);
  background: rgba(14, 127, 158, 0.08);
}

.products-main {
  min-width: 0;
}

.products-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.products-toolbar {
  justify-self: end;
  margin: 0;
}

.products-toolbar p {
  margin: 0;
  color: #60758d;
  font-size: 0.9rem;
  white-space: nowrap;
}

.products-grid-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.products-grid-modern > * {
  min-width: 0;
}

.products-grid-modern .product-card-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: auto;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.products-grid-modern .product-card-modern:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 127, 158, 0.22);
  box-shadow: 0 14px 28px rgba(16, 42, 73, 0.12);
}

.products-grid-modern .product-card-media {
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  height: 120px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.products-grid-modern .product-card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  object-fit: contain;
  object-position: center center;
}

.product-card-media span {
  display: grid;
  place-items: center;
  min-height: 100px;
  color: #5f7892;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card-modern h2 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.34;
  min-height: calc(1.34em * 3);
}

.product-card-modern h2 a {
  color: #1f344b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.product-card-modern h2 a:hover {
  color: #0e7f9e;
}

.product-card-action {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(29, 57, 89, 0.1);
  color: #0b6f8a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-card-action:hover {
  color: #0e7f9e;
}

.products-main .btn-secondary,
.product-card-modern .btn-secondary {
  border: 1px solid rgba(29, 57, 89, 0.38);
  background: #ffffff;
  color: #1f344b;
}

.products-main .btn-secondary:hover,
.product-card-modern .btn-secondary:hover {
  border-color: rgba(14, 127, 158, 0.5);
  background: rgba(14, 127, 158, 0.06);
  color: #0e7f9e;
}

.products-main .navigation.pagination {
  margin-top: 12px;
}

.products-main .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.products-main .page-numbers {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(29, 57, 89, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #36516d;
  background: #fff;
  padding: 0 10px;
  font-size: 0.84rem;
}

.products-main .page-numbers.current,
.products-main .page-numbers:hover {
  color: #0e7f9e;
  border-color: rgba(14, 127, 158, 0.36);
  background: rgba(14, 127, 158, 0.08);
}

@media (max-width: 1200px) {
  .products-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .products-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .products-page .page-head {
    padding: 32px 0 14px;
  }

  .products-page .section-top-pad {
    padding-top: 8px;
  }

  .products-layout,
  .products-grid-modern {
    grid-template-columns: 1fr;
  }

  .products-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .products-toolbar {
    justify-self: start;
  }

  .products-search-top {
    grid-template-columns: 1fr;
  }

  .products-tools .products-search-top .btn {
    width: 100%;
  }

  .products-sidebar {
    position: static;
  }
}
