/* GOCHEM product list page */
.products-hero {
    min-height: 465px;
    padding-top: 126px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(2, 52, 121, .94) 0%, rgba(3, 69, 154, .74) 37%, rgba(3, 69, 154, .08) 73%), url('../images/rd_lab.jpg') center / cover no-repeat;
}

.products-hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(3rem, 5vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -.05em;
}

.products-hero-tagline {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.45;
    font-weight: 500;
}

.products-hero-line {
    display: block;
    width: 46px;
    height: 2px;
    margin: 30px 0 22px;
    background: #fff;
}

.products-hero-copy>p:last-child {
    margin: 0;
    font-size: .96rem;
    line-height: 1.75;
}

.product-breadcrumb {
    padding: 18px 0;
    background: var(--primary-light);
    color: #607087;
    font-size: .9rem;
}

.product-breadcrumb .container {
    display: flex;
    gap: 13px;
    align-items: center;
}

.product-breadcrumb a {
    color: #59687d;
}

.product-breadcrumb strong {
    color: var(--accent);
}

.products-catalog {
    padding: 68px 0 54px;
    background: radial-gradient(rgba(0, 43, 92, .1) 1px, transparent 1px) right 10% bottom 5% / 14px 14px no-repeat, #fbfdff;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
}

.search-results-layout {
    grid-template-columns: minmax(0, 1fr);
}

.product-categories {
  align-self: start;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(8, 29, 60, 0.07);
  background: #ffffff;
  position: sticky;
  top: 90px;
  z-index: 10;
}

.category-heading {
  padding: 18px 22px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-filter,
.category-parent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-filter::before,
.category-parent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1665d8;
  transform: scaleY(0);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-filter > i.fa-chevron-right,
.category-parent > i.fa-chevron-down {
  font-size: 0.72rem;
  color: #cbd5e1;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover and Active states */
.category-filter:hover,
.category-parent:hover {
  color: #1665d8;
  background: #f8fafc;
  padding-left: 25px;
}

.category-filter:hover::before,
.category-parent:hover::before {
  transform: scaleY(1);
  background: var(--accent);
}

.category-filter:hover > i,
.category-parent:hover > i {
  color: #1665d8;
  transform: translateX(3px);
}

.category-filter.active {
  color: #1665d8;
  background: #eef5ff;
}

.category-filter.active::before {
  transform: scaleY(1);
  background: #1665d8;
}

.category-filter.active > i {
  color: #1665d8;
}

.category-parent[aria-expanded="true"] {
  color: #1665d8;
  background: #f8fafc;
}

.category-parent[aria-expanded="true"] > i.fa-chevron-down {
  transform: rotate(180deg);
  color: #1665d8;
}

/* Subcategories Dropdown Styling */
.category-children {
  display: none;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  margin-left: 22px;
  margin-right: 14px;
  margin-bottom: 6px;
  border-radius: 0 0 8px 8px;
}

.category-parent[aria-expanded="true"] + .category-children {
  display: block;
  animation: child-fade-in 0.25s ease;
}

@keyframes child-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-children .category-filter {
  padding: 11px 16px 11px 20px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
}

.category-children .category-filter::before {
  display: none;
}

.category-children .category-filter:hover {
  color: #1665d8;
  background: #ffffff;
  padding-left: 23px;
}

.category-children .category-filter.active {
  color: #1665d8;
  font-weight: 700;
  background: #ffffff;
}

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.product-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.product-tab {
    flex: 0 0 auto;
    border: 0;
    border-radius: 22px;
    padding: 11px 17px;
    background: transparent;
    color: #252c37;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.product-tab.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 14px rgba(0, 43, 92, .22);
}

.product-search {
    position: relative;
    flex: 0 0 215px;
}

.product-search input {
    width: 100%;
    border: 0;
    border-radius: 22px;
    padding: 11px 38px 11px 17px;
    outline: 0;
    background: #f0f4f9;
    color: #25324a;
    font: inherit;
    font-size: .82rem;
}

.product-search i {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #617187;
    font-size: .85rem;
    transform: translateY(-50%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.catalog-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(0, 43, 92, .1);
    transition: transform .3s, box-shadow .3s;
}

.catalog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 28px rgba(0, 43, 92, .16);
}

.catalog-card[hidden] {
    display: none;
}

.catalog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f7fb;
}

.catalog-card h2 {
    margin: 17px 15px 8px;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.catalog-card p {
    min-height: 34px;
    margin: 0 15px 13px;
    color: #566477;
    font-size: .78rem;
    line-height: 1.45;
}

.catalog-card a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 0 15px 17px;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
}

.catalog-card a i {
    transition: transform .25s;
}

.catalog-card:hover a i {
    transform: translateX(4px);
}

.products-empty {
    margin: 40px 0;
    color: #607087;
    text-align: center;
}

.product-benefits {
    padding: 0 0 62px;
    background: #fbfdff;
}

.product-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 31px 22px;
    border-radius: 9px;
    background: linear-gradient(105deg, #f0f4f9, #f9fbff);
    box-shadow: 0 7px 24px rgba(0, 43, 92, .06);
}

.product-benefits article {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    border-left: 1px solid #d9e4f4;
}

.product-benefits article:first-child {
    border-left: 0;
}

.product-benefits i {
    color: var(--primary);
    font-size: 2.75rem;
}

.product-benefits h3 {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: .94rem;
    font-weight: 800;
}

.product-benefits p {
    margin: 0;
    color: #566477;
    font-size: .76rem;
    line-height: 1.55;
}

.products-cta {
    position: relative;
    min-height: 260px;
    padding: 55px 0;
    overflow: hidden;
    color: #fff;
    background: url('../images/index-cta.png') center / cover no-repeat;
}

.products-cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(2, 16, 42, .91), rgba(4, 24, 60, .86));
}

