* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
 
}
body{
    background-color: #fdf6e3;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color:  #fdf6e3; 
  padding: 15px 40px;
  color:#b58900; /* zlatna */
}

.topbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar .logo img {
  height: 100px; /* prilagodi po potrebi */
}

.brand-name {
  font-size: 16px;
  line-height: 1.2;
  color:  #3b2f2f;;
}

.brand-name strong {
  font-size: 20px;
  letter-spacing: 1px;
  color: #3b2f2f; /* tamnija braon nijansa */
}

.brand-name .subtext {
  font-size: 14px;
  font-weight: 300;
  color: #b58900; /* svetlija zlatna */
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color:  #b58900; /* tamnija braon nijansa */
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;

}

.navbar a:hover {
  color: #ffffff;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
    
}

.hero {
    opacity: 0;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 5s ease 0.7s forwards; /* animacija za fade-in efekat */
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(1); /* da pozadina bude malo tamnija */
}

.hero-content {
  text-align: center;
  
  color: #c89b62; /* zlatna boja */
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
}

.hero-content h1 {
   /*background: rgba(0, 0, 0, 0.35);*/
  color:#D9B55A; /*#F6E2A1; /* svetlija zlatna */
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
  font-optical-sizing: auto;

  font-style: normal;
  margin-bottom: 30px;
  margin-top: 40px;
}


.cta-btn {
  background-color: #B38728;
  color: #FFF8E7;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2%;
  font-size: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
  padding: 40 60px;
  
}

.cta-btn:hover {
  background-color: #c92e1d;
}

.categories {
  text-align: center;
  padding: 2rem;
  background: transparent;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
  color: #3b2f2f;
}

@keyframes slideIn1 {
  
  to {
    transform: translateY(0);
    opacity: 1;
  }
    
}
@keyframes slideIn2 {
  
  to {
    transform: translateY(0);
    opacity: 1;
  }
    
}
.categories h2 {
    /*transform: translateX(-500px);
    opacity: 0;*/
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  color:#b58900;
  /*animation: slideIn1 3s ease forwards; /* animacija za ulazak teksta */
}

.categories .divider {
  width: 100px;
  border: none;
  border-top: 2px solid #b58900;
  margin: 0.5rem auto 1rem;
}

.categories p {
    /*transform: translateX(500px);
    opacity: 0;*/
  color: #b58900;
 font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
  max-width: 600px;
  margin: 0 auto 1rem;
 /* animation: slideIn2 3s ease forwards;*/
  font-size: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 1rem 0;
}

.category-item {
  background: #fafafa;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 5px #b58900;
  transition: transform 0.3s ease;
  height: 450px;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  height: 300px;
}

.category-item h3 {
  font-size: 2vw;
  margin: 0.5rem 0;
  color: #b58900;
}

.category-item a {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #b19777; /* zlatna nijansa */
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.category-item a:hover {
 background-color: #a18564;
  transform: translateY(-2px);
}

.new-products {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fdf6e3;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
}

.new-products h2 {
  color: #b58900;
  font-size: 2.5rem;
}

.new-products p {
  color:#b58900;
  margin-bottom: 2rem;
}

.product-slider {
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

.product-track {
  display: flex;
  transition: transform 1s ease-in-out;

  width: calc(100% * 2); /* 2 stranice */
}

.product-card {
  width: 23%;
  margin: 1%;
  box-sizing: border-box;
}


.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  
}

.product-card h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.product-card .price {
  color: #c89b62;
  font-weight: bold;
}

.slider-dots {
  margin-top: 1rem;
}

.slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #999;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background-color: #c89b62;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #f7f1e8;
  padding: 80px 40px;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
  color: #3b2f2f;
  gap: 3rem;

  margin-bottom: 20vw;
  margin-top: 20vw;
}

.about-text {
  flex: 1 1 450px;
  max-width: 600px;
}

.about-text h5 {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #b19777;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #3b2f2f;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5c4a3b;
  margin-bottom: 2rem;
}

.btn-about {
  background-color: #b19777;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-about:hover {
  background-color: #9a8264;
}

