/*
 * POP MART-inspired storefront layer for SHOPLINE Fashion OS 3.0.
 * Uses only SHOPLINE-native product, collection, variant, filter and cart data.
 */

:root {
  --pm-accent: #e60012;
  --pm-black: #111111;
  --pm-muted: #6f6f6f;
  --pm-line: #dedede;
  --pm-soft: #f6f6f6;
  --pm-page: 1280px;
  --pm-radius: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--pm-black);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body .page-width {
  width: min(calc(100% - 64px), var(--pm-page));
  max-width: var(--pm-page);
  margin-inline: auto;
  padding-inline: 0;
}

body a,
body button,
body input,
body select,
body summary {
  border-radius: var(--pm-radius);
}

body .button {
  min-height: 42px;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--pm-radius);
}

body .button--primary,
body .button--secondary:hover {
  color: #fff;
  background: var(--pm-black);
  border-color: var(--pm-black);
}

body .button--secondary {
  color: var(--pm-black);
  background: #fff;
  border-color: var(--pm-black);
}

/* Announcement bar */
.announcement-bar__group {
  min-height: 36px;
  background: #f2f2f2;
}

.announcement-bar__group .announcement-bar__item,
.announcement-bar__group a {
  color: #343434;
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Header */
.header-section {
  border-bottom: 1px solid #e7e7e7;
}

.header__container {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.98);
}

.pm-scrolled .theme-sticky-header--sticky .header__container,
.theme-sticky-header--sticky .header__container {
  box-shadow: 0 5px 18px rgb(0 0 0 / 6%);
}

.header__container-top-wrap {
  min-height: 68px;
}

.header__logo-image {
  object-fit: contain;
}

.header__logo-text,
.header__logo-link {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.header-nav {
  gap: 4px;
}

.header-nav a,
.header-nav button {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.header-nav > li > a,
.header-nav > li > button {
  min-height: 68px;
  padding-inline: 16px;
}

.header-action-bar {
  gap: 12px;
}

.header-action-bar .button--icon {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 7px;
  color: #202024;
  border-radius: 50%;
}

.header-action-bar .button--icon > svg,
.header-action-bar .button--icon .cart-bubble svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.header-action-bar .button--icon:hover,
.header-action-bar .button--icon:focus-visible {
  background: #f3f3f4;
}

.header-action-bar__search-bar-container {
  width: clamp(220px, 22vw, 320px);
}

.header-action-bar__search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  overflow: hidden;
  color: #202024;
  background: #f6f6f7;
  border: 1px solid #dedee2;
  border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-action-bar__search-bar:focus-within {
  background: #fff;
  border-color: #a9a9af;
  box-shadow: 0 0 0 3px rgb(17 17 17 / 7%);
}

.header-action-bar__search-bar-icon {
  position: absolute;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  padding: 8px 10px;
  color: #202024;
  background: #ececef;
  border-inline-start: 1px solid #dedee2;
}

.header-action-bar__search-bar-input {
  width: 100%;
  height: 100%;
  padding: 0 58px 0 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #202024;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-action-bar__search-bar-input::placeholder {
  color: #77777f;
  opacity: 1;
}

.header-action-bar .cart-bubble,
.header-action-bar .cart-bubble > a,
.header-action-bar .cart-bubble > button {
  width: 100%;
  height: 100%;
}

.header-nav__dropdown,
.dropdown-menu__list,
.header-action-bar__results {
  border: 1px solid #e6e6e6;
  border-radius: 0;
  box-shadow: 0 14px 30px rgb(0 0 0 / 10%);
}

/* Homepage hero */
body[data-page-type="index"] .slideshow {
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page-type="index"] .slideshow theme-carousel {
  min-height: 550px;
  background: #222;
}

body[data-page-type="index"] .slideshow__image--desktop {
  min-height: 550px;
}

body[data-page-type="index"] .slideshow__image-mask {
  background: linear-gradient(180deg, transparent 42%, rgb(0 0 0 / 54%) 100%);
}

body[data-page-type="index"] .slideshow__image-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 72px 32px;
}

body[data-page-type="index"] .slideshow__group {
  width: min(820px, 100%);
  color: #fff;
  text-align: center;
}

body[data-page-type="index"] .slideshow__group .heading,
body[data-page-type="index"] .slideshow__group h1,
body[data-page-type="index"] .slideshow__group h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body[data-page-type="index"] .slideshow__group .button-group {
  justify-content: center;
  margin-top: 22px;
}

body[data-page-type="index"] .slideshow__group .button {
  min-width: 160px;
  color: #fff;
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 78%);
  backdrop-filter: blur(4px);
}

