/* ============================================
   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: linear-gradient(135deg, #010728 0%, #0a2560 50%, #1378f3 100%);
  overflow: hidden;
  color: var(--white);
}

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

.products-banner__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 85% 30%, rgba(76, 147, 228, 0.4) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(227, 103, 108, 0.15) 0%, transparent 60%);
}

/* Subtle dot-grid mesh */
.products-banner__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 65% 50%, black 20%, transparent 75%);
}

/* Diagonal shimmer sweep */
.products-banner__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,0.06) 50%,
    transparent 80%
  );
  background-size: 200% 200%;
  animation: prodBannerShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes prodBannerShimmer {
  0%   { background-position: 200% 200%; }
  50%  { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* Floating glow orbs */
.products-banner__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.products-banner__orb--1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: 10%;
  background: rgba(99, 179, 255, 0.22);
  animation: prodOrbFloat1 9s ease-in-out infinite alternate;
}

.products-banner__orb--2 {
  width: 220px;
  height: 220px;
  bottom: -60px;
  right: 30%;
  background: rgba(19, 120, 243, 0.18);
  animation: prodOrbFloat2 7s ease-in-out infinite alternate;
}

@keyframes prodOrbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes prodOrbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -25px) scale(1.15); }
}

/* Floating particles */
.products-banner__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.products-banner__particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: prodParticleFloat linear infinite;
}

.products-banner__particles span:nth-child(1)  { left: 15%;  bottom: -10px; animation-duration: 8s;  animation-delay: 0s;    width: 2px; height: 2px; }
.products-banner__particles span:nth-child(2)  { left: 28%;  bottom: -10px; animation-duration: 10s; animation-delay: 1.5s;  width: 3px; height: 3px; }
.products-banner__particles span:nth-child(3)  { left: 42%;  bottom: -10px; animation-duration: 7s;  animation-delay: 0.8s;  width: 2px; height: 2px; }
.products-banner__particles span:nth-child(4)  { left: 55%;  bottom: -10px; animation-duration: 9s;  animation-delay: 2.2s;  width: 4px; height: 4px; opacity: 0.35; }
.products-banner__particles span:nth-child(5)  { left: 65%;  bottom: -10px; animation-duration: 11s; animation-delay: 0.4s;  width: 2px; height: 2px; }
.products-banner__particles span:nth-child(6)  { left: 72%;  bottom: -10px; animation-duration: 8s;  animation-delay: 3s;    width: 3px; height: 3px; }
.products-banner__particles span:nth-child(7)  { left: 80%;  bottom: -10px; animation-duration: 6s;  animation-delay: 1s;    width: 2px; height: 2px; }
.products-banner__particles span:nth-child(8)  { left: 88%;  bottom: -10px; animation-duration: 9s;  animation-delay: 2s;    width: 3px; height: 3px; opacity: 0.4; }

@keyframes prodParticleFloat {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-320px) rotate(360deg); opacity: 0; }
}

.products-banner__texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  mix-blend-mode: overlay;
}

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

.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: cover;
  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);
  }
}
