/**
 * Product primary section — colors/sizes mirrored from assets/bundle.css
 * Mapped #AddToCartForm → #product-form for Zid.
 */

/* ----- Section background (bundle: .has-coffee-background) ----- */
.product-primary-section.has-coffee-background {
  background: #f6f6f6;
  background-image: var(--bean-background);
  background-position-y: -100px;
  background-size: 100%;
  background-repeat: no-repeat;
  padding-top: 0 !important;
}

.product-primary-section .products {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ----- Title (bundle: .products .section-title) ----- */
.product-primary-section .section-title,
.products .section-title {
  color: #671913;
  font-family: Abel-Regular, sans-serif;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.product-primary-section .section-title b,
.products .section-title b,
.products .section-title strong {
  font-family: pulpo-rust-75, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  max-width: 500px;
  color: #671913;
}

@media (min-width: 768px) {
  .product-primary-section .section-title,
  .products .section-title {
    font-size: 2rem;
    text-align: left;
  }

  .product-primary-section .section-title b,
  .products .section-title b,
  .products .section-title strong {
    font-size: 1.8rem;
  }
}

/* ----- Reviews under title ----- */
.products .title-review-wrapper .product-card-rating {
  margin-top: 0.5rem;
}

.product-primary-section .title-review-wrapper .product-reviews-count {
  font-size: 1rem;
  font-weight: 300;
  color: #2c2c2c;
  margin-inline-start: 0.5rem;
}

.product-primary-section .title-review-wrapper .product-card-rating .icon-star1 {
  color: #fec600;
}

/* ----- Price (bundle: .title-review-wrapper .price) ----- */
.products #product-form .title-review-wrapper {
  display: flex;
  padding-left: 2rem;
  padding-right: 2rem;
}

.products #product-form .title-review-wrapper .price {
  flex: 1;
  font-size: 1.8rem;
  text-align: right;
  color: #060301;
}

.products #product-form .title-review-wrapper .compare-at-price {
  text-decoration: line-through;
  margin-inline-end: 0.25rem;
  color: #6c757d;
}

@media (min-width: 768px) {
  .products #product-form .title-review-wrapper {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }

  .products #product-form .title-review-wrapper .price {
    text-align: left;
  }
}

/* ----- Variant options → radio-btn-group / variant-selector ----- */
.products #product-variants-options {
  margin-bottom: -1rem;
}

.products #product-variants-options .form-group {
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.products #product-variants-options .form-group:first-of-type {
  padding-top: 1rem;
}

.products #product-variants-options .form-group > div > label {
  display: block;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
  color: #060301;
}

.products #product-variants-options ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 -0.5rem;
  padding: 0;
}

.products #product-variants-options ul li {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
  margin: 0 0 1.75rem;
  min-height: 70px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.products #product-variants-options ul li span {
  align-items: center;
  background-color: #e7d5bd;
  border-radius: 100px;
  color: #060301;
  cursor: pointer;
  display: inline-flex;
  flex-wrap: wrap;
  height: 100%;
  justify-content: center;
  line-height: 1.2;
  padding: 0.5rem 2rem;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s;
  width: 100%;
}

.products #product-variants-options ul li.active span,
.products #product-variants-options ul li:hover span {
  background-color: #511e02;
  color: #fff;
}

@media (min-width: 768px) {
  .products #product-variants-options .form-group > div > label {
    text-align: left;
  }

  .products #product-variants-options ul li {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* ----- Quantity (bundle: .quantity-nav / .quantity-button) ----- */
.products #product-form .quantity .radio-btn-group__title,
.products #product-form .quantity label {
  display: block;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.products #product-form .quantity .quantity-nav {
  display: flex;
  height: 50px;
  position: relative;
  justify-content: center;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.products #product-form .quantity .quantity-nav input[type="number"] {
  border-radius: 0 !important;
  height: 100% !important;
  text-align: center;
  flex: 1;
  margin: 0;
  border: 1px solid #ced4da;
  -moz-appearance: textfield;
  color: #495057;
  font-size: 1rem;
}

.products #product-form .quantity .quantity-nav input[type="number"]::-webkit-outer-spin-button,
.products #product-form .quantity .quantity-nav input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.products #product-form .quantity-button {
  align-items: center;
  background-color: #df9d3e;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  text-align: center;
  user-select: none;
  width: 50px;
  min-width: 50px;
  font-size: 1.25rem;
  font-weight: 700;
}

.products #product-form .quantity-button.quantity-down {
  border-bottom-left-radius: 100px;
  border-top-left-radius: 100px;
}

.products #product-form .quantity-button.quantity-up {
  border-bottom-right-radius: 100px;
  border-top-right-radius: 100px;
}

.products #product-form .quantity-button:hover {
  background-color: #d48b23;
  color: #fff;
}

