#breadcrumb {
  background-color: transparent !important;
}

#breadcrumb div.container,
#breadcrumb div.container-fluid {
  padding: 0.2rem 0rem;
}
.section-collections .list-checkout-items a h3,
#product_detail article.card h3 {
  font-size: 0.88rem !important;
  font-weight: 400 !important;
}
#detailsContainer {
  background-color: #fff;
  border-radius: 0px 0px 7px 7px;
  padding: 1.4rem !important;
}
#breadcrumb h6 a {
  color: #242424 !important;
  text-decoration: none;
  padding-right: 0.5rem;
}

#breadcrumb h6.breadcrumb {
  color: #666 !important;
}
/* Layout general */
.product-detail-ml {
  padding-top: 12px;
}

/* Thumbs */
.ml-thumbs-wrap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml-thumbs {
  overflow: hidden;
}

.ml-thumb {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
}

.ml-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Flechas en la columna de thumbs */
.ml-arrow {
  border: 0;
  background: transparent;
  padding: 0;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  opacity: .85;
}

.ml-arrow img {
  width: 100%;
  height: 100%;
}

/* Imagen principal */
.ml-main-img {
  position: relative;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.ml-main-img .container_main_img img {
  max-height: 520px;
  /* ajustá si querés */
  object-fit: contain;
}

/* Plugins sobre la imagen (si los tenías) */
.ml-main-img .plugins {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Descuentos encima */
.ml-discounts {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Panel derecho tipo card */
.ml-info-card {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.ml-info-card .price-box {
  padding: 0px !important;
}

/* Titular parecido a ML */
.ml-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.ml-brand {
  font-size: 13px;
  opacity: .7;
}

.ml-thumbs-wrap .slider-arrows {
  display: none !important;
}

/* En desktop: que el panel quede “acompañando” un poco (opcional) */
@media (min-width: 992px) {
  .ml-info-card {
    position: sticky;
    top: 12px;
  }
}

body.product_detail {
  background-color: #e3e3e3 !important;
}

body.product_detail .container-fluid {
  background-color: transparent !important;
}

/* Product detail refresh */
#detailsContainer {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

#product_detail #detailsContainer p {
  font-size: 1rem !important;
  text-align: left !important;
}

.product-detail-ml {
  padding-top: 0;
}

.ml-thumbs-wrap {
  gap: 10px;
}

.ml-thumbs {
  overflow: hidden;
}

.ml-thumb {
  margin-bottom: 0;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ml-thumb:hover,
.ml-thumb.slick-current {
  border-color: #d7172f;
  box-shadow: 0 0 0 2px rgba(215, 23, 47, .08);
}

.ml-thumbs-wrap .slider-arrows {
  display: none !important;
}

.ml-main-img {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: none;
}

.ml-main-img .container_main_img {
  min-height: 460px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ml-main-img .container_main_img img {
  max-height: 460px;
  object-fit: contain;
}

.ml-discounts {
  top: 14px;
  left: 14px;
}

.ml-info-card {
  height: 100%;
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  box-shadow: none;
}

.ml-info-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ececec;
}

#product_detail .ml-brand {
  font-size: .85rem;
  letter-spacing: .12em;
  color: #9b8b88;
  margin-bottom: .75rem;
}

#product_detail .ml-title {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0;
  color: #2c2324;
}

.ml-subtitle {
  margin: .65rem 0 0;
  font-size: .95rem;
  line-height: 1.45;
  color: #6e6464;
}

.ml-purchase-panel {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

#product_detail .ml-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  margin-bottom: 0;
  text-align: left;
}

#product_detail .ml-price-box .price {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: flex-start;
  font-size: 2.45rem;
  line-height: 1;
  color: #2b2223;
}

#product_detail .ml-price-box .price small {
  font-size: .75em !important;
  color: #67595b;
}

#product_detail .ml-price-caption {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f6c67;
}

#product_detail .ml-price-box .normal-price {
  display: inline-flex;
  gap: 4px;
  margin-top: .15rem;
  color: #999;
  text-decoration: line-through;
}

.ml-stock-note {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ead8d3;
  color: #8d4f45;
  font-size: .95rem;
}

.ml-actions {
  margin-top: 1.25rem;
}

