/* =========================================================
   SERGIO COLLECTION PAGE
   Version 1.1

   Mobile first
   Edge-to-edge product rhythm
   Ancient heat. Scandinavian discipline.
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

body {
  background: #ffffff;
}

main {
  width: 100%;
  overflow: hidden;
}


/* =========================================================
   COLLECTION INTRO
   ========================================================= */

.collection-intro {
  display: flex;
  flex-direction: column;

  width: 100%;
  background: #ffffff;
}

.collection-intro__content {
  padding: 3.5rem 1rem 2.5rem;
}

.collection-intro__eyebrow {
  margin: 0 0 1rem;

  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(17, 17, 17, 0.68);
}

.collection-intro__title {
  max-width: 11ch;
  margin: 0;

  font-size: clamp(2.35rem, 11vw, 4.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;

  color: #111111;
}

.collection-intro__description {
  max-width: 31rem;
  margin: 1.75rem 0 0;

  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;

  color: rgba(17, 17, 17, 0.78);
}

.collection-intro__media {
  position: relative;

  width: 100%;
  margin: 0;
  overflow: hidden;

  background: #f2f1ef;
}

.collection-intro__image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   COLLECTION TOOLBAR
   ========================================================= */

.collection-toolbar {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  min-height: 3.75rem;
  padding: 0 1rem;

  background: #ffffff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.collection-toolbar__button {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  padding: 0;

  appearance: none;
  border: 0;
  background: transparent;

  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #111111;
  cursor: pointer;
}

.collection-toolbar__button:last-child {
  justify-self: end;
}

.collection-toolbar__button::after {
  content: "";

  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.6rem;

  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;

  transform: rotate(45deg) translateY(-0.12rem);
  transform-origin: center;
}

.collection-toolbar__button:first-child::after {
  width: 0.75rem;
  height: 0.6rem;

  margin-left: 0.55rem;

  border: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0,
      transparent 0.08rem,
      currentColor 0.08rem,
      currentColor 0.14rem,
      transparent 0.14rem,
      transparent 0.27rem,
      currentColor 0.27rem,
      currentColor 0.33rem,
      transparent 0.33rem,
      transparent 0.46rem,
      currentColor 0.46rem,
      currentColor 0.52rem,
      transparent 0.52rem
    );

  transform: none;
}

.collection-toolbar__count {
  margin: 0;

  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;

  color: rgba(17, 17, 17, 0.62);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  width: 100%;
  margin: 0;
  padding: 0;

  background: #ffffff;
}

.collection-card {
  min-width: 0;
  margin: 0;

  background: #ffffff;
}

.collection-card__link {
  display: flex;
  flex-direction: column;

  height: 100%;

  color: inherit;
  text-decoration: none;
}

.collection-card__media {
  position: relative;

  width: 100%;
  margin: 0;
  overflow: hidden;

  background: #f2f1ef;
}

.collection-card__wishlist {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: .65rem;
  color: #111111;
  background: rgba(255, 255, 255, .82);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.collection-card__wishlist svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.collection-card__wishlist[aria-pressed="true"] svg {
  fill: currentColor;
}

.collection-card__image {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.28;

  object-fit: contain;
  object-position: center;

  transform: scale(1);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;

  min-height: 5.75rem;
  padding: 0.72rem 0.65rem 1.2rem;

  background: #ffffff;
}

.collection-card__title {
  margin: 0;

  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  color: #111111;
}

.collection-card__material {
  margin: 0.28rem 0 0;

  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.35;

  color: rgba(17, 17, 17, 0.56);
}

.collection-card__price {
  flex: 0 0 auto;

  margin: 0;

  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;

  color: #111111;
}


/* =========================================================
   EDITORIAL INTERRUPTION
   ========================================================= */

.collection-editorial {
  grid-column: 1 / -1;

  display: flex;
  flex-direction: column;

  width: 100%;
  background: #ffffff;
}

.collection-editorial__media {
  width: 100%;
  margin: 0;
  overflow: hidden;

  background: #f2f1ef;
}

.collection-editorial__image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
  object-position: center;
}

.collection-editorial__content {
  padding: 2.5rem 1rem 3rem;
}

.collection-editorial__eyebrow {
  margin: 0 0 1rem;

  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(17, 17, 17, 0.6);
}

.collection-editorial__text {
  max-width: 25rem;
  margin: 0;

  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;

  color: #111111;
}


/* =========================================================
   COLLECTION CLOSING IMAGE
   ========================================================= */

.collection-closing {
  width: 100%;
  margin: 0;

  background: #ffffff;
}

.collection-closing__media {
  width: 100%;
  margin: 0;
  overflow: hidden;

  background: #f2f1ef;
}