.about-stats-numbers {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.stat-box {
  text-align: center;
}

.stat-box img {
  height: 50px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #c89b62;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1rem;
  color: #5c4a3b;
  font-weight: 500;
}

/* Responsivnost */
@media (max-width: 900px) {
  .about-stats {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-stats-numbers {
    max-width: 100%;
  }

  .about-stats-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .about-stats-numbers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .site-footer{
    text-align: center;
  }
  .footer-about p { 
    max-width: 90vw;
  }
  
}

/* --- Stil za zastavice (desktop default, NE fiksira poziciju) --- */
.language-switcher {
  position: static;       /* ne fiksiramo desktop, mobile media query će promeniti ponašanje */
  display: flex;
  gap: 10px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: center;
  z-index: 0;
}

.language-switcher img {
  width: 24px;
  height: 16px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: inline-block;
}


    /* --- Sklanja Google bar i ikonice --- */
    .goog-te-banner-frame.skiptranslate,
    .goog-te-banner-frame,
    .goog-te-gadget-icon {
      display: none !important;
    }
    body {
      top: 0px !important;
    }
    html body > .skiptranslate,
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
html {
    top: 0 !important;
}

/* --- HAMBURGER (default sakriven za desktop) --- */
.hamburger {
  display: none;
  z-index: 20;
}

/* ==================== MOBILNE MEDIA QUERIES (SVE STVARI SAM DODAO OVDE) ==================== */

/* TABLET */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    width: 45%;
  }
}

/* ========== MOBILNI telefonski stilovi (REPLACEMENT) ========== */
@media (max-width: 768px) {

  /* prikrij desktop navigaciju (prikazaćemo preko .navbar.active) */
  .navbar ul {
    display: none;
  }

  /* TOPBAR: languages LEVO (kompresovano), logo CENTAR, hamburger DESNO */
  .topbar {
    position: relative;
    padding: 20px 32px;
    height: 80px;
    align-items: center;
  }

  /* Kompresovan language-switcher: prikaži samo prvu ikonu, na klik se širi */
  .language-switcher {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: 12px;
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 60;
    order: 1;
    cursor: pointer;
  }

  /* male ikone (default prikaz samo prve) */
  .language-switcher img {
    width: 28px;
    height: 18px;
    border: 1px solid #ddd;
    display: inline-block;
  }
  /* sakrij sve osim prve (desktop ne dira) */
  .language-switcher img:not(:first-child) {
    display: none;
  }

  /* kada je otvoreno (dodajemo .open) - prikaži sve ikone u koloni */
  .language-switcher.open {
    position: absolute;
    left: 12px;
    top: 62px;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    flex-direction: column;
    gap: 8px;
  }
  .language-switcher.open img {
    display: block;
  }

  /* centriraj logo apsolutno u topbaru */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
    z-index: 65;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .topbar .logo img {
    height: 72px; /* smanjeno na mobilu */
  }

  /* hamburger desno */
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    color: #3b2f2f;
    order: 3;
    position: relative;
    right: 8px;
    z-index: 70;
    margin-left: auto;
  }

  /* mobilni meni (prikaže se kada .navbar.active) */
  .navbar ul {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #f2e6d8;
    border-radius: 12px;
    position: absolute;
    right: 12px;
    top: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 50;
    min-width: 200px;
    display: none;
  }
  .navbar.active ul {
    display: flex;
  }

  /* Ako je mobilni meni otvoren, daj prostor za jezički meni (ako koristiš body.menu-open) */
  body.menu-open .language-switcher {
    position: static;
    margin-top: 8px;
    right: auto;
    top: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 8px;
  }

  /* HERO: smanjena visina na mobilu */
  .hero {
    height: 100vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .cta-btn {
    font-size: 1.2rem;
    padding: 0.6rem 1.5rem;
  }

  /* --- POVEĆANI RAZMACI (samo na telefonu) --- */
  /* veći razmak iznad naslova "SVE KATEGORIJE" (nasuprot gornjoj slici) */
  .categories {
    padding-top: 2.4rem; /* više prostora između hero i sekcije */
  }
  /* višak razmaka ispod uvodnog teksta ("Kompletan naš asortiman...") */
  .categories p {
    margin-bottom: 1.2rem;
  }
  /* mali dodatni razmak prije proizvoda */
  .product-slider {
    margin-top: 1rem;
  }

  /* KATEGORIJE: 1 kolona */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .category-item {
    height: auto;
    padding: 12px;
  }
  .category-item img {
    height: auto;
    max-height: 320px;
  }
  .category-item h3 {
    font-size: 1.2rem;
  }

  /* NOVI PROIZVODI: 2 kartice po viewportu (grupisano preko JS-a) */
  .product-card {
    width: 50%; /* 2 kartice po viewportu */
    margin: 0;
    box-sizing: border-box;
    padding: 6px;
  }
  .product-slider {
    overflow: hidden;
    max-width: 100%;
  }
  .product-track {
    will-change: transform;
  }

  /* About / stats: kolone u kolone */
  .about-stats {
    padding: 40px 18px;
    margin-top: 30vw;
    margin-bottom: 10vw;
    gap: 1.5rem;
  }
  .about-text {
    max-width: 100%;
    text-align: center;
  }
  .about-stats-numbers {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Footer: pojednostavi */
  footer {
    padding: 30px 18px;
  }
}



/* Jako mali ekrani */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 8px 12px;
  }
  .about-stats-numbers {
    grid-template-columns: 1fr;
  }

  /* language switcher ne stoji fiksno na malom ekranu */
  .language-switcher {
    top: auto;
    right: auto;
    position: static;
    margin-top: 10px;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  /* smanji logo visinu da ne zauzima previše prostora */
  .topbar .logo img {
    height: 72px;
  }

  /* smanji padding header-a */
  .topbar {
    padding: 12px 16px;
  }
}
/* ===== LANGUAGE SWITCHER - FINAL (REPLACE PREVIOUS APPEND) ===== */

