.container--products {
  max-width: 1440px;
  padding-left: 20px;
  padding-right: 20px;
}

.products-main {
  display: flex;
  gap: 30px;
  margin: 16px 0 28px;
  align-items: flex-start;
}

.products-sidebar {
  flex: 0 0 260px;
  border-right: 1px solid #e4e9f0;
  padding-right: 22px;
  position: sticky;
  top: 70px;
  align-self: flex-start;
}

.products-content {
  flex: 1;
  min-width: 0;
}

.products-sidebar .category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003f7d;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0ecf9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-sidebar .category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, #003f7d, #0058b0);
  border-radius: 2px;
}

.category-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-menu-item {
  margin-bottom: 2px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 2px;
}

.category-menu-item:last-child {
  border-bottom: none;
}

.category-menu-link {
  display: block;
  color: #334155;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-menu-link:hover {
  background-color: #f5f9fd;
  color: #003f7d;
}

.category-menu-link.active {
  background-color: #003f7d;
  color: #fff;
}

.category-menu-link.has-children {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-menu-link.has-children:after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.category-menu-link.has-children.expanded:after {
  transform: rotate(180deg);
}

.category-menu-link.parent-active {
  background-color: #e0ecf9;
  color: #003f7d;
  font-weight: 600;
}

.subcategory-menu {
  list-style: none;
  padding: 4px 6px;
  margin-top: 4px;
  margin-bottom: 4px;
  background-color: #f8fafc;
  border-radius: 6px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.subcategory-menu.active {
  max-height: 1000px;
  opacity: 1;
}

.subcategory-menu-item {
  margin-bottom: 1px;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transition-delay: calc(0.05s * var(--item-index, 0));
}

.subcategory-menu.active .subcategory-menu-item {
  transform: translateX(0);
  opacity: 1;
}

.subcategory-menu-link {
  display: block;
  color: #555;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.subcategory-menu-link:hover {
  background-color: #f5f9fd;
  color: #003f7d;
  transform: translateX(3px);
}

.subcategory-menu-link.active {
  font-weight: 700 !important;
  color: #003f7d !important;
  background-color: #e8effb !important;
  padding-left: 15px !important;
  box-shadow: 0 2px 8px rgba(0, 63, 125, 0.1);
}

.subcategory-menu-link.parent-active {
  background-color: #e7f0fa;
  color: #003f7d;
  font-weight: 600;
  border-left: 3px solid #005cb9;
  padding-left: 12px;
}

.scale-type-menu {
  list-style: none;
  padding-left: 14px;
  margin-top: 7px;
  margin-bottom: 7px;
  background-color: #f8fafc;
  border-radius: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

.scale-type-menu.active {
  max-height: 1000px;
  opacity: 1;
  border-left: 2px solid #a9bdd8;
  padding-top: 5px;
  padding-bottom: 5px;
}

.scale-type-menu-item {
  margin-bottom: 5px;
  position: relative;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transition-delay: calc(0.05s * var(--item-index, 0));
}

.scale-type-menu.active .scale-type-menu-item {
  transform: translateX(0);
  opacity: 1;
}

.scale-type-menu-item:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 0;
  background: #003f7d;
  transform: translateY(-50%);
  transition: height 0.3s ease;
  opacity: 0;
}

.scale-type-menu-item:has(.scale-type-menu-link.active):before {
  height: 80%;
  opacity: 1;
}

.scale-type-menu-link {
  display: block;
  color: #666;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.scale-type-menu-link:hover {
  background-color: #f0f5fb;
  color: #003f7d;
  transform: translateX(3px);
}

.scale-type-menu-link.active {
  font-weight: 700;
  color: #003f7d;
  background-color: #e8effb;
  padding-left: 15px;
  box-shadow: 0 2px 8px rgba(0, 63, 125, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  padding: 18px 16px;
  margin: 0;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #eef2f8;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(240, 247, 255, 0.4) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 14px 36px rgba(0, 63, 125, 0.14);
  transform: translateY(-4px);
  border-color: #c7d9f0;
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 16px;
  mix-blend-mode: darken;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.default-product-image {
  opacity: 0.6;
  filter: grayscale(30%);
  background: #f8f9fa;
}

.sort-controls {
  position: relative;
  z-index: 15;
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown-menu {
  z-index: 9999 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #dce6f5;
  min-width: 160px;
  margin-top: 4px !important;
}

.sort-dropdown .dropdown-menu {
  z-index: 1060 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  will-change: transform;
}

.sort-dropdown .dropdown-item {
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.sort-dropdown .dropdown-item:hover {
  background-color: #f8fafc;
  color: #003f7d;
}

.sort-dropdown .dropdown-item.active {
  background-color: #003f7d;
  color: white;
}

.sort-dropdown .dropdown-item.active:hover {
  background-color: #002d5a;
}

.no-image-placeholder {
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #003f7d !important;
  color: white;
  border-radius: 8px;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #003f7d;
  margin-bottom: 4px;
  display: block;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.product-card:hover .product-title {
  color: #0058b0;
}

.product-category {
  font-size: 0.8rem;
  color: #8a99ad;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.product-specs {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0 6px;
  border: 1px solid #e2e8f0;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dotted #d0d8e4;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 30px;
}

.product-spec-row--verification .spec-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.product-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.product-spec-row:first-child {
  padding-top: 2px;
}

.spec-label {
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-label i {
  color: #003f7d;
  font-size: 0.72rem;
  margin-right: 4px;
  width: 14px;
  text-align: center;
  opacity: 0.7;
}

.spec-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  margin-left: 8px;
  word-break: break-word;
}

.spec-verification-img {
  height: 20px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-specs {
  border-color: #b8c9e0;
  background: linear-gradient(135deg, #f0f5fb 0%, #e8eff8 100%);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.product-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.product-detail-btn {
  background: linear-gradient(135deg, #003f7d 0%, #0058b0 100%);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  width: 100%;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 63, 125, 0.18);
  position: relative;
  z-index: 1;
}

.product-detail-btn::after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}

.product-detail-btn:hover {
  background: linear-gradient(135deg, #002d5a 0%, #003f7d 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 63, 125, 0.28);
}

.product-detail-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.products-breadcrumb {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.products-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.products-breadcrumb a:hover {
  color: #003f7d;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .products-main {
    flex-direction: column;
  }

  .products-sidebar {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid #e4e9f0;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .products-sidebar .category-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
    border-bottom: none;
  }

  .products-sidebar .category-title::before {
    display: none;
  }

  .products-sidebar .category-title::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #003f7d;
  }

  .products-sidebar .category-title.collapsed::after {
    transform: rotate(0deg);
  }

  .products-sidebar .category-title:not(.collapsed)::after {
    transform: rotate(180deg);
  }

  .category-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .category-menu.show {
    max-height: 2000px;
    padding-bottom: 16px;
  }

  .products-toolbar {
    gap: 12px;
  }

  .products-main {
    gap: 20px;
    margin: 16px 0 24px;
  }
}

@media (max-width: 767.98px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 18px !important;
  }

  .scale-types-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 18px !important;
  }

  .product-card,
  .scale-type-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .product-image,
  .scale-type-image {
    height: 150px;
    margin-bottom: 12px;
    padding: 8px;
  }

  .product-image img {
    height: 140px;
  }

  .product-title,
  .scale-type-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .product-category {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .product-detail-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-top: 12px;
  }

  .product-specs {
    padding: 10px 12px;
    margin: 8px 0 6px;
    border-radius: 10px;
  }

  .product-spec-row {
    font-size: 0.78rem;
    padding: 5px 0;
    min-height: 30px;
  }

  .spec-label i {
    font-size: 0.7rem;
    margin-right: 4px;
  }

  .products-page-title-wrap {
    padding: 18px 20px;
    gap: 14px;
    margin: 4px 0 18px;
  }

  .products-page-title-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .products-page-title {
    font-size: 1.4rem;
  }

  .container--products {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 479.98px) {

  .products-grid,
  .scale-types-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

.products-sidebar .category-icon {
  margin-right: 8px;
  color: inherit;
  vertical-align: -1px;
}

.products-sidebar i.category-icon {
  font-size: 0.95rem;
  width: auto;
  height: auto;
  background: none;
  display: inline-block;
}

.products-sidebar img.category-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: none;
}

.products-sidebar .subcategory-icon {
  margin-right: 6px;
  color: inherit;
  vertical-align: -1px;
}

.products-sidebar i.subcategory-icon {
  font-size: 0.85rem;
  width: auto;
  height: auto;
  background: none;
  display: inline-block;
}

.products-sidebar img.subcategory-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  background: none;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: #007bff;
}

.news-card-summary {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.news-card-footer {
  margin-top: auto;
}

.btn-read-more {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-read-more:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
  transform: translateX(2px);
}

.news-sort-controls {
  background: linear-gradient(to right, #f0f5fb, #f7f9fc);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #dbe3ef;
  margin-bottom: 25px;
}

.sort-heading {
  font-weight: 600;
  color: #003f7d;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.sort-heading i {
  margin-right: 8px;
  background: #e0ecf9;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #003f7d;
}

.news-sort-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-sort-option {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #dbe3ef;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.news-sort-option:hover {
  transform: translateY(-2px);
  border-color: #a9bdd8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  color: #003f7d;
  text-decoration: none;
}

.news-sort-option.active {
  background: linear-gradient(to right, #003f7d, #0052a5);
  color: white;
  border-color: #003f7d;
  box-shadow: 0 4px 12px rgba(0, 63, 125, 0.2);
}

.sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 12px;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.news-sort-option:hover .sort-icon {
  transform: scale(1.1);
}

.news-sort-option.active .sort-icon {
  background: rgba(255, 255, 255, 0.2);
}

.sort-label {
  font-weight: 500;
  font-size: 15px;
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  background: #f7f9fc;
  border-radius: 10px;
  margin-top: 20px;
}

.no-products-icon {
  font-size: 3rem;
  color: #a9bdd8;
  margin-bottom: 20px;
}

.no-products-title {
  font-size: 1.5rem;
  color: #003f7d;
  margin-bottom: 10px;
}

.no-products-text {
  color: #777;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.scale-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.scale-type-card {
  background: #ffffff;
  border: 1px solid #eef2f8;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.scale-type-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 63, 125, 0.14);
  border-color: #c7d9f0;
}

.scale-type-image {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  border: none;
}

.scale-type-image img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  mix-blend-mode: darken;
}

.scale-type-card:hover .scale-type-image img {
  transform: scale(1.05);
}

.scale-type-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #003f7d;
  margin-bottom: 0;
  margin-top: auto;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding: 6px 4px 2px;
}

.scale-type-card:hover .scale-type-title {
  color: #0058b0;
}

.scale-type-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.scale-type-link:hover {
  text-decoration: none;
  color: inherit;
}

.scale-type-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #e30613;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 15px;
  text-transform: uppercase;
  z-index: 1;
}

.video-card {
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 63, 125, .16);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  opacity: 1;
}

.video-play-btn {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background: #003f7d;
  border: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background: #002d5a;
  transform: scale(1.1);
}

.video-play-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 63, 125, .25);
}

/* Duplicitní pravidla .products-grid, .product-card, .product-image, .product-badge
   byla odstraněna — hlavní definice jsou výše (řádky 261+). */

.products-table {
  border-collapse: separate;
  border-spacing: 0;
}

.products-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
  border-bottom: 2px solid #dbe3ef;
  font-weight: 600;
  white-space: nowrap;
}

.products-table-head--center {
  text-align: center;
}

.products-table tbody tr:nth-child(even) {
  background: #fefefe;
}

.products-table tbody tr:nth-child(odd) {
  background: #f7f9fc;
}

.products-table tbody td:first-child,
.products-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  border-right: 1px solid #e5eaf3;
  min-width: 260px;
}

.table-product-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: darken;
}

.product-table-link {
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 4px;
  border-radius: 6px;
}

.product-table-link:hover {
  background-color: #f8fafc;
  text-decoration: none;
}

.product-name-table {
  font-size: 1.05rem;
  font-weight: 500;
  color: #003f7d;
  line-height: 1.4;
  margin-left: 20px;
}

.products-table-cell--center {
  text-align: center;
  vertical-align: middle;
}

.products-table-cell--small {
  font-size: 0.92rem;
  font-weight: 500;
}

.products-table-cell--verification {
  min-width: 120px;
}

.verification-label-img {
  height: 26px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: inline-block;
}

.verification-label-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf1fb;
  color: #003f7d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.verification-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eaf1fb;
  color: #003f7d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.verification-pill--no {
  background: #fde8e8;
  color: #b42318;
}