.collection-closing__image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   HOVER AND FOCUS
   ========================================================= */

.collection-card__link:focus-visible,
.collection-toolbar__button:focus-visible {
  outline: 1px solid #111111;
  outline-offset: -1px;
}

@media (hover: hover) {

  .collection-card__link:hover .collection-card__image {
    transform: scale(1.018);
  }

  .collection-card__link:hover .collection-card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }

  .collection-toolbar__button:hover {
    opacity: 0.58;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 23rem) {

  .collection-intro__content {
    padding-inline: 0.8rem;
  }

  .collection-toolbar {
    padding-inline: 0.7rem;
  }

  .collection-card__info {
    padding-inline: 0.5rem;
  }

  .collection-card__title {
    font-size: 0.61rem;
  }

  .collection-card__material,
  .collection-card__price {
    font-size: 0.59rem;
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 48rem) {

  .collection-intro {
    display: grid;
    grid-template-columns: minmax(18rem, 1.1fr) minmax(0, .9fr);
    align-items: stretch;
  }

  .collection-intro__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 5rem 3rem;
  }

  .collection-intro__title {
    font-size: clamp(3.25rem, 6vw, 5.5rem);
  }

  .collection-intro__description {
    max-width: 25rem;
  }

  .collection-intro__image {
    height: auto;
  }

  .collection-toolbar {
    min-height: 4.25rem;
    padding-inline: 2rem;
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-card__image {
    aspect-ratio: 1 / 1.2;
  }

  .collection-card__info {
    min-height: 6rem;
    padding: 0.85rem 0.85rem 1.4rem;
  }

  .collection-card__title {
    font-size: 0.7rem;
  }

  .collection-card__material,
  .collection-card__price {
    font-size: 0.66rem;
  }

  .collection-editorial {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
    align-items: stretch;
  }

  .collection-editorial__image {
    height: auto;
  }

  .collection-editorial__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 3rem;
  }

  .collection-editorial__text {
    font-size: 1.65rem;
  }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 64rem) {

  .collection-intro {
    min-height: calc(100vh - 3.75rem);
    grid-template-columns: minmax(0, 1fr) min(40%, calc(66.6667vh - 2.5rem));
    grid-template-columns: minmax(0, 1fr) min(40%, calc(66.6667svh - 2.5rem));
  }

  .collection-intro__media {
    align-self: center;
  }

  .collection-intro__content {
    padding: 6rem 4rem;
  }

  .collection-intro__eyebrow {
    margin-bottom: 1.5rem;
  }

  .collection-intro__description {
    max-width: 32rem;
    margin-top: 2rem;

    font-size: 0.95rem;
    line-height: 1.65;
  }

  .collection-toolbar {
    position: sticky;
    top: 3.75rem;

    min-height: 4.5rem;
    padding-inline: 2.5rem;
  }

  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .collection-card__image {
    aspect-ratio: 1 / 1.18;
  }

  .collection-card__info {
    min-height: 6.4rem;
    padding: 0.95rem 1rem 1.6rem;
  }

  .collection-card__title {
    font-size: 0.72rem;
  }

  .collection-card__material,
  .collection-card__price {
    font-size: 0.67rem;
  }

  .collection-editorial {
    grid-column: 1 / -1;
    grid-template-columns: min(40%, calc(66.6667vh - 2.5rem)) minmax(0, 1fr);
    grid-template-columns: min(40%, calc(66.6667svh - 2.5rem)) minmax(0, 1fr);
  }

  .collection-editorial__content {
    justify-content: center;
    padding: 4rem;
  }

  .collection-editorial__text {
    max-width: 28rem;

    font-size: 2rem;
    line-height: 1.18;
  }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 90rem) {

  .collection-intro__content {
    padding-inline: 5.5rem;
  }

  .collection-toolbar {
    padding-inline: 3.25rem;
  }

  .collection-card__info {
    padding-inline: 1.25rem;
  }

  .collection-card__image {
    aspect-ratio: 1 / 1.12;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .collection-card__image {
    transition: none;
  }

  .collection-card__link:hover .collection-card__image {
    transform: none;
  }

}

/* =========================================================
   COLLECTION FILTERS + SORT
   ========================================================= */

.collection-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding-block: 0.75rem;
}

.collection-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.collection-filters::-webkit-scrollbar {
  display: none;
}

