.all-products-page .main {
  padding-top: 0 !important;
}

.all-products-page {
  background: #f8fbfc;
}

.all-products-page.index-page .header {
  --background-color: transparent;
  box-shadow: none;
}

.all-products-page.index-page .navmenu a,
.all-products-page.index-page .navmenu .toggle-dropdown,
.all-products-page.index-page .mobile-nav-toggle {
  color: #ffffff;
}

.all-products-page.index-page .navmenu li:hover > a,
.all-products-page.index-page .navmenu .active,
.all-products-page.index-page .navmenu .active:focus {
  color: var(--nav-hover-color);
}

.all-products-page.index-page .navmenu .products-megamenu-1 > a {
  background: transparent !important;
}

.all-products-page.index-page .navmenu .products-megamenu-1>a:hover,
.all-products-page.index-page .navmenu .products-megamenu-1>a.active,
.all-products-page.index-page .navmenu .products-megamenu-1>a.active:focus {
  background: transparent !important;
  color: var(--nav-hover-color);
}

.all-products-page.index-page.scrolled .header {
  --background-color: #ffffff !important;
  box-shadow: var(--shadow-sm) !important;
}

.all-products-page.index-page.scrolled .navmenu a,
.all-products-page.index-page.scrolled .navmenu .toggle-dropdown,
.all-products-page.index-page.scrolled .mobile-nav-toggle {
  color: #000000;
}

@media (max-width: 1199px) {
  .all-products-page.index-page .navmenu a,
  .all-products-page.index-page .navmenu .toggle-dropdown,
  .all-products-page.index-page.scrolled .navmenu a,
  .all-products-page.index-page.scrolled .navmenu .toggle-dropdown {
    color: var(--nav-dropdown-color);
  }
}

.all-products-hero {
  position: relative;
  min-height: 64vh;
  padding: 132px 0 64px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38)),
    url("../img/backgrounds/hero-bg.png") center / cover no-repeat;
  overflow: hidden;
}

.all-products-hero .container {
  position: relative;
  z-index: 1;
}

.all-products-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #b8f0e7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.all-products-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: 3.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.all-products-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.75;
}

.all-products-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.all-products-hero-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.all-products-hero-note .compliance-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-directory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.product-directory-title h2 {
  margin: 0;
  color: #111827;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-directory-title p {
  max-width: 610px;
  margin: 12px 0 0;
  color: #5f6b76;
  line-height: 1.7;
}

.product-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #008b7f;
  background: #e6f4f2;
  font-weight: 700;
  white-space: nowrap;
}

.product-category {
  margin-top: 42px;
}

.product-category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.product-category-heading h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.product-category-heading span {
  color: #5f6b76;
  font-size: 1.2rem;
}

.all-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.all-product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--panel-accent, #3DB552) 28%, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.all-product-card:hover {
  color: inherit;
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--panel-accent, #3DB552) 62%, #ffffff);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.all-product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-accent, #3DB552) 14%, #ffffff) 0%,
      color-mix(in srgb, var(--panel-accent, #3DB552) 8%, #ffffff) 62%,
      #ffffff 100%
    );
  overflow: hidden;
}

.all-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.35s ease;
}

.all-product-card:hover .all-product-image img {
  transform: scale(1.04);
}

#panel-hot .all-product-image img,
#panel-light .all-product-image img {
  transform: scale(1.3);
}

#panel-hot .all-product-card:hover .all-product-image img,
#panel-light .all-product-card:hover .all-product-image img {
  transform: scale(1.34);
}

.tab-panel {
  --panel-accent: #3DB552;
}

#panel-cool {
  --panel-accent: #00AB9A;
}

#panel-hot {
  --panel-accent: #FDB92A;
}

#panel-light {
  --panel-accent: #938EC5;
}

