/* Custom CSS to align and style the Compare button next to the Wishlist heart button */

/* Base container absolute positioning */
.product-image .wishlist,
.product-image .compare {
  position: absolute !important;
  bottom: 10px !important;
  height: 30px !important;
  width: 30px !important;
  z-index: 99 !important;
  margin: 0 !important;
}

/* Align them side-by-side */
.product-image .wishlist {
  right: 10px !important;
  left: auto !important;
  top: auto !important;
}

.product-image .compare {
  right: 48px !important;
  left: auto !important;
  top: auto !important;
  bottom: 6px !important;
}

/* Normalize and flex center all nesting levels (handles both <a> and <button> inside dropdowns) */
.product-image .wishlist .dropdown,
.product-image .wishlist .leo-wishlist-button-dropdown,
.product-image .wishlist .leo-wishlist-button,
.product-image .compare .leo-compare-button {
  width: 100% !important;
  height: 100% !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #333 !important;
  cursor: pointer !important;
}

/* Precise icon tag centering and sizing to match heights exactly */
.product-image .wishlist i,
.product-image .compare i {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  height: 18px !important;
  width: 18px !important;
  font-size: 0 !important; /* Hide raw text codes inside tags */
  line-height: 1 !important;
  margin: 0 !important;
}

.product-image .wishlist i:before,
.product-image .compare i:before {
  font-size: 18px !important;
  line-height: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* Hover state color (Theme default orange) */
.product-image .wishlist .leo-wishlist-button:hover,
.product-image .compare .leo-compare-button:hover,
.product-image .wishlist .leo-wishlist-button:hover i,
.product-image .compare .leo-compare-button:hover i {
  color: var(--theme-color-default, #ff6600) !important;
}

/* Hide text labels completely */
.product-image .compare .leo-compare-button .name-btn-product,
.product-image .wishlist .leo-wishlist-button .name-btn-product {
  display: none !important;
}

/* ==========================================
   ACTIVE / ADDED STATES
   ========================================== */
.product-image .wishlist .leo-wishlist-button,
.product-image .compare .leo-compare-button,
.product-image .wishlist .leo-wishlist-button i,
.product-image .compare .leo-compare-button i,
.product-image .wishlist .leo-wishlist-button i:before,
.product-image .compare .leo-compare-button i:before {
  color: #aaa !important;
}
/* Marked / Added state colors (turns to solid theme color) */
.product-image .wishlist .leo-wishlist-button.added,
.product-image .compare .leo-compare-button.added,
.product-image .wishlist .leo-wishlist-button.added i,
.product-image .compare .leo-compare-button.added i,
.product-image .wishlist .leo-wishlist-button.added i:before,
.product-image .compare .leo-compare-button.added i:before {
  color: var(--theme-color-default, #ff6600) !important;
}
.thumbnail-container
  .product-image
  .functional-buttons
  .leo-wishlist-button
  i.material-icons::before,
.thumbnail-container
  .product-image
  .functional-buttons
  a.leo-wishlist-button
  i.material-icons::before {
  color: #aaa;
}

/* Styling for QuantityDiscountPro custom flag */
.product-flags .product-flag.qdp-flag {
  background-color: #2ecc71 !important; /* Premium green background */
  color: #ffffff !important;
}

.product-flags .product-flag.qdp-flag p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  color: inherit !important;
}

/* ==========================================
   STICKY PRODUCT DETAILS BAR
   ========================================== */
.product-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  padding: 10px 0;
}

/* Position: Sticky Top for both Desktop and Mobile */
.product-sticky-bar {
  top: 0;
  transform: translateY(-100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.product-sticky-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .product-sticky-bar {
    padding: 8px 0;
  }
}

.sticky-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sticky-bar-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-bar-title {
  font-weight: 600;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.sticky-bar-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-color-default, #ff6600);
  line-height: 1.2;
}

.sticky-bar-price .current-price-value,
.sticky-bar-price .current-price {
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
}

/* Hide extra text info like taxes from the price clone if needed */
.sticky-bar-price .tax-shipping-delivery-label {
  display: none !important;
}

.sticky-bar-right {
  display: flex;
  align-items: center;
}

.sticky-add-to-cart {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background-color: var(--theme-color-default, #ff6600) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
  transition: all 0.2s ease;
}

.sticky-add-to-cart:hover:not(:disabled) {
  background-color: #e05500 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 102, 0, 0.3);
}

.sticky-add-to-cart:active:not(:disabled) {
  transform: translateY(0);
}

.sticky-add-to-cart:disabled {
  background-color: #ccc !important;
  box-shadow: none;
  cursor: not-allowed;
}

.sticky-add-to-cart i,
.sticky-add-to-cart svg,
.sticky-add-to-cart span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}

/* Adjust layout on small mobile screens */
@media (max-width: 575px) {
  .sticky-bar-title {
    max-width: 160px;
    font-size: 13px;
  }
  .sticky-bar-price {
    font-size: 14px;
  }
  .sticky-add-to-cart {
    padding: 8px 16px;
    font-size: 12px;
  }
  .sticky-bar-img {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================
   QUICK TECHNICAL SHEET STYLE
   ========================================== */
.quick-technical-sheet {
  margin: 25px 0 20px 0;
  padding: 0;
  max-width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.quick-technical-sheet h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.quick-technical-sheet .qts-table {
  border-top: 2px solid var(--theme-color-default, #ff6600);
  margin-bottom: 12px;
}

.quick-technical-sheet .qts-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
}

.quick-technical-sheet .qts-label {
  font-weight: 700;
  color: #222;
  width: 180px;
  flex-shrink: 0;
}

.quick-technical-sheet .qts-value {
  color: #555;
}

.quick-technical-sheet .qts-more-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 5px;
  transition: color 0.2s ease;
  letter-spacing: 0.5px;
}

.quick-technical-sheet .qts-more-link:hover {
  color: var(--theme-color-default, #ff6600);
  text-decoration: none;
}

/* ==========================================
   BLOCK REASSURANCE TWO COLUMNS OVERRIDE
   ========================================== */
#block-reassurance {
  margin-top: 25px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#block-reassurance .reassurance-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--theme-color-default, #ff6600);
  padding-bottom: 8px;
}

#block-reassurance ul {
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#block-reassurance li {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  border: none !important;
  margin: 0 !important;
  padding: 8px 10px 8px 0 !important;
  box-sizing: border-box !important;
}

#block-reassurance li .block-reassurance-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

#block-reassurance img {
  width: 36px !important;
  height: auto !important;
  margin: 0 10px 0 0 !important;
  flex-shrink: 0 !important;
}

#product #block-reassurance span {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #222 !important;
  line-height: 1.3 !important;
}

/* Adjust for smaller screens (mobile) */
@media (max-width: 480px) {
  #block-reassurance li {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }
}

/* ==========================================
   BLOCK REASSURANCE PRODUCT OVERRIDE (NEW REASSURANCE MODULE)
   ========================================== */
.blockreassurance_product {
  margin: 25px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.blockreassurance_product .reassurance-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--theme-color-default, #ff6600);
  padding-bottom: 8px;
}

.blockreassurance_product .reassurance-items-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

.blockreassurance_product .reassurance-items-container .reassurance-item-col,
.blockreassurance_product .reassurance-items-container > div {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  border: none !important;
  margin: 0 !important;
  padding: 10px 15px 10px 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blockreassurance_product .reassurance-items-container > div .item-product,
.blockreassurance_product
  .reassurance-items-container
  .reassurance-item-col
  .item-product {
  margin: 0 12px 0 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.blockreassurance_product
  .reassurance-items-container
  .reassurance-item-col
  img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  margin: 0 !important;
  display: block !important;
}

.blockreassurance_product
  .reassurance-items-container
  .reassurance-item-col
  .block-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #222 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: inline !important;
}

/* Adjust for smaller screens (mobile) */
@media (max-width: 575px) {
  .blockreassurance_product .reassurance-items-container .reassurance-item-col,
  .blockreassurance_product .reassurance-items-container > div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }
}

