/* ============================================
   ARICA — Products Page
   ============================================ */

.products-page {
  --products-section-pad: clamp(4rem, 8vw, 6rem);
}

/* ---- Page Banner ---- */
.products-banner {
  position: relative;
  padding: calc(var(--header-h) + var(--topbar-h) + clamp(1.5rem, 3vw, 2.25rem)) 0 clamp(1.5rem, 3vw, 2.25rem);
  background: #010728;
  overflow: hidden;
  color: var(--white);
}

.products-banner__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products-banner__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.products-banner__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 7, 40, 0.78) 0%,
    rgba(1, 7, 40, 0.5) 40%,
    rgba(1, 7, 40, 0.18) 70%,
    transparent 100%
  );
}

.products-banner__bg-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(120deg,
    rgba(19, 120, 243, 0) 0%,
    rgba(19, 120, 243, 0.35) 35%,
    rgba(140, 205, 255, 0.28) 50%,
    rgba(19, 120, 243, 0) 65%);
  background-size: 250% 250%;
  animation: prodBannerSheenShift 11s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.products-banner__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.products-banner__bubbles span {
  position: absolute;
  bottom: -10%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(150, 205, 255, 0.18) 60%, rgba(150, 205, 255, 0) 76%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 6px 1px rgba(110, 190, 255, 0.55), 0 0 16px 4px rgba(19, 120, 243, 0.35);
  filter: drop-shadow(0 0 4px rgba(140, 205, 255, 0.5));
  opacity: 0;
  animation: prodBannerBubbleRise linear infinite;
}

.products-banner__bubbles span:nth-child(1)  { left: 6%;  width: 9px;  height: 9px;  --drift: 22px;  animation-duration: 8.5s;  animation-delay: 0s; }
.products-banner__bubbles span:nth-child(2)  { left: 16%; width: 14px; height: 14px; --drift: -18px; animation-duration: 11s;   animation-delay: 1.2s; }
.products-banner__bubbles span:nth-child(3)  { left: 27%; width: 7px;  height: 7px;  --drift: 12px;  animation-duration: 7.5s;  animation-delay: 2.6s; }
.products-banner__bubbles span:nth-child(4)  { left: 40%; width: 12px; height: 12px; --drift: -20px; animation-duration: 10s;   animation-delay: 0.6s; }
.products-banner__bubbles span:nth-child(5)  { left: 52%; width: 8px;  height: 8px;  --drift: 16px;  animation-duration: 9s;    animation-delay: 3.4s; }
.products-banner__bubbles span:nth-child(6)  { left: 63%; width: 15px; height: 15px; --drift: -14px; animation-duration: 12.5s; animation-delay: 1.8s; }
.products-banner__bubbles span:nth-child(7)  { left: 74%; width: 6px;  height: 6px;  --drift: 10px;  animation-duration: 7s;    animation-delay: 4.2s; }
.products-banner__bubbles span:nth-child(8)  { left: 84%; width: 11px; height: 11px; --drift: -22px; animation-duration: 10.5s; animation-delay: 2.2s; }
.products-banner__bubbles span:nth-child(9)  { left: 92%; width: 9px;  height: 9px;  --drift: 18px;  animation-duration: 8s;    animation-delay: 0.9s; }
.products-banner__bubbles span:nth-child(10) { left: 97%; width: 13px; height: 13px; --drift: -16px; animation-duration: 11.5s; animation-delay: 3.8s; }

@keyframes prodBannerSheenShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes prodBannerBubbleRise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.6; }
  55% { opacity: 0.35; }
  100% { transform: translateY(-320px) translateX(var(--drift, 16px)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .products-banner__bg-sheen,
  .products-banner__bubbles span {
    animation: none;
  }

  .products-banner__bubbles {
    display: none;
  }
}

.products-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.products-banner__logo {
  flex-shrink: 0;
  width: clamp(96px, 13vw, 132px);
  height: clamp(96px, 13vw, 132px);
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  background: rgba(255, 255, 255, 0.08);
  animation: productsLogoFloat 5s ease-in-out infinite;
}

@keyframes productsLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.products-banner__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-banner__text {
  flex: 1;
  min-width: 0;
}

.products-banner__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.06);
}