.view-controls .view-wrap {
  display: flex;
  align-items: center;
  background: #f0f5fb;
  border-radius: 10px;
  padding: 8px 18px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-controls .view-label {
  font-weight: 600;
  color: #003f7d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.view-controls .view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #c9d4e8;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 5px rgba(0, 63, 125, 0.08);
}

.view-controls .view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #003f7d;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.view-controls .view-switch-btn:hover {
  background: #e8effb;
  color: #003f7d;
  text-decoration: none;
}

.view-controls .view-switch-btn.active {
  background: #003f7d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 63, 125, 0.25);
}

.view-controls .view-switch-btn.active:hover {
  background: #002d5a;
  color: #ffffff;
}

.view-controls .view-switch-btn i {
  font-size: 0.85rem;
}

.products-page-title-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 6px 0 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #ecf3fb 0%, #f8fafc 60%, #fafcff 100%);
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 63, 125, 0.06);
  overflow: hidden;
}

.products-page-title-wrap::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 63, 125, 0.08) 0%, rgba(0, 63, 125, 0) 70%);
  pointer-events: none;
}

.products-page-title-wrap::before {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 88, 176, 0.05) 0%, rgba(0, 88, 176, 0) 70%);
  pointer-events: none;
}

.products-page-title-accent {
  flex: 0 0 5px;
  background: linear-gradient(to bottom, #003f7d 0%, #0058b0 50%, #0072d9 100%);
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 63, 125, 0.3);
}

