/* Body Nutrition category format v1.3.2 — loaded by category.tpl.
   Category-specific rules migrated out of Warehouse Custom CSS. */
body#category #left-column,
body#category #right-column {
  display: none !important;
}

body#category #content-wrapper {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

body#category .bn-category-hero {
  min-height: 250px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #e3ebe7;
  border-radius: 10px;
  background-color: #f1f8f5;
  background-image:
    linear-gradient(90deg, rgba(241, 248, 245, .99) 0%, rgba(241, 248, 245, .96) 42%, rgba(241, 248, 245, .78) 60%, rgba(241, 248, 245, .18) 100%),
    var(--bn-category-hero-image);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  box-shadow: 0 3px 14px rgba(38, 55, 70, .06);
}

body#category .bn-category-hero--no-image {
  background-image: none;
}

body#category .bn-category-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(72%, 820px);
  min-height: 250px;
  min-width: 0;
  padding: 28px 32px;
}

body#category .bn-category-hero--no-image .bn-category-hero__content {
  width: 100%;
}

body#category .bn-category-hero__eyebrow {
  margin: 0 0 7px;
  color: #2eb279;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body#category .bn-category-hero #js-product-list-header {
  margin: 0;
}

body#category .bn-category-hero .page-title {
  margin: 0 0 10px;
  color: #263746;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

body#category .bn-category-hero__description,
body#category .bn-category-hero__description p {
  margin: 0;
  color: #53646d;
  font-size: 13px;
  line-height: 1.55;
}

body#category .bn-category-hero__description > :last-child {
  margin-bottom: 0;
}

body#category .bn-category-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 17px;
  color: #40544b;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
}

body#category .bn-category-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body#category .bn-category-hero__trust i {
  color: #2eb279;
  font-size: 14px;
}

body#category .bn-order-discounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 13px 18px;
  border: 1px solid #cceadf;
  border-radius: 8px;
  background: linear-gradient(90deg, #eaf8f2 0%, #f7fcfa 100%);
  color: #263746;
}

body#category .bn-order-discounts__intro {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

body#category .bn-order-discounts__intro > i {
  flex: 0 0 auto;
  color: #2eb279;
  font-size: 22px;
}

body#category .bn-order-discounts__intro strong,
body#category .bn-order-discounts__intro small {
  display: block;
}

body#category .bn-order-discounts__intro strong {
  color: #238b60;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

body#category .bn-order-discounts__intro small {
  margin-top: 2px;
  color: #687880;
  font-size: 9.5px;
  line-height: 1.3;
}

body#category .bn-order-discounts__tiers {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

body#category .bn-order-discounts__tiers span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(34, 75, 59, .08);
  color: #52636a;
  font-size: 10px;
  white-space: nowrap;
}

body#category .bn-order-discounts__tiers strong {
  color: #2aa873;
  font-size: 15px;
  font-weight: 800;
}

body#category .bn-category-subcategories {
  margin: 0 0 12px;
}

body#category .bn-category-subcategories .product-list-subcategories {
  display: block;
  margin-bottom: 0;
}

body#category .bn-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 8px;
}

body#category .bn-subcategory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dbe9e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(38, 55, 70, .045);
  color: #263746;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body#category .bn-subcategory-card:hover,
body#category .bn-subcategory-card:focus {
  transform: translateY(-1px);
  border-color: #2eb279;
  background: #f1faf6;
  box-shadow: 0 4px 11px rgba(38, 55, 70, .075);
  color: #239b69;
  text-decoration: none;
}

body#category .bn-subcategory-card__name {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

body#category .bn-subcategory-card i {
  flex: 0 0 auto;
  color: #2eb279;
  font-size: 15px;
}

body#category #facets_search_center,
body#category #facets_search_center_dropdown {
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid #e2e9e5;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 55, 70, .04);
}

/* Amazzing Filter: visual treatment only; keep its own dropdown and AJAX logic. */
body#category #amazzing_filter {
  box-shadow: none;
}

body#category #af_form {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid #dbe9e3;
  border-radius: 10px;
  background: #f5faf7;
  box-shadow: 0 3px 12px rgba(38, 55, 70, .045);
}

body#category #af_form .af_filter {
  min-width: 0;
}

body#category #af_form .af_filter select,
body#category #af_form .af_filter .select-title,
body#category #af_form .af_filter .af_filter_title {
  min-height: 40px;
  border: 1px solid #d7e6de;
  border-radius: 6px;
  background-color: #fff;
  color: #263746;
  font-size: 12px;
  font-weight: 600;
}

