/*
 * Pegboard Studio design layer
 *
 * This file intentionally sits on top of Dawn. Keep Shopify behavior in Dawn's
 * Liquid and JavaScript components; synchronize visual tokens and states here.
 */

.ps-theme {
  --ps-ink: #17211c;
  --ps-muted: #69736d;
  --ps-line: #d3d8d4;
  --ps-paper: #f4f4ef;
  --ps-panel: #fafaf7;
  --ps-orange: #ff5b21;
  --ps-cream: #eadfca;
  --ps-green: #143a2f;
  --ps-green-deep: #102e26;
  --ps-error: #b72d1d;
  --ps-success: #54b874;
  --ps-radius-sm: 4px;
  --ps-radius: 6px;
  --ps-radius-lg: 8px;
  --ps-sans: var(--font-body-family);
  --ps-heading: var(--font-heading-family);
  --ps-serif: Georgia, 'Times New Roman', serif;
  --ps-mono: 'Courier New', Consolas, monospace;
  background: var(--ps-paper);
  color: var(--ps-ink);
  font-family: var(--ps-sans);
}

.ps-theme .gradient {
  background-attachment: initial;
}

.ps-theme h1,
.ps-theme h2,
.ps-theme h3,
.ps-theme h4,
.ps-theme h5,
.ps-theme .h0,
.ps-theme .h1,
.ps-theme .h2,
.ps-theme .h3,
.ps-theme .h4,
.ps-theme .h5 {
  color: inherit;
  font-family: var(--ps-heading);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.ps-theme .caption,
.ps-theme .caption-large,
.ps-theme .caption-with-letter-spacing,
.ps-theme .product__text.caption-with-letter-spacing,
.ps-theme .product__sku,
.ps-theme .facets__heading,
.ps-theme .facet-filters__label,
.ps-theme .footer-block__heading {
  font-family: var(--ps-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ps-theme .rte,
.ps-theme .product__description,
.ps-theme .collection-hero__description {
  color: rgba(var(--color-foreground), 0.72);
  line-height: 1.75;
}

.ps-theme *:focus-visible {
  outline: 0.2rem solid var(--ps-orange);
  outline-offset: 0.3rem;
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background));
}

.ps-theme .full-unstyled-link:focus-visible,
.ps-theme .focus-inset:focus-visible {
  outline: 0.2rem solid var(--ps-orange);
  outline-offset: -0.2rem;
  box-shadow: none;
}

/* Announcement, header, navigation */

.ps-theme .announcement-bar-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ps-theme .announcement-bar {
  min-height: 3.2rem;
}

.ps-theme .announcement-bar__message {
  padding-block: 0.9rem;
  font-family: var(--ps-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ps-theme .section-header.shopify-section-group-header-group {
  z-index: 8;
}

.ps-theme .header-wrapper {
  border-bottom-color: var(--ps-line);
}

.ps-theme .header {
  align-items: center;
  min-height: 6.4rem;
}

.ps-theme .header__heading,
.ps-theme .header__heading-link {
  align-self: center;
}

.ps-theme .header__heading-link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
}

.ps-theme .header__heading-link::before {
  content: 'P';
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 3.1rem;
  place-items: center;
  border: 0.2rem solid currentColor;
  border-radius: 50%;
  font-family: var(--ps-sans);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.ps-theme .header__heading-link .h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.ps-theme .ps-header-brand b {
  color: var(--ps-orange);
  font-weight: inherit;
}

.ps-theme .header__inline-menu {
  align-self: center;
  justify-self: start;
}

.ps-theme .header .list-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-theme .header .list-menu--inline {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.ps-theme .header__menu-item {
  min-height: 4rem;
  padding: 0 1.2rem;
  color: var(--ps-muted);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.ps-theme .header__menu-item:hover,
.ps-theme .header__active-menu-item,
.ps-theme details[open] > .header__menu-item {
  color: var(--ps-orange);
  text-decoration: none;
}

.ps-theme .header__submenu,
.ps-theme .mega-menu__content {
  border: 1px solid var(--ps-line);
  background: rgba(250, 250, 247, 0.98);
  box-shadow: 0 1.4rem 4rem rgba(23, 33, 28, 0.08);
}

.ps-theme .header__icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  transition: color 160ms ease, background-color 160ms ease;
}

.ps-theme .header__icon:hover {
  background: rgba(23, 33, 28, 0.045);
  color: var(--ps-orange);
}

.ps-theme .header__icons {
  align-items: center;
  gap: 0.2rem;
  padding-right: 0;
}

.ps-theme .header__icon .svg-wrapper {
  width: 4.2rem;
  height: 4.2rem;
}

.ps-theme .header__icon .icon {
  width: 1.9rem;
  height: 1.9rem;
}

.ps-theme .header__icon--cart {
  margin-right: 0;
}

.ps-theme .cart-count-bubble {
  top: 0.3rem;
  right: 0;
  bottom: auto;
  left: auto;
  width: auto;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  background: var(--ps-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 0.2rem rgb(var(--color-background));
}

@media screen and (min-width: 990px) {
  .ps-theme .header--middle-left {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(3rem, 4vw, 6rem);
  }
}

/* Section labels */

.ps-eyebrow {
  margin: 0;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* Buttons, fields, variants and interactive states */

.ps-theme .button,
.ps-theme .shopify-challenge__button,
.ps-theme .customer button,
.ps-theme button.shopify-payment-button__button--unbranded {
  min-height: 4.8rem;
  padding-inline: 1.7rem;
  font-family: var(--ps-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ps-theme .button:not([disabled]):hover,
.ps-theme .shopify-challenge__button:hover,
.ps-theme .customer button:hover {
  transform: translateY(-1px);
}

.ps-theme .button::before,
.ps-theme .button::after,
.ps-theme .shopify-challenge__button::before,
.ps-theme .shopify-challenge__button::after,
.ps-theme .customer button::before,
.ps-theme .customer button::after {
  border-radius: var(--ps-radius);
}

.ps-theme .button--secondary {
  background: transparent;
}

.ps-theme .field,
.ps-theme .select,
.ps-theme .customer .field,
.ps-theme .quantity {
  border-radius: var(--ps-radius);
  background: #fff;
}

.ps-theme .field::before,
.ps-theme .field::after,
.ps-theme .select::before,
.ps-theme .select::after,
.ps-theme .customer .field::before,
.ps-theme .customer .field::after,
.ps-theme .quantity::before,
.ps-theme .quantity::after {
  border-radius: var(--ps-radius);
}

.ps-theme .field:hover.field::after,
.ps-theme .select:hover.select::after,
.ps-theme .customer .field:hover.field::after,
.ps-theme .quantity:hover.quantity::after {
  box-shadow: 0 0 0 0.1rem var(--ps-ink);
}

.ps-theme .field__input:focus,
.ps-theme .select__select:focus,
.ps-theme .customer .field input:focus,
.ps-theme .customer select:focus {
  box-shadow: 0 0 0 0.2rem var(--ps-orange);
}

.ps-theme .product-form__input input[type='radio'] + label {
  border-color: var(--ps-line);
  border-radius: var(--ps-radius);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.ps-theme .product-form__input input[type='radio']:checked + label {
  border-color: var(--ps-ink);
  background: var(--ps-ink);
  color: #fff;
}

.ps-theme .product-form__input input[type='radio']:focus-visible + label {
  outline-color: var(--ps-orange);
  box-shadow: none;
}

.ps-theme .quantity__button:hover {
  color: var(--ps-orange);
}

/* Product and collection cards */

.ps-theme .collection__title,
.ps-theme .title-wrapper-with-link {
  align-items: end;
}

.ps-theme .collection__title .title,
.ps-theme .title-wrapper-with-link .title,
.ps-theme .main-page-title,
.ps-theme .collection-list-title {
  font-size: clamp(4rem, 5vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.ps-theme .collection__description {
  max-width: 48rem;
  color: var(--ps-muted);
}

.ps-theme .card-wrapper .card {
  height: 100%;
  border-color: var(--ps-line);
  background: var(--ps-panel);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ps-theme .card-wrapper:hover .card {
  border-color: rgba(255, 91, 33, 0.65);
  transform: translateY(-0.3rem);
  box-shadow: 0 1.4rem 3.2rem rgba(23, 33, 28, 0.08);
}

.ps-theme .card--standard > .card__content {
  padding: 1.4rem 0.2rem 0.4rem;
}

.ps-theme .card--card .card__content {
  padding: 1.6rem;
}

.ps-theme .card__media,
.ps-theme .card__inner,
.ps-theme .card__inner .media {
  border-radius: calc(var(--ps-radius-lg) - 1px);
}

.ps-theme .card__heading {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ps-theme .card__heading a:hover {
  color: var(--ps-orange);
  text-decoration: none;
}

.ps-theme .card-information > *:not(.visually-hidden:first-child) + *:not(.rating):not(.card__information-volume-pricing-note) {
  margin-top: 0.8rem;
}

.ps-theme .card-information .caption-with-letter-spacing {
  color: var(--ps-muted);
  font-size: 0.85rem;
}

.ps-theme .price {
  color: var(--ps-ink);
  font-family: var(--ps-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ps-theme .price--on-sale .price-item--regular {
  color: var(--ps-muted);
}

.ps-theme .badge {
  padding: 0.7rem 1rem;
  border-color: currentColor;
  font-family: var(--ps-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-theme .quick-add {
  margin-top: 1.4rem;
}

.ps-theme .quick-add__submit {
  min-height: 4.2rem;
}

/* Collection and search */

.ps-theme .collection-hero {
  border-bottom: 1px solid var(--ps-line);
  background: var(--ps-paper);
}

.ps-theme .collection-hero__inner {
  min-height: 26rem;
  align-items: end;
  padding-block: 6rem;
}

.ps-theme .collection-hero__title {
  max-width: 95rem;
  font-size: clamp(5.4rem, 8vw, 11rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
}

.ps-theme .facets-container,
.ps-theme .facets-wrapper,
.ps-theme .mobile-facets__wrapper {
  font-size: 1.1rem;
}

.ps-theme .facets__form {
  padding-block: 1.5rem;
  border-top: 1px solid var(--ps-line);
  border-bottom: 1px solid var(--ps-line);
}

.ps-theme .facets__wrapper {
  align-items: center;
  gap: 0.6rem;
}

.ps-theme .facets__disclosure {
  margin-right: 0;
}

.ps-theme .facets__summary {
  min-height: 4rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--ps-radius);
  color: var(--ps-ink);
  font-weight: 700;
}

.ps-theme .facets__summary:hover,
.ps-theme .facets__disclosure[open] .facets__summary {
  border-color: var(--ps-line);
  background: #fff;
  color: var(--ps-orange);
}

.ps-theme .facets__display {
  border-color: var(--ps-line);
  border-radius: var(--ps-radius-lg);
  box-shadow: 0 1.4rem 3.4rem rgba(23, 33, 28, 0.08);
}

.ps-theme .facet-checkbox {
  min-height: 3.8rem;
  align-items: center;
  padding-block: 0.7rem;
}

.ps-theme .facet-checkbox input[type='checkbox'] {
  accent-color: var(--ps-orange);
}

.ps-theme .facet-filters__sort,
.ps-theme .mobile-facets__sort .select__select {
  background: transparent;
}

.ps-theme .active-facets__button-inner {
  border-color: var(--ps-line);
  border-radius: 99px;
  background: #fff;
  font-family: var(--ps-mono);
  font-size: 0.9rem;
}

.ps-theme .pagination__item--current::after,
.ps-theme .pagination__item:hover::after {
  background: var(--ps-orange);
}

/* Product page */

.ps-theme .product {
  gap: clamp(3rem, 6vw, 9rem);
}

.ps-theme .product__media-wrapper .global-media-settings {
  border-color: var(--ps-line);
  background: #e7e8e3;
}

.ps-theme .product__info-wrapper {
  align-self: start;
}

.ps-theme .product__info-container {
  max-width: 54rem;
}

.ps-theme .product__title > * {
  font-size: clamp(4.2rem, 5.3vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.ps-theme .product__title + * {
  margin-top: 2.2rem;
}

.ps-theme .product__info-container > * + * {
  margin-top: 2.2rem;
}

.ps-theme .product__info-container .price--large {
  font-size: 2rem;
}

.ps-theme .product-form__input .form__label {
  margin-bottom: 1rem;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ps-theme .product-form__buttons {
  max-width: none;
}

.ps-theme .product-form__submit {
  min-height: 5.4rem;
}

.ps-theme .shopify-payment-button__button {
  min-height: 5.4rem;
  border-radius: var(--ps-radius) !important;
}

.ps-theme .product__inventory {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 0.2rem solid var(--ps-success);
  background: rgba(84, 184, 116, 0.08);
  font-family: var(--ps-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.ps-theme .accordion {
  border-color: var(--ps-line);
}

.ps-theme .accordion summary {
  padding-block: 1.8rem;
}

.ps-theme .accordion__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ps-theme .thumbnail[aria-current] {
  border-color: var(--ps-orange);
  box-shadow: 0 0 0 0.1rem var(--ps-orange);
}

/* Cart, drawers, modals and search surfaces */

.ps-theme .drawer__overlay {
  background: rgba(16, 46, 38, 0.48);
  backdrop-filter: blur(2px);
}

.ps-theme .drawer__inner,
.ps-theme .menu-drawer,
.ps-theme .mobile-facets__inner {
  border-color: var(--ps-line);
  background: var(--ps-panel);
}

.ps-theme .drawer__header {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--ps-line);
}

.ps-theme .drawer__heading {
  font-size: 2.8rem;
  letter-spacing: -0.055em;
}

.ps-theme .cart-item {
  border-bottom-color: var(--ps-line);
}

.ps-theme .cart-item__name {
  font-weight: 800;
}

.ps-theme .cart-drawer__footer,
.ps-theme .cart__footer {
  border-top-color: var(--ps-line);
}

.ps-theme .totals__total,
.ps-theme .totals__total-value {
  font-weight: 800;
}

.ps-theme .cart__checkout-button {
  min-height: 5.4rem;
}

.ps-theme .cart-remove-button:hover,
.ps-theme .cart-item__error-text {
  color: var(--ps-error);
}

.ps-theme .modal__content,
.ps-theme .product-media-modal__content,
.ps-theme .quick-add-modal__content,
.ps-theme .search-modal__content,
.ps-theme .predictive-search {
  border-color: var(--ps-line);
  background: var(--ps-panel);
}

.ps-theme .quick-add-modal__content,
.ps-theme .product-popup-modal__content {
  border-radius: var(--ps-radius-lg);
}

.ps-theme .modal__close-button:hover,
.ps-theme .drawer__close:hover {
  color: var(--ps-orange);
}

.ps-theme .menu-drawer__menu-item,
.ps-theme .menu-drawer__account {
  font-weight: 800;
}

.ps-theme .menu-drawer__menu-item--active,
.ps-theme .menu-drawer__menu-item:hover {
  background: rgba(255, 91, 33, 0.08);
  color: var(--ps-orange);
}

/* Editorial content and footer */

.ps-theme .rich-text__wrapper {
  width: min(100%, 120rem);
}

.ps-theme .rich-text__heading.rte {
  font-size: clamp(4.8rem, 7vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.ps-theme .rich-text__text {
  max-width: 66rem;
  font-size: 1.4rem;
}

.ps-theme .multicolumn-card {
  border-top: 1px solid var(--ps-line);
}

.ps-theme .multicolumn-card__info {
  padding: 2.4rem 2rem 2.4rem 0;
}

.ps-theme .multicolumn-card__info h3 {
  color: var(--ps-ink);
  font-family: var(--ps-mono);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.ps-theme .footer {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.ps-theme .footer__content-top {
  padding-top: 6rem;
}

.ps-theme .footer-block__heading {
  margin-bottom: 2rem;
  color: var(--ps-orange);
}

.ps-theme .footer-block__details-content,
.ps-theme .footer-block__details-content .list-menu__item--link,
.ps-theme .footer__copyright,
.ps-theme .footer__copyright a {
  color: rgba(245, 244, 237, 0.7);
}

.ps-theme .footer-block__details-content .list-menu__item--link:hover,
.ps-theme .footer__copyright a:hover {
  color: #fff;
}

.ps-theme .footer__content-bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
}

@media screen and (max-width: 989px) {
  .ps-theme .header {
    min-height: 6rem;
  }

  .ps-theme .product {
    gap: 4rem;
  }
}

@media screen and (max-width: 749px) {
  .ps-theme .announcement-bar__message {
    font-size: 0.8rem;
  }

  .ps-theme .header__heading-link {
    gap: 0.8rem;
  }

  .ps-theme .header__heading-link::before {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
    font-size: 1.1rem;
  }

  .ps-theme .header__heading-link .h2 {
    font-size: 1.25rem;
  }

  .ps-theme .collection__title .title,
  .ps-theme .title-wrapper-with-link .title,
  .ps-theme .main-page-title,
  .ps-theme .collection-list-title {
    font-size: 4.4rem;
  }

  .ps-theme .collection-hero__inner {
    min-height: 20rem;
    padding-block: 4rem;
  }

  .ps-theme .collection-hero__title {
    font-size: 5.6rem;
  }

  .ps-theme .product__title > * {
    font-size: 4.4rem;
  }

  .ps-theme .card__heading {
    font-size: 1.3rem;
  }

  .ps-theme .card--standard > .card__content {
    padding-top: 1rem;
  }

  .ps-theme .rich-text__heading.rte {
    font-size: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-theme .button,
  .ps-theme .card-wrapper .card,
  .ps-theme .header__icon {
    transition: none;
  }
}