.collection-filter {
  flex: 0 0 auto;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.collection-filter.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.collection-toolbar__count {
  display: none;
}

.collection-sort {
  position: relative;
  flex: 0 0 auto;
}

.collection-sort select {
  min-height: 2.2rem;
  padding: 0 1.8rem 0 0.75rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, #111111 50%) calc(100% - 0.7rem) 50% / 0.28rem 0.28rem no-repeat,
    linear-gradient(135deg, #111111 50%, transparent 50%) calc(100% - 0.48rem) 50% / 0.28rem 0.28rem no-repeat,
    #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}

.collection-filter:focus-visible,
.collection-sort select:focus-visible {
  outline: 1px solid #111111;
  outline-offset: 2px;
}


/* =========================================================
   COLLECTION CHAPTER — YEMANJÁ
   ========================================================= */

.collection-chapter {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.collection-chapter__header {
  padding: 4rem 1rem 3rem;
}

.collection-chapter__eyebrow {
  margin: 0 0 1rem;
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-chapter__title {
  max-width: 12ch;
  margin: 0;
  color: #111111;
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.collection-chapter__description {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.88rem;
  line-height: 1.65;
}

.collection-grid--chapter {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.yemanja-editorial {
  grid-column: 1 / -1;
  width: 100%;
  background: #ffffff;
}

.yemanja-editorial__figure {
  width: 100%;
  margin: 0;
}

.yemanja-editorial__figure picture {
  display: block;
}

.yemanja-editorial__image {
  display: block;
  width: 100%;
  height: auto;
}

.yemanja-editorial--mobile-water {
  padding-block: 1.5rem;
}

.yemanja-editorial--mid {
  padding-block: 1.5rem;
}

.yemanja-editorial--closing {
  padding-top: 3rem;
}

.yemanja-editorial__credit {
  max-width: 36rem;
  padding: 0.85rem 1rem 3rem;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.62rem;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.collection-card[hidden],
.collection-editorial[hidden],
.rings-commission[hidden],
.collection-closing[hidden],
.collection-chapter[hidden] {
  display: none;
}

/* =========================================================
   RINGS — PRIVATE COMMISSIONS
   ========================================================= */

.rings-commission {
  grid-column: 1 / -1;
  width: 100%;
  background: #ffffff;
}

.rings-commission__figure {
  width: 100%;
  margin: 0;
}

.rings-commission__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 3.5rem);
  object-fit: contain;
  object-position: left center;
}

.rings-commission__content {
  padding: 3rem 1rem 4rem;
}

.rings-commission__eyebrow {
  margin: 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.62rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rings-commission__title {
  margin: 0.85rem 0 0;
  color: #111111;
  font-size: clamp(2.25rem, 11vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.rings-commission__text,
.rings-commission__details {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.86rem;
  line-height: 1.65;
}

.rings-commission__details {
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.76rem;
}

.rings-commission__link {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 24rem);
  margin-top: 2rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.32);
  color: #111111;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (hover: hover) {
  .collection-filter:hover:not(.is-active),
  .collection-sort select:hover {
    opacity: 0.58;
  }
}

@media (min-width: 48rem) {

  .rings-commission {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(24rem, 1.18fr);
    height: clamp(40rem, calc(100svh - 3.75rem), 56rem);
    min-height: 0;
  }

  .rings-commission__figure {
    display: flex;
    justify-content: flex-start;
    height: 100%;
  }

  .rings-commission__image {
    width: auto;
    height: clamp(40rem, calc(100svh - 3.75rem), 56rem);
    max-width: 100%;
    max-height: none;
  }

  .rings-commission__content {
    align-self: center;
    max-width: 39rem;
    padding: 4rem;
  }

  .collection-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-block: 0.85rem;
  }

  .collection-toolbar__count {
    display: block;
  }

  .collection-chapter__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
    column-gap: 4rem;
    align-items: end;
    padding: 5rem 3rem 4rem;
  }

  .collection-chapter__eyebrow,
  .collection-chapter__title {
    grid-column: 1;
  }

  .collection-chapter__description {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin: 0;
  }

  .yemanja-editorial--opening {
    padding: 0 3rem 5rem;
  }

  .yemanja-editorial--opening .yemanja-editorial__figure {
    max-width: 90rem;
    margin-inline: auto;
  }

  .yemanja-editorial--mobile-water {
    display: none;
  }

  .yemanja-editorial--mid {
    padding-block: 3rem;
  }

  .yemanja-editorial--closing {
    padding: 6rem 3rem 7rem;
  }

  .yemanja-editorial--closing .yemanja-editorial__figure {
    width: min(52rem, 58vw);
    margin-inline: auto;
  }

  .yemanja-editorial__credit {
    padding-right: 0;
    padding-left: 0;
  }

}

@media (min-width: 64rem) {

  .collection-toolbar {
    padding-inline: 2.5rem;
  }

  .collection-chapter__header {
    padding: 6rem 4rem 4.5rem;
  }

}
