/*
Theme Name: Elessi Theme Child
Theme URI: https://elessi.nasatheme.com/demo/
Description: This is a child theme for Elessi Theme
Author: NasaTheme team
Author URI: https://nasatheme.com
Template: elessi-theme
Version: 1.0
*/

/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/

/* don't show price on product page separately (it's already inside button) */
.price.nasa-single-product-price {
  display: none !important;
}

.price.nasa-single-product-price + form.cart {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .nasa-product-info-wrap > div > div:last-child {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  .price.nasa-single-product-price + form.cart {
    justify-content: center;
  }
}

.price.nasa-single-product-price + form.cart {
  justify-content: center;
}

.quantity-label {
  align-content: center;
  /*margin-right: 0.2rem;*/
  /* font-weight: 500; */
  color: #404040;
}

.nasa-product-info-wrap .quantity,
.nasa-product-info-wrap .quantity-label {
  margin-bottom: 1rem;
}

/* hide default reviews */
.woocommerce-product-rating {
  display: none !important;
}

.reviews-slider .review-item {
  display: none;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.natura-review-widget {
  margin: 20px 0;
  padding: 20px;
  background: #f0f0f0;
  border: 2px solid #eee;
  border-radius: 10px;
  max-width: 600px;
  transition: opacity 0.4s ease;
}

.natura-review {
  margin-bottom: 0;
  padding: 0;
  border: none;
}

.natura-stars {
  color: #bd8500;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.natura-content {
  font-style: italic;
  margin-bottom: 8px;
  color: #325932;
  font-size: 16px;
}

.natura-author {
  font-size: 0.9rem;
  color: #555;
}

.natura-date {
  font-weight: normal;
  color: #999;
}

.natura-review-widget.fade-out {
  opacity: 0;
}

.nasa-dsc-type-1.nasa-dsc-wrap.nasa-not-in-sticky a.ev-dsc-qty {
  background: rgba(255, 255, 255, 0.701);
}

.cart .quantity-label,
.cart .quantity {
  display: none !important;
}

.ns-single-add-btn.single_add_to_cart_button {
  padding: 15px !important;
}

@media (max-width: 768px) {
  /*meni so Prodavnica Kategorije Pretraga Lista zelja (dole mob)*/
  .nasa-bottom-bar.nasa-transition.nasa-active {
    display: none !important;
  }

  .nasa-single-btn-clone {
    flex-direction: column !important;
  }

  .nasa-fixed-single-simple .quantity-label,
  .nasa-fixed-single-simple .quantity {
    display: none !important;
  }

  .ns-single-add-btn.single_add_to_cart_button {
    padding: 5px !important;
  }
}

/* submenu w img e.g. PROIZVODI */
.nav-dropdown .sub-menu {
  padding: 20px 30px 20px 30px !important;
}

li.menu-item.menu-item-type-custom.menu-item-object-custom img {
  height: 50px !important;
}

li.menu-item.menu-item-type-custom.menu-item-object-custom a {
  display: flex;
  align-items: center;
}

.ev-dsc-qty {
  display: flex !important;
  align-items: center !important;
  position: relative;
}

.promo-ribbon {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
.promo-ribbon {
  --f: 0.5em; /* control the folded part*/
  --r: 0.8em; /* control the ribbon shape */

  position: absolute;
  top: 10px;
  right: calc(-1 * var(--f));
  padding-inline: 0.25em;
  line-height: 1.8;
  background: #ca3d26;
  border-bottom: var(--f) solid #0005;
  border-left: var(--r) solid #0000;
  clip-path: polygon(
    var(--r) 0,
    100% 0,
    100% calc(100% - var(--f)),
    calc(100% - var(--f)) 100%,
    calc(100% - var(--f)) calc(100% - var(--f)),
    var(--r) calc(100% - var(--f)),
    0 calc(50% - var(--f) / 2)
  );
}

.nasa-accordion-title {
  display: none !important;
}

.ev-dsc-qty-wrap {
  width: 100% !important;
}

.ev-dsc-qty:hover,
.nasa-dsc-type-1 .dsc-flex-column .ev-dsc-qty.actived {
  border-color: #a8a8a8 !important;
}

@media (max-width: 768px) {
  .nasa-col-flex.nasa-relative:has(form.cart) {
    padding: 10px 20px !important;
  }
}

.nasa-single-share {
    display: none !important;
  }

.natura-review-widget {
  text-align: center;
  width: fit-content;
  border-width: 0px;
}

#nasa-section-accordion-reviews {
  display: block !important;
  padding: 40px 40px;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

#elementor-like-h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 2.5rem;
}

#elementor-like-hr {
  border-style: dashed;
  border-color: #000 !important;
  margin-top: 30px;
  margin-bottom: 30px;
  display:none !important;
}

em.woocommerce-review__verified {
  width: fit-content;
  background: linear-gradient(#6ca300, #508859);
  color: white;
  padding: 3px 7px;
  border-radius: 5px;
  font-style: normal;
  margin-left: 2px;
  margin-bottom: 2px;
  font-size: 13px;
}

ol.commentlist.list .description {
  font-size: 16px !important;
  margin-top: 10px;
}

@media only screen and (max-width: 767px) {
  body .product-details #reviews #comments {
    margin-bottom: 0px !important;
  }
}

@media (max-width: 768px) {
  em.woocommerce-review__verified.verified {
    display: block !important;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 0 !important;
  }

  #nasa-section-accordion-reviews {
    display: block !important;
    padding: 20px 20px;
    padding-bottom: 0 !important;
  }
}

