/**
 * Catálogo Aromatto.
 */

.aromatto-catalog {
  background: var(--aromatto-page, #fafbfc);
  color: var(--aromatto-text, #252525);
}

.aromatto-catalog__container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.aromatto-catalog__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 clamp(34px, 5vw, 54px);
  border-bottom: 1px solid var(--aromatto-border, #e5e5e5);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--aromatto-brand, #c9a227) 12%, transparent), transparent 30%),
    var(--aromatto-surface, #fff);
}

/* Perfil visual do catálogo: repete as cores da Home. */
body.tax-product_cat.term-masculino .aromatto-catalog {
  --aromatto-profile-accent: #5b7797;
}

body.tax-product_cat.term-feminino .aromatto-catalog {
  --aromatto-profile-accent: #ae6f80;
}

body.tax-product_cat.term-unissex .aromatto-catalog {
  --aromatto-profile-accent: #708261;
}

body.tax-product_cat.term-masculino .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(91, 119, 151, .24), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(91, 119, 151, .08), transparent 28%),
    linear-gradient(100deg, #f2f6fb 0%, #fbfcfe 46%, #ffffff 76%);
}

body.tax-product_cat.term-feminino .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(174, 111, 128, .24), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(174, 111, 128, .08), transparent 28%),
    linear-gradient(100deg, #fcf1f4 0%, #fdf9fa 46%, #ffffff 76%);
}

body.tax-product_cat.term-unissex .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(112, 130, 97, .24), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(112, 130, 97, .08), transparent 28%),
    linear-gradient(100deg, #f2f6ef 0%, #fafcf9 46%, #ffffff 76%);
}

body.tax-product_cat.term-masculino .aromatto-catalog__kicker,
body.tax-product_cat.term-feminino .aromatto-catalog__kicker,
body.tax-product_cat.term-unissex .aromatto-catalog__kicker {
  color: var(--aromatto-profile-accent);
}

body.tax-product_cat.term-masculino .aromatto-catalog__profiles a.is-active,
body.tax-product_cat.term-feminino .aromatto-catalog__profiles a.is-active,
body.tax-product_cat.term-unissex .aromatto-catalog__profiles a.is-active {
  border-color: var(--aromatto-profile-accent);
  background: var(--aromatto-profile-accent);
  color: #fff;
}

.aromatto-catalog__kicker {
  margin: 0 0 12px;
  font: 700 11px/1.3 Manrope, Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aromatto-brand, #c9a227);
}

