:root {
  --letter-spacing--heading-loose: 0.16em;
  --button-padding-block: 0.75rem;
  --button-padding-inline: 1.75rem;
}

.button,
.button-secondary,
.button-custom {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.button:not(.button-secondary, .button-unstyled, .quick-add__button):hover,
button.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  --button-color: var(--color-primary-button-background);
  --button-background-color: transparent;
  --button-border-color: var(--color-primary-button-background);
  --button-border-width: 1px;
}

.button-secondary:not(.button-unstyled):hover {
  --button-color: var(--color-secondary-button-background);
  --button-background-color: var(--color-secondary-button-text);
  --button-border-color: var(--color-secondary-button-text);
}

@media screen and (max-width: 749px) {
  :root {
    --font-h2--size: 1.875rem;
    --font-h5--size: 1.125rem;
    --button-padding-block: 0.6rem;
    --button-padding-inline: 1.25rem;
  }

  .button,
  .button-secondary,
  .button-custom {
    font-size: 0.875rem;
  }
}

.header__underlay-closed {
  opacity: 0.94;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-list__link {
  letter-spacing: 0.02em;
}

@media screen and (min-width: 750px) and (max-width: 1199px) {
  .menu-list {
    --mowa-menu-pad: clamp(0.375rem, 1.75vw - 0.625rem, 0.7rem);
  }

  .menu-list__link {
    font-size: min(var(--menu-top-level-font-size-desktop), clamp(0.875rem, 0.25rem + 1vw, 1rem));
  }

  .menu-list__link-title {
    padding-inline: var(--mowa-menu-pad);
  }

  .menu-list__link--disclosure .menu-list__link-title {
    padding-inline-end: 0.35em;
  }

  .menu-list__link--disclosure .menu-list__disclosure-icon {
    margin-inline-end: var(--mowa-menu-pad);
  }
}

.mega-menu__grid {
  max-width: 1040px;
  margin-inline: auto;
}

.mega-menu__link-image {
  aspect-ratio: 4 / 5;
  max-height: 250px;
}

.mega-menu__link:has(.mega-menu__link-image) {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 1.25rem;
  line-height: 1.2;
}

.mega-menu__count {
  display: block;
  margin-block-start: 0.125rem;
  font-family: var(--font-body--family);
  font-weight: var(--font-body--weight);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgb(var(--color-foreground-rgb) / var(--opacity-70));
}

.hero__content-wrapper:has(.text-block) {
  isolation: isolate;
}

.hero__content-wrapper:has(.text-block)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 38% 54% at 50% 50%, rgb(40 28 22 / 0.5) 0%, rgb(40 28 22 / 0.28) 50%, transparent 100%);
}

.hero__content-wrapper .text-block {
  text-shadow: 0 1px 18px rgb(40 28 22 / 0.35);
}

@media screen and (max-width: 749px) {
  .hero:has(.hero__content-wrapper .text-block) {
    min-height: calc(92svh - var(--hero-height-offset, 0px));
  }

  .hero__content-wrapper:has(.text-block) {
    gap: 18px;
  }

  .hero__content-wrapper .text-block h1 {
    font-size: 2.625rem;
  }

  .hero__content-wrapper .text-block p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 749px) {
  .collection-card__content > .text-block {
    font-size: 1.0625rem;
  }
}

.collection-card__image {
  overflow: hidden;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .collection-card__image img {
    transition: transform 0.6s var(--ease-out-cubic, ease-out);
  }

  .collection-card:hover .collection-card__image img {
    transform: scale(1.05);
  }
}

.media-with-content.section--page-width:not(.media-with-content--media-extend) .media-block {
  border-radius: 14px;
}

@media screen and (max-width: 749px) {
  :is(.section-resource-list__header, .section-resource-list__content) .layout-panel-flex--row:has(> .button-secondary, > .button) {
    flex-wrap: nowrap;
  }

  :is(.section-resource-list__header, .section-resource-list__content) .layout-panel-flex--row:has(> .button-secondary, > .button) > .group-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  :is(.section-resource-list__header, .section-resource-list__content) .layout-panel-flex--row > :is(.button-secondary, .button) {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media screen and (max-width: 749px) {
  .media-with-content__content .text-block.custom-font-size {
    font-size: calc(var(--font-size) * 0.85);
  }
}

@media screen and (max-width: 749px) {
  .email-signup__input,
  .email-signup__button--text {
    padding: 0.75rem 1.25rem;
  }
}

@media screen and (max-width: 749px) {
  .shopify-section-group-footer-group .layout-panel-flex,
  .shopify-section-group-footer-group .text-block {
    align-items: center;
  }

  .shopify-section-group-footer-group .text-block,
  .shopify-section-group-footer-group .menu {
    text-align: center;
  }

  .shopify-section-group-footer-group .text-block > * {
    text-align: center;
  }

  .shopify-section-group-footer-group .menu__heading {
    justify-content: center;
  }

  .shopify-section-group-footer-group .payment-icons__list {
    justify-content: center;
  }
}

@media screen and (min-width: 990px) {
  .main-collection-grid .product-grid--grid[product-grid-view='default'] {
    --product-grid-columns-desktop: repeat(4, minmax(0, 1fr));
  }
}

.resource-list--grid:has(> .resource-list__item:last-child:nth-child(odd)) > .resource-list__item:first-child:has(.collection-card) {
  grid-column: 1 / -1;

  & :is(.collection-card, .collection-card__image) {
    aspect-ratio: 16 / 10;

    @media screen and (min-width: 750px) {
      aspect-ratio: 3 / 1;
    }
  }

  & .collection-card__image img {
    object-position: 50% 62%;
  }
}

.cart-items__media img,
.cart-items__media-image {
  border-radius: 10px;
}

.shopify-policy__container {
  --policy-gutter: max(var(--page-margin), calc((100% - var(--page-content-width)) / 2));

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 3.5rem var(--policy-gutter) 3rem;
}

.shopify-policy__title {
  margin-block-end: 2.5rem;
  padding-block-end: 2rem;
  border-block-end: 1px solid #e4d8c3;
  text-align: start;

  & h1 {
    margin: 0;
    font-size: var(--font-h2--size);
    line-height: 1.05;
  }
}

.shopify-policy__body .rte {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgb(var(--color-foreground-rgb) / var(--opacity-80));

  & p {
    margin-block: 0 1.15em;
  }

  & > p:first-child {
    margin-block-end: 2rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a693d;
  }

  & h2 {
    margin-block: 3.5rem 1.25rem;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--color-foreground);
  }

  & p:has(> span[style*='underline']:only-child) {
    margin-block: 2.75rem 0.75rem;
  }

  & p > span[style*='underline']:only-child {
    display: block;
    font-family: var(--font-heading--family);
    font-weight: var(--font-heading--weight);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--color-foreground);
    text-decoration: none !important;
  }

  & a {
    color: var(--color-foreground);
    text-decoration-color: #b5905a;
    text-underline-offset: 0.2em;
  }
}

