/*
 Theme Name:     Beige Blancelle
 Template:       shoptimizer
 Text Domain:    blancelle
*/

@import url("../shoptimizer/style.css");

.elementor-7105 .elementor-element.elementor-element-16df861c {
  max-width: 100%;
}

/* --- ================================ --- */
/* IKONA MOJE KONTO DLA < desktop + edycja ikony koszyka */
.site-header-cart .cart-contents .count {
  border-color: rgba(203, 173, 141, 1) !important;
  color: rgba(203, 173, 141, 1) !important;
}
.site-header-cart .cart-contents .count:after {
  border-color: rgb(116, 98, 79) !important;
}
.site-header-cart .cart-contents .count:hover,
.site-header-cart .cart-contents:hover .count {
  background: rgba(203, 173, 141, 1) !important;
}

@media (max-width: 992px) {
  .main-header {
    position: relative;
  }
  .main-header .site-header-cart {
    top: 1em !important;
  }
  .site-header-cart {
    display: flex !important;
    align-items: center;
    flex-direction: row;
    gap: 0em;
    li {
      display: flex;
      align-items: center;
    }
  }
  /* widok 2 menu dla < desktop */
  .secondary-navigation .icon-wrapper svg {
    stroke: rgba(203, 173, 141, 1) !important;
  }
  #page .site-header .secondary-navigation {
    flex: 0;
    display: flex;
    position: absolute;
    right: 5.6em;
    justify-content: center;
  }
  .secondary-navigation .menu {
    margin: 0;
  }
  /* wsparcie i zamówienie */
  .secondary-navigation #menu-item-1140,
  .secondary-navigation #menu-item-7001 {
    display: none !important;
  }

  /* moje konto jako sama ikona */
  .secondary-navigation #menu-item-7002 > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 0;
    color: #5e5a57;
    font-size: 0;
    line-height: 0;
  }
  .secondary-navigation #menu-item-7002 > a:focus {
    outline: unset;
  }
  .secondary-navigation #menu-item-7002 > a .icon-wrapper {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
  }
  .secondary-navigation #menu-item-7002 > a .icon-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .secondary-navigation #menu-item-7002 > a .icon-wrapper svg path {
    stroke-width: 0.8px;
  }
}

/* --- ================================ --- */

/* Callback gold button on product page disable */
.call-back-feature {
  display: none;
}
/* --- ================================ --- */
/* Produkt ostatnie sztuki */
.low-stock-alert {
  background-color: rgba(203, 173, 141, 0.25);
  padding: 0.8em 1em;
  border-radius: 8px;
  font-size: 16px;
  color: #d11e1e !important;
  line-height: 1.5;
  display: inline-block;
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in;
  width: 100%;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.content-area p.stock.in-stock::before {
  background: red;
}
/* stock out info end ==== */

.secondary-navigation {
  #menu-secondary-menu {
    display: flex;
    align-items: center;
    li {
      width: max-content;
      padding: 0;
      a {
        display: flex;
        align-items: center;
        gap: 0.5em;

        .icon-wrapper {
          position: unset;
          transform: unset;
          display: flex;
        }
      }
    }
  }
}

.product__categories {
  display: flex;
  gap: 0.5em;
  a {
    background-color: trnsparent;
    border: 1px solid #3a2d28 !important;
    font-size: 19px;
    font-weight: 600;
    fill: #ffffff;
    color: #3a2d28 !important;
    border-radius: 4px 4px 4px 4px;
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.price {
  span {
    bdi {
      font-weight: 600;
    }
  }
}

/* --- ================================ --- */
/* WISHLIST - ikona serca itd */
#menu-item-wishlist > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
#menu-item-wishlist .icon-wrapper {
  display: inline-flex;
}
#menu-item-wishlist .count {
  position: absolute;
  top: -3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ff6060;
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.secondary-navigation .menu li:not(.ri) a {
  padding-top: 0;
}
/* ikona obok buy buttona na liscie produktow - TERAZ NA KARCIE */

.bl-wishlist-btn {
  position: absolute;
  top: 1em;
  right: calc(1em - 1px);
  width: 48px;
  height: 48px;
  background: var(--body-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  &.active .bl-wishlist-icon {
    svg {
      fill: #ff6060;
      stroke: #ff6060;
    }
  }
  &:hover .bl-wishlist-icon {
    svg {
      fill: #cbad8d;
      stroke: #cbad8d;
    }
  }

  .bl-wishlist-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;

    svg {
      stroke: #ff6060;
      fill: none;
      width: 100%;
      height: 100%;
      transition: 0.2s;
    }
  }
  .bl-wishlist-text {
    display: none;
  }
}
.sale-item {
  background: #000 !important;
}
/* Wariacja dla strony produktu (wewnątrz formularza) */
.product form.cart .bl-wishlist-btn {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  margin-left: 10px;
  vertical-align: middle;
  border: 1px solid #000;
  border-radius: 4px;
}
.single_add_to_cart_button {
  background: #000 !important;
  &:hover {
    background: #cbad8d !important;
  }
}
.woocommerce-variation-add-to-cart {
  display: flex;
}

.add_to_cart_button,
body ul.products li.product .add_to_cart_button {
  /*width: calc(100% - 100px);*/
  display: none; /* ukrycie przycisku dodaj do koszyka */
}

/* --- ================================ --- */
/* --- WISHLIST HEADER ICON --- */
.site-header-cart {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0em;
  li {
    display: flex;
    align-items: center;
  }
}
.site-header-cart .header-wishlist {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.site-header-cart .header-wishlist .icon-wrapper {
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.site-header-cart .header-wishlist .icon-wrapper svg {
  width: 100%;
  height: 100%;
  stroke: #dc9814;
  fill: none;
  stroke-width: 1px;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.site-header-cart .header-wishlist:hover .icon-wrapper svg {
  fill: #ff6060;
  stroke: #ff6060;
}
.site-header-cart .header-wishlist .count {
  position: absolute;
  top: -3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ff6060;
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  z-index: 2;
}
/* --- END WISHLIST HEADER ICON --- */

/* ------------ CHECKOUT ---------------- */
.blik-info-thankyou {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  border-radius: 8px;
  background-color: rgba(203, 173, 141, 0.25);
  padding: 1em;
  margin-bottom: 2em;
}