.products-page-title-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.products-page-title-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fd 100%);
  color: #003f7d;
  font-size: 1.15rem;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 3px 10px rgba(0, 63, 125, 0.1);
}

.products-page-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #003f7d;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.products-breadcrumb {
  margin-top: 0;
  margin-bottom: 20px;
}

.products-breadcrumb .breadcrumb {
  background: linear-gradient(to right, #f0f5fb, #f8fafc);
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.products-breadcrumb .breadcrumb-item {
  font-weight: 500;
}

.products-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #8ba5ca;
  padding: 0 12px;
}

.products-breadcrumb .breadcrumb-item a {
  color: #003f7d;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.products-breadcrumb .breadcrumb-item a:hover {
  color: #002d5a;
  text-decoration: none;
}

.products-breadcrumb .breadcrumb-item a:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #002d5a;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

.products-breadcrumb .breadcrumb-item a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.products-breadcrumb .breadcrumb-item.active {
  color: #495057;
  font-weight: 600;
}

.subcategory-menu-item {
  margin-bottom: 6px;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transition-delay: calc(0.05s * var(--item-index, 0));
  position: relative;
}

.subcategory-menu-item:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 3px;
  height: 0;
  background: #003f7d;
  transform: translateY(-50%);
  transition: height 0.3s ease;
  opacity: 0;
}

