body.template-collection,
body.template-search {
  overflow-x: hidden;
}

body.template-collection #main,
body.template-search #main {
  overflow-x: hidden;
  max-width: 100%;
}

body.template-collection .main-collection,
body.template-search .main-collection {
  width: 100%;
  min-width: 0;
}

body.template-collection motion-element,
body.template-search motion-element {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.template-collection .product-grid.grid,
body.template-search .product-grid.grid {
  width: 100%;
  min-width: 0;
}

body.template-collection .product-item.card,
body.template-search .product-item.card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

body.template-collection .product-item .card__image,
body.template-search .product-item .card__image {
  overflow: hidden;
}

body.template-collection .main-collection-banner,
body.template-search .main-collection-banner {
  padding: 0 var(--gutter-container, 20px);
  margin-bottom: var(--gutter-regular, 16px);
  box-sizing: border-box;
}

body.template-collection .collection-hero-banner,
body.template-search .collection-hero-banner {
  display: block;
  border-radius: var(--border-radius-cards, 12px);
  overflow: hidden;
  line-height: 0;
}

body.template-collection .collection-hero-banner--wide figure,
body.template-search .collection-hero-banner--wide figure {
  margin: 0;
  padding: 0 !important;
}

body.template-collection .collection-hero-banner__image,
body.template-search .collection-hero-banner__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: none;
}

/* Department landing (/collections/skin-care, personal-care, …) without category-page wrapper */
body.department-hub-single .tab-detail,
body.department-hub-single main#main .tab-detail,
body.department-hub-single .tabcontent {
  visibility: visible !important;
}

body.department-hub-single main#main .tab-detail {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  body.department-hub-single.template-collection-accordian .featured_collection,
  body.department-hub-single.template-collection-accordian .banner_image,
  body.department-hub-single.template-collection-accordian .department-carousel-rows,
  body.department-hub-single.template-collection-accordian .container_tab {
    display: block !important;
  }
}

body.department-landing-page .main-collection-banner,
body.department-landing-page .featured_collection,
body.department-landing-page .collection-list,
body.department-landing-page .breadcrumb-main {
  display: block !important;
  visibility: visible !important;
}

body.department-landing-page .card.js-collection-item .card__image img {
  object-fit: cover;
  border-radius: 50%;
}

/* Homepage-style bento tiles (mom-baby / healthy-grocery) on department landings */
body.department-landing-page .shopify-section.list-collection_mob {
  display: block !important;
}

body.department-landing-page .mob-collection_list .collection_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.department-landing-page .mob-collection_list .collection_grid .collection_image_wrapper:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

body.department-landing-page .mob-collection_list .collection_grid .collection_image_wrapper {
  border-radius: 12px;
  overflow: hidden;
}

body.department-landing-page .mob-collection_list .collection_grid li img {
  width: 100%;
  height: auto;
  display: block;
}

body.department-landing-page .mount-css-slider .card.js-collection-item .card__image img {
  border-radius: var(--border-radius-cards, 12px);
  object-fit: cover;
}

body.template-collection .collection-heading--facets,
body.template-search .collection-heading--facets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

body.template-collection .collection-product-count,
body.template-search .collection-product-count {
  margin: 0;
}

body.template-collection .facets__sort,
body.template-search .facets__sort {
  flex-wrap: wrap;
}

body.template-collection .facets__summary,
body.template-search .facets__summary {
  min-width: 11rem;
}