.products-banner__title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.products-banner__desc {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 80%;
  margin-bottom: 1.25rem;
}

.products-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.products-banner__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.products-banner__stat--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Breadcrumb ---- */
.products-breadcrumb {
  padding: 0.85rem 0;
  background: var(--gray-100);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.products-breadcrumb__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-100);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  padding: 0.45rem 1.1rem 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.products-breadcrumb__back svg {
  transition: transform 0.25s var(--ease);
}

.products-breadcrumb__back:hover {
  background: var(--white);
  border-color: rgba(19, 120, 243, 0.3);
  color: var(--brand-blue);
  transform: translateX(-2px);
}

.products-breadcrumb__back:hover svg {
  transform: translateX(-3px);
}

.products-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-breadcrumb__list a {
  transition: color 0.25s;
}

.products-breadcrumb__list a:hover {
  color: var(--brand-blue);
}

.products-breadcrumb__sep {
  opacity: 0.4;
}

.products-breadcrumb__current {
  color: var(--gray-800);
  font-weight: 600;
}

/* ---- Products Section ---- */
.products-section {
  /* layout handled by .listing-section */
  padding-top: 0;
}

.products-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products-section__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.products-section__orb--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -60px;
  background: rgba(19, 120, 243, 0.07);
}

.products-section__orb--2 {
  width: 340px;
  height: 340px;
  bottom: -80px;
  left: -50px;
  background: rgba(227, 103, 108, 0.05);
}/* ---- Toolbar ---- */
.products-toolbar {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.products-toolbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.products-search {
  position: relative;
  flex: 0 1 360px;
  width: 100%;
  max-width: 360px;
}

.products-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
  z-index: 1;
}

.products-search__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.products-search__input::placeholder {
  color: var(--gray-400);
}

.products-search__input:focus {
  border-color: rgba(19, 120, 243, 0.4);
  box-shadow: 0 0 0 3px rgba(19, 120, 243, 0.1);
}

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

.products-filter {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.products-filter:hover {
  border-color: rgba(19, 120, 243, 0.25);
  color: var(--brand-blue);
}

.products-filter--active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
}

.products-filter--active:hover {
  color: var(--white);
}

.products-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  background: var(--gray-100);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---- Product Grid ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.product-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(10, 37, 96, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10, 37, 96, 0.12);
  border-color: rgba(19, 120, 243, 0.2);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fafc 0%, #eef4fc 100%);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(1, 7, 40, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 7, 40, 0.55) 0%, rgba(1, 7, 40, 0.05) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__cta {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  background: var(--white);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  white-space: nowrap;
}

.product-card:hover .product-card__cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card__body {
  padding: 1.1rem 1rem 1.25rem;
  text-align: center;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.product-card__type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card__molecule {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-600, #5b6b85);
}

.product-card.is-hidden,
.products-grid.is-hidden,
.brand-card.is-hidden {
  display: none !important;
}

/* ---- Not Found ---- *//* ---- CTA ---- */
.products-cta {
  position: relative;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0a2560 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.products-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(19, 120, 243, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.products-cta__inner {
  position: relative;
  z-index: 1;
}

.products-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.products-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.products-cta .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--white);
  color: var(--brand-navy);
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.products-cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .products-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .products-banner__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .products-banner__meta {
    justify-content: center;
  }  .products-toolbar .container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .products-search {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .products-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.25rem;
    margin: 0 -0.15rem;
  }

  .products-filters::-webkit-scrollbar {
    display: none;
  }

  .products-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 0.85rem;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-card__title {
    font-size: 0.85rem;
  }

  .product-card__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-banner__logo {
    animation: none;
  }

  .product-card:hover .product-card__image {
    transform: none;
  }

  .product-card__cta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