.subcategory-menu-link.active+ul li:before,
.subcategory-menu-link.active:before,
.subcategory-menu-item:has(.subcategory-menu-link.active):before {
  height: 80%;
  opacity: 1;
}

.subcategory-menu-link.active {
  font-weight: 700 !important;
  color: #003f7d !important;
  background-color: #e8effb !important;
  padding-left: 15px !important;
  box-shadow: 0 2px 8px rgba(0, 63, 125, 0.1);
}

.category-menu-link.active {
  background: linear-gradient(to right, #003f7d, #0052a5);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 63, 125, 0.2);
}

.scale-type-menu-link.active {
  font-weight: 700;
  color: #003f7d;
  background-color: #e8effb;
  padding-left: 15px;
  box-shadow: 0 2px 8px rgba(0, 63, 125, 0.1);
}

.scale-type-menu {
  list-style: none;
  padding-left: 14px;
  margin-top: 7px;
  margin-bottom: 7px;
  background-color: #f8fafc;
  border-radius: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

.subcategory-menu-link.expanded+.scale-type-menu {
  max-height: 1000px;
  opacity: 1;
  border-left: 2px solid #a9bdd8;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.scale-type-menu-item {
  margin-bottom: 5px;
  position: relative;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transition-delay: calc(0.05s * var(--item-index, 0));
}

.scale-type-menu.active .scale-type-menu-item {
  transform: translateX(0);
  opacity: 1;
}

.scale-type-menu-item:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 0;
  background: #003f7d;
  transform: translateY(-50%);
  transition: height 0.3s ease;
  opacity: 0;
}

.scale-type-menu-item:has(.scale-type-menu-link.active):before {
  height: 80%;
  opacity: 1;
}

.scale-type-menu-link {
  display: block;
  color: #777;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.scale-type-menu-link:hover {
  background-color: #f0f5fb;
  color: #003f7d;
  transform: translateX(3px);
}

.scale-type-menu-link.active {
  font-weight: 700;
  color: #003f7d;
  background-color: #e8effb;
  padding-left: 15px;
  box-shadow: 0 2px 8px rgba(0, 63, 125, 0.1);
}

.sort-controls {
  position: relative;
  z-index: 100;
}

.sort-dropdown:hover>.dropdown-menu {
  display: block;
  margin-top: 0 !important;
}

.sort-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  z-index: -1;
}