@media (min-width: 768px) {
  .nasa-fixed-single-simple .nasa-fixed-product-btn {
    width: 100%;
  }

  .nasa-fixed-single-simple .nasa-single-btn-clone {
    justify-content: end !important;
  }

  .nasa-fixed-single-simple .ns-single-add-btn.single_add_to_cart_button {
    width: 30% !important;
  }

  .nasa-fixed-single-simple .custom-tel-link-button {
    width: 30% !important;
    padding: 7px !important;
  }
}

@media (min-width: 769px) {
  #prostatol-image2 {
    mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }
}

/*xxl*/
@media (min-width: 1400px) {
  #nasa-section-accordion-reviews {
    padding: 40px 60px;
  }
}

.nasa-dsc-type-1 .nasa-crazy-box {
  margin-bottom: 15px !important;
}

.ev-dsc-qty {
  justify-content: center;
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
}

.ns-single-add-btn.single_add_to_cart_button {
  max-width: none !important;
}

.row.related-product {
  margin-bottom: 50px !important;
}

@media only screen and (min-width: 1024px) {
  .product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
    padding: 30px !important;
    padding-top: 20px !important;
  }
}

.dsc-label {
  font-size: 16px !important;
}

.wpcf7-form.init .wpcf7-form-control-wrap {
  margin-top: 10px !important;
}

.wpcf7-form.init label {
  margin-top: 10px;
  color: white !important;
  font-size: 16px;
}

.wpcf7-form-control.wpcf7-submit.btn-contact {
  width: 100%;
  /* background-color: #4caf50; */
  font-size: 16px;
}

/*HOME*/
.nasa-sc.products.woocommerce.ns-type-carousel h3.nasa-heading-title {
  line-height: 1;
  margin-top: 0.2em;
  margin-bottom: 0.5em;
}

.nasa-sc.products.woocommerce.ns-type-carousel p.nasa-product-description {
  font-size: 18px;
  margin-bottom: 15px;
}

@media (max-width:768px) {
  .nasa-sc.products.woocommerce.ns-type-carousel p.nasa-product-description {
      font-size: 16px !important;
  }    
}

.sticky-wrapper .header_logo.logo_mobile {
  max-width: 45% !important;
  max-height: 45% !important;
}

.nasa-mobile-nav-wrap .header_logo.logo_mobile {
  max-height: none !important;
}

#contact-phonenum {
  font-weight: 700 !important;
  background: -webkit-linear-gradient(#515151, #242424) !important;
  background-clip: border-box !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/*mobile menu*/
@media (max-width: 768px) {
  #masthead .nasa-icon.mobile-search,
  #masthead .nasa-login-register-ajax {
    display: none !important;
  }

  #nasa-counter-viewing {
    margin: auto !important;
  }

  .natura-review-widget {
    width: 90%;
    margin: auto !important;
  }

  #nasa-counter-viewing {
    margin-top: 20px !important;
  }
}

@media only screen and (max-width: 767px) {
  /* .mobile-menu .header-icons > li .mini-cart svg {
    height: auto !important;
    width: auto !important;
  } */

  li.nasa-icon-mini-cart:nth-child(2)
    > a:nth-child(1)
    > span:nth-child(1)
    > svg:nth-child(1) {
    width: 36px !important;
    height: 36px !important;
    /* color: #333; */
  }

  a.nasa-icon:nth-child(1) > svg:nth-child(1) {
    stroke-width: 1.5;
    /* color: #333; */
  }
}

/* footer */
#nasa-footer {
  font-size: 16px;
}

/* #nasa-footer li.menu-item {
  border: 10px solid;
  border-image-slice: 1;
  border-width: 2px;
  border-image-source: linear-gradient(to left, #743ad500 40%, #508d725c);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: 0px;
} */

#nasa-footer li {
  margin-bottom: 7px;
}

.footer-contact button {
  background: #508d72 !important;
  font-family: "Jost", sans-serif !important;
}

@media (max-width: 768px) {
  #nasa-footer li.menu-item {
    width: fit-content;
    margin: auto;
  }

  #nasa-footer #menu-footer-menu {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* #nasa-footer #menu-footer-menu li {
    margin-bottom: 10px;
    border: 10px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(
      to right,
      #fff0 0%,
      #508d728c 50%,
      #fff0 100%
    );
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 0px;
  } */
}

#nasa-footer #menu-footer-menu li {
  margin-bottom: 15px;
  border: 1px solid #e4e4e4;
  border-image-slice: 1;
  border-width: 1px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: 0px;
}