.products-cta-wave {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
}

.products-cta-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.products-cta-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.products-cta h2 {
    max-width: 720px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.products-cta h2 span {
    color: var(--accent);
}

.products-cta p {
    max-width: 540px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.6;
}

.products-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 205px;
    padding: 14px 34px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 4px;
    color: #fff;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .3s;
}

.products-cta-btn:hover {
    border-color: #fff;
    color: #041d42;
    background: #fff;
    transform: translateY(-2px);
}

.products-cta-btn i {
    transition: transform .3s;
}

.products-cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 1100px) {
    .products-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 0;
    }

    .product-benefits article:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 768px) {
    .products-hero {
        min-height: 430px;
        padding-top: 110px;
        background-position: 60% center;
    }

    .products-hero h1 {
        font-size: 2.75rem;
    }

    .products-hero-tagline {
        font-size: 1.08rem;
    }

    .products-hero-copy>p:last-child {
        font-size: .85rem;
    }

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

    .product-categories {
        display: none;
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-tabs {
        padding-bottom: 4px;
    }

    .product-search {
        flex-basis: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-card img {
        aspect-ratio: 1 / 1;
    }

    .catalog-card h2 {
        margin: 13px 12px 6px;
        font-size: .95rem;
    }

    .catalog-card p {
        min-height: 32px;
        margin: 0 12px 10px;
        font-size: .7rem;
    }

    .catalog-card a {
        margin: 0 12px 13px;
        font-size: .72rem;
    }

    .product-benefits-grid {
        grid-template-columns: 1fr;
        padding: 12px 18px;
    }

    .product-benefits article,
    .product-benefits article:nth-child(3) {
        padding: 17px 0;
        border: 0;
        border-top: 1px solid #d9e4f4;
    }

    .product-benefits article:first-child {
        border-top: 0;
    }

    .products-cta {
        min-height: 0;
        padding: 55px 0;
    }

    .products-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .products-cta p {
        font-size: 1rem;
    }

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