/* Kartica proizvoda – redizajn 2026-11.
   Važi samo za .fl-product.dd-card (application/part/product-list.php).
   Ponovljena klasa (.dd-card.dd-card…) služi da nadjača stara !important pravila iz main.css. */

.dd-card-col {
  margin-top: 16px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
/* Razmak između kartica. Ponovljena klasa nadjačava .no-gutters > [class*="col-"] iz helper.css. */
.dd-card-col.dd-card-col.dd-card-col {
  padding-left: 8px;
  padding-right: 8px;
}
.dd-card-col .fl-product.dd-card {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid #e7e2ea;
  border-radius: 12px;
  overflow: hidden;
  -webkit-transition: box-shadow 0.2s, border-color 0.2s;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dd-card.dd-card.dd-card.dd-card.dd-card.dd-card {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.dd-card.dd-card.dd-card.dd-card.dd-card.dd-card:hover {
  -webkit-box-shadow: 0 8px 24px rgba(74, 0, 106, 0.16) !important;
          box-shadow: 0 8px 24px rgba(74, 0, 106, 0.16) !important;
}

/* Slika: isti kvadratni okvir za sve proizvode */
.dd-card .image.slikaizgled1 {
  float: none;
  height: auto;
  padding: 0;
  background: #f5f2f6;
}
.dd-card .image > a {
  z-index: 1;
}
.dd-card .image > a img {
  mix-blend-mode: multiply;
}

/* Bedž sa procentom popusta */
.dd-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  background: #b3261e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.dd-card__badge--low {
  top: auto;
  bottom: 10px;
}

/* Lista želja */
.dd-card .image .wishlist-icon {
  top: 8px;
  right: 8px;
  z-index: 6;
}
.dd-card .image .wishlist-icon a {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0; /* poništava .slikaizgled1 a { padding-bottom: 100% } iz main.css */
  border-radius: 50%;
  background: #fff;
  color: #363f4d;
  -webkit-box-shadow: 0 1px 3px rgba(40, 10, 60, 0.18);
          box-shadow: 0 1px 3px rgba(40, 10, 60, 0.18);
  cursor: pointer;
}
.dd-card .image .wishlist-icon a::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
}
.dd-card .image .wishlist-icon a:hover,
.dd-card .image .wishlist-icon a.rmvwishlist {
  color: #4a006a;
}
.dd-card .image .wishlist-icon a i.icon {
  font-size: 20px;
  line-height: 1;
}

/* Tekstualni deo */
.dd-card .content {
  position: static;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 12px 14px 14px;
}
.dd-card .content > * + * {
  margin-top: 8px;
}
.dd-card__note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b3261e;
}
.dd-card .content h2.product-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  min-height: 40px;
  margin-bottom: 0;
}
.dd-card .content h2.product-title a {
  color: #363f4d;
}
.dd-card .content h2.product-title a:hover {
  color: #4a006a;
}

/* Cena: nova velika, stara precrtana pored, ušteda ispod */
.dd-card .content p.product-price,
.dd-card .content .product-card__prices {
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: #4a006a;
}
.dd-card .content p.product-price {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
}
.dd-card .content p.product-price:empty {
  display: none;
}
.dd-card .content p.product-price span.main-price {
  margin-right: 0;
}
.dd-card .content p.product-price span.discounted-price {
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
  margin-right: 8px;
}
.dd-card .content p.product-price span.main-price.discounted {
  font-size: 13px;
  font-weight: 400;
  color: #6b6b6b;
}
.dd-card .content .dd-card__saving {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #b3261e;
}

/* Dugme „Dodaj u korpu" – uvek vidljivo */
.dd-card .content .hover-icons {
  position: static;
  visibility: visible;
  opacity: 1;
  width: 100%;
  -webkit-transform: none;
          transform: none;
  background: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-top: 10px;
}
.dd-card .content .hover-icons ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dd-card .content .hover-icons ul li {
  display: block;
  margin: 0;
}
.dd-card .content .hover-icons ul li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 44px;
  border: 1.5px solid #4a006a;
  border-radius: 8px;
  background-color: #fff;
  color: #4a006a;
  font-size: 14px;
  font-weight: 600;
  -webkit-transition: background-color 0.15s, color 0.15s;
  transition: background-color 0.15s, color 0.15s;
}
.dd-card .content .hover-icons ul li a i.icon {
  font-size: 18px;
  line-height: 1;
  margin-right: 8px;
}
.dd-card .content .hover-icons ul li a:before,
.dd-card .content .hover-icons ul li a:after {
  content: none;
  display: none;
}
.dd-card:hover .content .hover-icons ul li a,
.dd-card .content .hover-icons ul li a:hover,
.dd-card .content .hover-icons ul li a:focus {
  background-color: #4a006a;
  color: #fff;
}

/* Mobilni: dve kartice u redu, ikonica korpe pored cene */
@media only screen and (max-width: 575px) {
  .dd-card-col.dd-card-col.dd-card-col {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
    max-width: 50%;
    margin-top: 12px !important;
    padding-left: 6px;
    padding-right: 6px;
  }
  .dd-card-col .fl-product.dd-card {
    border-radius: 10px;
  }
  .dd-card__badge {
    top: 8px;
    left: 8px;
    font-size: 13px;
    padding: 5px 7px;
  }
  .dd-card__badge--low {
    top: auto;
    bottom: 8px;
  }
  .dd-card .image .wishlist-icon {
    top: 6px;
    right: 6px;
  }
  .dd-card .image .wishlist-icon a {
    width: 32px;
    height: 32px;
  }
  .dd-card .image .wishlist-icon a::after {
    top: -6px;
    right: -6px;
    bottom: -6px;
    left: -6px;
  }
  .dd-card .content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    -webkit-column-gap: 6px;
       -moz-column-gap: 6px;
            column-gap: 6px;
    row-gap: 6px;
    -ms-flex-line-pack: start;
        align-content: start;
    padding: 10px;
  }
  .dd-card .content > * + * {
    margin-top: 0;
  }
  .dd-card__note,
  .dd-card .content h2.product-title {
    grid-column: 1 / -1;
  }
  .dd-card .content h2.product-title {
    font-size: 14px;
    line-height: 18px;
    min-height: 54px;
  }
  .dd-card .content p.product-price,
  .dd-card .content .product-card__prices {
    grid-column: 1;
    -ms-flex-item-align: end;
        align-self: end;
    margin-top: 0;
    padding-top: 0;
    font-size: 18px;
  }
  .dd-card .content p.product-price {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .dd-card .content p.product-price span.discounted-price {
    -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
            order: 0;
    margin-right: 0;
  }
  .dd-card .content p.product-price span.main-price.discounted {
    font-size: 12px;
  }
  .dd-card .content .dd-card__saving {
    display: none;
  }
  .dd-card .content .hover-icons {
    grid-column: 2;
    -ms-flex-item-align: end;
        align-self: end;
    width: 44px;
    margin-top: 0;
  }
  .dd-card .content .hover-icons ul li a {
    width: 44px;
    border: 0;
    background-color: #4a006a;
    color: #fff;
  }
  .dd-card .content .hover-icons ul li a i.icon {
    font-size: 20px;
    margin-right: 0;
  }
  .dd-card__cta-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
