/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

/* HEADER - Legacy styles (kept for compatibility) */
header {
  background: #111;
  padding: 10px 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: #ffffff;
  font-size: 2rem;
  text-shadow: none;
}

/* PROIZVODI */
.products-container {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 0 15px;
}

.product-card {
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid #222;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(41, 40, 39, 0.6);
}

.product-card img,
.product-card video {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #000;
}

.product-card h2 {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 6px 0;
}

.product-card .desc {
  font-size: 0.65rem;
  color: #ddd;
  margin: 3px 0;
}

.product-card .dim {
  font-size: 0.6rem;
  color: #bbb;
  margin: 3px 0;
}

.product-card .price {
  font-size: 0.75rem;
  font-weight: bold;
  color: #389b51;
  margin-top: 5px;
}

.kategorija2-page .product-card .price {
  color: #d4a373;
}

.kategorija3-page .product-card .price {
  color: #d4a373;
}

.kategorija4-page .product-card .price {
  color: #d4a373;
}

/* FOOTER */
footer {
  background: #111;
  text-align: center;
  padding: 10px 15px;
  margin-top: 40px;
  font-size: 0.65rem;
  color: #888;
}

.kategorija4-page footer {
  max-width: 100%;
  width: 100%;
  position: relative;
  margin-top: auto;
}

.kategorija4-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.kategorija4-page .products-container {
  flex: 1;
}

.kategorija3-page footer {
  max-width: 100%;
  width: 100%;
}

footer a {
  color: #24f02e;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #d4a373;
  text-decoration: underline;
  text-shadow: 0 0 10px #d4a373, 0 0 20px #c19a6b, 0 0 30px #b8860b;
}

.footer-link {
  color: #d4a373 !important;
}

.footer-link:hover {
  color: #c19a6b !important;
}