#detailsContainer .ml-actions ul.qty {
  display: grid;
  grid-template-columns: 52px 52px 52px auto;
  gap: .7rem;
  align-items: center;
  justify-content: start !important;
  margin: 0;
  padding: 0;
  width: 100%;
}

#detailsContainer .ml-actions ul.qty li {
  margin: 0 !important;
}

#detailsContainer .ml-actions .addctrl {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#detailsContainer .ml-actions .qty .addctrl1,
#detailsContainer .ml-actions .qty .addctrl2,
#detailsContainer .ml-actions .qty .addctrl3 {
  width: 52px;
  height: 52px;
}

#detailsContainer .ml-actions .qty .minus,
#detailsContainer .ml-actions .qty .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #d9d9d9 !important;
  background: #f8f8f8 !important;
  color: #2d2d2d !important;
  box-shadow: none;
}

#detailsContainer .ml-actions .qty .minus svg,
#detailsContainer .ml-actions .qty .plus svg {
  display: block;
  width: 20px;
  height: 20px;
}

#detailsContainer .ml-actions .qty .minus svg path:first-child,
#detailsContainer .ml-actions .qty .plus svg path:first-child {
  fill: none !important;
}

#detailsContainer .ml-actions .qty .minus svg path:last-child,
#detailsContainer .ml-actions .qty .plus svg path:last-child {
  fill: currentColor !important;
}

#detailsContainer .ml-actions input.js-qty-selector.text-center {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2b2223;
}

#detailsContainer .ml-actions .js-add-product,
#product_detail .ml-related-card .js-add-product {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid #b71d32 !important;
  background: #c91e35 !important;
  color: #fff !important;
  box-shadow: none !important;
}

#detailsContainer .ml-actions .js-add-product {
  width: auto;
  min-width: 176px;
  padding: 0 .95rem;
}

#detailsContainer .ml-actions li.mt-3 {
  margin-top: 0 !important;
  width: auto;
  justify-self: start;
}

#detailsContainer .ml-actions .js-add-product .float-right,
#product_detail .ml-related-card .js-add-product .float-right {
  float: none !important;
  font-weight: 700;
  font-size: 1.1rem;
}

#detailsContainer .ml-actions .js-add-product .shopping_cart,
#product_detail .ml-related-card .js-add-product .shopping_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none !important;
}

#product_detail .ml-actions .js-add-product .shopping_cart > svg,
#product_detail .ml-related-card .js-add-product .shopping_cart > svg {
  width: 26px !important;
  height: 26px !important;
  margin-right: 0;
  color: #fff !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 2;
  filter: none !important;
}

#product_detail .ml-actions .js-add-product .shopping_cart > svg circle,
#product_detail .ml-actions .js-add-product .shopping_cart > svg path:not([fill="none"]),
#product_detail .ml-related-card .js-add-product .shopping_cart > svg circle,
#product_detail .ml-related-card .js-add-product .shopping_cart > svg path:not([fill="none"]) {
  fill: none !important;
  stroke: #fff !important;
}

#detailsContainer .ml-actions .js-cart-item-done {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.ml-extras {
  margin-top: 1.25rem;
}

.ml-extra-block {
  padding: 1rem 0;
  border-top: 1px solid #ececec;
  background: transparent;
}

.ml-extra-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.ml-detail-sections {
  margin-top: 1.8rem;
}

.ml-content-card {
  height: 100%;
  padding: 1.2rem 0 0;
  border: 0;
  border-top: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#product_detail .ml-section-title {
  margin: 0 0 .9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2b2223;
}

#product_detail .ml-description-copy,
#product_detail .ml-description-copy p,
#product_detail .ml-description-copy li {
  font-size: .98rem !important;
  line-height: 1.7;
  color: #4d4445;
}

.ml-description-copy > *:last-child {
  margin-bottom: 0;
}

.ml-related-section {
  margin-top: .5rem;
}

#product_detail .ml-related-title {
  font-size: 1.35rem;
  color: #2b2223 !important;
}

.ml-related-grid {
  margin-left: -8px;
  margin-right: -8px;
}

.ml-related-card {
  height: 100%;
  padding: .9rem;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .15s ease, transform .15s ease;
}

.ml-related-card:hover {
  transform: translateY(-2px);
  border-color: #d7d7d7;
}

.ml-related-card > a:first-child {
  display: block;
  min-height: 168px;
}

