/* Content accommodations only: the Glamory styles are unchanged.
   Multi-word navigation labels ("The Scent Edit") must stay on one line inside the fixed-height nav link. */
.nav-text {
  white-space: nowrap;
}

/* "Inspired by" line on product cards, styled like the template's price line. */
.product-inspiration {
  color: var(--black);
  margin-top: 4px;
  font-size: .9375rem;
}

/* Shop by Inspiration: search field, collection filters, brand index and pagination. */
.inspiration-search {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.inspiration-search .form-input {
  width: 100%;
  margin-bottom: 0;
  font-size: 1rem;
}

.inspiration-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.inspiration-filter {
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--black);
  padding: .4rem 1rem;
  font-family: inherit;
  font-size: .875rem;
  cursor: pointer;
  transition: background-color .35s, color .35s;
}

.inspiration-filter.is-active,
.inspiration-filter:hover {
  background-color: var(--black);
  color: var(--primary-color);
}

.inspiration-count {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: .875rem;
}

.brand-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .25rem 2rem;
}

.brand-index-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  color: var(--black);
  text-decoration: none;
  transition: opacity .35s;
}

.brand-index-link:hover {
  opacity: .6;
}

.brand-index-count {
  color: #282e32b3;
  font-size: .875rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.pagination-link {
  border: 1px solid var(--border);
  min-width: 2.5rem;
  padding: .5rem .75rem;
  color: var(--black);
  text-align: center;
  text-decoration: none;
  font-size: .875rem;
  transition: background-color .35s, color .35s;
}

.pagination-link:hover,
.pagination-link.is-current {
  background-color: var(--black);
  color: var(--primary-color);
}

/* Product cards: more breathing room, one consistent image shape, and columns that suit each screen. */
.product-component-grid,
.category-product-component {
  grid-column-gap: 2.5rem;
  grid-row-gap: 4.5rem;
}

/* Square frames keep cards compact and show square photos whole; tall photos only lose background above and below. */
.product-image-wrapper {
  aspect-ratio: 1 / 1;
  height: auto;
}

.product-info-block {
  gap: .3rem;
  padding-top: 1.1rem;
}

.product-info-block .product-price {
  margin-top: .2rem;
}

@media screen and (min-width: 1440px) {
  .product-component-grid {
    grid-column-gap: 3rem;
    grid-row-gap: 5rem;
  }
}

@media screen and (max-width: 991px) {
  .product-component-grid,
  .category-product-component {
    grid-column-gap: 2rem;
    grid-row-gap: 3.5rem;
  }
}

@media screen and (max-width: 767px) {
  .product-component-grid,
  .category-product-component {
    grid-column-gap: 1.25rem;
    grid-row-gap: 2.75rem;
  }

  .product-name {
    font-size: 1.125rem;
  }

  .product-inspiration {
    font-size: .875rem;
  }
}

@media screen and (max-width: 479px) {
  .product-component-grid,
  .category-product-component {
    grid-template-columns: 1fr;
    grid-row-gap: 3rem;
  }

  .product-name {
    font-size: 1.25rem;
  }
}

/* Provisional scent tags on cards and product pages. */
.product-tags {
  color: #282e32b3;
  font-size: .8125rem;
  letter-spacing: .02em;
}

.scent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0;
}

.scent-chip {
  border: 1px solid var(--border);
  padding: .3rem .8rem;
  font-size: .875rem;
}

.scent-chip:hover {
  background-color: var(--black);
  color: var(--primary-color);
}

a.scent-chip {
  color: var(--black);
  text-decoration: none;
  transition: background-color .35s, color .35s;
}

.feature-link {
  display: inline-block;
  margin-top: .75rem;
  color: var(--black);
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Scent Finder */
.scent-finder-form {
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.scent-finder-question {
  border: 1px solid var(--border);
  background-color: var(--white);
  margin: 0;
  padding: 1.5rem;
}

.scent-finder-question .form-input {
  width: 100%;
  margin-bottom: 0;
}

.scent-finder-legend {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-family: Beautique Display, Georgia, sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.scent-finder-legend .product-subtitle {
  margin-right: .5rem;
  font-family: Satoshi, Arial, sans-serif;
  font-size: .875rem;
}

.scent-finder-reason {
  margin-top: .5rem;
  margin-bottom: .25rem;
  font-size: .9375rem;
}

.scent-finder-order {
  color: var(--black);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (max-width: 479px) {
  .scent-finder-question {
    padding: 1.25rem 1rem;
  }

  .scent-finder-legend {
    font-size: 1.25rem;
  }
}

/* Scent Finder: answers sit below each question (the floated legend must not squeeze them sideways). */
.scent-finder-question > :not(legend) {
  clear: both;
  width: 100%;
}

/* Keep the logo visible and the eight nav links comfortable on small laptop screens. */
.brand-link {
  min-width: 1.5rem;
  flex-shrink: 0;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav-menu-content {
    grid-column-gap: 1.1rem;
  }

  .nav-text {
    font-size: 1rem;
  }
}

/* Collection and scent-family cards use the same square frame as product cards. */
.category-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
