/**
 * CC Cross-sell — storefront bundle (scoped rules; safe on all pages).
 * Cart recommendation strip — applies only where `.cc-xu-cart-shell` exists.
 */

.cc-xu-cart-shell {
  margin: 1.75rem 0;
  padding: 1.75rem 1.25rem 1.5rem;
  background: #f5f1e6;
  border-radius: 28px;
  box-sizing: border-box;
}

.cc-xu-cart-title {
  margin: 0 0 1.25rem;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2b2b2b;
}

.cc-xu-cart-carousel-wrap {
  position: relative;
  margin: 0 -0.25rem;
  overflow: hidden;
  padding: 0 44px;
  box-sizing: border-box;
}

.cc-xu-cart-swiper.swiper {
  padding: 0 0 2.75rem;
  overflow: hidden !important;
  width: 100%;
  box-sizing: border-box;
}

.cc-xu-cart-card {
  height: 100%;
  margin: 0.25rem;
  padding: 0.75rem 0.65rem 1rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Theme (iqitthemeeditor) paints border/bg/box-shadow on .product-miniature — clashes with this white card */
.cc-xu-cart-shell .cc-xu-cart-card .product-miniature.product-miniature-grid {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}

.cc-xu-cart-card .product-miniature,
.cc-xu-cart-card .thumbnail-container {
  text-align: center;
}

.cc-xu-cart-shell .product-price,
.cc-xu-cart-shell .price,
.cc-xu-cart-shell .product-price-and-shipping {
  color: #9a6f3a;
}

.cc-xu-cart-shell .product-price .regular-price,
.cc-xu-cart-shell .product-price .price {
  color: #9a6f3a;
  font-weight: 600;
}

.cc-xu-cart-shell .btn,
.cc-xu-cart-shell .btn-touch {
  border-radius: 999px;
}

@media (hover: hover) and (min-width: 992px) {
  .cc-xu-cart-shell .cc-xu-cart-card .product-miniature.product-miniature-grid:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
    color: #2b2b2b !important;
  }

  .cc-xu-cart-shell .cc-xu-cart-card .product-miniature:hover a:link:not(.nav-link):not(.btn),
  .cc-xu-cart-shell .cc-xu-cart-card .product-miniature:hover a:visited:not(.nav-link):not(.btn) {
    color: #2b2b2b !important;
  }

  .cc-xu-cart-shell .cc-xu-cart-card .product-miniature:hover .product-price,
  .cc-xu-cart-shell .cc-xu-cart-card .product-miniature:hover .product-price a {
    color: #9a6f3a !important;
  }

  .cc-xu-cart-shell .cc-xu-cart-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .cc-xu-cart-shell .cc-xu-cart-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}

.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-next,
.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-prev {
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: 38%;
  z-index: 2;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  cursor: pointer;
}

.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-prev {
  left: 2px;
}

.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-next {
  right: 2px;
}

.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-next::after,
.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 700;
}

.cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.cc-xu-cart-shell .cc-xu-cart-pagination {
  bottom: 0 !important;
  position: absolute;
  width: 100%;
  text-align: center;
}

@media (max-width: 767px) {
  .cc-xu-cart-shell {
    padding: 1.25rem 0.75rem 1.25rem;
    border-radius: 20px;
  }

  .cc-xu-cart-title {
    font-size: 1.05rem;
  }

  .cc-xu-cart-carousel-wrap {
    padding: 0 36px;
  }

  .cc-xu-cart-swiper.swiper {
    padding: 0 0 2.5rem;
  }

  .cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-prev {
    left: 0;
  }

  .cc-xu-cart-shell .cc-xu-cart-carousel-wrap .swiper-button-next {
    right: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Modal (displayModalCartCrosseling) — “Adaugă și” strip in #blockcart-modal */
/* -------------------------------------------------------------------------- */

#blockcart-modal .cc-xu-modal-shell.crossselling-products-modal {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

#blockcart-modal .cc-xu-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f1f1f;
}

#blockcart-modal .cc-xu-modal-title__line {
  flex: 1 1 auto;
  max-width: 140px;
  height: 1px;
  background: #c5ccd6;
}

#blockcart-modal .cc-xu-modal-title__text {
  flex: 0 0 auto;
  white-space: nowrap;
}

#blockcart-modal .cc-xu-modal-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 32px;
  box-sizing: border-box;
}

#blockcart-modal .cc-xu-modal-shell .cc-xu-modal-swiper.swiper {
  padding: 0 0 0.25rem;
  overflow: hidden !important;
  width: 100%;
  box-sizing: border-box;
}

#blockcart-modal .cc-xu-modal-shell .swiper-pagination-product {
  display: none;
}

#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-next,
#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-prev {
  width: 28px;
  height: 28px;
  margin-top: 0;
  top: 42%;
  z-index: 2;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #9aa3ad;
  cursor: pointer;
}

#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-prev {
  left: 0;
}

#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-next {
  right: 0;
}

#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-next::after,
#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-prev::after {
  font-size: 1.35rem;
  font-weight: 300;
}

#blockcart-modal .cc-xu-modal-carousel-wrap .swiper-button-disabled {
  opacity: 0.25;
  cursor: default;
}

/* Theme list chrome + wrapper: no frame / no hover “card” in modal */
#blockcart-modal .cc-xu-modal-shell .js-product-miniature-wrapper,
#blockcart-modal .cc-xu-modal-shell .product-miniature.product-miniature-grid {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}