/* Align quantity label, input and add-to-cart button on the same line */
.product-actions .product-quantity {
  align-items: center !important;
}

.product-actions .product-quantity .control-label {
  margin: 0 10px 0 0 !important;
  white-space: nowrap !important;
}

.product-actions .product-quantity .qty {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 48px !important;
}

.product-actions .product-quantity .qty .input-group.bootstrap-touchspin {
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
}

.product-actions .product-quantity .add {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 48px !important;
}

.product-actions .product-quantity .add-to-cart {
  height: 48px !important;
}

/* Ensure wishlist and compare buttons are still positioned below */
.product-actions .product-quantity .wishlist,
.product-actions .product-quantity .compare {
  margin-top: 15px !important;
}

/* Premium design for the product metadata block (.infoline) */
.infoline {
  background: #fcfcfd !important;
  border: 1px solid #f1f1f3 !important;
  border-left: 3px solid var(--theme-color-default, #ff6600) !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 25px 0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.infoline > div {
  display: flex !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #e9e9eb !important;
  margin-bottom: 0 !important;
}

.infoline > div:last-child {
  border-bottom: none !important;
}

/* Prepend FontAwesome icons to each detail line */
.infoline > div::before {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  width: 24px !important;
  margin-right: 12px !important;
  color: var(--theme-color-default, #ff6600) !important;
  display: inline-block !important;
  text-align: center !important;
}

/* Category Icon (Folder) */
.infoline .productcats::before {
  content: "\f07b" !important;
}

/* Reference Icon (Barcode/Tag) */
.infoline .p-reference::before {
  content: "\f02a" !important;
  font-size: 13px !important;
}

/* Brand Icon (Store) */
.infoline .product-manufacturer::before {
  content: "\f54e" !important;
}

/* Styling for Labels */
.infoline .label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
  margin-right: 10px;
}

/* Styling for Values */
.infoline .p-reference span,
.infoline .product-manufacturer span,
.infoline .productcats ul {
  font-size: 14px !important;
  color: #555 !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

.infoline .productcats ul {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.infoline .productcats ul li::after {
  content: "/" !important;
  margin: 0 8px !important;
  color: #ccc !important;
  font-weight: 300 !important;
}

.infoline .productcats ul li:last-child::after {
  content: "" !important;
}

.infoline a {
  color: #555 !important;
  transition: color 0.2s ease !important;
}

.infoline a:hover {
  color: var(--theme-color-default, #ff6600) !important;
  text-decoration: none !important;
}
