/* Shopping templates use their native links, prices, filters, gallery and purchase forms. */
body:is([data-wh-page="product"], [data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent {
  --wh-shop-brand: #55996f;
  --wh-shop-ink: #121212;
  --wh-shop-muted: #525650;
  --wh-shop-line: #dce2d9;
  --wh-shop-paper: #fafaf7;
  --wh-shop-tint: #eef5f1;
  --wh-shop-gutter: clamp(16px, 4.5vw, 70px);
  color: var(--wh-shop-ink);
  background: var(--wh-shop-paper);
}

body:is([data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent {
  & .page-width {
    max-width: 1440px;
    padding-inline: var(--wh-shop-gutter);
  }

  & :is(.collection-hero, .collection-hero__inner, .template-search, .rich-text, .usp_icons_2_cover, #ProductGridContainer, .collection, .shopify-section > [class*="-padding"].gradient) {
    background: var(--wh-shop-paper);
  }

  & :is(.collection-hero__title, h1.title--primary, .template-search__header > h1, .custom_banner_inner h2) {
    color: var(--wh-shop-ink);
    font-family: var(--font-heading-family);
    font-size: clamp(36px, 4.4vw, 68px);
    font-weight: var(--font-heading-weight, 400);
    line-height: 1.05;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  & .collection-hero__inner {
    padding-block: clamp(32px, 4.5vw, 68px) clamp(18px, 2.6vw, 40px);
  }

  & .collection-hero__title,
  & h1.title--primary {
    margin: 0 !important;
    text-align: start;
  }

  & h1.title--primary {
    padding-block: clamp(32px, 4.5vw, 68px) clamp(20px, 2.6vw, 40px);
  }

  & .collection-hero__title + .collection-hero__description {
    max-width: 66ch;
    margin: 13px 0 0;
    color: var(--wh-shop-muted);
    font-size: clamp(15px, 1.22vw, 18px);
    line-height: 1.6;
    text-align: start;
  }

  & .collection-hero__description > :is(p, h2):first-child {
    margin-top: 0;
  }

  & .collection-hero__description > :last-child {
    margin-bottom: 0;
  }

  & .custom_banner_cover {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
  }

  & .custom_banner_cover > img {
    width: 100%;
    height: clamp(130px, 13.3vw, 198px);
    object-fit: cover;
    object-position: center;
  }

  & .custom_banner_inner h2 {
    margin: 0;
  }

  & .custom_banner + .shopify-section .rich-text {
    padding-block: clamp(18px, 2.1vw, 32px) 12px;
  }

  & .custom_banner + .shopify-section .rich-text__blocks {
    max-width: 65ch;
  }

  & .custom_banner + .shopify-section .rich-text__text,
  & .custom_banner + .shopify-section .rich-text__text p {
    margin: 0;
    color: var(--wh-shop-muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
  }

  & .custom_banner + .shopify-section .rich-text__text strong {
    font-weight: 500;
  }

  & .usp_icons_2_cover > [class*="-padding"] {
    padding: 6px 0 clamp(16px, 2vw, 28px);
  }

  & .usp_icons_2_inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
  }

  & .usp_icons_2_item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid var(--wh-shop-line);
    border-radius: 12px;
    background: #fff;
  }

  & .usp_icons_2_img,
  & .usp_icons_2_img img {
    width: 38px;
    height: 38px;
    padding: 0;
    object-fit: contain;
  }

  & .usp_icons_2_text {
    text-align: start;
  }

  & .usp_icons_2_text h4 {
    margin: 0;
    color: var(--wh-shop-ink);
    font: 700 15px/1.3 var(--font-body-family);
  }

  & .usp_icons_2_text p {
    margin: 2px 0 0;
    color: var(--wh-shop-muted);
    font-size: 13px;
    line-height: 1.35;
  }

  & .product_wrap_list_main_header {
    position: static;
    padding: 0;
    background: transparent;
  }

  & .product-tags-filter {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--wh-shop-gutter) 12px;
  }

  & .product-tags-filter .tag-tab {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 17px;
    border: 1px solid #aab4a9;
    border-radius: 99px;
    background: #fff;
    color: var(--wh-shop-ink);
    font: 600 14px/1.2 var(--font-body-family);
    text-transform: capitalize;
    cursor: pointer;
  }

  & .product-tags-filter .tag-tab.active {
    background: var(--wh-shop-brand);
    border-color: var(--wh-shop-brand);
    color: var(--wh-shop-ink);
  }

  & :is(ul.product-grid, ul.collection-list) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.3vw, 36px) clamp(14px, 1.5vw, 24px);
    margin: 0;
    padding: 0 0 clamp(36px, 4.5vw, 68px);
    list-style: none;
  }

  & ul.collection-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  & :is(ul.product-grid, ul.collection-list) > li.grid__item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  & :is(.product-grid .grid__item, .collection-list__item) > .card-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--wh-shop-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  & :is(.product-grid .grid__item, .collection-list__item) > .card-wrapper .card__inner {
    --ratio-percent: 91% !important;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 13px 13px 0 0;
    background: #f1f1eb;
  }

  & .collection-list__item > .card-wrapper .card__inner {
    --ratio-percent: 70% !important;
  }

  & .card--media .card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  & :is(.product-grid, .collection-list) .card > .card__content {
    padding: 0;
    text-align: start;
  }

  & :is(.product-grid, .collection-list) .card > .card__content .card__information {
    min-width: 0;
    padding: clamp(13px, 1.3vw, 20px);
    text-align: start;
  }

  & :is(.product-grid, .collection-list) .card__heading {
    color: var(--wh-shop-ink);
    font: 700 clamp(16px, 1.35vw, 21px)/1.32 var(--font-body-family);
    letter-spacing: -.017em;
    overflow-wrap: anywhere;
  }

  & .card__information .weight_serving {
    padding-top: 5px;
  }

  & .card__information .weight_serving p {
    color: var(--wh-shop-muted) !important;
    font-size: 13px;
    line-height: 1.42;
  }

  & .grid__item .card-wrapper .card-information {
    text-align: start;
  }

  & .grid__item .card-wrapper .price,
  & .grid__item .card-wrapper .price .price-item,
  & .grid__item .card-wrapper .price .price-item * {
    color: var(--wh-shop-ink);
    font-family: var(--font-body-family);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.4;
  }

  & .grid__item .card-wrapper .price .price__sale s {
    color: var(--wh-shop-muted);
    font-weight: 400;
  }

  & .card__badge .badge {
    border-color: transparent;
    background: #fff;
    color: var(--wh-shop-ink);
    font: 650 12px/1.2 var(--font-body-family);
  }

  & .pagination-wrapper {
    margin-block: 0 clamp(34px, 4vw, 60px);
  }

  & .pagination__item {
    border-radius: 50%;
    color: var(--wh-shop-ink);
  }

  & .pagination__item--current {
    background: var(--wh-shop-brand);
    font-weight: 700;
  }

  & :is(.template-search__header, .template-search__search) {
    margin-block: 0;
  }

  & .template-search__header {
    padding-block: clamp(30px, 4vw, 62px) 23px;
  }

  & .template-search__header > h1 {
    margin: 0 0 18px;
    text-align: center;
  }

  & .template-search__search {
    max-width: 650px;
    margin-inline: auto;
  }

  & .template-search__search .field {
    min-height: 50px;
    border: 1px solid #8c998b;
    border-radius: 30px;
    background: #fff;
  }

  & .template-search__search .field::before,
  & .template-search__search .field::after {
    box-shadow: none;
  }

  & .template-search__search .search__input.field__input {
    min-width: 0 !important;
    height: 50px !important;
    padding: 12px 100px 12px 21px !important;
    border-radius: 30px;
    font-size: 16px;
  }

  & .template-search__search .predictive-search {
    min-width: 0;
    width: 100%;
    top: 100%;
    border-radius: 12px;
  }

  & .facets-container {
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid var(--wh-shop-line);
    border-radius: 12px;
    background: #fff;
  }

  & #FacetFiltersForm .facets__heading,
  & .facets__summary span {
    margin-block: 0;
    color: var(--wh-shop-ink);
    font: 600 15px/1.4 var(--font-body-family);
  }

  & :is(.product-count__text, .facet-filters__label, .facet-filters__sort) {
    color: var(--wh-shop-muted);
    font-size: 14px;
    line-height: 1.4;
  }

  & :is(.facets__summary, .mobile-facets__open-wrapper, .mobile-facets__close-button) {
    min-height: 44px;
    align-content: center;
  }

  & :is(.facets__display, .facets__display-vertical) {
    background: #fff;
    border-radius: 12px;
  }

  & .mobile-facets__footer .button:not(.button--tertiary) {
    background: var(--wh-shop-brand);
    color: var(--wh-shop-ink) !important;
    border-radius: 99px;
  }
}

body[data-wh-page="product"]:not([data-wh-builder]) #MainContent {
  & product-info {
    display: block;
    padding-block: clamp(28px, 4vw, 62px);
    background: var(--wh-shop-paper);
  }

  & product-info > .page-width {
    box-sizing: border-box;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--wh-shop-gutter);
    border-radius: 0;
    background: transparent;
  }

  & .product__title h1 {
    margin: 0;
    color: var(--wh-shop-ink);
    font-family: var(--font-heading-family);
    font-size: clamp(33px, 3.6vw, 57px);
    letter-spacing: -.025em;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  & .product__media-list {
    margin-bottom: 0;
  }

  & .product-media-container {
    overflow: hidden;
    border: 1px solid var(--wh-shop-line);
    border-radius: 18px;
    background: #eeeee7;
  }

  & .product__info-container {
    max-width: none;
    color: var(--wh-shop-ink);
  }

  & .product__info-container > * + * {
    margin-block-start: 16px;
  }

  & .wh-retail-order__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 1.2rem 1.6rem;
    margin: 0 0 1.6rem;
    padding-block: 1.5rem;
    border-block: 1px solid var(--wh-shop-line);
  }

  & .wh-retail-order__facts dt {
    color: var(--wh-shop-muted);
    font-size: 1.3rem;
    font-weight: 600;
  }

  & .wh-retail-order__facts dd {
    margin: .3rem 0 0;
    color: var(--wh-shop-ink);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  & .product__info-container .price .price-item {
    color: var(--wh-shop-ink);
    font: 700 clamp(22px, 2vw, 30px)/1.25 var(--font-body-family);
    letter-spacing: -.02em;
  }

  & .product__tax {
    color: var(--wh-shop-muted);
    font-size: 13px;
    line-height: 1.4;
  }

  & .product__description {
    color: var(--wh-shop-ink);
    font: 500 16px/1.65 var(--font-body-family);
  }

  & .product__description :is(p, ul, ol) {
    margin-block: 0 12px;
  }

  & .product__description :is(ul, ol) {
    padding-inline-start: 1.35em;
  }

  & .product__description li + li {
    margin-top: 3px;
  }

  & :is(.product__tax, .product__description) a {
    color: var(--wh-shop-ink);
    text-decoration-color: var(--wh-shop-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }

  & .product__info-container :is(.form__label, .quantity__label) {
    margin-bottom: 6px;
    color: var(--wh-shop-ink);
    font: 650 14px/1.4 var(--font-body-family);
  }

  & .product__info-container quantity-input.quantity {
    min-height: 46px;
    overflow: visible;
    border: 1px solid #a9b7aa;
    border-radius: 12px;
    background: #fff;
  }

  & .product__info-container .quantity::before,
  & .product__info-container .quantity::after {
    box-shadow: none;
  }

  & .product__info-container :is(.quantity__button, .quantity__input) {
    min-height: 44px;
    color: var(--wh-shop-ink);
  }

  & .product__info-container :is(.product-form__submit, a.button) {
    min-height: 50px;
    padding: 13px 25px;
    border: 1px solid var(--wh-shop-brand);
    border-radius: 99px;
    background: var(--wh-shop-brand);
    color: var(--wh-shop-ink) !important;
    font: 700 16px/1.35 var(--font-body-family);
    letter-spacing: 0;
    text-transform: none;
  }

  /* The curated-box template sets an important gradient directly on this button. */
  & .product__info-container .product-form__submit {
    width: 100%;
    min-width: 0;
    max-width: none;
    background: var(--wh-shop-brand) !important;
  }

  & .product__info-container .product-form__submit:is(:disabled, [aria-disabled="true"]) {
    border-color: var(--wh-shop-line);
    background: #e7e9e3 !important;
    color: var(--wh-shop-muted) !important;
    opacity: 1;
  }

  & .product__info-container .product-form__buttons {
    width: 100%;
    max-width: 100%;
  }

  & .product__info-container .product-form__input--pill input:checked + label {
    background: var(--wh-shop-brand);
    border-color: var(--wh-shop-brand);
    color: var(--wh-shop-ink);
  }

  & .product__info-container .esbfixedbundleproductview h3 {
    margin: 0 0 12px;
    color: var(--wh-shop-ink);
    font: 700 18px/1.35 var(--font-body-family);
  }

  & .easybundlesection > .esbfixedbundleproductview {
    --esb-primary-color: var(--wh-shop-brand);
    --esb-text-font-color: var(--wh-shop-ink);
    gap: 0;
  }

  & .easybundlesection .esbfixedbundleproductview #easybundleheading {
    justify-content: flex-start;
  }

  & .easybundlesection .esbfixedbundleproductview .easyfixedbundleproducts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 7px;
  }

  & .easybundlesection .esbfixedbundleview {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--wh-shop-line);
    border-radius: 10px;
    background: #fff;
  }

  & .easybundlesection .esbfixedbundleview img.productimgfixed {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 0;
    border-radius: 6px;
    object-fit: cover;
  }

  & .easybundlesection .items_details {
    min-width: 0;
    padding: 0;
    text-align: start;
  }

  & .easybundlesection .items_details h6 {
    color: var(--wh-shop-ink);
    font: 650 14px/1.35 var(--font-body-family);
    overflow-wrap: anywhere;
  }
}

