@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

.header {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

a .header {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul .header {
  list-style: none;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.social-icons,
.contact-info,
.language-flags {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar img {
  height: 18px;
  margin-right: 5px;
}

.top-bar span,
.top-bar a {
  color: #333;
  font-size: 14px;
}

.top-bar a:hover {
  color: #904CDF;
  transform: scale(1.05);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.logo img {
  height: 50px;
}

.navigation {
  flex: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.nav-links li {
  position: relative;
  list-style: none;
}

.nav-links li::before {
  content: none !important;
}

.nav-links a {
  text-decoration: none;
  color: #252525;
  font-weight: 500;
  font-size: 18px;
  padding: 5px;
}

.nav-links > li > .dropdown-toggle a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-weight: bold;
  color: #333;
  position: relative;
}

.nav-links > li > .dropdown-toggle a::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-links > li:hover > .dropdown-toggle a::after {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
  padding-left: 0;
  list-style: none;
}

.nav-links > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
}

.submenu li::before {
  content: none !important;
}

.submenu li a {
  display: block;
  padding: 10px 15px;
  color: #252525;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #f0f0f0;
  color: #904CDF;
}

.icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.icons img {
  height: 22px;
  cursor: pointer;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 11;
}

#searchInput {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  padding: 8px 40px 8px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  outline: none;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#searchBtn {
  position: absolute;
  top: 50%;
  right: calc(50% - 100px + 10px);
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: none;
  outline: none;
}
.search-container.active #searchInput {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-container.active #searchBtn {
  display: block;
}

@media (max-width: 600px) {
  #searchInput {
    width: 150px;
    font-size: 13px;
    padding-right: 35px;
  }

  #searchBtn {
    right: calc(50% - 75px + 10px);
  }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #252525;
  border-radius: 2px;
  transition: 0.3s;
}

.burger:hover span {
  background: #904CDF;
}


.mobile-menu,
.mobile-overlay {
  display: none;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .contact-info {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu,
  .mobile-overlay {
    display: block;
  }
}


.narucivanje {
  background-color: #f9f9f9;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.narucivanje-sadrzaj {
  max-width: 800px;
  width: 100%;
  padding: 30px;
}

.naslov-narucivanja {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #252525;
}

.opis-narucivanja {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.email-link {
  color: #b11f2e;
  text-decoration: underline;
  font-weight: bold;
}

@media (max-width: 600px) {
  .naslov-narucivanja {
    font-size: 22px;
  }

  .opis-narucivanja {
    font-size: 15px;
  }

  .narucivanje-sadrzaj {
    padding: 20px;
  }
}

.footer {
  background-color: #f9f4ee;
  padding: 50px 20px 30px 20px;
  text-align: center;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-logo {
  height: 80px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-bottom: 30px;
}

.footer-social h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.social-icons a img:hover {
  opacity: 0.7;
}

.payment-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.payment-icons img {
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.payment-icons img:hover {
  transform: scale(1.1);
}


.footer-bottom {
  font-size: 0.9rem;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.rubik-logo {
  height: 32px;
  vertical-align: middle;
}
/* ===== CART BADGE ===== */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: linear-gradient(135deg, #904CDF, #6c29c7);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(144, 76, 223, 0.4);
}

/* ===== STICKY HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html {
  scroll-behavior: smooth;
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MODERN MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 1050;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-header .logo-small img { height: 36px; }
.close-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  border-radius: 50%;
  background: #f5f5f5;
  transition: all 0.3s ease;
}
.close-btn:hover {
  background: #904CDF;
  color: white;
  transform: rotate(90deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  list-style: none;
}
.mobile-nav li { list-style: none; }
.mobile-nav > li { border-bottom: 1px solid #f5f5f5; }
.mobile-dropdown-toggle {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}
.mobile-dropdown-toggle:hover {
  background: rgba(144,76,223,0.04);
  color: #904CDF;
}
.mobile-dropdown-toggle .arrow {
  font-size: 11px;
  transition: transform 0.3s ease;
  color: #999;
}
.mobile-dropdown-toggle.active .arrow {
  transform: rotate(180deg);
  color: #904CDF;
}
.mobile-nav > li > a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-nav > li > a:hover {
  background: rgba(144,76,223,0.04);
  color: #904CDF;
}
.mobile-submenu {
  display: none;
  flex-direction: column;
  background: #faf8fd;
  list-style: none;
  padding: 0;
}
.mobile-submenu.open {
  display: flex;
  animation: slideDown 0.35s ease;
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}
.mobile-submenu a {
  font-size: 14px;
  padding: 11px 24px 11px 40px;
  color: #555;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.mobile-submenu a:hover {
  color: #904CDF;
  background: rgba(144,76,223,0.06);
  border-left-color: #904CDF;
  padding-left: 46px;
}

/* ===== BURGER ANIMATED ===== */
.burger span {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform-origin: center;
}
.burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: #904CDF;
}
.burger.active span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: #904CDF;
}


/* ===== FULL WIDTH HEADER OVERRIDE ===== */
.header {
  width: 100%;
  max-width: none;
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.top-bar {
  padding-left: 5%;
  padding-right: 5%;
  background: #faf7f3;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-bar {
  padding-left: 5%;
  padding-right: 5%;
  max-width: 1600px;
  margin: 0 auto;
}
/* Modern dropdowns */
.submenu {
  transform: translateX(-50%) translateY(10px);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 8px 0;
  left: 50%;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: white;
  border-radius: 3px;
  rotate: 45deg;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-left: 1px solid rgba(0,0,0,0.06);
}
.nav-links > li:hover .submenu {
  transform: translateX(-50%) translateY(0);
}
.submenu li a {
  border-left: 3px solid transparent;
  margin: 0 4px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.submenu li a:hover {
  background: rgba(144,76,223,0.06);
  color: #904CDF;
  border-left-color: #904CDF;
  padding-left: 24px;
}
.nav-links > li > a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
}
.nav-links > li > a:hover {
  color: #904CDF;
  background: rgba(144,76,223,0.06);
}


/* ===== MODERN INFORMACIJE REDESIGN ===== */
.narucivanje {
  background: linear-gradient(180deg, #faf7f3, #fff);
  padding: 80px 5%;
  min-height: 60vh;
}
.narucivanje-sadrzaj {
  max-width: 800px;
  background: white;
  padding: 48px 40px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.naslov-narucivanja {
  font-size: 2rem;
  font-weight: 700;
  color: #252525;
  position: relative;
  display: inline-block;
}
.naslov-narucivanja::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #904CDF, #6c29c7);
  margin: 14px auto 0;
  border-radius: 4px;
}
.opis-narucivanja {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}
.email-link {
  color: #904CDF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.email-link:hover {
  color: #6c29c7;
}


/* ===== MODERN FOOTER REDESIGN ===== */
.footer {
  background: linear-gradient(180deg, #faf7f3 0%, #f3ece4 100%);
  padding: 60px 5% 30px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.footer-logo {
  height: 70px;
  transition: transform 0.3s;
}
.footer-logo:hover { transform: scale(1.05); }
.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #252525;
  margin-bottom: 16px;
}
.footer-column ul li {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-links a {
  color: #666;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #904CDF;
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 20px;
  color: #888;
  font-size: 0.85rem;
}
.payment-icons img {
  opacity: 0.7;
  transition: all 0.3s;
}
.payment-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