body[data-page-type="index"] .slideshow__group .button:hover {
  color: var(--pm-black);
  background: #fff;
  border-color: #fff;
}

body[data-page-type="index"] .slideshow__pager--progresses {
  inset-block-end: 14px;
  gap: 8px;
}

body[data-page-type="index"] .slideshow__pager--progress {
  width: 72px;
  height: 2px;
}

/* Home sections */
body[data-page-type="index"] .section-featured-collection .page-width,
body[data-page-type="index"] .featured-collection-list__wrapper .page-width {
  width: min(calc(100% - 64px), var(--pm-page));
}

body[data-page-type="index"] .section-featured-collection {
  padding-block: 0;
}

body[data-page-type="index"] .section-featured-collection > .page-width > div {
  padding-block: 46px 56px !important;
}

body[data-page-type="index"] .section-featured-collection h2,
body[data-page-type="index"] .featured-collection-list__wrapper h2,
body[data-page-type="index"] .image-banner-section h2,
body[data-page-type="index"] .sign-up-and-save-section h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: left;
  text-transform: uppercase;
}

body[data-page-type="index"] .featured-collection__tabs-header {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--pm-line);
}

body[data-page-type="index"] .featured-collection__tabs-list {
  gap: 32px;
}

body[data-page-type="index"] .featured-collection__tab {
  position: relative;
  padding: 10px 0 14px;
  color: #747474 !important;
  font-size: 13px;
  font-weight: 700;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
}

body[data-page-type="index"] .featured-collection__tab::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  content: "";
  background: transparent;
}

body[data-page-type="index"] .featured-collection__tab.active {
  color: var(--pm-black) !important;
}

body[data-page-type="index"] .featured-collection__tab.active::after {
  background: var(--pm-black);
}

body[data-page-type="index"] .featured-collection__view-more {
  min-width: 138px;
  margin-top: 30px;
}

body[data-page-type="index"] .featured-collection-list__wrapper {
  padding-block: 50px 64px;
  background: #f5f5f5;
}

body[data-page-type="index"] .featured-collection-list__list {
  gap: 14px;
}

body[data-page-type="index"] .featured-collection-list__collection,
body[data-page-type="index"] .featured-collection-list__cover {
  overflow: hidden;
  border-radius: 2px;
}

body[data-page-type="index"] .featured-collection-list__collection-image,
body[data-page-type="index"] .featured-collection-list__cover-image {
  transition: transform 0.55s ease;
}

body[data-page-type="index"] .featured-collection-list__collection:hover img,
body[data-page-type="index"] .featured-collection-list__cover:hover img {
  transform: scale(1.035);
}

body[data-page-type="index"] .image-banner-section {
  max-width: var(--pm-page);
  min-height: 390px;
  margin: 64px auto;
  overflow: hidden;
}

body[data-page-type="index"] .image-banner__image img {
  min-height: 390px;
  object-fit: cover;
}

body[data-page-type="index"] .image-banner__container {
  max-width: 560px;
  color: #fff;
  text-align: center;
}

body[data-page-type="index"] .sign-up-and-save-section {
  padding-block: 62px;
  background: #f4f4f4;
}

/* Product cards */
.block-product-card {
  gap: 0 !important;
  min-width: 0;
  background: transparent;
}