@media (hover: hover) and (min-width: 992px) {
  #blockcart-modal .cc-xu-modal-shell .js-product-miniature-wrapper:hover,
  #blockcart-modal .cc-xu-modal-shell .product-miniature.product-miniature-grid:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
    color: #1f1f1f !important;
  }

  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover a:link:not(.nav-link):not(.btn),
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover a:visited:not(.nav-link):not(.btn) {
    color: #1f1f1f !important;
  }

  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-price,
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-price a {
    color: #9a6f3a !important;
  }
}

@media (hover: hover) {
  /* Nu moșteni color:#1f1f1f pe butonul de coș — textul rămâne alb */
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-add-cart .add-to-cart,
  #blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-add-cart .add-to-cart .bag-icon,
  #blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart:hover .bag-icon {
    color: #fff !important;
  }
}

/* theme-custom / iqit: .btn-product-list:hover folosește $pl_grid_btn_color_h — același specificitate, trebuie după în cascade (priority CSS modul > 1000) */
#blockcart-modal .cc-xu-modal-shell .product-add-cart button.btn.btn-product-list.add-to-cart,
#blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-add-cart button.btn.btn-product-list.add-to-cart {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart button.btn.btn-product-list.add-to-cart:hover,
#blockcart-modal .cc-xu-modal-shell .product-add-cart button.btn.btn-product-list.add-to-cart:focus,
#blockcart-modal .cc-xu-modal-shell .product-add-cart button.btn.btn-product-list.add-to-cart:focus-visible,
#blockcart-modal .cc-xu-modal-shell .product-add-cart button.btn.btn-product-list.add-to-cart:active,
#blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-add-cart button.btn.btn-product-list.add-to-cart:hover,
#blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-add-cart button.btn.btn-product-list.add-to-cart:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#blockcart-modal .cc-xu-modal-shell .product-price,
#blockcart-modal .cc-xu-modal-shell .product-price-and-shipping {
  color: #9a6f3a;
  font-weight: 600;
}

#blockcart-modal .cc-xu-modal-shell .product-price-and-shipping .regular-price {
  color: #333;
  font-weight: 500;
  text-decoration: line-through;
}

#blockcart-modal .cc-xu-modal-shell .product-description-short {
  display: none !important;
}

/* Imagini simple în modal: fără cerc / mască rotunjită (nu forțăm radius pe temă) */
#blockcart-modal .cc-xu-modal-shell .thumbnail-container,
#blockcart-modal .cc-xu-modal-shell .product-thumbnail,
#blockcart-modal .cc-xu-modal-shell .thumbnail-container a,
#blockcart-modal .cc-xu-modal-shell .thumbnail-container picture,
#blockcart-modal .cc-xu-modal-shell .thumbnail-container .product-thumbnail img,
#blockcart-modal .cc-xu-modal-shell .thumbnail-container picture img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

#blockcart-modal .cc-xu-modal-shell .thumbnail-container {
  overflow: visible;
}

#blockcart-modal .cc-xu-modal-shell .thumbnail-container img,
#blockcart-modal .cc-xu-modal-shell .thumbnail-container picture img {
  clip-path: none !important;
}

#blockcart-modal .cc-xu-modal-shell .input-qty {
  display: none !important;
}

#blockcart-modal .cc-xu-modal-shell .input-group-add-cart {
  justify-content: center;
}

/* Favorite + quick view: aceleași butoane rotunde ca în listă (pl_grid_func_btn == 2) */
#blockcart-modal .cc-xu-modal-shell .product-functional-buttons .product-functional-buttons-links a {
  display: block;
  border-radius: 50% !important;
  margin: 5px 0;
  padding: 8px;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
}

#blockcart-modal .cc-xu-modal-shell .product-functional-buttons .product-functional-buttons-links a:link,
#blockcart-modal .cc-xu-modal-shell .product-functional-buttons .product-functional-buttons-links a:visited,
#blockcart-modal .cc-xu-modal-shell .product-functional-buttons .product-functional-buttons-links a:hover {
  background: #fff !important;
}

@media (hover: hover) and (min-width: 992px) {
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-functional-buttons .product-functional-buttons-links a:link,
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-functional-buttons .product-functional-buttons-links a:visited,
  #blockcart-modal .cc-xu-modal-shell .product-miniature:hover .product-functional-buttons .product-functional-buttons-links a:hover {
    background: #fff !important;
  }
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart {
  font-size: inherit;
  line-height: 1.35;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #9a6f3a !important;
  border: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart:hover,
#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #8a6334 !important;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart .bag-icon,
#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart .spinner-icon {
  font-size: 1rem;
  line-height: 1;
  margin: 0 0.35rem 0 0 !important;
  color: #fff !important;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart .spinner-icon {
  display: none;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart.processing-add .spinner-icon {
  display: inline-block;
}

#blockcart-modal .cc-xu-modal-shell .product-add-cart .add-to-cart.processing-add .bag-icon {
  display: none;
}

@media (max-width: 767px) {
  #blockcart-modal .cc-xu-modal-carousel-wrap {
    padding: 0 26px;
  }

  #blockcart-modal .cc-xu-modal-title {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  #blockcart-modal .cc-xu-modal-title__line {
    max-width: 48px;
  }

  #blockcart-modal .cc-xu-modal-shell.crossselling-products-modal {
    margin-top: 1rem;
  }
}