.ml-related-card > a:first-child img {
  width: 100%;
  height: 168px;
  object-fit: contain;
}

#product_detail .ml-related-brand {
  margin-top: .75rem;
  font-size: .7rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #988786;
}

#product_detail .ml-related-content {
  min-height: 34px;
  margin: .35rem 0 .55rem;
  font-size: .86rem !important;
  color: #766c6d;
}

#product_detail .ml-related-name {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .98rem !important;
  line-height: 1.4;
  color: #2b2223;
}

.ml-related-actions {
  margin-top: .9rem;
  padding: 0;
}

@media (max-width: 991.98px) {
  #detailsContainer {
    border-radius: 0 0 12px 12px;
    padding: 1.1rem !important;
  }

  .ml-main-img .container_main_img {
    min-height: auto;
  }

  .ml-info-card {
    padding: 1.2rem;
  }

  #product_detail .ml-title {
    font-size: 1.6rem;
  }

  #product_detail .ml-price-box .price {
    font-size: 2rem;
  }

  #detailsContainer .ml-actions ul.qty {
    grid-template-columns: 46px 1fr 46px;
  }

  #detailsContainer .ml-actions li.mt-3 {
    grid-column: 1 / -1;
    width: 100%;
  }

  #detailsContainer .ml-actions .js-add-product {
    width: 100%;
    min-width: 0;
  }

  #detailsContainer .ml-actions .qty .minus,
  #detailsContainer .ml-actions .qty .plus,
  #detailsContainer .ml-actions input.js-qty-selector.text-center,
  #detailsContainer .ml-actions .js-add-product {
    height: 48px;
  }

  .ml-thumbs-wrap .slider-arrows {
    display: none !important;
  }
}

.no-stock-message {
   margin-left: 0px !important;
}

.add > svg, .remove > svg {
   filter: none !important;
}

.header-search-btn {
   background-color: transparent !important;
}

/* Product detail fine tuning (desktop only) */
@media (min-width: 992px) {
  #product_detail .ml-thumbs-wrap .slider-arrows,
  #product_detail .slider-nav-container .slider-arrows {
    display: none !important;
  }

  #product_detail #detailsContainer .ml-price-box,
  #product_detail #detailsContainer .ml-price-caption {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  #product_detail #detailsContainer .ml-price-box .price {
    float: none !important;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  #product_detail #detailsContainer .ml-actions .addctrl {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #product_detail #detailsContainer .ml-actions .qty .minus,
  #product_detail #detailsContainer .ml-actions .qty .plus {
    background: #fff !important;
    border: 1px solid #d6d6d6 !important;
    color: #b71d32 !important;
  }

  #product_detail #detailsContainer .ml-actions .qty .minus svg path:last-child,
  #product_detail #detailsContainer .ml-actions .qty .plus svg path:last-child {
    fill: #b71d32 !important;
  }

  #product_detail #detailsContainer .ml-actions .js-add-product {
    min-height: 46px;
    min-width: 146px;
    padding: 0 .72rem;
    gap: 6px;
  }

  #product_detail #detailsContainer .ml-actions .js-add-product .float-right {
    font-size: 1rem;
    line-height: 1;
  }

  #product_detail #detailsContainer .ml-actions .js-add-product .shopping_cart > svg {
    width: 20px !important;
    height: 20px !important;
  }

  #product_detail .ml-thumbs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 420px;
    overflow: hidden;
  }

  #product_detail .ml-thumb {
    width: 56px;
    height: 56px;
    margin: 0 !important;
    padding: 4px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  #product_detail .ml-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #product_detail .ml-thumb.is-active {
    border-color: #d7172f;
    box-shadow: 0 0 0 2px rgba(215, 23, 47, .16);
  }

  #product_detail .ml-thumb.is-overflow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
  }

  #product_detail .ml-thumb .ml-overflow-count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    z-index: 2;
  }
}

body.product-gallery-open {
  overflow: hidden;
}

#productGalleryModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(20, 22, 26, .85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 94px 110px;
}

#productGalleryModal.is-open {
  display: flex;
}

#productGalleryModal .pgm-main {
  width: min(78vw, 1120px);
  height: min(82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#productGalleryModal .pgm-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#productGalleryModal .pgm-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  font-size: 2rem;
  font-family: Arial, sans-serif;
  line-height: 1;
}

