/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--neutral-19);
  color: var(--neutral-01);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 20%);
  pointer-events: none;
  content: "";
}

.hero-image {
  position: absolute;
  top: -35.58%;
  left: 0;
  width: 100%;
  max-width: none;
  height: 300.62%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 78px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.hero-copy {
  width: 723px;
  max-width: calc(100% - 40px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: var(--neutral-03);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: var(--medium);
  line-height: 1.2;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}

.hero-description {
  margin-bottom: 32px;
  color: var(--neutral-05);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 22px;
  letter-spacing: 0.14px;
}

.hero-controls {
  position: absolute;
  top: 50%;
  right: max(var(--page-gutter), calc((100% - var(--container-width)) / 2));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 18px;
  transform: translateY(-50%);
}

.hero-pagination {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--neutral-01);
  transition: border-color 300ms ease;
}

.hero-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
}

.hero-dot.is-active {
  border-color: currentColor;
}

.hero-skip {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-tertiary);
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  line-height: 18px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-skip img {
  max-width: none;
  margin: 19.5px 0;
  transform: rotate(90deg);
}

.hero-discover {
  position: absolute;
  top: 36.53%;
  left: 79.3%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  background: var(--glass-white);
  color: var(--neutral-03);
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    background-color 240ms ease,
    transform 500ms var(--ease-refined);
}

.hero-discover:hover {
  background: rgb(255 255 255 / 32%);
  transform: scale(1.05);
}

.hero-social {
  position: absolute;
  bottom: 78px;
  left: 50%;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-social .social-links {
  pointer-events: auto;
}

/*-----------------------------------*\
  #CATEGORIES SECTION
\*-----------------------------------*/

.categories-section {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--background-categories);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: var(--regular);
  line-height: 1;
  letter-spacing: -0.32px;
}

.section-title em {
  font-style: italic;
}

.categories-title {
  margin-bottom: 32px;
  text-align: center;
}

.categories-title em {
  font-weight: var(--medium);
}

.category-tabs {
  margin-bottom: 32px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 452 / 602;
  overflow: hidden;
  background: var(--background-beige);
  color: var(--neutral-01);
  isolation: isolate;
}

.category-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(25 25 25 / 0%), rgb(25 25 25 / 40%));
  content: "";
}

.category-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-refined);
}

.category-card:hover > img {
  transform: scale(1.025);
}

.category-card-bridal > img {
  top: -14.17%;
  left: -0.02%;
  width: 106.29%;
  height: 119.92%;
}

.category-card-evening > img,
.category-card-men-shoes > img {
  top: -2.7%;
  left: -4.72%;
  width: 104.61%;
  height: 117.75%;
}

.category-card-suit > img {
  top: 0;
  left: -18.33%;
  width: 136.83%;
  height: 154.04%;
}

.category-card h3 {
  position: absolute;
  right: 16px;
  bottom: 32px;
  left: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: var(--regular);
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
  text-transform: uppercase;
}

.category-arrows {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 24px;
  margin-top: 32px;
}

/*-----------------------------------*\
  #PERSONAL FITTING SECTION
\*-----------------------------------*/

.appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 720fr) minmax(0, 672fr);
  background: var(--background-beige);
}

.appointment-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  min-height: 720px;
  padding: 64px 40px;
}

.appointment-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.appointment-content h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: var(--regular);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.appointment-highlight {
  padding: 0 9px;
  border-radius: 4px;
  background: var(--background-highlight);
}

.appointment-description {
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: var(--regular);
  line-height: 1.25;
  letter-spacing: 0.16px;
}

.appointment-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 22px;
}

.appointment-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-features img {
  flex-shrink: 0;
}

.appointment-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.appointment-image > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appointment-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(25 25 25 / 0%), rgb(25 25 25 / 40%));
  pointer-events: none;
  content: "";
}

.appointment-logo {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.appointment-reminder {
  position: fixed;
  right: 48px;
  bottom: 48px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 280px;
  max-width: calc(100vw - 96px);
  padding: 20px 24px;
  border-radius: 4px;
  background: rgb(248 246 244 / 50%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 500ms var(--ease-refined),
    transform 500ms var(--ease-refined),
    visibility 500ms;
}

.appointment-reminder.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.appointment-reminder p {
  color: var(--text-secondary);
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 17px;
  text-align: center;
}

.appointment-reminder .btn-primary {
  background: var(--neutral-19);
}

/*-----------------------------------*\
  #BESTSELLERS SECTION
\*-----------------------------------*/

.bestsellers-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.product-carousel {
  position: relative;
}

.product-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 3.8);
  min-width: 0;
  scroll-snap-align: start;
}

.product-image {
  position: relative;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--background-beige);
}

.product-image > a {
  display: block;
  height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-refined);
}

.product-image:hover > a > img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 14px;
  background: var(--background-badge);
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: var(--medium);
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 34px;
  padding: 0 4px;
  margin-bottom: 12px;
}

.product-info h3 {
  flex: 1;
  min-width: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: var(--medium);
  line-height: 1;
}

