.section-lift-up {
    position: relative;
    top: -2vh;
}

.custom-hover-box {
    background-color: #ffffff;
    color: #000;
    transition: all 0.3s ease-in-out;
}

.custom-hover-box .icon-color {
    color: #28a745;
    transition: color 0.3s ease-in-out;
}

.custom-hover-box:hover {
    background-color: #28a745;
    color: #ffffff;
}

.custom-hover-box:hover .icon-color {
    color: #ffffff;
}

/* Početno stanje – izvan ekrana levo */
.custom-hover-box {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideIn 0.8s ease-out forwards;
}

/* Dodaj kašnjenje za svaki box da ide jedan za drugim */
.col-md-6:nth-child(1) .custom-hover-box { animation-delay: 0.2s; }
.col-md-6:nth-child(2) .custom-hover-box { animation-delay: 0.4s; }
.col-md-6:nth-child(3) .custom-hover-box { animation-delay: 0.6s; }

.card.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.card.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.card.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Keyframes za klizanje */
@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.btn-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.col-lg-7 .carousel-item img {
    max-height: 500px;
    width: 70%;
    height: auto;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #28a745;
    border-radius: 50%;
    background-size: 50%, 50%;
}

/* Osnovni stil */
.benefit-box {
    transition: all 0.3s ease-in-out;
}