.lang-toggle-badge {
  display: none;                 /* sakriveno na desktopu */
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b2f2f;
  cursor: pointer;
  transition: transform .12s ease;
}
.lang-toggle-badge:active { transform: scale(.96); }
.lang-toggle-badge i { font-size: 18px; display:block; line-height:1; }

/* MOBILE OVERRIDE */
@media (max-width: 768px) {
  .topbar { position: relative; z-index: 100; }

  /* postavimo .language-switcher kao absolute kontrolu unutar topbara,
     tako da nikad ne utiče na flow i ne menja visinu topbara */
  .language-switcher {
    position: absolute !important;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 120;
    padding: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    overflow: visible;
  }

  /* prikaži samo globus (dugme) umesto zastavica */
  .lang-toggle-badge { display: inline-flex; background: transparent; box-shadow: none; }

  /* sakrij zastavice dok meni nije otvoren */
  .language-switcher img {
    display: none !important;
    width: 36px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
  }

  /* PLUTAJUCI OBLAK - NE MENJA VISINU TOPBARA */
  .language-switcher.open {
    position: fixed;               /* fixed -> držimo ga u viewport prostoru */
    left: 12px;
    /* top ili bottom ćemo setovati dinamički iz JS-a; ovde fallback */
    top: calc(100% + 8px);
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.18);
    z-index: 140;
    min-width: 140px;
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

  .language-switcher.open img {
    display: block !important;
    width: 36px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
  }

  /* sprečavamo da topbar "skače" - fallback min-height */
  .topbar { min-height: 56px; }
}
/* ===== LANGUAGE SWITCHER OVERLAY (append) ===== */
.lang-overlay {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #f2e6d8; /* ili stavi istu boju koju koristi tvoj sajt za background */
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 100px;       /* smanjeno da nema praznog prostora desno */
  max-width: 140px;       /* sprečava preširoko */
  align-items: center;    /* centriraj zastave */
}

.lang-overlay img {
  width: 32px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
  display: block;
}

.lang-overlay img {
  width: 36px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #eee;
  cursor: pointer;
  display: block;
}

