@import url('../tokens.css');

.category-shop-the-look {
  margin-top: 28px;
  margin-bottom: 18px;
}

.category-shop-look__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-shop-look__title {
  margin: 0;
  color: #232030;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.category-shop-look__subtitle {
  max-width: 520px;
  margin: 0;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

.category-shop-look__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-shop-look__card {
  position: relative;
  min-width: 0;
  border-radius: 22px;
  overflow: visible;
}

.category-shop-look__image-shell {
  display: block;
  color: inherit;
  text-decoration: none;
}

.category-shop-look__image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: 22px;
  background-color: #eee5da;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(35, 32, 48, 0.08);
}

.category-shop-look__caption {
  display: block;
  margin-top: 8px;
  color: #5f5b69;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.category-shop-look__pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 32, 48, 0.42);
  box-shadow: 0 10px 28px rgba(35, 32, 48, 0.22);
  cursor: pointer;
  z-index: 3;
}

.category-shop-look__pin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

.category-shop-look__pin-dot {
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--color-cream);
  box-shadow: 0 0 0 2px rgba(255, 249, 241, 0.62);
}

.category-shop-look__pin:hover,
.category-shop-look__pin:focus-visible,
.category-shop-look__pin.is-active {
  background: rgba(35, 32, 48, 0.72);
}

.category-shop-look__pin:focus-visible {
  outline: 2px solid rgba(35, 32, 48, 0.24);
  outline-offset: 4px;
}

.category-shop-look__popover {
  position: absolute;
  left: var(--pin-x);
  top: calc(var(--pin-y) + 28px);
  width: min(424px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid rgba(35, 32, 48, 0.18);
  border-radius: 18px;
  background: var(--color-cream);
  box-shadow: 0 22px 56px rgba(35, 32, 48, 0.22);
  transform: translate(calc(-50% + var(--look-popover-offset-x, 0px)), 0);
  z-index: 8;
}

.category-shop-look__popover--left {
  transform: translate(calc(-20% + var(--look-popover-offset-x, 0px)), 0);
}

.category-shop-look__popover--right {
  transform: translate(calc(-80% + var(--look-popover-offset-x, 0px)), 0);
}

.category-shop-look__popover--above {
  top: auto;
  bottom: calc(100% - var(--pin-y) + 28px);
}

.category-shop-look__popover::before {
  content: none;
}

.category-shop-look__popover--left::before {
  content: none;
}

.category-shop-look__popover--right::before {
  content: none;
}

.category-shop-look__popover-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding-top: 0;
}

.category-shop-look__popover-products--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.category-shop-look__popover-products--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-shop-look__product {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.category-shop-look__product-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.category-shop-look__product-copy {
  display: block;
  margin-top: 8px;
}

.category-shop-look__product-title {
  display: -webkit-box;
  min-height: 32px;
  color: #232030;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-shop-look__product-price {
  display: block;
  margin-top: 4px;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.category-editorial-strip {
  margin-top: 36px;
}

.category-editorial-strip__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.category-editorial-strip__eyebrow {
  margin: 0 0 6px;
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-editorial-strip__title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.category-editorial-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.category-editorial-strip--count-1 .category-editorial-strip__grid {
  grid-template-columns: minmax(260px, 420px);
}

.category-editorial-strip--count-2 .category-editorial-strip__grid {
  grid-template-columns: repeat(2, minmax(260px, 390px));
}

.category-editorial-strip--count-3 .category-editorial-strip__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-editorial-strip__card {
  min-width: 0;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--color-white);
  color: var(--color-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.16s ease;
}

.category-editorial-strip__card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background-color: var(--color-page-bg);
}

.category-editorial-strip__card-media-image {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: filter 0.18s ease;
}

.category-editorial-strip__card-media--empty,
.category-editorial-strip__card-media-image--empty {
  background:
    linear-gradient(135deg, rgba(63, 106, 96, 0.16), rgba(201, 164, 95, 0.18)),
    var(--color-page-bg);
}

.category-editorial-strip__card:hover {
  background: var(--color-white);
  outline: none;
  box-shadow: var(--homepage-card-hover-shadow, var(--shadow-card-hover));
}

.category-editorial-strip__card:hover .category-editorial-strip__card-media-image,
.category-editorial-strip__card:focus-visible .category-editorial-strip__card-media-image {
  filter: saturate(1.04);
}

.category-editorial-strip__card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-forest) 38%, transparent);
  outline-offset: 4px;
}

