/* Conversion-focused storefront layer */

:root {
  --storefront-ink: rgb(var(--color-base-text));
  --storefront-muted: rgba(var(--color-base-text), 0.7);
  --storefront-surface: rgb(var(--color-base-background-1));
  --storefront-border: rgba(19, 23, 34, 0.1);
  --storefront-shadow: 0 1.8rem 4.5rem rgba(19, 23, 34, 0.09);
}

body {
  color: var(--storefront-ink);
  background: rgb(var(--color-base-background-1));
}

:focus-visible {
  outline: 0.3rem solid rgb(var(--color-base-accent-1));
  outline-offset: 0.3rem;
}

.skip-to-content-link:focus {
  position: fixed !important;
  z-index: 10001;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 1rem 1.5rem;
  clip: auto;
}

[hidden] {
  display: none !important;
}

.store-hours__status {
  font-weight: 700;
}

.store-hours__status--open {
  color: #1b6e3c;
}

.store-hours__status--closed {
  color: #b42318;
}

.media--adapt-half {
  padding-bottom: 50%;
}

.collection-skeleton-card__short-line {
  width: 40%;
}

.filter-option-label {
  display: inline;
}

.filter-boolean-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.cart-error__message {
  font-weight: 700;
}

.template-404 {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 2rem;
  text-align: center;
}

.template-404__search {
  width: 100%;
  max-width: 50rem;
}

.article-template__hero-media {
  padding-bottom: 40%;
}

.search-modal__form,
.template-search__search .search {
  position: relative;
}

.search-history {
  position: absolute;
  z-index: 1000;
  top: calc(100% - 0.1rem);
  left: 0;
  width: 100%;
  max-height: 35rem;
  overflow-y: auto;
  border: 0.1rem solid rgba(var(--color-base-text), 0.28);
  border-top: 0;
  border-radius: 0 0 1.2rem 1.2rem;
  background: rgb(var(--color-base-background-1));
  color: rgb(var(--color-base-text));
  box-shadow: 0 1.2rem 2.4rem rgba(19, 23, 34, 0.12);
}