body#category #af_form .af_filter select:focus,
body#category #af_form .af_filter .select-title:focus {
  border-color: #2eb279;
  outline: 2px solid rgba(46, 178, 121, .2);
  outline-offset: 1px;
}

body#category #js-product-list-top {
  margin-bottom: 10px;
  padding: 4px 2px;
}

body#category .products-selection {
  padding-right: 1rem;
  padding-left: 1rem;
  border: 1px solid #f0f0f0;
  background: #fff;
}

/* Listing fixes previously shared with search/manufacturer in Custom CSS. */
body#category .product-miniature .thumbnail-container {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body#category .product-miniature .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 236 / 305;
  overflow: hidden;
}

body#category .product-miniature .product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body#category #products .product-miniature .product-price-and-shipping {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 34px;
  overflow: visible !important;
}

body#category #products .products {
  margin-right: -5px;
  margin-left: -5px;
}

body#category #products .js-product-miniature-wrapper {
  padding-right: 5px;
  padding-left: 5px;
  margin-bottom: 10px;
}

body#category #products .product-miniature {
  height: 100%;
  border: 1px solid #e8efeb;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body#category #products .product-miniature:hover {
  z-index: 2;
  transform: translateY(-2px);
  border-color: #cfe5d9;
  box-shadow: 0 8px 20px rgba(38, 55, 70, .08);
}

/* Card compatte come nella pagina marca; solo listing categoria. */
body#category #products .product-miniature-grid {
  height: 100% !important;
  overflow: hidden;
  border-radius: 9px;
}

body#category #products .product-miniature-grid .product-thumbnail {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 158px;
  aspect-ratio: auto !important;
  overflow: hidden;
}

body#category #products .product-miniature-grid .product-thumbnail img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
}

body#category #products .product-miniature-grid .product-description {
  padding: 10px 12px 14px;
  text-align: center;
}

body#category #products .product-miniature-grid .product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 5px;
  overflow: hidden;
  color: #263746;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body#category #products .product-miniature-grid .product-title a {
  color: #263746;
}

body#category #products .product-miniature-grid .product-title a:hover {
  color: #239b69;
}

body#category #products .product-miniature-grid .product-brand {
  margin-bottom: 3px;
  color: #738189;
  font-size: 10px;
}

body#category #products .product-miniature-grid .product-price-and-shipping {
  display: block !important;
  min-height: 28px;
  margin-top: 3px;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body#category #products .product-miniature-grid .product-price {
  color: #249b6d;
  font-size: 15px;
  font-weight: 800;
}

body#category #products .product-miniature-grid .product-description-short {
  display: none !important;
}

@media (min-width: 1200px) {
  body#category #products .products .js-product-miniature-wrapper:not(.product-carousel) {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body#category #products .products .js-product-miniature-wrapper:not(.product-carousel) {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 421px) and (max-width: 767px) {
  body#category #products .products .js-product-miniature-wrapper:not(.product-carousel) {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

body#category .bn-category-description {
  margin-top: 30px;
  padding: 32px;
  border-top: 1px solid #e1e9e5;
  background: #fff;
}

body#category .bn-category-description__inner {
  color: #53646d;
  font-size: 13px;
  line-height: 1.65;
}

body#category .bn-category-description__inner h2 {
  margin: 28px 0 10px;
  color: #263746;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

body#category .bn-category-description__inner h2:first-child {
  margin-top: 0;
}

body#category .bn-category-description__inner h3 {
  margin: 22px 0 8px;
  color: #263746;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

body#category .bn-category-description__inner a {
  color: #239b69;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body#category .bn-category-magazine {
  margin-top: 18px;
  padding: 30px 32px 32px;
  border: 1px solid #dceae4;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f8f5 0%, #f9fcfb 100%);
  box-shadow: 0 4px 16px rgba(38, 55, 70, .055);
}

body#category .bn-category-magazine__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

body#category .bn-category-magazine__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #2eb279;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body#category .bn-category-magazine__head h2 {
  margin: 0;
  color: #263746;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
}

body#category .bn-category-magazine__head p {
  margin: 6px 0 0;
  color: #65757d;
  font-size: 12px;
  line-height: 1.45;
}

body#category .bn-category-magazine__all {
  flex: 0 0 auto;
  color: #238f62;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
}

body#category .bn-category-magazine__all:hover,
body#category .bn-category-magazine__all:focus {
  color: #196f4b;
  text-decoration: none;
}