#productGalleryModal .pgm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  font-size: 0;
  line-height: 1;
}

#productGalleryModal .pgm-prev,
#productGalleryModal .pgm-next {
  transform: translateY(-50%);
}

#productGalleryModal .pgm-nav::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
}

#productGalleryModal .pgm-prev::before {
  transform: translateY(8px) translateX(1px) rotate(-135deg);
  margin-left: 2px;
}

#productGalleryModal .pgm-next::before {
  transform: translateY(8px) translateX(-1px) rotate(45deg);
  margin-right: 2px;
}

#productGalleryModal .pgm-prev {
  left: 24px;
}

#productGalleryModal .pgm-next {
  right: 24px;
}

#productGalleryModal .pgm-thumbs {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

#productGalleryModal .pgm-thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

#productGalleryModal .pgm-thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff inset;
}

#productGalleryModal .pgm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Product detail - related items styled like product listing */
@media (min-width: 992px) {
  body.product_detail #product_detail .ml-related-section {
    margin-top: 1rem;
  }

  body.product_detail #product_detail .ml-related-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.product_detail #product_detail .ml-related-grid > .product-related,
  body.product_detail #product_detail .ml-related-grid > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product_detail #product_detail .ml-related-card {
    width: 100%;
    margin: 0 !important;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    padding: 0.35rem 0.65rem 0.7rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  body.product_detail #product_detail .ml-related-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
  }

  body.product_detail #product_detail .ml-related-card > a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 175px;
    border-bottom: 1px solid #eeeeee;
    margin: 0 -0.65rem 0.45rem;
    padding: 0.1rem 0.35rem 0.3rem;
  }

  body.product_detail #product_detail .ml-related-card > a:first-child img {
    width: auto;
    max-width: 100%;
    max-height: 166px;
    height: auto;
    object-fit: contain;
  }

  body.product_detail #product_detail .ml-related-card .price-box,
  body.product_detail #product_detail .ml-related-card h3.price {
    order: 2;
    margin: 0 0 0.3rem !important;
    text-align: left;
    color: #333 !important;
    font-size: 1.9rem !important;
    font-weight: 400 !important;
    line-height: 1.1;
  }

  body.product_detail #product_detail .ml-related-card .normal-price {
    display: block;
    text-align: left;
    font-size: 0.84rem;
    color: #9a9a9a;
    margin-top: 0.1rem;
  }

  body.product_detail #product_detail .ml-related-brand,
  body.product_detail #product_detail .ml-related-content {
    display: none !important;
  }

  body.product_detail #product_detail .ml-related-name {
    order: 3;
    margin-top: 0.25rem;
    margin-bottom: 0.3rem;
    font-size: 0.86rem !important;
    font-weight: 400 !important;
    line-height: 1.3;
    min-height: 46px;
    color: #333;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.product_detail #product_detail .ml-related-actions {
    order: 4;
    margin-top: 0.4rem;
    padding: 0;
  }

  body.product_detail #product_detail .ml-related-card .js-add-product {
    width: auto !important;
    min-height: 32px;
    border-radius: 6px !important;
    font-weight: 400;
    font-size: 0.82rem;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 0.32rem 0.58rem;
    border: 1px solid #3483fa !important;
    background: #3483fa !important;
  }

  body.product_detail #product_detail .ml-related-card .shopping_cart {
    display: none;
  }

  body.product_detail #product_detail .ml-related-card .float-right {
    float: none !important;
  }
}

/* Product detail desktop spacing balance */
@media (min-width: 992px) {
  body.product_detail #detailsContainer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.product_detail #detailsContainer .product-detail-ml {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  body.product_detail #detailsContainer .product-detail-ml > .ml-detail-top-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 6fr) minmax(0, 5fr);
    gap: 14px;
    align-items: start;
    margin: 0;
    --bs-gutter-x: 0;
  }

  body.product_detail #detailsContainer .product-detail-ml > .ml-detail-top-row > .ml-col-thumbs,
  body.product_detail #detailsContainer .product-detail-ml > .ml-detail-top-row > .ml-col-main,
  body.product_detail #detailsContainer .product-detail-ml > .ml-detail-top-row > .ml-col-info {
    width: auto;
    max-width: none;
    flex: none;
    margin: 0;
    padding: 0;
  }
}