/* Hover efekat */
.benefit-box:hover {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.benefit-box:hover i,
.benefit-box:hover small {
    color: #fff !important;
}

.benefit-box {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

/* Klasa koja se dodaje kad element uđe u viewport */
.benefit-box.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

/* Kada se prikaže u viewportu */
.fade-in-left.animate-in,
.fade-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Overlay ikone - skrivene dok nema hover-a */
.product-overlay {
    opacity: 0;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease-in-out;
}

.card:hover .product-overlay {
    opacity: 1;
}

/* Smanjeni boksovi */
.related-products-section .card-img {
    max-height: 200px;
}

/* Dugmići unutar overlay-a */
.product-overlay a.btn {
    width: 40px;
    height: 40px;
    padding: 5px 0;
    border-radius: 50%;
}

#delivery-truck {
    position: fixed;
    top: 65px;
    left: -350px;
    background: #28a745;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    white-space: nowrap;
    animation: truck-drive 7s ease-in-out forwards;
}

.truck-svg {
    animation: bounce 0.3s infinite alternate;
}

/* Efekat vožnje */
@keyframes truck-drive {
    0% { left: -350px; }
    40% { left: calc(50% - 150px); }
    60% { left: calc(50% - 150px); }
    100% { left: 120%; }
}

/* Efekat truck "poskakivanja" */
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

.alert-fixed {
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Ako želiš da uvek prati skrol */
.alert-floating {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    z-index: 1050;
}

.slide-in-section {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-primary {
    color: #28a745 !important;
}
/* Boja otvorenog naslova FAQ-a */
.accordion-button:not(.collapsed) {
    background-color: #e9eef5 !important;
    color: #000 !important; /* da ostane čitljiv tekst */
    box-shadow: none; /* uklanja senku ako je Bootstrap dodaje */
}

/* Opcionalno - uklanja border pri fokusu */
.accordion-button:focus {
    box-shadow: none;
    border-color: #e9eef5;
}
.promo-products .card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

/* Kada se element pojavi */
.promo-products .card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
/* Efekat pojavljivanja i zoom-a za promo proizvode */
.promo-card {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.6s ease-out;
}
.promo-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Badge za specijalnu ponudu */
.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    font-weight: bold;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Efekat pojavljivanja i zoom-a za promo proizvode */
.promo-card {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.6s ease-out;
}
.promo-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Badge za specijalnu ponudu */
.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    font-weight: bold;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease-out;
}

.popup-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #777;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-close:hover {
  color: #000;
}

.popup-cta {
  display: inline-block;
  margin-top: 1rem;
  background: #ff4b2b;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.popup-cta:hover {
  background: #e63e1d;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Popup pozadina malo tamnija */
.modal-backdrop.show {
  background-color: rgba(0,0,0,0.6);
}

/* Glavni popup stil */
.marketing-popup .modal-content {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  animation: popup-slide-up 0.3s ease-out;
}

/* Slika u zaglavlju */
.marketing-popup .popup-header-image {
  max-height: 250px;
  object-fit: cover;
}

/* Tekst u telu popupa */
.marketing-popup .popup-content-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Animacija */
@keyframes popup-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* ==== OSNOVNI OKVIR MODALA ==== */
.modal-content {
  border: none;
  border-radius: 12px; /* malo manje zaobljenje za kompaktniji izgled */
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: popup-fade-in 0.25s ease-out;
  max-width: 480px; /* malo uže */
  margin: auto;
}

/* ==== ZAGLAVLJE POPUPA (kompaktno) ==== */
.modal-header {
  background: linear-gradient(135deg, #59ab6ef5, #0c7d26);
  color: #fff;
  border-bottom: none;
  padding: 0.4rem 0.8rem; /* 👈 manji padding = manji header */
  min-height: 42px; /* osigurava da dugme i tekst stanu lepo */
}

.modal-title {
  font-size: 1.05rem; /* 👈 manji naslov */
  font-weight: 600;
  margin: 0; /* uklanja dodatni razmak */
}

/* ==== DUGME ZA ZATVARANJE ==== */
.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}
.modal-header .btn-close:hover {
  opacity: 1;
}

/* ==== TELO POPUPA ==== */
.modal-body {
  padding: 1rem; /* malo manji padding */
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ==== ANIMACIJA ==== */
@keyframes popup-fade-in {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== MOBILNA OPTIMIZACIJA ==== */
@media (max-width: 576px) {
  .modal-content {
    border-radius: 10px;
    max-width: 95%;
  }
  .modal-header {
    padding: 0.35rem 0.7rem; /* još niži header na mobilnom */
    min-height: 38px;
  }
  .modal-title {
    font-size: 0.95rem;
  }
  .modal-body {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}
.filter-btn.active {
    background-color: #28a745 !important;
    color: #fff !important;
}
:root{
  --faq-green: #198754;      /* Bootstrap success */
  --faq-green-hover: #157347; /* malo tamnije na hover */
}

/* Karta/okvir svake stavke */
.faq-item{
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:12px;
  overflow:hidden;
}

/* Heder harmonike (dugme) */
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  color:#212529;
  border:0;
  font-weight:600;
  cursor:pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.faq-q:hover{ background:#f6f7f9; }
.faq-q:focus{ outline:2px solid #19875433; outline-offset:2px; }

/* Ikonica +/– ako je koristiš kao <i class="faq-icon">+</i> */
.faq-icon{
  font-style:normal;
  transition: transform .2s ease, color .2s ease;
}

/* OTVORENO STANJE: heder zelen, tekst beo, ikonica rotira (plus → krstić) */
.faq-q[aria-expanded="true"]{
  background: #28a745;
  color:#fff;
}
.faq-q[aria-expanded="true"] .faq-icon{
  color:#fff;
  transform: rotate(45deg);
}

/* Telo harmonike */
.faq-a[hidden]{ display:none; }
.faq-a{ padding: 0 16px 14px; color:#495057; line-height:1.6; }

/* (lep detalj) kad je otvoreno, oboji i okvir kartice u zeleno */
.faq-item:has(.faq-q[aria-expanded="true"]){
  border-color: var(--faq-green);
  box-shadow: 0 6px 18px rgba(25,135,84,.12);
}

/* malo zategni razmake celog FAQ bloka */
.home-faq .faq-list{ display:grid; gap:10px; }
.faq-item.is-open{ border-color: var(--faq-green); box-shadow: 0 6px 18px rgba(25,135,84,.12); }

