/*
 * MBG Premium Coffee Assortment – ShopLentor slider cards only.
 * Scoped to .mbg-premium-carousel so other ShopLentor widgets stay untouched.
 * Undo: disable MBG_PREMIUM_CAROUSEL_ENABLED or remove the enqueue.
 */

.mbg-premium-carousel .ht-products.product-slider {
  padding: 4px 0 16px;
}

/* Nav arrows: align with bottom of product image */
.mbg-premium-carousel .product-slider .slick-arrow {
  top: 32% !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 767px) {
  .mbg-premium-carousel .product-slider .slick-arrow {
    top: 28% !important;
  }
}

/* Do NOT override Slick track/slide display — that breaks 3-up layout */

.mbg-premium-carousel .ht-product {
  padding: 6px 10px;
}

.mbg-premium-carousel .ht-product-inner {
  background: #f7f1e8;
  border-radius: 14px;
/*   box-shadow: 0 8px 22px rgba(38, 20, 14, 0.1); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.25s ease;
}

.mbg-premium-carousel .ht-product-inner:hover {
  box-shadow: 0 10px 26px rgba(38, 20, 14, 0.18);
}

.mbg-premium-carousel .ht-product-image-wrap {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #f7f1e8; /* match card background */
  flex: 0 0 auto;
  padding: 18px 10px 16px; /* tighter so the bag reads larger */
  box-sizing: border-box;
}

.mbg-premium-carousel .ht-product-image-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
}

/* Larger bags; full package visible — no crop */
.mbg-premium-carousel .ht-product-image-wrap img,
.mbg-premium-carousel .ht-product-image img,
.mbg-premium-carousel .ht-product-image-wrap .wp-post-image {
  display: block;
  width: 88% !important;
  max-width: 88% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: center center;
  aspect-ratio: auto !important;
}

/* Hide default ShopLentor chrome inside this carousel only */
.mbg-premium-carousel .ht-product-action,
.mbg-premium-carousel .ht-product-categories,
.mbg-premium-carousel .ht-product-ratting-wrap,
.mbg-premium-carousel .ht-product-price,
.mbg-premium-carousel .woolentor-action-btn-area {
  display: none !important;
}

/* Equal padding around content under the image */
.mbg-premium-carousel .ht-product-content {
  background: #f7f1e8;
  padding: 14px !important;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.mbg-premium-carousel .ht-product-content-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  flex: 1 1 auto;
}

.mbg-premium-carousel .ht-product-title {
  margin: 0;
  width: 100%;
  font-family: Poppins, "Avant Garde", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #26140e;
  text-align: center;
}

.mbg-premium-carousel .ht-product-title a {
  color: #26140e !important;
  text-decoration: none;
}

.mbg-premium-carousel .ht-product-title a:hover {
  color: #4a2a1c !important;
}

.mbg-premium-carousel .mbg-pc-desc {
  margin: 0;
  width: 100%;
  font-family: Poppins, "Avant Garde", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #3a2418;
  text-align: center;
}

.mbg-premium-carousel .mbg-pc-price {
  margin: 0;
  width: 100%;
  font-family: Poppins, "Avant Garde", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #26140e;
  text-align: center;
}

.mbg-premium-carousel .mbg-pc-price .woocommerce-Price-amount,
.mbg-premium-carousel .mbg-pc-price-amount {
  font-weight: 700;
  color: #26140e;
}

.mbg-premium-carousel form.mbg-pc-form,
.mbg-premium-carousel .mbg-pc-form {
  float: none !important;
  clear: both !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  /* no large min-height — that caused empty space above ATC */
  min-height: 0 !important;
}

.mbg-premium-carousel .mbg-pc-form::before,
.mbg-premium-carousel .mbg-pc-form::after {
  content: none !important;
  display: none !important;
}

.mbg-premium-carousel .mbg-pc-field {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: left;
  flex: 0 0 auto;
}

/* Invisible second-row stand-in so ATC lines up without a big empty gap */
.mbg-premium-carousel .mbg-pc-field--spacer {
  height: 42px; /* match select control height */
  visibility: hidden;
  pointer-events: none;
}

.mbg-premium-carousel .mbg-pc-select {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2326140E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 7px;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  color: #26140e;
  font-family: Poppins, "Avant Garde", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 10px 32px 10px 12px;
  height: 42px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box !important;
}

.mbg-premium-carousel .mbg-pc-select:focus {
  outline: 2px solid rgba(38, 20, 14, 0.25);
  outline-offset: 1px;
}

.mbg-premium-carousel .mbg-pc-select option:checked,
.mbg-premium-carousel .mbg-pc-select option:hover {
  background-color: #d4b055;
  color: #26140e;
}

.mbg-premium-carousel .mbg-pc-form .mbg-pc-atc,
.mbg-premium-carousel .mbg-pc-atc {
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px 0 0 !important; /* tight gap above button — no auto stretch */
  border: 0 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-family: Poppins, "Avant Garde", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center !important;
  color: #26140e !important;
  background: linear-gradient(90deg, #c9a24a 0%, #e6c96a 45%, #d4b055 100%) !important;
  box-shadow: none !important;
  cursor: pointer;
  box-sizing: border-box !important;
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
}

.mbg-premium-carousel .mbg-pc-form .mbg-pc-atc:before,
.mbg-premium-carousel .mbg-pc-form .mbg-pc-atc:after {
  content: none !important;
  display: none !important;
}

.mbg-premium-carousel .mbg-pc-atc:hover,
.mbg-premium-carousel .mbg-pc-atc:focus {
  filter: brightness(1.05);
  color: #26140e !important;
}

.mbg-premium-carousel .mbg-pc-atc:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mbg-premium-carousel .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1024px) {
  .mbg-premium-carousel .ht-product-content {
    padding: 12px !important;
  }

  .mbg-premium-carousel .ht-product-title {
    font-size: 15px;
  }

  .mbg-premium-carousel .mbg-pc-desc {
    font-size: 12px;
  }

  .mbg-premium-carousel .mbg-pc-price {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .mbg-premium-carousel .ht-product {
    padding: 6px 8px;
  }

  .mbg-premium-carousel .ht-product-image-wrap {
    padding: 28px 16px 24px;
  }

  .mbg-premium-carousel .ht-product-image-wrap img,
  .mbg-premium-carousel .ht-product-image img,
  .mbg-premium-carousel .ht-product-image-wrap .wp-post-image {
    width: 58% !important;
    max-width: 58% !important;
  }

  .mbg-premium-carousel .ht-product-content {
    padding: 14px !important;
  }

  .mbg-premium-carousel .mbg-pc-field--spacer {
    display: none; /* not needed in single-column mobile */
  }

  .mbg-premium-carousel .mbg-pc-select {
    font-size: 12px;
    padding: 10px 32px 10px 12px;
  }
}