.block-product-card.product-card-border-shadow,
.block-product-card__layer-image-wrapper.product-card-border-shadow {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.block-product-card__image-wrapper {
  overflow: hidden;
  background: var(--pm-soft);
  border-radius: 2px;
}

.block-product-card__image {
  transition: transform 0.45s ease;
}

.block-product-card:hover .block-product-card__image:first-child {
  transform: scale(1.025);
}

.block-product-card-info {
  gap: 5px !important;
  padding: 10px 8px 6px;
}

.block-product-title {
  min-height: 36px;
  padding: 0 !important;
  color: #292929;
  font-size: 12px;
  line-height: 1.45;
}

.block-product-price {
  color: var(--pm-black);
  font-size: 14px;
  font-weight: 700;
}

.block-product-card .block-product-buy-button,
.block-product-card .product-card__quick-add {
  color: #fff;
  background: var(--pm-black);
  border-color: var(--pm-black);
}

.block-product-card .discount-tag {
  padding: 3px 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  background: var(--pm-black);
  border-radius: 0;
}

/* Collection page */
body[data-page-type="collection"] .main-collection-cover {
  width: 100%;
  padding-top: 0;
}

body[data-page-type="collection"] .block-main-collection__banner {
  height: clamp(170px, 18vw, 245px) !important;
  color: var(--pm-black);
  background: #eee;
}

body[data-page-type="collection"] .block-main-collection__banner-mask::after {
  background: rgb(0 0 0 / 0%);
}

body[data-page-type="collection"] .block-main-collection__banner-inner {
  color: var(--pm-black);
}

body[data-page-type="collection"] .block-main-collection__banner-inner h1 {
  padding: 12px 24px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body[data-page-type="collection"] .main-collection {
  padding-block: 32px 64px;
}

@media (min-width: 960px) {
  body[data-page-type="collection"] .main-collection.facets-layout-vertical.enable-filtering {
    grid-template:
      "filtering sorting" auto
      "filtering list" 1fr
      / 220px minmax(0, 1fr);
    column-gap: 32px;
  }
}

body[data-page-type="collection"] .facets-sorting-wrapper {
  justify-content: flex-end;
  padding: 0 0 18px;
}

body[data-page-type="collection"] .facets-sorting__summary {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page-type="collection"] .facets-filtering {
  padding-inline-end: 4px;
}

body[data-page-type="collection"] .facets-filtering__details {
  border-bottom: 1px solid #e3e3e3;
}

body[data-page-type="collection"] .facets-filtering__summary {
  justify-content: space-between;
  padding-block: 16px;
  font-size: 12px;
  font-weight: 700;
}

body[data-page-type="collection"] .facets-filtering__list {
  gap: 4px;
  padding-bottom: 12px;
}

body[data-page-type="collection"] .facets-filtering__checkbox-wrapper {
  justify-content: flex-start;
  font-size: 12px;
}

body[data-page-type="collection"] .main-collection__list {
  gap: 26px 12px;
}

body[data-page-type="collection"] .main-collection__list > li {
  min-width: 0;
}

/* Product page */
body[data-page-type="product"] .product-detail-wrapper > .page-width {
  width: min(calc(100% - 64px), 1120px);
  max-width: 1120px;
}

body[data-page-type="product"] .product-detail {
  padding-block: 24px 58px !important;
}

body[data-page-type="product"] .product-detail__breadcrumb {
  margin: 0 0 22px;
  color: #7a7a7a;
  font-size: 11px;
}

body[data-page-type="product"] .product-detail__main {
  align-items: flex-start;
}

body[data-page-type="product"] .product-detail__media-group {
  width: 55%;
}

body[data-page-type="product"] .product-detail__info {
  gap: 14px !important;
  width: 43%;
  padding-top: 2px;
}

body[data-page-type="product"] .media-gallery__media,
body[data-page-type="product"] .media-gallery__thumbnail {
  background: #f4f4f4;
  border-radius: 0;
}

body[data-page-type="product"] .media-gallery__thumbnail.is-select,
body[data-page-type="product"] .media-gallery__thumbnail:hover {
  outline: 1px solid var(--pm-black);
  outline-offset: 0;
}

body[data-page-type="product"] .product-detail__title {
  margin: 0;
  color: var(--pm-black);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body[data-page-type="product"] .product-detail__price {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pm-line);
}

body[data-page-type="product"] .product-detail__price .price,
body[data-page-type="product"] .product-detail__price [class*="sale"] {
  font-size: 20px;
  font-weight: 800;
}

body[data-page-type="product"] .product-detail__variant-picker {
  gap: 10px;
}

body[data-page-type="product"] .variant-picker__group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body[data-page-type="product"] .product-detail__variant-picker .variant-picker__button {
  min-width: 76px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 0;
}

body[data-page-type="product"] .block-product-buy-button-group {
  gap: 10px !important;
}

body[data-page-type="product"] .block-product-buy-button-group .button,
body[data-page-type="product"] .product-detail__form .button {
  min-height: 48px;
  color: #fff;
  font-size: 12px;
  background: var(--pm-black);
  border: 1px solid var(--pm-black);
  border-radius: 0;
}

body[data-page-type="product"] .quantity-selector__input {
  min-height: 48px;
  border-radius: 0;
}

body[data-page-type="product"] .product-detail__sell-info {
  gap: 9px;
  padding-block: 10px;
  color: #555;
  font-size: 11px;
  border-bottom: 1px solid var(--pm-line);
}

body[data-page-type="product"] .product-detail__additional {
  border-top: 1px solid var(--pm-line);
}

body[data-page-type="product"] .product-detail__additional:last-child {
  border-bottom: 1px solid var(--pm-line);
}

body[data-page-type="product"] .product-detail__additional .additional__trigger {
  min-height: 52px;
  padding-block: 14px;
}

body[data-page-type="product"] .product-detail__additional .additional__title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-page-type="product"] .product-detail__additional .additional__content,
body[data-page-type="product"] .product-description {
  color: #555;
  font-size: 12px;
  line-height: 1.65;
}

body[data-page-type="product"] .product-description {
  padding-top: 16px;
  border-top: 1px solid var(--pm-line);
}

body[data-page-type="product"] .product-description::before {
  display: block;
  margin-bottom: 12px;
  color: var(--pm-black);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  content: "Product Details";
}

body[data-page-type="product"] .recommended-product,
body[data-page-type="product"] .recently-viewed-product {
  border-top: 1px solid #e4e4e4;
}

body[data-page-type="product"] .recommended-product h2,
body[data-page-type="product"] .recently-viewed-product h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

/* Footer */
.footer-section,
.footer {
  border-top: 1px solid #dedede;
}

.footer a,
.footer p,
.footer li {
  font-size: 12px;
  line-height: 1.7;
}

.footer h2,
.footer h3,
.footer summary {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 959px) {
  body .page-width,
  body[data-page-type="index"] .section-featured-collection .page-width,
  body[data-page-type="index"] .featured-collection-list__wrapper .page-width,
  body[data-page-type="product"] .product-detail-wrapper > .page-width {
    width: calc(100% - 32px);
  }

  .announcement-bar__group {
    min-height: 30px;
  }

  .header__container,
  .header__container-top-wrap {
    min-height: 56px;
  }

  .header-action-bar {
    gap: 4px;
  }

  .header-action-bar .button--icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 5px;
  }

  body[data-page-type="index"] .slideshow theme-carousel,
  body[data-page-type="index"] .slideshow__image--mobile,
  body[data-page-type="index"] .slideshow__image--desktop {
    min-height: 470px;
  }

  body[data-page-type="index"] .slideshow__image-container {
    width: 100%;
    margin: 0;
    padding: 48px 20px;
    transform: translate(-50%, -50%);
  }

  body[data-page-type="index"] .slideshow__group .button-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  body[data-page-type="index"] .slideshow__group .button {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
  }

  body[data-page-type="index"] .slideshow__pager--progress {
    width: 42px;
  }

  body[data-page-type="index"] .section-featured-collection > .page-width > div {
    padding-block: 32px 40px !important;
  }

  body[data-page-type="index"] .featured-collection__tabs-list {
    gap: 24px;
  }

  body[data-page-type="index"] .featured-collection-list__wrapper {
    padding-block: 36px 44px;
  }

  body[data-page-type="index"] .image-banner-section {
    min-height: 440px;
    margin: 40px 16px;
  }

  body[data-page-type="index"] .image-banner__image img {
    min-height: 440px;
  }

  body[data-page-type="collection"] .block-main-collection__banner {
    height: 165px !important;
  }

  body[data-page-type="collection"] .main-collection {
    padding-block: 0 42px;
  }

  body[data-page-type="collection"] .main-collection__list {
    gap: 22px 10px;
  }

  .block-product-card-info {
    padding-inline: 2px;
  }

  .block-product-title {
    min-height: 34px;
    font-size: 11px;
  }

  body[data-page-type="product"] .product-detail {
    padding-block: 10px 42px !important;
  }

  body[data-page-type="product"] .product-detail__main {
    gap: 20px !important;
  }

  body[data-page-type="product"] .product-detail__media-group,
  body[data-page-type="product"] .product-detail__info {
    width: 100%;
  }

  body[data-page-type="product"] .product-detail__title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
