@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");

:root {
  --primary-red: #d90429;
  --deep-navy: #2b2d42;
  --accent-orange: #fb8500;
  --bcg-orange: #f7d9b6;

  --medical-mint: #004c79;
  --bg-white: #f5f5f5;
  --thin-white: #fdfffccc;
  --text-black: #11151c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

header {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  background-color: var(--primary-red);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

header .nav-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 1550px;
  width: 95%;
  margin: 0 auto;
}

header .nav-container .icons {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

header svg {
  width: 30px !important;
  cursor: pointer;
  color: var(--bg-white);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

header svg:hover {
  color: var(--accent-orange);
  transform: scale(1.15) translateY(-3px);
}

/* Poseban stil za korpu */
header .korpa-svg {
  background-color: var(--accent-orange);
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 15px;
  display: flex;
  flex-shrink: 0; /* Sprečava Flexbox da je suzi, garantujući oblik kvadrata */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(251, 133, 0, 0.4);
  transition: border-radius 0.3s ease;
  cursor: pointer;
}

header .korpa-svg a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

header .korpa-svg:hover {
  border-radius: 5px;
}

header .korpa-svg:hover svg {
  color: var(--bg-white);
  transform: none;
}

header .logo-c {
  text-align: center;
}

header img {
  border-radius: 50%;
  width: 85px;
  height: 85px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

header img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

header .href-a {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

header .href-a a {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

header .href-a a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

header .href-a a:hover,
header .href-a a.active {
  color: var(--accent-orange);
}

header .href-a a:hover::after,
header .href-a a.active::after {
  width: 100%;
}

/* --- HAMBURGER MENU --- */
.hamburger-menu {
  display: none;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary-red);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: left 0.4s ease;
}

.mobile-menu-overlay.active {
  left: 0;
}

.close-mobile-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--bg-white);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-mobile-menu:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent-orange);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav-links a {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: var(--accent-orange);
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary-red);
  color: var(--bg-white);
  padding-top: 60px;
}

footer .footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1550px;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 50px;
}

footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

footer .footer-brand img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: rotate(-8deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

footer .footer-brand img:hover {
  transform: rotate(8deg) scale(1.1);
}

footer .footer-brand p {
  color: var(--thin-white);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 95%;
}

footer .footer-brand .funny-footer-quote {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: var(--bcg-orange);
  transform: rotate(-4deg);
  margin-top: 10px;
  font-weight: 700;
}

footer .footer-links,
footer .footer-social {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

footer .footer-links h4,
footer .footer-social h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer .footer-links a {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

footer .footer-links a:hover {
  color: var(--accent-orange);
  transform: translateX(8px);
}

footer .footer-social .social-icons {
  display: flex;
  gap: 20px;
}

footer .footer-social .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--bg-white);
  color: var(--primary-red);
  border-radius: 50%;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

footer .footer-social .social-icons a:hover {
  background-color: var(--accent-orange);
  color: var(--bg-white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(251, 133, 0, 0.4);
}

footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.15);
}

footer .footer-bottom p {
  font-size: 1rem;
  color: var(--thin-white);
  letter-spacing: 0.5px;
}

footer .footer-bottom .developer-credit {
  margin-top: 0;
  padding-left: 15px;
  border-left: 2px solid rgba(253, 255, 252, 0.4);
  font-size: 0.9rem;
  color: rgba(253, 255, 252, 0.7);
}

footer .footer-bottom .developer-credit a {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

footer .footer-bottom .developer-credit a:hover {
  color: var(--bg-white);
  text-shadow: 0 0 10px rgba(251, 133, 0, 0.8);
}

/* --- SEARCH INPUT --- */
.header-search-input {
  position: absolute;
  right: 100%;
  margin-right: 15px;
  width: 0;
  opacity: 0;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  pointer-events: none;
  transition: width 0.4s ease, opacity 0.4s ease, margin-right 0.4s ease;
  background-color: var(--bg-white);
  color: var(--text-black);
}

.search-wrapper.active .header-search-input {
  width: 380px;
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-results-dropdown {
  position: absolute;
  top: 115%; /* Pozicija je bliža input polju */
  right: 100%;
  margin-right: 15px;
  width: 380px;
  background-color: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  max-height: 370px; /* Visina 4.5 stavke, da se vidi da moze da se skroluje */
}

.search-results-dropdown.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f7f7f7;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: none;
}

.search-result-item:hover img {
  transform: none;
  box-shadow: none;
}

.search-item-info h4 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: var(--text-black);
  font-weight: 600;
}

.search-item-info p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

/* --- CUSTOM SCROLLBAR ZA SEARCH --- */
.search-results-dropdown::-webkit-scrollbar {
  width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: #c4c4c4;
}

/* --- FAVORITES SIDEBAR --- */
.favorites-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.favorites-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.favorites-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.favorites-sidebar.active {
  right: 0;
}

.favorites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  background-color: var(--primary-red);
  color: var(--bg-white);
  border-bottom: 3px solid var(--accent-orange);
}

.favorites-header h2 {
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.close-favorites {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-favorites:hover {
  transform: scale(1.1) rotate(90deg);
  color: var(--accent-orange);
}

.favorites-list {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-fav-msg {
  text-align: center;
  color: #888;
  font-style: italic;
  margin-top: 50px;
  font-size: 1.1rem;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.favorite-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.favorite-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: none;
}

.favorite-item:hover img {
  transform: none;
  box-shadow: none;
}

.fav-info h4 {
  font-size: 1.15rem;
  margin: 0 0 5px 0;
  color: var(--deep-navy);
  font-weight: 600;
}

.fav-info p {
  font-size: 1.1rem;
  margin: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

.fav-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.add-to-cart-small {
  background-color: var(--accent-orange);
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-small:hover {
  background-color: #e67e00;
  transform: scale(1.05);
}

.remove-fav {
  color: #aaa;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.remove-fav:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

.favorites-actions {
  padding: 20px;
  border-top: 1px solid #ddd;
  background-color: #fafafa;
}

.move-all-to-cart-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-orange);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.move-all-to-cart-btn:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(251, 133, 0, 0.4);
}

/* --- RESPONSIVNOST: MAX-WIDTH 1500PX --- */
@media (max-width: 1500px) {
  header .nav-container, footer .footer-container {
    width: 90%;
  }
  header .href-a a {
    font-size: 0.95rem;
  }
  header img {
    width: 75px;
    height: 75px;
  }
  footer .footer-brand img {
    width: 100px;
    height: 100px;
  }
  footer .footer-brand p {
    font-size: 1rem;
  }
  footer .footer-brand .funny-footer-quote {
    font-size: 1.6rem;
  }
  footer .footer-links h4, footer .footer-social h4 {
    font-size: 1.4rem;
  }
  footer .footer-links a {
    font-size: 1.05rem;
  }
}

/* --- RESPONSIVNOST: MAX-WIDTH 1279PX --- */
@media (max-width: 1279px) {
  header .href-a {
    gap: 20px;
  }
  header img {
    width: 65px;
    height: 65px;
  }
  header svg {
    width: 28px !important;
  }
  header .korpa-svg {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  footer .footer-container {
    gap: 30px;
  }
  footer .footer-brand p {
    font-size: 0.95rem;
  }
  footer .footer-brand .funny-footer-quote {
    font-size: 1.5rem;
  }
  footer .footer-links h4, footer .footer-social h4 {
    font-size: 1.3rem;
  }
  footer .footer-links a {
    font-size: 1rem;
  }

  #zdravko-loader .loader-img-container {
    width: 130px !important;
    height: 130px !important;
  }
}

/* --- RESPONSIVNOST: MAX-WIDTH 1023PX --- */
@media (max-width: 1023px) {
  header .href-a {
    display: none;
  }
  header img {
    width: 85px;
    height: 85px;
  }
  header svg {
    width: 32px !important;
  }
  header .korpa-svg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
  }
  .hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  footer .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  footer .footer-brand {
    align-items: center;
  }
  footer .footer-brand p {
    max-width: 100%;
  }
  footer .footer-links, footer .footer-social {
    align-items: center;
  }
  .search-wrapper.active .header-search-input {
    width: 320px;
  }
  .search-results-dropdown {
    width: 320px;
  }

  /* --- FAVORITES MODAL RESPONSIVNOST --- */
  .favorites-sidebar {
    width: 360px;
    right: -380px;
  }
  .favorite-item img {
    width: 70px;
    height: 70px;
  }
  .fav-info h4 {
    font-size: 1.05rem;
  }

  #zdravko-loader .loader-img-container {
    width: 110px !important;
    height: 110px !important;
  }
}

/* --- RESPONSIVNOST: MAX-WIDTH 767PX (MOBILNI UREĐAJI) --- */
@media (max-width: 767px) {
  header img {
    width: 75px;
    height: 75px;
  }
  header svg {
    width: 28px !important;
  }
  header .korpa-svg {
    width: 55px;
    height: 55px;
    min-width: 55px;
    min-height: 55px;
  }
  header .nav-container .icons {
    gap: 15px;
  }
  footer {
    padding-top: 40px;
  }
  footer .footer-container {
    padding-bottom: 30px;
  }
  footer .footer-brand img {
    width: 80px;
    height: 80px;
  }
  footer .footer-brand p {
    font-size: 0.95rem;
  }
  footer .footer-brand .funny-footer-quote {
    font-size: 1.4rem;
  }
  footer .footer-links h4, footer .footer-social h4 {
    font-size: 1.2rem;
  }
  footer .footer-links a {
    font-size: 0.95rem;
  }
  .search-wrapper.active .header-search-input {
    width: 260px;
  }
  .search-results-dropdown {
    width: 260px;
  }

  /* --- FAVORITES MODAL RESPONSIVNOST --- */
  .favorites-sidebar {
    width: 320px;
    right: -350px;
  }
  .favorites-header {
    padding: 20px 15px;
  }
  .favorites-header h2 {
    font-size: 1.25rem;
  }
  .favorites-list {
    padding: 15px;
  }
  .favorite-item {
    padding: 15px;
    gap: 15px;
  }
  .favorite-item img {
    width: 60px;
    height: 60px;
  }
  .fav-info h4 {
    font-size: 1rem;
  }
  .favorites-actions {
    padding: 15px;
  }

  #zdravko-loader .loader-img-container {
    width: 80px !important;
    height: 80px !important;
  }
}

/* --- RESPONSIVNOST: MAX-WIDTH 499PX (MANJI MOBILNI UREĐAJI) --- */
@media (max-width: 499px) {
  header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 55px;
    width: 100%;
    margin-inline: 0;
    padding-inline: 10px; /* Minimalno odvajanje da prst može lepo da klikne na samoj ivici */
  }
  header .logo-c {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  header img {
    display: inline-block;
    width: 55px;
    height: 55px;
  }
  .hamburger-menu {
    position: static;
    gap: 5px;
  }
  .hamburger-menu span {
    width: 28px;
    height: 3px;
  }

  header .nav-container .icons {
    gap: 10px;
  }
  header .icons svg {
    width: 24px !important;
  }
  
  header .korpa-svg {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
  }

  footer .footer-brand img {
    width: 70px;
    height: 70px;
  }
  footer .footer-brand p {
    font-size: 0.9rem;
  }
  footer .footer-brand .funny-footer-quote {
    font-size: 1.2rem;
  }
  footer .footer-links h4, footer .footer-social h4 {
    font-size: 1.1rem;
  }
  footer .footer-links a {
    font-size: 0.9rem;
  }
  footer .footer-container {
    width: 100%;
    margin-inline: 0;
    padding-inline: 10px;
  }
  footer .footer-bottom p {
    font-size: 0.85rem;
    text-align: center;
  }
  footer .footer-bottom .developer-credit {
    padding-left: 0;
    border-left: none;
    margin-top: 5px;
  }

  /* Skrivamo polje za pretragu skroz */
  .search-wrapper {
    display: none !important;
  }

  /* --- FAVORITES MODAL RESPONSIVNOST --- */
  .favorites-sidebar {
    width: 100vw;
    right: -105vw; /* Skroz ga sklanja sa ekrana kada nije aktivan */
  }
  .favorites-header h2 {
    font-size: 1.15rem;
  }
  .favorite-item {
    padding: 12px;
    gap: 12px;
  }
  .favorite-item img {
    width: 55px;
    height: 55px;
  }
  .fav-info p {
    font-size: 1rem;
  }
  .add-to-cart-small {
    padding: 6px 10px;
    font-size: 1rem;
  }
  .move-all-to-cart-btn {
    padding: 12px;
    font-size: 1rem;
  }

  #zdravko-loader .loader-img-container {
    width: 45px !important;
    height: 45px !important;
  }
}

/* --- CART TOAST NOTIFICATION --- */
#cart-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.cart-toast {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 350px;
  max-width: calc(100vw - 40px);
  pointer-events: auto;
  animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-toast-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  flex-shrink: 0;
}