.search-history__option,
.search-history__clear {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.search-history__option:hover,
.search-history__option.is-active,
.search-history__option:focus-visible {
  background: rgba(var(--color-base-text), 0.07);
}

.search-history__clear {
  border-top: 0.1rem solid rgba(var(--color-base-text), 0.12);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
}

.search__input.is-focus {
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: none;
}

.template-index .spaced-section {
  margin-top: clamp(1.6rem, 2.5vw, 3rem);
}

.template-index .spaced-section:last-child {
  margin-bottom: clamp(1.6rem, 2.5vw, 3rem);
}

.announcement-bar {
  color: var(--announcement-color, #ffffff);
  background: var(--announcement-background, #131722);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.announcement-bar__link,
.announcement-bar__text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  margin: 0;
  padding: 0.8rem 1.5rem;
  color: inherit;
  text-decoration: none;
}

.announcement-bar__link span:last-child {
  font-size: 1.6rem;
  transition: transform 160ms ease;
}

.announcement-bar__link:hover span:last-child {
  transform: translateX(0.4rem);
}

.announcement-bar .announcement-bar__link:hover,
.announcement-bar .announcement-bar__link:focus-visible {
  color: var(--announcement-color, #ffffff);
  background-color: rgba(255, 255, 255, 0.08);
}

.header-wrapper {
  border-bottom: 0.1rem solid var(--storefront-border);
  box-shadow: 0 0.6rem 2.4rem rgba(19, 23, 34, 0.04);
}

.header {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header__inline-menu .header__menu-item {
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media screen and (min-width: 990px) {
  .header {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header--middle-left {
    grid-template-areas: 'heading navigation icons';
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(1.2rem, 2vw, 3rem);
  }

  .header--middle-left .header__inline-menu {
    width: 100%;
    min-width: 0;
    justify-self: start;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
  }

  .header--middle-left .list-menu--inline {
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
  }

  .header--middle-left .header__nav-item--about {
    margin-left: auto;
  }

  .header__inline-menu > .list-menu--inline > li > .header__menu-item,
  .header__inline-menu > .list-menu--inline > li > details-disclosure > details > .header__menu-item {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .header__nav-item--browse .header__submenu > li {
    position: relative;
  }

  .header__nav-item--browse .browse-menu__flyout {
    top: 0;
    left: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.8rem);
  }

  .header__nav-item--browse .browse-menu__item--has-children:hover > .browse-menu__flyout,
  .header__nav-item--browse .browse-menu__item--has-children:focus-within > .browse-menu__flyout {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

.button,
.btn {
  border-radius: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:not([disabled]):hover,
.btn:not([disabled]):hover {
  box-shadow: 0 1rem 2.4rem rgba(var(--color-button), 0.2);
  transform: translateY(-0.2rem);
}

.sales-collection {
  --section-accent: #c44120;
  position: relative;
  isolation: isolate;
  padding-top: clamp(1.8rem, 2.5vw, 3.2rem);
  padding-bottom: clamp(1.8rem, 2.5vw, 3.2rem);
}

.sales-collection::before {
  position: absolute;
  z-index: -1;
  top: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  border: 0.1rem solid rgba(var(--color-base-text), 0.1);
  border-color: color-mix(in srgb, var(--section-accent) 16%, transparent);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--section-accent) 9%, transparent), transparent 34rem),
    rgba(255, 255, 255, 0.64);
  content: "";
}

.sales-collection__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 2vw, 2.4rem);
}

.sales-collection__header--center {
  align-items: center;
}

.sales-collection__heading {
  max-width: 72rem;
}

.sales-collection__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--section-accent);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sales-collection__title {
  max-width: 18ch;
  margin: 0;
  color: var(--storefront-ink);
  font-size: clamp(3rem, 4vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.sales-collection__subtitle {
  max-width: 58ch;
  margin: 0.8rem 0 0;
  color: var(--storefront-muted);
  font-size: clamp(1.4rem, 1.4vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1.5;
}

.sales-collection__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 0.2rem solid var(--section-accent);
  color: var(--storefront-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.sales-collection__link span:last-child {
  color: var(--section-accent);
  font-size: 1.9rem;
  transition: transform 160ms ease;
}

.sales-collection__link:hover span:last-child {
  transform: translateX(0.4rem);
}

.sales-collection__grid {
  align-items: stretch;
  margin-bottom: 0;
}

.sales-collection__grid .grid__item {
  display: flex;
  padding-bottom: 1rem;
}

.sales-collection .product-card-wrapper {
  width: 100%;
  overflow: hidden;
  border: 0.1rem solid var(--storefront-border);
  border-radius: 1.6rem;
  background: var(--storefront-surface);
  box-shadow: 0 0.6rem 1.8rem rgba(19, 23, 34, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sales-collection .product-card-wrapper:hover {
  border-color: var(--section-accent);
  border-color: color-mix(in srgb, var(--section-accent) 45%, transparent);
  box-shadow: var(--storefront-shadow);
  transform: translateY(-0.5rem);
}

.sales-collection .product-card-wrapper > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.sales-collection .card--product .media {
  border-radius: 0;
  background: var(--product-surface, rgba(var(--color-base-text), 0.04));
}

.sales-collection .product-card-wrapper .card-information {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 1.2rem 1.3rem 1.3rem;
}

.sales-collection .card-information__wrapper {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
}

.sales-collection .card-information__text {
  width: 100%;
  max-width: none;
  padding-right: 0;
  color: var(--storefront-ink);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.sales-collection .card-information__wrapper > .price {
  margin-top: 0.6rem;
  color: var(--storefront-ink);
  font-weight: 700;
}

.sales-collection .product-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto !important;
  padding-top: 0.8rem;
  color: var(--section-accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.sales-collection .product-card__cta span:last-child {
  font-size: 1.8rem;
  transition: transform 160ms ease;
}

.sales-collection .product-card-wrapper:hover .product-card__cta span:last-child {
  transform: translateX(0.4rem);
}

.sales-collection .badge.addToClassList {
  display: flex;
  width: 4.4rem;
  height: 4.4rem;
  border: 0.3rem solid #ffffff;
  background: var(--section-accent);
  color: #ffffff;
  box-shadow: 0 0.8rem 2rem rgba(19, 23, 34, 0.18);
  cursor: pointer;
}

.template-collection .product-card-wrapper,
.template-search .product-card-wrapper,
.product-recommendations .product-card-wrapper {
  height: 100%;
  overflow: hidden;
  border: 0.1rem solid var(--storefront-border);
  border-radius: 1.6rem;
  background: var(--storefront-surface);
}

.template-collection .product-card-wrapper > a,
.template-search .product-card-wrapper > a,
.product-recommendations .product-card-wrapper > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.template-collection .card-information,
.template-search .card-information,
.product-recommendations .card-information {
  padding: 1.2rem 1.3rem 1.3rem;
}

.template-collection .card--product .media,
.template-cart .card--product .media {
  background: var(--product-surface, rgba(var(--color-base-text), 0.04));
}

.template-search__results,
.template-search__search + .product-grid {
  margin-top: clamp(2.4rem, 4vw, 5rem);
}

.customer .card-box,
.page-width--narrow .rte,
.template-404 .product-section {
  border-radius: 1.6rem;
}

.order-card__wrapper {
  display: block;
  color: inherit;
  text-decoration: none;
}

button.product-bundle__toggle,
button.voucher-toggle,
button.remove_voucher_btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.remove_voucher_btn {
  width: auto;
  padding: 0;
}

.template-404 main > div:first-child {
  padding-top: clamp(4rem, 8vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 7rem);
}

.sales-collection .card__badge.card__badge-top-right.card__badge-float-edge {
  top: 1.2rem;
  right: 1.2rem;
  margin: 0;
}

.sales-collection .badge-ribbon {
  border-radius: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-index .banner {
  overflow: hidden;
  margin: clamp(4rem, 6vw, 8rem) auto;
  border-radius: 2.4rem;
  box-shadow: var(--storefront-shadow);
}

.template-index .banner__box {
  max-width: 64rem;
}

.template-index .banner__heading {
  letter-spacing: -0.04em;
  line-height: 1;
}

@media screen and (min-width: 750px) {
  .template-index .banner {
    width: calc(100% - 10rem);
    max-width: calc(var(--page-width) - 10rem);
  }
}

@media screen and (max-width: 749px) {
  .announcement-bar {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .template-index .spaced-section {
    margin-top: 1.6rem;
  }

  .template-index .spaced-section:last-child {
    margin-bottom: 1.6rem;
  }

  .sales-collection {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .sales-collection::before {
    top: 0.6rem;
    right: 0;
    bottom: 0.6rem;
    left: 0;
    border-radius: 1.8rem;
  }

  .sales-collection__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .sales-collection__link {
    padding: 0.8rem 0;
  }

  .sales-collection .product-card-wrapper .card-information {
    padding: 1rem;
  }

  .sales-collection .card-information__wrapper {
    min-height: 8rem;
  }

  .sales-collection .badge.addToClassList {
    width: 4rem;
    height: 4rem;
  }

  .template-index .banner {
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    border-radius: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__link span:last-child,
  .button,
  .btn,
  .product-card-wrapper,
  .product-card__cta span:last-child,
  .sales-collection__link span:last-child,
  .search-history {
    transition: none;
  }
}

/* Remaining-stock notice on product cards and the product page. */
.low-inventory-notice {
  display: block;
  margin: 0;
  color: rgb(153, 27, 27);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.product-form .low-inventory-notice {
  margin: 0 0 1.2rem;
  padding: 0.8rem 1.2rem;
  border: 0.1rem solid rgba(185, 28, 28, 0.35);
  border-radius: 1rem;
  background: rgba(254, 226, 226, 0.72);
  font-size: 1.4rem;
}

@media (prefers-contrast: more) {
  .product-form .low-inventory-notice {
    border-width: 0.2rem;
  }
}