.all-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.all-product-kicker {
  color: var(--panel-accent, #3DB552);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.all-product-body h4 {
  margin: 10px 0 10px;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.all-product-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 0.95rem;
}

.all-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.product-range-tag {
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.product-view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--panel-accent, #3DB552);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.all-products-action-btn {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.all-products-action-btn::before {
  display: block !important;
  transform: translateX(-120%) skew(30deg);
}

.all-products-action-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

.all-products-action-btn:hover span {
  color: #ffffff !important;
}

.all-products-action-btn:hover::before {
  display: block !important;
  transform: translateX(0) skew(30deg);
}

.all-products-cta {
  color: #ffffff;
  background: url("../img/backgrounds/cta.png") center / cover no-repeat;
}

.all-products-cta .secondary-btn {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.all-products-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.all-products-cta p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

@media (max-width: 991.98px) {
  .all-products-hero {
    min-height: auto;
    padding: 118px 0 54px;
  }

  .all-products-hero h1 {
    font-size: 2.65rem;
  }

  .product-directory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .all-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .all-products-hero h1 {
    font-size: 2.15rem;
  }

  .all-products-hero p {
    font-size: 1rem;
  }

  .product-directory-title h2,
  .all-products-cta h2 {
    font-size: 1.85rem;
  }

  .all-products-grid {
    grid-template-columns: 1fr;
  }

  .all-product-body {
    padding: 20px;
  }
}

/* ── Condition Tabs ───────────────────────────────────────── */

.condition-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

.condition-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow   0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform    0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.condition-tab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.condition-tab.active {
  transform: translateY(-3px);
}

.condition-tab.active::before {
  transform: scaleX(1);
}

.ct-icon-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color      0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.condition-tab:hover .ct-icon-wrap,
.condition-tab.active .ct-icon-wrap {
  transform: scale(1.12);
}

.ct-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ct-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  transition: color 0.28s ease;
}

.condition-tab::before {
  background: linear-gradient(90deg, #008b7f, #00b8a9);
}

.condition-tab:hover,
.condition-tab.active {
  box-shadow: 0 8px 28px rgba(0, 139, 127, 0.15);
}

/* Humid Conditions - Green Color */
#ctab-humid.active::before {
  background: linear-gradient(90deg, #3DB552, #3DB552);
}

#ctab-humid.active,
#ctab-humid:hover {
  border-color: #3DB552;
  box-shadow: 0 8px 28px rgba(61, 181, 82, 0.15);
}

#ctab-humid .ct-icon-wrap {
  background: rgba(61, 181, 82, 0.15);
  color: #3DB552;
}

#ctab-humid.active .ct-icon-wrap,
#ctab-humid:hover .ct-icon-wrap {
  background: #3DB552;
  color: #ffffff;
}

#ctab-humid .ct-title {
  color: #111827;
}

#ctab-humid.active .ct-title,
#ctab-humid:hover .ct-title {
  color: #3DB552;
}

/* Cool Conditions - Teal Color */
#ctab-cool.active::before {
  background: linear-gradient(90deg, #00AB9A, #00AB9A);
}

#ctab-cool.active,
#ctab-cool:hover {
  border-color: #00AB9A;
  box-shadow: 0 8px 28px rgba(0, 171, 154, 0.15);
}

#ctab-cool .ct-icon-wrap {
  background: rgba(0, 171, 154, 0.15);
  color: #00AB9A;
}

#ctab-cool.active .ct-icon-wrap,
#ctab-cool:hover .ct-icon-wrap {
  background: #00AB9A;
  color: #ffffff;
}

#ctab-cool .ct-title {
  color: #111827;
}

#ctab-cool.active .ct-title,
#ctab-cool:hover .ct-title {
  color: #00AB9A;
}

/* Hot Conditions - Yellow/Gold Color */
#ctab-hot.active::before {
  background: linear-gradient(90deg, #FDB92A, #FDB92A);
}

#ctab-hot.active,
#ctab-hot:hover {
  border-color: #FDB92A;
  box-shadow: 0 8px 28px rgba(253, 185, 42, 0.15);
}

#ctab-hot .ct-icon-wrap {
  background: rgba(253, 185, 42, 0.15);
  color: #FDB92A;
}

#ctab-hot.active .ct-icon-wrap,
#ctab-hot:hover .ct-icon-wrap {
  background: #FDB92A;
  color: #ffffff;
}

#ctab-hot .ct-title {
  color: #111827;
}

#ctab-hot.active .ct-title,
#ctab-hot:hover .ct-title {
  color: #FDB92A;
}

/* Light Conditions - Purple Color */
#ctab-light.active::before {
  background: linear-gradient(90deg, #938EC5, #938EC5);
}

#ctab-light.active,
#ctab-light:hover {
  border-color: #938EC5;
  box-shadow: 0 8px 28px rgba(147, 142, 197, 0.15);
}

#ctab-light .ct-icon-wrap {
  background: rgba(147, 142, 197, 0.15);
  color: #938EC5;
}

#ctab-light.active .ct-icon-wrap,
#ctab-light:hover .ct-icon-wrap {
  background: #938EC5;
  color: #ffffff;
}

#ctab-light .ct-title {
  color: #111827;
}

#ctab-light.active .ct-title,
#ctab-light:hover .ct-title {
  color: #938EC5;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabReveal 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tabReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991.98px) {
  .condition-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .condition-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
  }

  .condition-tab {
    padding: 14px 16px;
    gap: 10px;
  }

  .ct-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}