.cart-toast-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-toast-info {
  flex-grow: 1;
}

.cart-toast-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text-dark, #222);
}

.cart-toast-info p {
  margin: 0 0 4px 0;
  font-size: 0.85rem;
  color: var(--text-gray, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.cart-toast-info strong {
  font-size: 0.95rem;
  color: var(--accent-orange, #f26f21);
}

.cart-toast-actions {
  flex-shrink: 0;
}

.btn-go-to-cart {
  background: var(--accent-orange, #f26f21);
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
}

.btn-go-to-cart:hover {
  background: var(--accent-hover, #d95e1c);
  color: white;
}

.cart-toast-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.cart-toast-close:hover {
  color: #333;
}

/* --- CART TOAST RESPONSIVNOST (MOBILNI) --- */
@media (max-width: 499px) {
  #cart-toast-container {
    bottom: 15px;
    right: 10px;
    left: 10px;
  }

  .cart-toast {
    width: calc(100vw - 20px);
    max-width: 100%;
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .cart-toast-img {
    width: 55px;
    height: 55px;
  }

  .cart-toast-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px; /* Da ne preklapa sa X dugmetom */
  }

  .cart-toast-info p {
    white-space: normal;
    max-width: 100%;
  }

  .cart-toast-actions {
    width: 100%;
  }

  .btn-go-to-cart {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
  }
}

/* --- IN CART SYNC STYLES --- */
.add-to-cart.in-cart,
.btn-add-to-basket.in-cart,
.add-to-cart-small.in-cart,
.mug-btn-dashed.in-cart {
  background-color: var(--accent-orange, #fb8500) !important;
  color: var(--bg-white, #f5f5f5) !important;
  border-color: var(--accent-orange, #fb8500) !important;
  box-shadow: 0 4px 10px rgba(251, 133, 0, 0.4) !important;
}

.add-to-cart.in-cart:hover,
.btn-add-to-basket.in-cart:hover,
.add-to-cart-small.in-cart:hover,
.mug-btn-dashed.in-cart:hover {
  background-color: #d90429 !important; /* Promenimo u crveno na hover kad je vec u korpi da signalizira brisanje */
  box-shadow: 0 6px 15px rgba(217, 4, 41, 0.4) !important;
  transform: scale(1.02);
}

/* --- SUCCESS TEMPORARY BUTTON STATE --- */
.add-to-cart.added-success,
.btn-add-to-basket.added-success {
  background-color: var(--accent-orange) !important;
  color: var(--bg-white) !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 5px 15px rgba(251, 133, 0, 0.4) !important;
  transform: scale(1.05);
}

/* --- FUNNY SPINNER LOADER --- */
#zdravko-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary-red);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#zdravko-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#zdravko-loader .loader-img-container {
  position: relative;
  width: 150px !important;
  height: 150px !important;
  animation: funnySpin 1.5s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#zdravko-loader img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

@keyframes funnySpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); border-radius: 20%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 50%; }
}