@media (min-width: 768px) {
  .products #product-form .quantity .radio-btn-group__title,
  .products #product-form .quantity label {
    text-align: left;
  }

  .products #product-form .quantity .quantity-nav {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ----- Add to cart (bundle: #AddToCart + .btn-primary) ----- */
.products #product-form .atc-wrapper .btn-add-to-cart,
.products #product-form #AddToCart {
  display: block;
  height: 50px;
  margin: auto;
  width: auto;
  min-width: 160px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: #106a01;
  border-color: #106a01;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.22;
  text-transform: uppercase;
  border-radius: 100px;
  border-width: 1px;
  border-style: solid;
  text-align: center;
}

.products #product-form .atc-wrapper .btn-add-to-cart:hover,
.products #product-form #AddToCart:hover {
  background-color: #d48b23;
  border-color: #c98421;
  color: #fff;
}

.products #product-form .atc-wrapper .btn-add-to-cart:disabled,
.products #product-form #AddToCart:disabled,
.products #product-form .atc-wrapper .btn-add-to-cart[disabled] {
  color: #fff;
  cursor: not-allowed;
  opacity: 0.65;
}

@media (min-width: 768px) {
  .products #product-form .atc-wrapper .btn-add-to-cart,
  .products #product-form #AddToCart {
    margin: 0;
  }
}

.products #product-form .out-of-stock-notice {
  border: 1px solid gray;
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.25rem 1rem;
}

/* ----- Gallery / thumbnails (bundle) ----- */
.products .product-images img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.products .product-images__featured {
  padding-bottom: 3rem;
  text-align: center;
}

.products .product-images__featured .product-gallery__zoom-link {
  cursor: zoom-in;
}

.products .product-images__thumbnails,
.products .product-images__thumbnails .thumbnail-wrapper {
  justify-content: center;
}

.products .product-images__thumbnails .thumbnail-wrapper {
  align-items: center;
  cursor: pointer;
  display: flex !important;
}

.products .product-images__thumbnails .thumbnail-wrapper__border {
  height: 150px;
  margin: 0 15px;
  padding: 1rem;
  width: 150px;
}

.products .product-images__thumbnails .thumbnail-wrapper__border img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.products .product-images .thumbnail-wrapper.is-active .thumbnail-wrapper__border,
.products .product-images .slick-slide.slick-current .thumbnail-wrapper__border {
  border: 1px solid #000;
}

.products .product-extra-actions {
  display: none;
}

.product-primary-section .product-primary-extras {
  margin: 0.75rem 0 1rem;
}

/* Breadcrumb accents (bundle) */
.product-primary-section .breadcrumb-navigation span[aria-hidden="true"] {
  color: #df9d3e;
  font-size: 1.4rem;
  margin: 0 1rem;
}

.product-primary-section .breadcrumb-navigation a {
  color: #000;
}

/* Hide gallery dots (theme preference) */
.product-primary-section .product-images__featured .slick-dots,
.product-primary-section .products .slick-dots {
  display: none !important;
}

@media (max-width: 767px) {
  .product-primary-section.has-coffee-background {
    background-position-y: 0;
  }

  .product-primary-section .col-product-info {
    padding-top: 1.5rem;
  }
}

/* RTL mirrors for alignments that bundle hardcodes as left/right */
html[dir="rtl"] .product-primary-section .section-title,
html[dir="rtl"] .products .section-title,
body.rtl .product-primary-section .section-title,
body.rtl .products .section-title {
  text-align: center;
}

@media (min-width: 768px) {
  html[dir="rtl"] .product-primary-section .section-title,
  html[dir="rtl"] .products .section-title,
  body.rtl .product-primary-section .section-title,
  body.rtl .products .section-title,
  html[dir="rtl"] .products #product-variants-options .form-group > div > label,
  body.rtl .products #product-variants-options .form-group > div > label,
  html[dir="rtl"] .products #product-form .quantity label,
  body.rtl .products #product-form .quantity label,
  html[dir="rtl"] .products #product-form .title-review-wrapper .price,
  body.rtl .products #product-form .title-review-wrapper .price {
    text-align: right;
  }

  html[dir="rtl"] .products #product-form .quantity-button.quantity-down,
  body.rtl .products #product-form .quantity-button.quantity-down {
    border-radius: 0;
    border-bottom-right-radius: 100px;
    border-top-right-radius: 100px;
  }

  html[dir="rtl"] .products #product-form .quantity-button.quantity-up,
  body.rtl .products #product-form .quantity-button.quantity-up {
    border-radius: 0;
    border-bottom-left-radius: 100px;
    border-top-left-radius: 100px;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .products #product-form .title-review-wrapper .price,
  body.rtl .products #product-form .title-review-wrapper .price {
    text-align: left;
  }
}