#masthead {
  padding: 0 !important;
}

@media (min-width: 769px) {
  #header-content {
    position: sticky !important;
    top: 0 !important;
    background: white;
    z-index: 10000;
  }

  .header_logo {
    padding: 5px !important;
  }

  #top-bar {
    display: none !important;
  }
  
  li.nasa-icon-wishlist, li.nasa-icon-compare {
    display: none !important;
  }

  ul.nasa-menus-account {
    list-style: none;
  }

  span.nasa-login-title {
    display: none !important;
  }

  li.nasa-menu-item-account ul.sub-menu {
    display: none;
  }
}

#nasa-init-viewed {
  display: none !important;
}

@media(min-width:769px) {
    #productpage-crosssell .slick-track {
        min-height: 510px !important;
    }
    
    .boko {
        text-align: start !important;
    }

    .nasa-footer-bottom-left:has(.boko) {
        padding: 0 !important;
    }
}

@media (min-width:992px) and (max-width:1400px) {
    #productpage-crosssell .slick-track {
        min-height: 380px !important;
    }
}

@media (max-width:768px) {
    #elementor-like-h2, #productpage-crosssell .nasa-heading-title {
        font-size: 22px !important;
    }
}

#product-8325 .promo-ribbon + img, #product-6863 .promo-ribbon + img {
    width: 140px !important;
    height: 130px !important;
}

#product-6248 .promo-ribbon + img {
    width: 130px !important;
    height: 130px !important;
}

.woocommerce-review__dash, .woocommerce-review__published-date {
    display: none !important;
}

#nasa-footer .current-menu-item a {
    color: #3080a6 !important;
}

.free-shipping-note {
  margin-top: 20px !important;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  border: 1px solid #efefef;
  padding: 15px 25px;
  border-radius: 5px;
  background: #fdfdfd;
}

@media only screen and (max-width:768px) {
    .free-shipping-note {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }
}

/*hide "Opcije isporuke će biti ažuriran kada porudžbine." from /shopping-cart*/
.woocommerce-shipping-estimate-html.e-checkout-message {
    display: none;
}

/* Collagen */
#product-3757 .promo-ribbon + img {
    width: 150px !important;
    height: 100px !important;
}

.promo-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 16px;
  color: #333; /* text color */
  margin: 0 10px; /* spacing between promos */
}

.promo-separator::before,
.promo-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc; 
  margin: 0 10px; 
}

.add-to-cart-btns-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  margin-top: 10px;
  align-items: center;
}

.add-to-cart-btns-wrapper .single_add_to_cart_button {
    width: 100%;
}

.nasa-col-flex.nasa-relative:has(.dsc-flex-row.nasa-crazy-box) .ns-single-add-btn.single_add_to_cart_button.button.alt,  .nasa-col-flex.nasa-relative:has(.dsc-flex-row.nasa-crazy-box) .custom-tel-link-button {
    display: none !important;
}

@media (max-width: 768px) {
  .nasa-col-flex.nasa-relative form.cart {
    margin-bottom: 0 !important;
  }
}

.product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
    box-shadow: none !important;
}

@media (max-width:768px) {
    .product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
        margin-bottom: 0 !important;
    }
}

body.blog #block-3, body.blog #block-4 {
    display: none !important;
}

#nasa-footer .social-icons a {
  width: 24px !important;
  height: 24px !important;
  background-color: #bfbfbf !important;
}

#nasa-footer .social-icons a:hover {
  color: #e6f7ff !important;
}

@media(min-width:769px) {
    .product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
        background: transparent !important;
    }
    .nasa-col-flex.nasa-relative form.cart {
        background: #f8f8f8 !important;
        padding: 20px;
        border-radius: 7px;
    }
}

.nasa-col-flex.nasa-relative form.cart
.product-index-links .fa-link {
    opacity: 0.8;
}

@media (max-width: 768px) {
  product-index-links {
    display: none !important;
  }
}

.doc-download-prev {
  display: inline-block;
}

/* Make the link a positioned container only around the image */
.doc-download-prev a {
  position: relative;
  display: inline-block;
  line-height: 0; /* removes extra inline spacing */
}

/* Dark overlay only over the image */
.doc-download-prev a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px; /* optional, matches image corners if rounded */
}

/* SVG icon overlay */
.doc-download-prev a::after {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white'><path stroke-linecap='round' stroke-linejoin='round' d='M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3'/></svg>");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 40px;
  height: 40px;
}

/* Hover effect */
.doc-download-prev a:hover::before,
.doc-download-prev a:hover::after {
  opacity: 1;
  cursor: pointer;
}

.sub-menu .nasa-title-menu {
    marign-top: 5px;
    margin-bottom: 5px;
}

.product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
    background-color: transparent !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .product-info .nasa-wrap-flex.info-modern-1 .nasa-col-flex:last-child {
        display: none !important;
    }
    .free-shipping-note {
        margin-top: 0 !important;
    }
}

.add-to-cart-btns-wrapper {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}