body#category .bn-category-magazine__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body#category .bn-category-magazine-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e9e5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(38, 55, 70, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body#category .bn-category-magazine-card:hover {
  transform: translateY(-2px);
  border-color: #c9dfd5;
  box-shadow: 0 8px 20px rgba(38, 55, 70, .10);
}

body#category .bn-category-magazine-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

body#category .bn-category-magazine-card__link:hover,
body#category .bn-category-magazine-card__link:focus {
  color: inherit;
  text-decoration: none;
}

body#category .bn-category-magazine-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: #eaf4ef;
}

body#category .bn-category-magazine-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

body#category .bn-category-magazine-card:hover .bn-category-magazine-card__media img {
  transform: scale(1.025);
}

body#category .bn-category-magazine-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 17px 17px;
}

body#category .bn-category-magazine-card__body > strong {
  color: #263746;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

body#category .bn-category-magazine-card__snippet {
  display: block;
  margin-top: 7px;
  color: #65757d;
  font-size: 11px;
  line-height: 1.48;
}

body#category .bn-category-magazine-card__cta {
  display: block;
  margin-top: auto;
  padding-top: 13px;
  color: #239b69;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 800;
}

@media (max-width: 991px) {
  body#category .bn-category-hero {
    background-image:
      linear-gradient(90deg, rgba(241, 248, 245, .99) 0%, rgba(241, 248, 245, .96) 52%, rgba(241, 248, 245, .60) 78%, rgba(241, 248, 245, .28) 100%),
      var(--bn-category-hero-image);
  }

  body#category .bn-category-hero--no-image {
    background-image: none;
  }

  body#category .bn-category-hero__content {
    width: 78%;
  }

  body#category .bn-order-discounts {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body#category .bn-order-discounts__tiers {
    width: 100%;
    justify-content: flex-start;
  }

  body#category .bn-category-magazine__grid {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  body#category #af_form {
    margin: 10px 0 14px;
    padding: 10px;
  }

  body#category #af_form .af_filter select,
  body#category #af_form .af_filter .select-title,
  body#category #af_form .af_filter .af_filter_title {
    min-height: 44px;
  }

  body#category #products .product-miniature-grid .product-description {
    padding: 8px 9px 12px;
  }

  body#category #products .product-miniature-grid .product-title {
    font-size: 11px;
  }

  body#category #products .product-miniature-grid .product-price {
    font-size: 15px;
  }

  body#category .bn-category-subcategories {
    overflow: hidden;
  }

  body#category .bn-subcategory-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 78vw);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body#category .bn-subcategory-card {
    scroll-snap-align: start;
  }

  body#category .bn-category-hero {
    min-height: 260px;
    background-image:
      linear-gradient(rgba(241, 248, 245, .91), rgba(241, 248, 245, .96)),
      var(--bn-category-hero-image);
    background-position: center, center;
  }

  body#category .bn-category-hero--no-image {
    min-height: 0;
    background-image: none;
  }

  body#category .bn-category-hero--no-image .bn-category-hero__content {
    min-height: 0;
  }

  body#category .bn-category-hero__content {
    width: 100%;
    min-height: 260px;
    padding: 22px 20px;
  }

  body#category .bn-category-hero .page-title {
    font-size: 25px;
  }

  body#category .bn-category-hero__trust {
    gap: 8px 12px;
  }

  body#category .bn-order-discounts {
    padding: 13px 14px;
  }

  body#category .bn-order-discounts__tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body#category .bn-order-discounts__tiers span {
    justify-content: center;
    padding: 7px 5px;
    white-space: normal;
  }

  body#category .bn-order-discounts__tiers strong {
    font-size: 13px;
  }

  body#category #facets_search_center,
  body#category #facets_search_center_dropdown {
    padding: 8px;
  }

  body#category .bn-category-description {
    margin-top: 22px;
    padding: 24px 18px;
  }

  body#category .bn-category-magazine {
    overflow: hidden;
    padding: 24px 18px 20px;
  }

  body#category .bn-category-magazine__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  body#category .bn-category-magazine__head h2 {
    font-size: 21px;
  }

  body#category .bn-category-magazine__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82vw);
    gap: 10px;
    overflow-x: auto;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body#category .bn-category-magazine-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 420px) {
  body#category #products .product-miniature-grid .product-thumbnail {
    height: 125px;
  }

  body#category #products .product-miniature-grid .product-thumbnail img {
    max-height: 117px !important;
  }

  body#category .bn-order-discounts__tiers span {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 9px;
  }
}