/* malo lepši hover */
.lang-overlay img:hover {
  transform: translateY(-2px);
}

/* zadržavamo globus stil (ako još nema) */
.lang-toggle-badge { 
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b2f2f;
  cursor: pointer;
}

.lang-overlay img {
  width: 32px;
  height: 20px;
}

/* === PATCH: override za .language-switcher.open i fallback za topbar === */
@media (max-width: 768px) {
  .topbar { position: relative !important; z-index: 200 !important; }

  /* kada je otvoren overlay, pustimo JS da postavi top; resetujemo calc rule koji ga je pomerao dole */
  .language-switcher.open {
    position: fixed !important;   /* JS će ažurirati top-left */
    top: auto !important;
    left: 12px !important;
    transform: none !important;
    z-index: 9999 !important;
  }

  /* i osiguravamo da u closed state nema neželjenog transform-a kad JS radi pixel positioning */
  .language-switcher { transform: none !important; }
}


/* Sakrij samo globus na desktopu */
@media (min-width: 769px) {
  .lang-toggle-badge {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #3b2f2f;
  }

  .navbar {
    display: none;            /* default sakriveno */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f2e6d8;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    z-index: 20;
  }

  .navbar ul {
    flex-direction: column;
    gap: 20px;
  }

  .navbar.active {
    display: flex;
    height: 0px;  
    padding: 0px;/* ovde se otvara kad klikneš */
  }
  
  /***/


  /* Mobile overlay meni — staviti unutar ili posle @media (max-width:768px) */



}


/* ukloni fokus krug sa globusa (samo vizuelno; :focus-visible za pristupačnost) */
.lang-toggle-badge:focus,
.language-switcher button:focus {
  outline: none !important;
  box-shadow: none !important;
}
.lang-toggle-badge:focus-visible {
  outline: 2px solid rgba(181,142,95,0.35);
  border-radius: 50%;
}

.language-switcher button {
  border: none;
  outline: none;
}

.language-switcher button:focus {
  outline: none;
  box-shadow: none;
}
@media (max-width: 768px) {
footer {
    text-align: center;
    padding: 25px 15px;
  }
  footer .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  footer .footer-section {
    width: 100%;
  }
  footer .footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  footer .footer-section p,
  footer .footer-section a {
    font-size: 15px;
    line-height: 1.5;
  }
  footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
}

.category-split {
  display: flex;
  height: 80vh;
  min-height: 500px;
}

.category-block {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  transition: flex 0.4s ease;
  overflow: hidden;
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
}

.category-block h2 {
  font-size: 2.2rem;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 2px;
  text-align: center;
}

/* Backgrounds */
.srebro { background: url("srebrninakit/slika82.png") center/cover no-repeat; }
.zlato { background: url("zlatannakit/slika5.png") center/cover no-repeat; }
.rucni { background: url("rucnoradjennakit/slika28.jpg") center/cover no-repeat; }

/* Overlay */
.category-block .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  transition: 0.4s ease;
}

.category-block:hover {
  flex: 1.5;
}

.category-block:hover .overlay {
  background: rgba(0,0,0,0.1);
}

.category-block:hover h2 {
  transform: scale(1.1);
  transition: 0.3s ease;
  
}

/* ========== MOBILNO: vertikalno raspoređivanje, pun width ========== */
@media (max-width: 768px) {
  .category-split {
    flex-direction: column;
    gap: 20px;
  }
  .category-block {
    flex: 1 1 100%;
    width: 100%;
    height: 200px; /* možeš prilagoditi */
  }
.hero-bg {
  height: 100%;
}
  
}
@media (max-width: 768px) {
  .category-block {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    flex: 1;
  }
   .category-block .overlay{
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .hero {
    height: 40vh;
    
  }
 .hero-content h1 {
     margin-bottom: 0px;
  }
}


/* Mobilni: 1 proizvod po slide-u */
@media (max-width: 768px) {
  .product-track {
    display: flex;
  }

  .product-card {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

footer{
  font-family: "Zilla Slab", serif;
  font-weight: 300;
  font-style: normal;
}











