.shopify-buy__product__variant-selectors,
.shopify-buy__quantity-container,
.shopify-buy__btn-wrapper {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  line-height: 16px;
}

.shopify-buy__btn-wrapper {
  grid-column: 3 / 8 !important;
  grid-row: 1;
  display: flex;
}

/* ====== PRODUCT BLOCK STRUCTURE ====== */
.product_b-info {
  margin-top: 8px;
  grid-template-columns: repeat(10, 1fr);
}

.product_b-thumb {
  background: rgb(240, 240, 240);
  /* padding: 2rem; */
  border-radius: 6px;
}

.product_b-thumb img {
  margin: auto;
  height: 80%;
  width: 80%;
  max-width: 80%;
  min-width: 80%;
}

.product_b-thumb img.img-cover {
  margin: auto;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
}


.product-block.--large .--title,
.product-block.--large .--price {
  grid-column: 1/6;
  text-wrap: balance;
}

.product-block.--large .product_p-purchase--button {
  grid-column: 4/-1;
  grid-row: 1/4;
}

/* Small product adjustments */
.product-block.--small .product_p-purchase--button {
  margin-top: 1rem;
}

/* Purchase button */
#product_p-purchase {
  grid-column: 7 / -1;
  grid-template-columns: repeat(6, 1fr);
}

/* ====== VARIATION SELECTORS ====== */

.shopify-buy__product__variant-selectors {
  grid-gap: 0 var(--main-padding);
  grid-column: 7 / -1 !important;
  grid-row: 1;
}

.shopify-buy__option-select {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: var(--main-padding);
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.shopify-buy__option-select__label {
  grid-column: 1 / 3;
  margin-top: 3px;
}

.shopify-buy__option-select-wrapper {
  grid-column: 3 / -1;
  transform: translateX(6px);
}

.shopify-buy__option-select svg {
  display: none;
}

.shopify-buy__option-select__select {
  width: 100%;
  border: 0;
  padding: 0;
  transform: translate(-3px, -1px);
  min-height: 24px;
  appearance: none;
}

.shopify-buy__option-select__select option {
  display: flex;
  flex-direction: row-reverse;
}

.product-block .shopify-buy__quantity-container {
  margin-bottom: 4px;
}

.product-block .shopify-buy__quantity[data-element="product.quantityInput"] {
  -moz-appearance: textfield !important;
  width: 2rem;
  text-align: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin: 0 4px;
}

.product-block .shopify-buy__quantity[data-element="product.quantityInput"]::-webkit-outer-spin-button,
.product-block .shopify-buy__quantity[data-element="product.quantityInput"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-sharebar {
  margin-top: -2px;
  margin-left: 2rem;
  display: inline-block;
  position: relative;
}

.product-sharebar span {
  cursor: pointer;
  color: black;
}

.product-sharebar a {
  opacity: 0;
  pointer-events: none;
  color: var(--c-dark_gray);
  transition: opacity 0.2s, color 0.2s;
}

.product-sharebar:hover a,
.product-sharebar:focus-within a {
  opacity: 1;
  pointer-events: auto;
}

.product-sharebar a:hover,
.product-sharebar a:focus {
  color: black;
  opacity: 0.8;
}

.product-block.--small .product-sharebar{
  margin-left: 0;
}


/* ====== MOBILE RESPONSIVE ====== */

@media only screen and (max-width: 600px) {
  
  .product-sharebar{
    margin-left: 0;
  }

  .shopify-buy__product__variant-selectors {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    grid-row-gap: 0;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .shopify-buy__btn-wrapper {
    justify-content: flex-end;
  }

  /* Product thumb adjustments */
  .product-block.--small .product_b-thumb {
    aspect-ratio: 5/4;
    padding: 1rem;
  }

  /* Info layout */
  .product_b-info {
    display: flex !important;
    flex-direction: column;
  }

  /* Cart adjustments */
  .cart_class {
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  .product_b-thumb {
    background: rgb(240, 240, 240);
    border-radius: 6px;
  }

  .product-block .product_b-info .--title {
    text-wrap: balance;
  }
  
  /* Grid adjustments for mobile */
  .product-block .product_b-info .--price {
    grid-column: 1/-1 !important;
    grid-row: 2 !important;
  }

  .product-block .product_p-purchase--button {
    grid-column: 1/-1 !important;
    grid-row: 3 !important;
    margin-top: 1rem;
  }
}

/* Tablet styles */
@media (min-width: 600px) and (max-width: 1200px) {

    .product-sharebar {
        margin-top: 0;
    }

}