.category-editorial-strip__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  background: var(--color-white);
}

.category-editorial-strip__label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: var(--journal-kicker-bg, color-mix(in srgb, var(--color-line-dark) 58%, var(--color-white)));
  color: var(--journal-kicker-color, var(--color-ink));
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-editorial-strip__tag-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
}

.category-editorial-strip__fresh-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--intent-feedback-warning-soft) 76%, var(--color-white));
  color: var(--color-warn);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.category-editorial-strip__card[data-journal-cat="picks"] {
  --journal-kicker-bg: color-mix(in srgb, var(--color-forest) 18%, var(--color-white));
  --journal-kicker-color: var(--color-forest-dark);
}

.category-editorial-strip__card[data-journal-cat="makers"] {
  --journal-kicker-bg: color-mix(in srgb, var(--intent-feedback-alert-soft) 72%, var(--color-white));
  --journal-kicker-color: var(--intent-feedback-alert-strong);
}

.category-editorial-strip__card[data-journal-cat="ideas"] {
  --journal-kicker-bg: color-mix(in srgb, var(--intent-feedback-warning-soft) 86%, var(--color-white));
  --journal-kicker-color: var(--color-warn);
}

.category-editorial-strip__card[data-journal-cat="guides"] {
  --journal-kicker-bg: color-mix(in srgb, var(--color-line-dark) 70%, var(--color-white));
  --journal-kicker-color: var(--color-ink);
}

.category-editorial-strip__card[data-journal-cat="trends"] {
  --journal-kicker-bg: color-mix(in srgb, var(--color-olive-pill) 28%, var(--color-white));
  --journal-kicker-color: var(--color-forest-dark);
}

.category-editorial-strip__card[data-journal-cat="interviews"] {
  --journal-kicker-bg: color-mix(in srgb, var(--color-ink-soft) 14%, var(--color-white));
  --journal-kicker-color: var(--color-ink);
}