.favorite-button {
  position: relative;
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.favorite-button::after {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  content: "";
}

.favorite-button[aria-pressed="true"] {
  border-radius: 50%;
  background: var(--background-highlight);
  box-shadow: 0 0 0 5px var(--background-highlight);
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  padding: 0 4px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: var(--medium);
  line-height: 1;
  letter-spacing: -0.28px;
}

.product-price > span {
  white-space: nowrap;
}

.product-price small {
  font-size: 12px;
  letter-spacing: -0.12px;
}

.product-carousel-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 23%;
  height: calc((100% - 76px));
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 90%));
  pointer-events: none;
  transition: opacity 200ms ease;
}

.product-prev,
.product-next {
  position: absolute;
  top: calc((100% - 76px) / 2 - 22px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.product-prev {
  left: 24px;
}

.product-next {
  right: 24px;
}

.product-prev img {
  transform: rotate(-90deg);
}

.product-next img {
  transform: rotate(90deg);
}

.product-carousel.is-at-end .product-carousel-fade {
  opacity: 0;
}

.mobile-products {
  display: none;
}

/*-----------------------------------*\
  #TRENDS SECTION
\*-----------------------------------*/

.trends-section {
  padding-bottom: 80px;
}

.trends-heading {
  padding: 48px var(--page-gutter);
  background: var(--background-beige);
  text-align: center;
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--neutral-01);
  isolation: isolate;
}

.trend-card > img {
  position: absolute;
  z-index: -2;
  max-width: none;
  object-fit: cover;
  transition: transform 900ms var(--ease-refined);
}

.trend-card:hover > img {
  transform: scale(1.025);
}

.trend-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(25 25 25 / 0%), rgb(25 25 25 / 40%));
  content: "";
}

.trend-bridal > img {
  top: -3.75%;
  left: 0;
  width: 100%;
  height: 149.97%;
}

.trend-prom > img {
  top: -21.08%;
  left: -16.39%;
  width: 131.16%;
  height: 196.69%;
}

.trend-copy {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
}

.trend-copy h3 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: var(--regular);
  line-height: 1;
  letter-spacing: -1px;
}

.trend-copy .text-link {
  font-family: "Inter", sans-serif;
  font-weight: var(--regular);
  letter-spacing: 1px;
}

/*-----------------------------------*\
  #RESPONSIVE - 1320PX
\*-----------------------------------*/

