/* ERATOOLS V4.5 - managed homepage product sections + refined cart button */

.home-managed-products-v45 {
  display: grid;
  gap: 28px;
}

.section--managed-v45 {
  position: relative;
}

.section__head--managed-v45 {
  align-items: flex-end;
}

.section__head--managed-v45 > div {
  display: grid;
  gap: 5px;
}

.section__head--managed-v45 h2 {
  margin: 0;
}

.section__head--managed-v45 p {
  margin: 0;
  color: var(--muted, #9aa4b2);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.section-managed-badge-v45 {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255,196,0,.12);
  color: var(--accent, #ffc400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card--managed .product-card__category {
  display: block;
  margin-bottom: 7px;
  color: var(--accent, #ffc400);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card--managed h3 a {
  color: inherit;
  text-decoration: none;
}

.home-add-to-cart-form,
.home-wishlist-form {
  margin: 0;
}

.product-card__actions .home-add-to-cart-form {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-btn.cart-btn--v45,
.product-card__actions .cart-btn.cart-btn--v45 {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 196, 0, .76);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffd84a 0%, #ffc400 45%, #f2aa00 100%);
  color: #0b0d0f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 10px 24px rgba(255, 196, 0, .16);
  font-family: var(--font-main, "Inter", "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}

.cart-btn.cart-btn--v45::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  opacity: .82;
  transform: translateX(-24%);
  transition: transform .28s ease, opacity .28s ease;
}

.cart-btn.cart-btn--v45::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(9, 11, 14, .9);
  color: #ffc400;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  vertical-align: -1px;
}

.cart-btn.cart-btn--v45:hover,
.cart-btn.cart-btn--v45:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
  border-color: #ffe38a;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    0 16px 34px rgba(255, 196, 0, .24);
}

.cart-btn.cart-btn--v45:hover::before,
.cart-btn.cart-btn--v45:focus-visible::before {
  transform: translateX(12%);
  opacity: 1;
}

.cart-btn.cart-btn--v45:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.12),
    0 7px 18px rgba(255, 196, 0, .16);
}

.product-card__actions .wish-btn {
  flex: 0 0 48px;
}

.product-card--managed .wish-btn {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}

.product-card--managed .wish-btn:hover,
.product-card--managed .wish-btn:focus-visible {
  border-color: rgba(255,196,0,.45);
  color: var(--accent, #ffc400);
}

@media (max-width: 760px) {
  .section__head--managed-v45 {
    align-items: flex-start;
  }

  .cart-btn.cart-btn--v45,
  .product-card__actions .cart-btn.cart-btn--v45 {
    min-height: 44px;
    font-size: 13px;
  }
}
