/* Unified product cards for the combined Makhanley storefront catalogue.
   Amazon-style information hierarchy, adapted to the Makhanley cream/green/gold palette. */
.storefront-category {
  width: 100%;
  margin: 0;
  padding: 0;
}
.storefront-category__container {
  width: min(1360px, calc(100% - 48px)) !important;
}
.storefront-category__listings {
  padding: 50px 0 0;
}
.storefront-category--consumer {
  margin-top: 20px;
  padding-bottom: 12px;
}
.storefront-category--consumer .storefront-category__listings {
  padding-top: 42px;
}
.storefront-category .bulk-shop-section-heading {
  margin-bottom: 24px;
}
.storefront-category .bulk-shop-section-heading h2 {
  color: #173f2b;
  font-size: clamp(27px, 3vw, 36px);
}
.storefront-category .bulk-shop-section-heading p:not(.bulk-shop-eyebrow) {
  margin-top: 9px;
  color: #687365;
  font-size: 14px;
}
.storefront-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.store-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e5df;
  border-radius: 9px;
  background: #fffefa;
  color: #1d2c21;
  box-shadow: 0 2px 7px rgb(34 45 35 / 3%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.store-product-card:hover {
  border-color: #d6d8cd;
  box-shadow: 0 9px 22px rgb(34 45 35 / 7%);
  transform: translateY(-2px);
}
.store-product-card[hidden] {
  display: none !important;
}
.store-product-card__image {
  display: flex;
  width: 100%;
  height: clamp(218px, 22vw, 280px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  background: #f5f5f2;
  text-decoration: none;
}
.store-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .2s ease;
}
.store-product-card__image:hover img {
  transform: scale(1.025);
}
.store-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 13px 14px 14px;
  text-align: left;
}
.store-product-card__title-link {
  color: #202820;
  text-decoration: none;
}
.store-product-card__title-link:hover {
  color: #24583b;
  text-decoration: underline;
  text-decoration-color: #aab99f;
  text-underline-offset: 3px;
}
.store-product-card__title-link h3 {
  display: -webkit-box;
  min-height: 2.55em;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -.018em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.store-product-card__description {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 7px 0 6px;
  overflow: hidden;
  color: #667064;
  font-size: 12px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.store-product-card__pack {
  min-height: 1.35em;
  margin: 0 0 7px;
  color: #657264;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}
.store-product-card__availability {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7efe5;
  color: #315f3d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.store-product-card__availability::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: currentColor;
}
.store-product-card__availability.is-out {
  background: #f5e9e5;
  color: #9d4335;
}
.store-product-card__availability.is-low {
  background: #f7f0df;
  color: #8c641d;
}
.store-product-card__price-row {
  display: flex;
  min-height: 34px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
}
.store-product-card__price {
  color: #173f2b;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 850;
  letter-spacing: -.045em;
}
.store-product-card__compare {
  color: #858a80;
  font-size: 12px;
}
.store-product-card__inclusive {
  min-height: 1.4em;
  margin: 1px 0 12px;
  color: #778071;
  font-size: 10px;
  line-height: 1.35;
}
.store-product-card__actions {
  display: flex;
  width: 100%;
  margin-top: auto;
}
.store-product-card__add {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #d8b14e;
  border-radius: 999px;
  background: #e7bd55;
  color: #173f2b;
  cursor: pointer;
  font: 800 13px/1.2 "Inter", Arial, sans-serif;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.store-product-card__add:hover:not(:disabled) {
  border-color: #c69b32;
  background: #dfb246;
  transform: translateY(-1px);
}
.store-product-card__add:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.store-product-card__add[data-out-of-stock] {
  border-color: #d8d2c5;
  background: #e8e3d9;
  color: #526052;
  opacity: 1;
}
@media (max-width: 1080px) {
  .storefront-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .store-product-card__image {
    height: 250px;
  }
}
@media (max-width: 700px) {
  .storefront-category__container {
    width: calc(100% - 30px) !important;
  }
  .storefront-category__listings {
    padding-top: 34px;
  }
  .storefront-category--consumer {
    margin-top: 12px;
  }
  .storefront-category--consumer .storefront-category__listings {
    padding-top: 34px;
  }
  .storefront-category .bulk-shop-section-heading {
    margin-bottom: 20px;
  }
  .storefront-category .bulk-shop-section-heading h2 {
    gap: 9px;
    font-size: clamp(24px, 6vw, 32px);
  }
  .storefront-category .bulk-shop-section-heading h2::before,
  .storefront-category .bulk-shop-section-heading h2::after {
    width: 23px;
  }
  .storefront-category .bulk-shop-section-heading p:not(.bulk-shop-eyebrow) {
    max-width: 330px;
    margin: 8px auto 0;
    font-size: 12px;
  }
  .storefront-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 11px;
  }
  .store-product-card__image {
    height: clamp(175px, 51vw, 225px);
    padding: 8px;
  }
  .store-product-card__body {
    padding: 10px 10px 11px;
  }
  .store-product-card__title-link h3 {
    min-height: 2.55em;
    font-size: 14px;
  }
  .store-product-card__description {
    min-height: 3em;
    margin-top: 5px;
    font-size: 10px;
  }
  .store-product-card__pack {
    margin-bottom: 6px;
    font-size: 10px;
  }
  .store-product-card__availability {
    margin-bottom: 7px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .store-product-card__price-row {
    min-height: 30px;
    gap: 5px;
  }
  .store-product-card__price {
    font-size: 21px;
  }
  .store-product-card__compare {
    font-size: 10px;
  }
  .store-product-card__inclusive {
    margin-bottom: 9px;
    font-size: 9px;
  }
  .store-product-card__add {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .store-product-card__image {
    height: 165px;
  }
  .store-product-card__body {
    padding-inline: 8px;
  }
  .store-product-card__title-link h3 {
    font-size: 13px;
  }
  .store-product-card__add {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-product-card,
  .store-product-card__image img,
  .store-product-card__add {
    transition: none;
  }
}

/* Amazon-style in-card quantity control shown after a product enters the shared cart. */
.store-product-card__cart-stepper {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 2px solid #e9c51c;
  border-radius: 999px;
  background: #fff;
  color: #18251c;
}
.store-product-card__cart-step {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #18251c;
  cursor: pointer;
  font: 850 22px/1 "Inter", Arial, sans-serif;
}
.store-product-card__cart-step:hover:not(:disabled) { background: #fff8db; }
.store-product-card__cart-step:disabled { cursor: not-allowed; opacity: .4; }
.store-product-card__cart-step.is-remove svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-product-card__cart-quantity {
  overflow: hidden;
  color: #1c241e;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 850 14px/1.2 "Inter", Arial, sans-serif;
}
@media (max-width: 700px) {
  .store-product-card__cart-stepper { min-height: 38px; grid-template-columns: 36px minmax(0,1fr) 36px; border-width: 1.5px; }
  .store-product-card__cart-step { min-height: 35px; font-size: 20px; }
  .store-product-card__cart-step.is-remove svg { width: 17px; height: 17px; }
  .store-product-card__cart-quantity { font-size: 11px; }
}

/* E-commerce catalogue refinement: consistent one-line product names. */
.store-product-card__title-link h3 {
  display: block;
  min-height: 1.25em;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amazon-inspired mobile product rows: image left, product information right. */
@media (max-width: 700px) {
  .storefront-category__container {
    width: calc(100% - 24px) !important;
  }
  .storefront-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .store-product-card {
    display: grid;
    grid-template-columns: minmax(108px, 39%) minmax(0, 1fr);
    align-items: stretch;
    border-radius: 9px;
  }
  .store-product-card__image {
    width: 100%;
    height: 100%;
    min-height: 232px;
    align-self: stretch;
    padding: 9px;
    background: #f4f4f1;
  }
  .store-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .store-product-card__body {
    min-width: 0;
    min-height: 232px;
    padding: 12px 12px 11px;
  }
  .store-product-card__title-link h3 {
    min-height: 1.25em;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -.01em;
  }
  .store-product-card__description {
    display: -webkit-box;
    min-height: 2.8em;
    max-height: 2.8em;
    margin: 5px 0 5px;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .store-product-card__pack {
    min-height: 1.25em;
    margin: 0 0 5px;
    font-size: 10px;
    line-height: 1.25;
  }
  .store-product-card__availability {
    margin-bottom: 6px;
    padding: 3px 7px;
    font-size: 9px;
  }
  .store-product-card__price-row {
    min-height: 27px;
    gap: 5px;
    margin-top: 0;
  }
  .store-product-card__price {
    font-size: 20px;
    line-height: 1.15;
  }
  .store-product-card__compare {
    font-size: 10px;
  }
  .store-product-card__inclusive {
    min-height: 1.25em;
    margin: 2px 0 8px;
    font-size: 9px;
    line-height: 1.25;
  }
  .store-product-card__actions {
    margin-top: auto;
  }
  .store-product-card__add {
    min-height: 38px;
    padding: 8px 7px;
    border-radius: 999px;
    font-size: 11px;
  }
  .store-product-card__cart-stepper {
    min-height: 38px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    border-width: 1.5px;
  }
  .store-product-card__cart-step {
    min-height: 35px;
    font-size: 20px;
  }
  .store-product-card__cart-step.is-remove svg {
    width: 17px;
    height: 17px;
  }
  .store-product-card__cart-quantity {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .store-product-card {
    grid-template-columns: minmax(100px, 37%) minmax(0, 1fr);
  }
  .store-product-card__image,
  .store-product-card__body {
    min-height: 224px;
  }
  .store-product-card__body {
    padding: 10px 9px;
  }
  .store-product-card__title-link h3 {
    font-size: 13px;
  }
  .store-product-card__description {
    font-size: 10px;
  }
  .store-product-card__price {
    font-size: 19px;
  }
}


/* Capsule-shaped actions across the storefront product cards. */
.store-product-card__add { border-radius: 999px; }
.store-product-card__cart-stepper { border-radius: 999px; }
.storefront-category--sample-kit .storefront-product-grid {
  grid-template-columns: minmax(0, 390px);
  justify-content: center;
}
.storefront-category--sample-kit .store-product-card { width: 100%; }
@media (max-width: 700px) {
  .storefront-category--sample-kit .storefront-product-grid {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
}
