/* =========================================================
   Aromatic Fragrance Families — products-section
   Specs from Aromatic Standalone (FRAGRANCE FAMILIES)
   ========================================================= */

.aro-fam {
  --aro-navy-deep: #0f2856;
  --aro-sky: #a1b1c8;
  position: relative;
  margin-top: 52px;
  min-height: 540px;
  overflow: hidden;
  background: var(--aro-navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.aro-fam.home-products-section.section-padding-space,
.aro-fam.home-products-section {
  padding: 0 !important;
}

.aro-fam__bg {
  position: absolute;
  inset: 0;
}

.aro-fam__bg-img,
.aro-fam__bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 0.6s ease;
  transform-origin: center;
  animation: aroFamZoom 24s ease-in-out infinite alternate;
}

.aro-fam__bg-img.is-active {
  opacity: 1;
  z-index: 1;
}

.aro-fam__bg-fallback {
  opacity: 1;
  background: linear-gradient(160deg, #0f2856, #1a3a6e);
  animation: none;
}

.aro-fam__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    270deg,
    rgba(10, 26, 52, 0.92) 0%,
    rgba(10, 26, 52, 0.58) 48%,
    rgba(10, 26, 52, 0.2) 100%
  );
  pointer-events: none;
}

html[dir="ltr"] .aro-fam__shade {
  background: linear-gradient(
    90deg,
    rgba(10, 26, 52, 0.92) 0%,
    rgba(10, 26, 52, 0.58) 48%,
    rgba(10, 26, 52, 0.2) 100%
  );
}

@keyframes aroFamZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

@keyframes aroFamArrowNudge {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(-4px); opacity: 1; }
}

.aro-fam__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px 0;
  text-align: start;
  color: #fff;
  box-sizing: border-box;
}

.aro-fam__eyebrow {
  font-family: var(--aro-font);
  font-size: 12px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.aro-fam__title {
  font-family: var(--aro-font);
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 22px;
}

.aro-fam__tabs-outer {
  position: relative;
  margin-bottom: 24px;
}

.aro-fam__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.aro-fam__tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.aro-fam__tab.is-active {
  background: var(--aro-sky);
  border-color: var(--aro-sky);
  color: var(--aro-navy-deep);
  font-weight: 700;
}

.aro-fam__tab:hover:not(.is-active),
.aro-fam__tab:focus-visible:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.aro-fam__tabs-arrow {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30px;
  align-items: center;
  justify-content: center;
  width: 24px;
  pointer-events: none;
}

.aro-fam__tabs-arrow svg {
  animation: aroFamArrowNudge 1.4s ease-in-out infinite;
}

.aro-fam__desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 0 22px;
  font-weight: 300;
}

.aro-fam__desc[hidden] {
  display: none !important;
}

.aro-fam__actions {
  display: flex;
  width: 100%;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}

.aro-fam__cta {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.aro-fam__cta:hover,
.aro-fam__cta:focus-visible {
  background: #fff;
  color: var(--aro-navy-deep);
  border-color: #fff;
  outline: none;
}

.aro-fam__prods {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 40px 32px;
  box-sizing: border-box;
}

.aro-fam__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.aro-fam__panel[hidden] {
  display: none !important;
}

.aro-fam__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.25s ease;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.aro-fam__card:hover,
.aro-fam__card:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.aro-fam__thumb {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aro-fam__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.aro-fam__meta {
  min-width: 0;
  flex: 1;
  text-align: start;
}

.aro-fam__name {
  display: block;
  font-family: var(--aro-font);
  font-size: 13.5px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aro-fam__sub {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aro-fam__price {
  display: block;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

/* ---------- Mobile ≤760 ---------- */
@media (max-width: 760px) {
  .aro-fam {
    min-height: 560px;
    margin-top: 40px;
  }

  .aro-fam__content {
    padding: 30px 20px 0;
  }

  .aro-fam__title {
    font-size: 23px;
  }

  .aro-fam__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }

  .aro-fam__tabs::-webkit-scrollbar {
    display: none;
  }

  .aro-fam__tab {
    flex-shrink: 0;
    font-size: 12px;
  }

  .aro-fam__tabs-arrow {
    display: flex;
  }

  .aro-fam__prods {
    padding: 18px 20px 26px;
  }

  .aro-fam__panel:not([hidden]) {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .aro-fam__panel:not([hidden])::-webkit-scrollbar {
    display: none;
  }

  .aro-fam__card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aro-fam__bg-img {
    animation: none !important;
  }
  .aro-fam__tabs-arrow svg {
    animation: none !important;
  }
}
