.block-product-buy-button {
  white-space: normal;
}

.block-product-buy-button-wrapper {
  padding: var(--button-border-thickness, 1px);
}

/* Hide plus icon and outer arc wrapper by default (for Product Detail Page & Quick View Modal) */
.block-product-buy-button .product-showcase__plus-outer,
.block-product-buy-button .product-showcase__plus-icon {
  display: none;
}

.block-product-buy-button .icon-loading {
  display: none;
}

/* ==========================================================================
   Morphing Plus (+) ATC Button - ONLY FOR PRODUCT LIST GRID CARDS
   ========================================================================== */
.block-product-card .block-product-buy-button,
.featured-grid .block-product-buy-button,
.block-product-card-info .block-product-buy-button {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
  overflow: visible;
  padding: 0 16px;
  margin: 0 auto;
  min-width: 48px;
  box-shadow: none;
}

.main-collection__list .block-product-buy-button .product-showcase__plus-outer,
.featured-grid .block-product-buy-button .product-showcase__plus-outer,
.block-product-card-info .block-product-buy-button .product-showcase__plus-outer {
  display: block;
  position: absolute;
  inset: 4px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  pointer-events: none;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

.main-collection__list .block-product-buy-button .product-showcase__plus-icon,
.featured-grid .block-product-buy-button .product-showcase__plus-icon,
.block-product-card-info .block-product-buy-button .product-showcase__plus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
}

.main-collection__list .block-product-buy-button .product-showcase__plus-icon svg,
.featured-grid .block-product-buy-button .product-showcase__plus-icon svg,
.block-product-card-info .block-product-buy-button .product-showcase__plus-icon svg {
  stroke: #000000;
}

/* Normal State: Top-Left curved arc */
.main-collection__list .block-product-buy-button .product-showcase__plus-outer::before,
.featured-grid .block-product-buy-button .product-showcase__plus-outer::before,
.block-product-card-info .block-product-buy-button .product-showcase__plus-outer::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 14px;
  height: 14px;
  border-top: 1.8px solid #000000;
  border-left: 1.8px solid #000000;
  border-top-left-radius: 16px;
  transform: translate(0, 0);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Normal State: Bottom-Right curved arc */
.main-collection__list .block-product-buy-button .product-showcase__plus-outer::after,
.featured-grid .block-product-buy-button .product-showcase__plus-outer::after,
.block-product-card-info .block-product-buy-button .product-showcase__plus-outer::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  border-bottom: 1.8px solid #000000;
  border-right: 1.8px solid #000000;
  border-bottom-right-radius: 16px;
  transform: translate(0, 0);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* ATC Text inside product card (hidden in normal circle state, shown on hover) */
.main-collection__list .block-product-buy-button .block-product-buy-button-text,
.featured-grid .block-product-buy-button .block-product-buy-button-text,
.block-product-card-info .block-product-buy-button .block-product-buy-button-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: #000000;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s cubic-bezier(0.25, 1, 0.25, 1), opacity 0.3s ease;
}

/* HOVER MORPH STATE (Expands to pill with Add to cart text, arcs move to top-center & bottom-center) */
.main-collection__list .block-product-buy-button:hover,
.featured-grid .block-product-buy-button:hover,
.block-product-card-info .block-product-buy-button:hover {
  width: 145px;
  height: 48px;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
}

.main-collection__list .block-product-buy-button:hover .product-showcase__plus-icon,
.featured-grid .block-product-buy-button:hover .product-showcase__plus-icon,
.block-product-card-info .block-product-buy-button:hover .product-showcase__plus-icon {
  display: none;
  opacity: 0;
}

.main-collection__list .block-product-buy-button:hover .block-product-buy-button-text,
.featured-grid .block-product-buy-button:hover .block-product-buy-button-text,
.block-product-card-info .block-product-buy-button:hover .block-product-buy-button-text {
  max-width: 100px;
  opacity: 1;
}

/* Hover State: Top-Left arc slides & morphs to Top-Center straight line bar */
.main-collection__list .block-product-buy-button:hover .product-showcase__plus-outer::before,
.featured-grid .block-product-buy-button:hover .product-showcase__plus-outer::before,
.block-product-card-info .block-product-buy-button:hover .product-showcase__plus-outer::before {
  top: -2px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 28px;
  height: 0;
  border-left-color: transparent;
  border-top-left-radius: 0;
}

/* Hover State: Bottom-Right arc slides & morphs to Bottom-Center straight line bar */
.main-collection__list .block-product-buy-button:hover .product-showcase__plus-outer::after,
.featured-grid .block-product-buy-button:hover .product-showcase__plus-outer::after,
.block-product-card-info .block-product-buy-button:hover .product-showcase__plus-outer::after {
  bottom: -2px;
  right: 50%;
  transform: translate(50%, 0);
  width: 28px;
  height: 0;
  border-right-color: transparent;
  border-bottom-right-radius: 0;
}

.main-collection__list .block-product-buy-button.is-soldout,
.featured-grid .block-product-buy-button.is-soldout,
.block-product-card-info .block-product-buy-button.is-soldout {
  opacity: 0.6;
  cursor: not-allowed;
}

.main-collection__list .block-product-buy-button.is-soldout:hover,
.featured-grid .block-product-buy-button.is-soldout:hover,
.block-product-card-info .block-product-buy-button.is-soldout:hover {
  width: 145px;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAIL BUY BUTTONS (VIBRANT BLUE ATC & VIBRANT PURPLE BUY NOW)
   -------------------------------------------------------------------------- */
.product-detail__buy-buttons {
  margin: 0;
  width: 100%;
}

.product-detail__buy-buttons .form__buttons {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Buy Now / Payment Button (Vibrant Purple) */
.product-detail__buy-buttons .shopify-payment-button__button,
.product-detail__buy-buttons theme-payment-button button,
.product-detail__buy-buttons .button--payment,
.product-detail__buy-buttons .pay-button-buy-now,
.product-detail__buy-buttons .pay-button-common-item,
.product-detail__buy-buttons .btn-primary {
  background-color: #5c2bf5 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  height: 56px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: background-color 0.25s ease !important;
}

.product-detail__buy-buttons .shopify-payment-button__button:hover,
.product-detail__buy-buttons theme-payment-button button:hover,
.product-detail__buy-buttons .button--payment:hover,
.product-detail__buy-buttons .pay-button-buy-now:hover,
.product-detail__buy-buttons .pay-button-common-item:hover,
.product-detail__buy-buttons .btn-primary:hover {
  background-color: #421bb8 !important;
}