/* R3-FINAL-FIX-8: smart sticky add to cart across breakpoints */
body.single-product.hsj-r3-pdp-sticky-atc-active.hsj-r3-pdp-sticky-atc-visible .site-content {
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

body.single-product .hsj-r3-pdp-sticky-atc {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 255;
  width: min(1120px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(58, 42, 34, 0.12);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 12px 28px rgba(47, 33, 27, 0.1);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

body.single-product .hsj-r3-pdp-sticky-atc[hidden] {
  display: none !important;
}

body.single-product .hsj-r3-pdp-sticky-atc__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

body.single-product .hsj-r3-pdp-sticky-atc__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.single-product .hsj-r3-pdp-sticky-atc__media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: #f6efe7;
}

body.single-product .hsj-r3-pdp-sticky-atc__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.single-product .hsj-r3-pdp-sticky-atc__meta {
  min-width: 0;
}

body.single-product .hsj-r3-pdp-sticky-atc__eyebrow {
  margin: 0 0 2px;
  color: #8b7667;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.single-product .hsj-r3-pdp-sticky-atc__title {
  margin: 0 0 4px;
  color: #2f211b;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.single-product .hsj-r3-pdp-sticky-atc__price,
body.single-product .hsj-r3-pdp-sticky-atc__price .price {
  margin: 0;
  color: #2f211b;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

body.single-product .hsj-r3-pdp-sticky-atc__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.single-product .hsj-r3-pdp-sticky-atc__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(58, 42, 34, 0.18);
  border-radius: 999px;
  background: #fffaf4;
  overflow: hidden;
}

body.single-product .hsj-r3-pdp-sticky-atc__qty-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #2f211b;
  font-size: 18px;
  line-height: 1;
}

body.single-product .hsj-r3-pdp-sticky-atc__qty-value {
  min-width: 30px;
  padding: 0 10px;
  color: #2f211b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

body.single-product .hsj-r3-pdp-sticky-atc__button {
  min-width: 168px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #3a2a22;
  color: #fffaf4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

body.single-product .hsj-r3-pdp-sticky-atc__button[disabled] {
  opacity: 0.48;
}

@media (max-width: 767px) {
  body.single-product.hsj-r3-pdp-sticky-atc-active.hsj-r3-pdp-sticky-atc-visible .site-content {
    padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.single-product .hsj-r3-pdp-sticky-atc {
    left: 0;
    right: 0;
    bottom: calc(61px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 8px 12px 10px;
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
    transform: none;
    box-shadow: 0 -8px 24px rgba(47, 33, 27, 0.08);
  }

  body.single-product .hsj-r3-pdp-sticky-atc__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  body.single-product .hsj-r3-pdp-sticky-atc__media,
  body.single-product .hsj-r3-pdp-sticky-atc__title,
  body.single-product .hsj-r3-pdp-sticky-atc__qty {
    display: none !important;
  }

  body.single-product .hsj-r3-pdp-sticky-atc__button {
    min-width: 152px;
  }

  body.single-product .hsj-r3-pdp-sticky-atc + .hsj-r3-mobile-bottom-nav,
  body.single-product .hsj-r3-mobile-bottom-nav {
    z-index: 260;
  }
}

/* R3-FINAL-FIX-8B start */
body.single-product .hsj-r3-pdp-sticky-atc__qty {
  display: none !important;
}

body.single-product .hsj-r3-pdp-sticky-atc__actions {
  gap: 0 !important;
}

body.single-product .hsj-r3-pdp-sticky-atc__button {
  min-width: 176px;
}

@media (max-width: 767px) {
  body.single-product .hsj-r3-pdp-sticky-atc__button {
    min-width: 152px;
  }
}
/* R3-FINAL-FIX-8B end */