.footer-instagram-icon {
  width: 20px;
  vertical-align: middle;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-bar {
    padding: 8px 6px 8px 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }

  .header-bar h1 {
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .kategorija1-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .kategorija2-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .kategorija3-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .back-home {
    font-size: 0.6rem;
    padding: 4px 8px;
    margin-left: 16px;
    margin-right: 0;
  }

  .products-container {
    margin: 20px auto;
    padding: 0 12px;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    padding: 8px;
  }

  .product-card img {
    height: 200px;
  }

  .product-card h2 {
    font-size: 0.75rem;
    margin: 5px 0;
  }

  .product-card .desc {
    font-size: 0.6rem;
  }

  .product-card .dim {
    font-size: 0.55rem;
    margin: 3px 0;
  }

  .product-card .price {
    font-size: 0.65rem;
  }

  .back-btn {
    padding: 0 12px;
    margin: 15px auto;
  }

  .back-btn a {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  footer {
    padding: 8px 12px;
    font-size: 0.6rem;
  }
  
  .kategorija1-page footer a[style*="burlywood"],
  .kategorija1-page footer a[style*="color"],
  .kategorija1-page .footer-link {
    color: #00ff41 !important;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
  }
  
  .kategorija1-page footer a[style*="green"]:hover,
  .kategorija1-page footer a[style*="color"]:hover,
  .kategorija1-page .footer-link:hover {
    color: #4cff6e !important;
    text-shadow: 0 0 15px #4cff6e, 0 0 25px #4cff6e, 0 0 35px #4cff6e;
  }
  
  .kategorija2-page footer a[style*="green"],
  .kategorija2-page footer a[style*="color"],
  .kategorija2-page .footer-link {
    color: #00ff41 !important;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
  }
  
  .kategorija2-page footer a[style*="green"]:hover,
  .kategorija2-page footer a[style*="color"]:hover,
  .kategorija2-page .footer-link:hover {
    color: #4cff6e !important;
    text-shadow: 0 0 15px #4cff6e, 0 0 25px #4cff6e, 0 0 35px #4cff6e;
  }
  
  .kategorija3-page footer a[style*="green"],
  .kategorija3-page footer a[style*="color"],
  .kategorija3-page .footer-link {
    color: #00ff41 !important;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
  }
  
  .kategorija3-page footer a[style*="green"]:hover,
  .kategorija3-page footer a[style*="color"]:hover,
  .kategorija3-page .footer-link:hover {
    color: #4cff6e !important;
    text-shadow: 0 0 15px #4cff6e, 0 0 25px #4cff6e, 0 0 35px #4cff6e;
  }

  body.kategorija4-page {
    background: url("images/pocetna.jpg") no-repeat center center fixed;
    background-size: cover;
  }
}

@media (max-width: 480px) {
  body.kategorija1-page {
    background: url("images/bricks2.jpg") no-repeat center center fixed;
    background-size: cover;
  }

  body.kategorija2-page {
    background: url("images/bricks2.jpg") no-repeat center center fixed;
    background-size: cover;
  }

  body.kategorija3-page {
    background: url("images/bricks2.jpg") no-repeat center center fixed;
    background-size: cover;
  }

  body.kategorija4-page {
    background: url("images/bricks2.jpg") no-repeat center center fixed;
    background-size: cover;
  }

  .header-bar {
    padding: 8px 6px 8px 8px;
    gap: 20px;
    margin-bottom: 10px;
    justify-content: flex-start;
  }

  .header-bar h1 {
    font-size: 0.4rem;
    margin: 0;
    padding: 4px 0;
    line-height: 1.2;
    text-align: left;
  }

  .kategorija1-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .kategorija2-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .kategorija3-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
  }

  .kategorija4-page .header-bar {
    padding: 8px 6px 8px 8px;
    gap: 20px;
    margin-bottom: 10px;
    justify-content: flex-start;
  }

  .kategorija4-page .header-bar h1 {
    color: #ffffff;
    text-align: left;
    padding: 4px 0;
    margin: 0;
    line-height: 1.2;
  }


  .back-home {
    font-size: 0.35rem;
    padding: 2px 5px;
    margin-left: 16px;
    margin-right: 0;
  }

  .kategorija1-page .back-home {
    background: linear-gradient(45deg, #00ff41, #4cff6e, #24f02e);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  }

  .kategorija1-page .back-home:hover {
    background: linear-gradient(45deg, #4cff6e, #24f02e, #00ff41);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
  }

  .kategorija2-page .back-home {
    background: linear-gradient(45deg, #00ff41, #4cff6e, #24f02e);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  }

  .kategorija2-page .back-home:hover {
    background: linear-gradient(45deg, #4cff6e, #24f02e, #00ff41);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
  }

  .kategorija3-page .back-home {
    background: linear-gradient(45deg, #00ff41, #4cff6e, #24f02e);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  }

  .kategorija3-page .back-home:hover {
    background: linear-gradient(45deg, #4cff6e, #24f02e, #00ff41);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
  }

  .kategorija4-page .back-home {
    background: linear-gradient(45deg, #00ff41, #4cff6e, #24f02e);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  }

  .kategorija4-page .back-home:hover {
    background: linear-gradient(45deg, #4cff6e, #24f02e, #00ff41);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
  }

  .products-container {
    margin: 15px auto;
    padding: 0 10px;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 8px;
    margin-bottom: 8px;
  }

  .product-card img {
    height: 180px;
    margin-bottom: 8px;
  }

  .product-card h2 {
    font-size: 0.6rem;
    margin: 6px 0;
    padding: 0;
    line-height: 1.3;
  }

  .product-card .desc {
    font-size: 0.5rem;
    margin: 4px 0;
  }

  .product-card .dim {
    font-size: 0.48rem;
    margin: 4px 0;
  }

  .product-card .price {
    font-size: 0.55rem;
    margin-top: 6px;
  }

  .kategorija1-page .product-card .price {
    color: #00ff41;
  }

  .kategorija2-page .product-card .price {
    color: #00ff41;
  }

  .kategorija3-page .product-card .price {
    color: #00ff41;
  }

  .kategorija4-page .product-card .price {
    color: #00ff41;
  }

  .back-btn {
    padding: 0 10px;
    margin: 15px auto;
  }

  .back-btn a {
    font-size: 0.5rem;
    padding: 4px 8px;
    margin: 4px 0;
  }
  
  footer {
    padding: 10px 15px;
    font-size: 11px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
  }
  
  footer a {
    color: #00ff41 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
  }
  
  footer a:hover {
    color: #4cff6e !important;
    text-decoration: underline;
    text-shadow: 0 0 15px #4cff6e, 0 0 25px #4cff6e, 0 0 35px #4cff6e;
  }
  
  .footer-link {
    color: #00ff41 !important;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
  }
  
  .footer-link:hover {
    color: #4cff6e !important;
    text-shadow: 0 0 15px #4cff6e, 0 0 25px #4cff6e, 0 0 35px #4cff6e;
  }
}


/* NAZAD DUGME */
.back-btn {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  text-align: left;
}

.back-btn a {
  display: inline-block;
  background: linear-gradient(45deg, #d4a373, #c19a6b, #8b6f47);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 10px;
  font-size: 0.7rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

.back-btn a:hover {
  background: linear-gradient(45deg, #c19a6b, #b8860b, #8b6914);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.8);
}

/* Background override - keep original body background */
body {
  background: url("images/bricks2.jpg") no-repeat center center fixed;
  background-size: cover;
}

@media (max-width: 768px) {
  body {
    background: url("images/pocetna.jpg") no-repeat center center fixed;
    background-size: cover;
  }
}


/* HEADER BAR */
.header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}

.header-bar h1 {
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
}

/* DUGME NAZAD U HEADERU */
.back-home {
  background: linear-gradient(45deg, #d4a373, #c19a6b, #8b6f47);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 10px;
  font-size: 0.7rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  position: absolute;
  right: 15px;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

.back-home:hover {
  background: linear-gradient(45deg, #c19a6b, #b8860b, #8b6914);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.8);
}


/* VIDEO KONTEJNER – identičan img sistemu, ali optimizovan za video */
.video-container {
  width: 100%;
  max-width: 900px; /* možeš menjati po želji */
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px; /* isto kao za slike */
  background: #000; /* da video dobije lep okvir */
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* MOBILNA VERZIJA */
@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
    margin: 10px auto;
    border-radius: 10px;
  }

  .video-container video {
    width: 100%; 
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }
}