.aromatto-catalog__hero h1 {
  margin: 0;
  font: 700 clamp(38px, 5vw, 64px)/1.03 Manrope, Arial, sans-serif;
  letter-spacing: -.045em;
  color: var(--aromatto-heading, #0d0d0d);
}

.aromatto-catalog__hero > .aromatto-catalog__container > p:not(.aromatto-catalog__kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.aromatto-catalog__profiles a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--aromatto-border, #e5e5e5);
  border-radius: 999px;
  background: var(--aromatto-surface, #fff);
  color: var(--aromatto-text, #252525);
  font: 600 13px/1 Manrope, Arial, sans-serif;
  text-decoration: none;
  transition: border-color 280ms ease, background-color 280ms ease, color 280ms ease, transform 280ms ease;
}

.aromatto-catalog__profiles a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--aromatto-brand, #c9a227) 55%, var(--aromatto-border, #e5e5e5));
  color: var(--aromatto-brand, #c9a227);
}

.aromatto-catalog__profiles a.is-active {
  border-color: var(--aromatto-brand, #c9a227);
  background: var(--aromatto-brand, #c9a227);
  color: #111;
}

.aromatto-catalog__body {
  padding: clamp(34px, 5vw, 66px) 0 clamp(70px, 8vw, 110px);
}

.aromatto-catalog__toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.aromatto-catalog__toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--aromatto-muted, #6b6b6b);
  font-size: 13px;
}

.aromatto-catalog__toolbar strong {
  color: var(--aromatto-heading, #0d0d0d);
  font-size: 15px;
}

.aromatto-catalog__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aromatto-catalog__sort label {
  font-size: 12px;
  font-weight: 600;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__sort select,
.aromatto-catalog__field input,
.aromatto-catalog__field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--aromatto-border, #e5e5e5);
  border-radius: 12px;
  outline: none;
  background: var(--aromatto-surface, #fff);
  color: var(--aromatto-text, #252525);
  font: 500 13px/1.3 Manrope, Arial, sans-serif;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.aromatto-catalog__sort select {
  width: auto;
  min-width: 170px;
  padding: 0 38px 0 13px;
}

.aromatto-catalog__field input,
.aromatto-catalog__field select {
  padding: 0 12px;
}

.aromatto-catalog__field input:focus,
.aromatto-catalog__field select:focus,
.aromatto-catalog__sort select:focus {
  border-color: color-mix(in srgb, var(--aromatto-brand, #c9a227) 70%, var(--aromatto-border, #e5e5e5));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aromatto-brand, #c9a227) 14%, transparent);
}

.aromatto-catalog__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.aromatto-catalog__filters {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--aromatto-border, #e5e5e5);
  border-radius: 20px;
  background: var(--aromatto-surface, #fff);
  box-shadow: 0 18px 45px color-mix(in srgb, #000 5%, transparent);
}

.aromatto-catalog__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.aromatto-catalog__filters-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aromatto-catalog__filters-head strong {
  font-size: 14px;
  color: var(--aromatto-heading, #0d0d0d);
}

.aromatto-catalog__filters-head span {
  font-size: 11px;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__filters-head button {
  display: none;
}

.aromatto-catalog__field {
  margin-bottom: 16px;
}

.aromatto-catalog__field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__field--search input {
  padding-left: 14px;
}

.aromatto-catalog__price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.aromatto-catalog__filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.aromatto-catalog__apply {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: var(--aromatto-brand, #c9a227);
  color: #111;
  font: 700 12px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
  transition: transform 280ms ease, filter 280ms ease;
}

.aromatto-catalog__apply:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.aromatto-catalog__filter-actions a {
  font-size: 12px;
  font-weight: 600;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.aromatto-catalog-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--aromatto-border, #e5e5e5);
  border-radius: 20px;
  background: var(--aromatto-surface, #fff);
  box-shadow: 0 15px 40px color-mix(in srgb, #000 4%, transparent);
  transition: transform 460ms cubic-bezier(.22, 1, .36, 1), border-color 420ms ease, box-shadow 460ms ease;
}

.aromatto-catalog-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--aromatto-brand, #c9a227) 36%, var(--aromatto-border, #e5e5e5));
  box-shadow: 0 24px 54px color-mix(in srgb, var(--aromatto-brand, #c9a227) 8%, rgba(0, 0, 0, .08));
}

.aromatto-catalog-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.aromatto-catalog-card__media {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 28px;
  background: linear-gradient(145deg, var(--aromatto-surface-soft, #f7f7f7), var(--aromatto-surface, #fff));
}

.aromatto-catalog-card__media img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 235px;
  object-fit: contain;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.aromatto-catalog-card:hover .aromatto-catalog-card__media img {
  transform: scale(1.035);
}

.aromatto-catalog-card__content {
  padding: 20px 20px 22px;
}

.aromatto-catalog-card__brand {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aromatto-brand, #c9a227);
}

.aromatto-catalog-card h2 {
  margin: 0;
  font: 700 18px/1.25 Manrope, Arial, sans-serif;
  letter-spacing: -.02em;
  color: var(--aromatto-heading, #0d0d0d);
}

.aromatto-catalog-card__meta {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog-card__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.aromatto-catalog-card__price {
  color: var(--aromatto-heading, #0d0d0d);
  font-size: 16px;
  font-weight: 700;
}

.aromatto-catalog-card__price del {
  margin-right: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog-card__action {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--aromatto-brand, #c9a227);
}

.aromatto-catalog-card__action b {
  display: inline-block;
  margin-left: 3px;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.aromatto-catalog-card:hover .aromatto-catalog-card__action b {
  transform: translate(2px, -2px);
}

.aromatto-catalog__pagination {
  margin-top: 42px;
}

.aromatto-catalog__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.aromatto-catalog__pagination a,
.aromatto-catalog__pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--aromatto-border, #e5e5e5);
  border-radius: 10px;
  background: var(--aromatto-surface, #fff);
  color: var(--aromatto-text, #252525);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.aromatto-catalog__pagination .current {
  border-color: var(--aromatto-brand, #c9a227);
  background: var(--aromatto-brand, #c9a227);
  color: #111;
}

.aromatto-catalog__empty {
  display: grid;
  min-height: 390px;
  place-items: center;
  align-content: center;
  padding: 48px;
  border: 1px dashed var(--aromatto-border, #e5e5e5);
  border-radius: 22px;
  text-align: center;
  background: var(--aromatto-surface, #fff);
}

.aromatto-catalog__empty > span {
  font-size: 28px;
  color: var(--aromatto-brand, #c9a227);
}

.aromatto-catalog__empty h2 {
  margin: 12px 0 6px;
  font-size: 22px;
  color: var(--aromatto-heading, #0d0d0d);
}

.aromatto-catalog__empty p {
  margin: 0 0 18px;
  color: var(--aromatto-muted, #6b6b6b);
}

.aromatto-catalog__empty a {
  color: var(--aromatto-brand, #c9a227);
  font-weight: 700;
}

.aromatto-catalog__filter-toggle {
  display: none;
}

.aromatto-catalog__filter-backdrop {
  display: none;
}

html[data-aromatto-theme="dark"] .aromatto-catalog {
  background: var(--aromatto-page, #090a0b);
}

html[data-aromatto-theme="dark"] .aromatto-catalog__body {
  background: var(--aromatto-page, #090a0b);
}

html[data-aromatto-theme="dark"] .aromatto-catalog-card,
html[data-aromatto-theme="dark"] .aromatto-catalog__filters,
html[data-aromatto-theme="dark"] .aromatto-catalog__profiles a,
html[data-aromatto-theme="dark"] .aromatto-catalog__empty {
  box-shadow: none;
}

html[data-aromatto-theme="dark"] .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 87, .10), transparent 32%),
    var(--aromatto-surface, #111317);
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-masculino .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(112, 151, 194, .22), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(112, 151, 194, .08), transparent 28%),
    linear-gradient(100deg, #111820 0%, #0d1116 48%, #0a0c0f 100%);
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-feminino .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(202, 132, 151, .22), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(202, 132, 151, .08), transparent 28%),
    linear-gradient(100deg, #1d1317 0%, #120e10 48%, #0b0a0b 100%);
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-unissex .aromatto-catalog__hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(137, 157, 120, .22), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(137, 157, 120, .08), transparent 28%),
    linear-gradient(100deg, #141a12 0%, #0f130e 48%, #0a0c09 100%);
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-masculino .aromatto-catalog__kicker {
  color: #8fadd0;
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-feminino .aromatto-catalog__kicker {
  color: #d49aab;
}

html[data-aromatto-theme="dark"] body.tax-product_cat.term-unissex .aromatto-catalog__kicker {
  color: #a5b897;
}

html[data-aromatto-theme="dark"] .aromatto-catalog__sort select,
html[data-aromatto-theme="dark"] .aromatto-catalog__field input,
html[data-aromatto-theme="dark"] .aromatto-catalog__field select {
  color-scheme: dark;
}

@media (max-width: 1060px) {
  .aromatto-catalog__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .aromatto-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .aromatto-catalog__container {
    width: min(100% - 30px, 720px);
  }

  .aromatto-catalog__hero {
    padding-top: 42px;
  }

  .aromatto-catalog__toolbar {
    grid-template-columns: 1fr auto;
  }

  .aromatto-catalog__sort {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .aromatto-catalog__sort select {
    flex: 1;
    min-width: 0;
  }

  .aromatto-catalog__filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--aromatto-border, #e5e5e5);
    border-radius: 11px;
    background: var(--aromatto-surface, #fff);
    color: var(--aromatto-text, #252525);
    font: 700 12px/1 Manrope, Arial, sans-serif;
  }

  .aromatto-catalog__layout {
    display: block;
  }

  .aromatto-catalog__filters {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    overflow-y: auto;
    border: 0;
    border-left: 1px solid var(--aromatto-border, #e5e5e5);
    border-radius: 0;
    padding: 24px;
    transform: translateX(105%);
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  }

  .aromatto-catalog__filters.is-open {
    transform: translateX(0);
  }

  .aromatto-catalog__filters-head button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--aromatto-border, #e5e5e5);
    border-radius: 50%;
    background: var(--aromatto-surface-soft, #f7f7f7);
    color: var(--aromatto-text, #252525);
    font-size: 22px;
  }

  .aromatto-catalog__filter-backdrop {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(7, 8, 10, .48);
    opacity: 0;
    transition: opacity 300ms ease, visibility 300ms ease;
  }

  html.aromatto-filters-open .aromatto-catalog__filter-backdrop {
    visibility: visible;
    opacity: 1;
  }

  html.aromatto-filters-open {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .aromatto-catalog__profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aromatto-catalog__profiles a {
    justify-content: center;
  }

  .aromatto-catalog__grid {
    grid-template-columns: 1fr;
  }

  .aromatto-catalog-card__media {
    min-height: 260px;
  }

  .aromatto-catalog-card__media img {
    height: 215px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aromatto-catalog *,
  .aromatto-catalog *::before,
  .aromatto-catalog *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