.sort-dropdown>.dropdown-toggle:focus {
  box-shadow: none;
}

.sort-controls .sort-wrap {
  display: flex;
  align-items: center;
  background: #f0f5fb;
  border-radius: 10px;
  padding: 8px 18px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-controls label {
  margin-right: 10px;
  font-weight: 600;
  color: #003f7d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sort-controls .sort-select {
  background-color: white;
  border: 1px solid #c9d4e8;
  border-radius: 6px;
  padding: 6px 15px 6px 10px;
  font-weight: 500;
  color: #003f7d;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23003f7d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 12px;
  box-shadow: 0 2px 5px rgba(0, 63, 125, 0.08);
  transition: all 0.2s ease;
  width: auto;
  min-width: 160px;
}

.sort-controls .sort-select:hover {
  border-color: #8baed9;
  box-shadow: 0 3px 8px rgba(0, 63, 125, 0.15);
}

.sort-controls .sort-select:focus {
  border-color: #003f7d;
  box-shadow: 0 0 0 3px rgba(0, 63, 125, 0.15);
  outline: none;
}


.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #003f7d;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 15px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.compare-count {
  font-weight: 700;
  font-size: 18px;
  margin-right: 5px;
}

.compare-submit-btn {
  margin-right: 10px;
  background: white;
  color: #003f7d;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 15px;
  transition: background 0.2s;
}

.compare-submit-btn:hover {
  background: #f0f5fb;
  color: #003f7d;
}