.product-badges__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__content-wrapper[style*='--horizontal-alignment: flex-start']:has(.text-block)::before {
  background: none;
}

#shopify-pc__banner.shopify-pc__banner__dialog {
  inset: auto auto 24px 24px;
  width: min(440px, calc(100vw - 48px));
  min-width: 0;
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 1px solid #e4d8c3;
  border-radius: 14px;
  background-color: var(--color-background);
  box-shadow: 0 24px 60px -24px rgb(59 47 40 / 0.45);
  font-family: var(--font-body--family);

  @media screen and (max-width: 749px) {
    inset: auto 12px 12px 12px;
    width: auto;
    padding: 20px;
  }

  & .shopify-pc__banner__wrapper {
    align-items: stretch;
  }

  & .shopify-pc__banner__body {
    margin-bottom: 18px;
  }

  & h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading--family);
    font-weight: var(--font-heading--weight);
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--color-foreground);
  }

  & p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(var(--color-foreground-rgb) / var(--opacity-80));
  }

  & a {
    color: var(--color-foreground);
    text-decoration-color: #b5905a;
    text-underline-offset: 0.2em;
  }

  & .shopify-pc__banner__btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  & button {
    flex: 1 1 0;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border-radius: 999px;
    font-family: var(--font-body--family);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: background-color var(--animation-speed) var(--animation-easing),
      color var(--animation-speed) var(--animation-easing);
  }

  & :is(.shopify-pc__banner__btn-accept, .shopify-pc__banner__btn-decline) {
    border: 1px solid var(--color-primary-button-background);
    background: var(--color-primary-button-background);
    color: var(--color-primary-button-text);

    &:hover {
      background: transparent;
      color: var(--color-primary-button-background);
    }
  }

  & .shopify-pc__banner__btn-accept {
    order: 1;
  }

  & .shopify-pc__banner__btn-decline {
    order: 2;
  }

  & .shopify-pc__banner__btn-manage-prefs {
    order: 3;
    flex-basis: 100%;
    min-height: 36px;
    font-weight: 400;
    color: var(--color-foreground);
    text-decoration-color: #b5905a;
    text-underline-offset: 0.2em;
  }

  & :is(button, a):focus-visible {
    outline: 2px solid var(--color-foreground);
    outline-offset: 2px;
    box-shadow: none;
  }
}

.shopify-pc__prefs__overlay {
  background-color: rgb(40 28 22 / 0.55);
}

.shopify-pc__prefs .shopify-pc__prefs__dialog {
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid #e4d8c3;
  border-radius: 14px;
  background-color: var(--color-background);
  box-shadow: 0 24px 60px -24px rgb(59 47 40 / 0.45);
  font-family: var(--font-body--family);
  color: var(--color-foreground);

  & header {
    border-bottom-color: #e4d8c3;
  }

  & header h2 {
    font-family: var(--font-heading--family);
    font-weight: var(--font-heading--weight);
    font-size: 1.75rem;
    color: var(--color-foreground);
  }

  & .shopify-pc__prefs__header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  & .shopify-pc__prefs__header-actions button {
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--color-primary-button-background);
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary-button-background);
    font-family: var(--font-body--family);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
  }

  & :is(#shopify-pc__prefs__header-accept, #shopify-pc__prefs__header-decline) {
    background: var(--color-primary-button-background);
    color: var(--color-primary-button-text);
  }

  & .shopify-pc__prefs__header-close svg path {
    fill: var(--color-foreground);
  }

  & .shopify-pc__prefs__header-close:focus {
    box-shadow: none;
  }

  & .shopify-pc__prefs__intro-main h3,
  & .shopify-pc__prefs__option label {
    font-family: var(--font-body--family);
    font-weight: 500;
    color: var(--color-foreground);
  }

  & .shopify-pc__prefs__intro p,
  & .shopify-pc__prefs__option p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(var(--color-foreground-rgb) / var(--opacity-80));
  }

  & .shopify-pc__prefs__options,
  & .shopify-pc__prefs__intro {
    border-color: #e4d8c3;
  }

  & .shopify-pc__prefs__option label span,
  & .shopify-pc__prefs__option label span svg {
    background-color: transparent;
  }

  & .shopify-pc__prefs__option label span svg path {
    fill: var(--color-primary-button-background);
  }

  & :is(button, a):focus-visible,
  & .shopify-pc__prefs__option label input:focus-visible ~ span svg {
    outline: 2px solid var(--color-foreground);
    outline-offset: 2px;
    box-shadow: none;
  }
}