body:is([data-wh-page="product"], [data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent :focus-visible {
  outline: 3px solid var(--wh-shop-ink);
  outline-offset: 3px;
}

@media (hover: hover) {
  body:is([data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent {
    & .card-wrapper:has(a:hover),
    & .product-tags-filter .tag-tab:not(.active):hover {
      border-color: var(--wh-shop-brand);
    }
  }

  body[data-wh-page="product"]:not([data-wh-builder]) #MainContent .product__info-container :is(a.button, .product-form__submit:enabled):hover {
    box-shadow: inset 0 0 0 2px var(--wh-shop-ink);
  }
}

@media (min-width: 750px) {
  body[data-wh-page="product"]:not([data-wh-builder]) #MainContent .product:not(.product--no-media) {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4.7vw, 72px);
  }

  body[data-wh-page="product"]:not([data-wh-builder]) #MainContent .product:not(.product--no-media) > :is(.product__media-wrapper, .product__info-wrapper) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
}

@media (max-width: 989px) {
  body:is([data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent ul.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  body:is([data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent {
    & :is(ul.product-grid, ul.collection-list) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px 10px;
    }

    & .product-tags-filter {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: thin;
    }

    & .usp_icons_2_inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    & .usp_icons_2_item {
      align-items: flex-start;
      gap: 7px;
      padding: 9px;
    }

    & .usp_icons_2_img,
    & .usp_icons_2_img img {
      width: 27px;
      height: 27px;
      flex: 0 0 27px;
    }

    & .usp_icons_2_text h4 {
      font-size: 14px;
    }

    & .usp_icons_2_text p {
      font-size: 12px;
    }
  }

  body[data-wh-page="product"]:not([data-wh-builder]) #MainContent {
    & product-info {
      padding-block: 16px 34px;
    }

    & .product__info-wrapper {
      padding-top: 24px;
    }

    & .product__media-list {
      width: 100%;
      margin-inline: 0;
    }

    & .product__media-list .product__media-item {
      width: 100%;
      margin-inline: 0;
    }
  }
}

@media (max-width: 359px) {
  body:is([data-wh-page="collection"], [data-wh-page="list-collections"], [data-wh-page="search"]):not([data-wh-builder]) #MainContent .usp_icons_2_inner {
    grid-template-columns: 1fr;
  }
}