@media (max-width: 1320px) {
  /*-----------------------------------*\
    #CATEGORIES SECTION
  \*-----------------------------------*/

  .category-card h3 {
    font-size: 22px;
  }

  /*-----------------------------------*\
    #PERSONAL FITTING SECTION
  \*-----------------------------------*/

  .appointment-content {
    gap: 32px;
    min-height: 680px;
    padding: 48px 32px;
  }

  .appointment-content h2 {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .appointment-eyebrow {
    font-size: 12px;
  }

}

/*-----------------------------------*\
  #RESPONSIVE - 1080PX
\*-----------------------------------*/

@media (max-width: 1080px) {
  /*-----------------------------------*\
    #HERO SECTION
  \*-----------------------------------*/

  .hero-content,
  .hero-social {
    width: calc(100% - var(--page-gutter) * 2);
  }

  .hero-copy {
    width: 670px;
  }

  .hero-social {
    display: none;
  }

  .hero-discover {
    left: 76%;
  }

  /*-----------------------------------*\
    #CATEGORIES SECTION
  \*-----------------------------------*/

  /*-----------------------------------*\
    #PERSONAL FITTING SECTION
  \*-----------------------------------*/

  .appointment-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .appointment-description {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.14px;
  }

  /*-----------------------------------*\
    #BESTSELLERS SECTION
  \*-----------------------------------*/

  .product-card {
    flex-basis: calc((100% - 16px) / 2.8);
  }

}

/*-----------------------------------*\
  #RESPONSIVE - 970PX
\*-----------------------------------*/

@media (max-width: 970px) {
  /*-----------------------------------*\
    #HERO SECTION
  \*-----------------------------------*/

  .hero-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .hero-copy {
    width: 620px;
  }

  /*-----------------------------------*\
    #CATEGORIES SECTION
  \*-----------------------------------*/

  .category-card h3 {
    right: 12px;
    bottom: 24px;
    left: 12px;
    font-size: 20px;
  }

  /*-----------------------------------*\
    #PERSONAL FITTING SECTION
  \*-----------------------------------*/

  .home-page .appointment-section {
    padding-right: 0;
    padding-left: 0;
  }

  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .appointment-content {
    gap: 40px;
    min-height: 0;
    padding: 48px var(--page-gutter);
  }

  .appointment-image {
    aspect-ratio: 4 / 3;
  }

}

/*-----------------------------------*\
  #RESPONSIVE - 700PX
\*-----------------------------------*/

@media (max-width: 700px) {
  /*-----------------------------------*\
    #HERO SECTION
  \*-----------------------------------*/

  .hero-image {
    top: 0;
    height: 100%;
    object-position: center;
  }

  .hero-slide::after {
    background: rgb(0 0 0 / 40%);
  }

  .hero-content {
    bottom: clamp(24px, 12.93dvh, 97px);
  }

  .hero-copy {
    width: 350px;
    max-width: 100%;
  }

  .hero-eyebrow {
    margin-bottom: clamp(10px, 2.14dvh, 16px);
    font-size: 12px;
  }

  .hero-title {
    margin-bottom: clamp(10px, 2.14dvh, 16px);
    font-size: clamp(24px, 5.64dvh, 32px);
    line-height: 1;
    letter-spacing: 0;
  }

  .hero-description {
    margin-bottom: clamp(12px, 4.27dvh, 32px);
    letter-spacing: 0;
  }

  .hero-controls {
    top: auto;
    right: auto;
    bottom: 26px;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }

  .hero-pagination {
    flex-direction: row;
  }

  .hero-skip,
  .hero-discover {
    display: none;
  }

  /*-----------------------------------*\
    #CATEGORIES SECTION
  \*-----------------------------------*/

  .categories-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .categories-title {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.28px;
  }

  .categories-title .mobile-copy {
    display: block;
    max-width: 358px;
    margin: 0 auto;
  }

  .category-tabs {
    flex-wrap: wrap;
    gap: 16px 24px;
    max-width: 374px;
    margin-right: auto;
    margin-left: auto;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    aspect-ratio: 358 / 476;
  }

  .category-card h3 {
    bottom: 32px;
    font-size: 20px;
  }

  .category-arrows {
    display: none;
  }

  /*-----------------------------------*\
    #PERSONAL FITTING SECTION
  \*-----------------------------------*/

  .appointment-content h2 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.32px;
  }

  .appointment-highlight {
    min-height: 47px;
    padding: 8px 9px 7px;
  }

  .appointment-image {
    aspect-ratio: 672 / 720;
  }

  .appointment-logo {
    display: none;
  }

  /*-----------------------------------*\
    #BESTSELLERS SECTION
  \*-----------------------------------*/

  .bestsellers-section {
    padding-top: 48px;
    padding-bottom: 48px;
    background: var(--neutral-01);
  }

  .section-heading {
    align-items: center;
    gap: 16px;
  }

  .section-heading .text-link {
    flex-shrink: 0;
    letter-spacing: 1.5px;
  }

  .desktop-products {
    display: none;
  }

  .mobile-products {
    display: block;
    width: calc(100% + var(--page-gutter));
  }

  .product-card {
    flex-basis: 200px;
    min-height: 402px;
  }

  .product-badge {
    display: flex;
    align-items: center;
    height: 20px;
    font-size: 10px;
  }

  .product-card-sale .product-badge {
    background: var(--sale-color);
    color: var(--neutral-02);
  }

  .product-image .favorite-button {
    position: absolute;
    top: 51px;
    left: 132px;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-image .favorite-button img {
    width: auto;
    height: auto;
  }

  .product-info {
    min-height: 26px;
    padding: 0;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price {
    padding: 0;
    letter-spacing: -0.14px;
  }

  .product-card-sale .product-price {
    color: var(--sale-color);
  }

  .product-regular-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: var(--regular);
    line-height: 15px;
    white-space: nowrap;
  }

  .product-regular-price s {
    font-size: 12px;
  }

  .product-regular-price small {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
  }

  .product-regular-price > span {
    color: var(--sale-color);
    font-weight: var(--medium);
  }

  .product-carousel-fade {
    width: 103px;
    height: 300px;
  }

  .product-prev,
  .product-next {
    top: 144px;
  }

  .product-prev {
    left: 3px;
  }

  .product-next {
    right: 3px;
  }

  /*-----------------------------------*\
    #TRENDS SECTION
  \*-----------------------------------*/

  .trends-section {
    padding-bottom: 0;
  }

  .trends-heading {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: left;
  }

  .trends-heading .section-title {
    max-width: 358px;
    margin: 0 auto;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.28px;
  }

  .trends-heading .section-title em {
    display: block;
    font-weight: var(--medium);
  }

  .trends-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .trend-bridal > img {
    top: 0.19%;
  }

  .trend-prom > img {
    top: -11.06%;
    left: 0;
    width: 100%;
    height: 149.97%;
  }

  .trend-copy {
    right: 20px;
    bottom: 32px;
    left: 20px;
  }

  .trend-copy h3 {
    max-width: none;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: var(--medium);
    text-transform: uppercase;
  }

  .trend-copy .text-link {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: var(--medium);
  }

}

/*-----------------------------------*\
  #RESPONSIVE - 500PX
\*-----------------------------------*/

@media (max-width: 500px) {
  /*-----------------------------------*\
    #BESTSELLERS SECTION
  \*-----------------------------------*/

  .section-heading {
    gap: 12px;
  }

  .section-heading .text-link {
    max-width: 48%;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: right;
  }

}