.compare-clear-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compare-clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Product level badges — subtle pill style matching level-tag */
.professional-badge {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
.professional-badge::before {
  background-color: #ef4444 !important;
}

.advanced-badge {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.advanced-badge::before {
  background-color: #f59e0b !important;
}

.standard-badge {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6) !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}
.standard-badge::before {
  background-color: #9ca3af !important;
}

/* Level tag on scale-type cards */
.level-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.level-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.level-tag--professional {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.level-tag--professional::before {
  background-color: #ef4444;
}

.level-tag--advanced {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 1px solid #fde68a;
}
.level-tag--advanced::before {
  background-color: #f59e0b;
}

.level-tag--standard {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  color: #374151;
  border: 1px solid #e5e7eb;
}
.level-tag--standard::before {
  background-color: #9ca3af;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.badge.professional-badge::before,
.badge.advanced-badge::before,
.badge.standard-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  background-color: rgba(255,255,255,0.7);
}

.badge-new {
  background-color: #e30613;
}


.product-detail-hero {
  background-color: #fff;
  border-bottom: 1px solid #eef2f8;
}

.product-gallery-wrapper {
  position: relative;
}

.thumbnail-item img {
  border-color: #eef2f8 !important;
  transition: all 0.2s ease;
}

.thumbnail-item img:hover {
  border-color: #003f7d !important;
  box-shadow: 0 0 0 2px rgba(0, 63, 125, 0.1);
}

.product-info-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-tag {
  transition: all 0.2s ease;
}

.feature-tag:hover {
  background-color: #003f7d !important;
  color: #fff !important;
  border-color: #003f7d !important;
}

.feature-tag:hover i {
  opacity: 1 !important;
}

.modern-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 1rem 0;
  margin-bottom: -1px;
  background: none;
  transition: all 0.3s ease;
}

.modern-tabs .nav-link:hover {
  color: #003f7d;
  border-color: rgba(0, 63, 125, 0.2);
}

.modern-tabs .nav-link.active {
  color: #003f7d;
  border-bottom-color: #003f7d;
  background: none;
}

.prose-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
}

.prose-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.property-card,
.download-card {
  transition: all 0.3s ease;
}

.property-card:hover,
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
  border-color: #dce6f5 !important;
}

.download-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.icon-wrapper {
  transition: transform 0.3s ease;
}

.accessories-section {
  background-color: #fff;
  border-top: 1px solid #eef2f8;
}

.product-card.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 63, 125, 0.1) !important;
  z-index: 2;
}

/* ========== Advanced Search ========== */

.as-results-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.as-results-count {
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: 500;
}

.as-search-box {
  display: flex;
  margin-bottom: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.as-search-input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
  color: #1f2937;
}

.as-search-input::placeholder {
  color: #9ca3af;
}

.as-search-btn {
  border: none;
  background: #003f7d;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.as-search-btn:hover {
  background: #002d5a;
}

.as-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.as-clear-filters:hover {
  background: #fee2e2;
  color: #b91c1c;
  text-decoration: none;
}

.as-filter-group {
  border-bottom: 1px solid #eef2f8;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.as-filter-group.collapsed .as-filter-values {
  display: none;
}

.as-filter-group.collapsed .as-filter-arrow {
  transform: rotate(-90deg);
}

.as-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #003f7d;
  text-align: left;
}

.as-filter-heading:hover {
  color: #0052a5;
}

.as-filter-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  color: #9ca3af;
}

.as-filter-values {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.as-filter-values::-webkit-scrollbar {
  width: 4px;
}

.as-filter-values::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.as-category-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
}
.as-category-select:focus {
  outline: none;
  border-color: #003f7d;
  box-shadow: 0 0 0 2px rgba(0,63,125,0.1);
}

.as-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  font-size: 0.78rem;
  color: #374151;
  transition: color 0.15s;
}

.as-checkbox-label:hover {
  color: #003f7d;
}

.as-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #003f7d;
  flex-shrink: 0;
  cursor: pointer;
}

.as-checkbox-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-checkbox-count {
  color: #9ca3af;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.no-results-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
}

.no-results-message p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .as-results-header {
    flex-direction: column;
    gap: 4px;
  }

  .as-filter-values {
    max-height: 150px;
  }
}