.category-editorial-strip__card-title {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-decoration-line: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.category-editorial-strip__card:hover .category-editorial-strip__card-title,
.category-editorial-strip__card:focus-visible .category-editorial-strip__card-title {
  text-decoration-line: underline;
}

.category-editorial-strip__card-description {
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-editorial-strip__author {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.category-editorial-strip__author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-line-dark) 64%, var(--color-white));
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.category-editorial-strip__author-avatar.jp-profile-avatar-art {
  overflow: hidden;
  background: transparent;
}

.category-editorial-strip__author-avatar.jp-profile-avatar-art .jp-profile-avatar-letter {
  font-size: 0.74em;
}

.category-editorial-strip__author-copy {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-editorial-strip__card-meta {
  color: var(--color-ink-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.category-editorial-strip__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 2px;
}

.category-editorial-strip__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-page-bg) 82%, var(--color-white));
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.category-editorial-strip__stat img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.category-editorial-strip__cta {
  display: none;
}

@media (max-width: 900px) {
  .category-shop-look__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-editorial-strip__grid,
  .category-editorial-strip--count-3 .category-editorial-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-editorial-strip--count-1 .category-editorial-strip__grid,
  .category-editorial-strip--count-2 .category-editorial-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-editorial-strip__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-shop-look__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-shop-look__subtitle {
    text-align: left;
  }

  .category-shop-look__image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .category-editorial-strip__grid,
  .category-editorial-strip--count-1 .category-editorial-strip__grid,
  .category-editorial-strip--count-2 .category-editorial-strip__grid,
  .category-editorial-strip--count-3 .category-editorial-strip__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .category-editorial-strip__title {
    font-size: 26px;
  }

  .category-shop-look__popover {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 44px;
    transform: translateX(-50%);
  }

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

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

  .category-shop-look__product {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
}

.shop-by-interest {
  margin-top: 48px;
}

.shop-by-interest__header {
  position: relative;
  top: 5px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

#categoryShopByInterest .shop-by-interest__heading {
  padding-top: 40px;
}

.shop-by-interest__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.shop-by-interest__title {
  margin: 0;
  color: #232030;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.6px;
}

.shop-by-interest__category {
  margin: 0;
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.shop-by-interest__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.shop-by-interest__arrow {
  width: 56px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: #232030;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
  flex: 0 0 auto;
}

.shop-by-interest__arrow--prev {
  background-image: url("../../assets/header-icons/pager-pill-prev.svg");
}

.shop-by-interest__arrow--next {
  background-image: url("../../assets/header-icons/pager-pill-next.svg");
}

.shop-by-interest__arrow:hover:not(:disabled),
.shop-by-interest__arrow:focus-visible:not(:disabled) {
  transform: scale(1.04);
}

.shop-by-interest__arrow:focus-visible {
  outline: 2px solid rgba(35, 32, 48, 0.18);
  outline-offset: 3px;
}

.shop-by-interest__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.shop-by-interest__viewport {
  margin-top: 5px;
  padding: 12px 4px 16px;
  margin-left: -4px;
  margin-right: -4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shop-by-interest__viewport::-webkit-scrollbar {
  display: none;
}

.shop-by-interest.is-not-scrollable .shop-by-interest__nav {
  display: none;
}

.shop-by-interest__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 18px) / 6);
  align-items: stretch;
  gap: 18px;
}

.shop-by-interest__grid > * {
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .shop-by-interest__grid {
    grid-auto-columns: calc((100% - 3 * 18px) / 4);
  }
}

@media (max-width: 720px) {
  .shop-by-interest__grid {
    grid-auto-columns: calc((100% - 2 * 14px) / 2.4);
    gap: 14px;
  }
  .shop-by-interest__nav {
    display: none;
  }
}

.shop-by-interest__card {
  min-width: 0;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f8f1eb;
  border-radius: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(35, 32, 48, 0);
  transition: box-shadow 0.18s ease;
}

.shop-by-interest__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-line);
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.shop-by-interest__card:hover {
  box-shadow: var(--shadow-card-hover);
}

.shop-by-interest__card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-card-hover);
}

.shop-by-interest__card:hover::after,
.shop-by-interest__card:focus-visible::after {
  opacity: 0;
}

.shop-by-interest__card-media {
  width: 100%;
  aspect-ratio: 219 / 207;
  position: relative;
  z-index: 0;
  display: block;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 249, 241, 0.8) 0%, rgba(255, 249, 241, 0) 32%),
    linear-gradient(145deg, #dfe7f4 0%, #eee5da 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.shop-by-interest__card-body {
  min-height: 113px;
  position: relative;
  z-index: 0;
  padding: 12px 14px 12px;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.shop-by-interest__card-title {
  margin: auto 0;
  min-height: 18px;
  display: block;
  color: #232030;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-wrap: balance;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shop-by-interest__card-cta {
  width: 100%;
  min-height: 45px;
  height: 45px;
  margin-top: 0;
  padding: 6px 27px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: #f8f1eb;
  color: #232030;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.shop-by-interest__card-cta:hover,
.shop-by-interest__card-cta:focus-visible {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
}

.shop-by-interest__card-arrow {
  width: 22px;
  height: 14px;
  flex: 0 0 22px;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .shop-by-interest {
    margin-top: 42px;
  }

  .shop-by-interest__title {
    font-size: 24px;
  }

  .shop-by-interest__category {
    font-size: 15px;
  }

  .shop-by-interest__grid {
    margin-top: 15px;
    gap: 16px 14px;
  }

  .shop-by-interest__card-body {
    min-height: 102px;
    padding: 10px 12px 10px;
    gap: 6px;
  }

  .shop-by-interest__card-title {
    min-height: 34px;
    font-size: 14px;
    line-height: 17px;
  }

  .shop-by-interest__card-cta {
    min-height: 42px;
    height: 42px;
    padding-inline: 18px;
    font-size: 14px;
    gap: 8px;
  }

  .shop-by-interest__card-arrow {
    width: 20px;
    height: 13px;
    flex-basis: 20px;
  }
}
