
/* =================================
   OSNOVNE POSTAVKE
================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f9fd;
  color: #486986;
  font-family: Georgia, serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =================================
   NASLOVNA
================================= */

.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background:
    linear-gradient(#8eb8d566, #8eb8d566),
    url("images/MAJICE/glavna.jpg") center/cover no-repeat;
}

.hero-content {
  color: white;
}

.hero h1 {
  font-size: clamp(65px, 12vw, 120px);
  letter-spacing: 14px;
  font-weight: normal;
}

.hero p {
  letter-spacing: 5px;
  margin: 15px 0 40px;
}

.hero-button {
  display: inline-block;
  padding: 16px 35px;
  color: #486986;
  background: white;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 12px;
  transition: 0.3s;
}

.hero-button:hover {
  background: #c9e3f8;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  color: white;
  text-decoration: none;
  font-size: 35px;
}


/* =================================
   NAVIGACIJA
================================= */

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 10;
}

.hero-nav .logo {
  color: white;
  font-size: 25px;
  letter-spacing: 4px;
  text-decoration: none;
  font-weight: bold;
}

.hero-nav div {
  display: flex;
  gap: 35px;
}

.hero-nav div a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  transition: 0.3s;
}

.hero-nav div a:hover {
  color: #c5e5ff;
}

.catalog-nav {
  position: relative;
  background: #486986;
}

.catalog-nav .logo,
.catalog-nav div a {
  color: white;
}

.catalog-nav div a:hover {
  color: #c5e5ff;
}


/* =================================
   KOLEKCIJA
================================= */

.collection {
  padding: 100px 8%;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: #8baecb;
  margin-bottom: 18px;
}

.collection h2 {
  font-size: 30px;
  letter-spacing: 3px;
  margin-bottom: 50px;
  font-weight: normal;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.category-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  text-decoration: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px;
  color: white;
  background: linear-gradient(transparent, #24435cbb);
}

.category-info h3 {
  font-size: 30px;
  letter-spacing: 5px;
}

.category-info p {
  margin-top: 10px;
}


/* =================================
   O NAMA
================================= */

.about {
  text-align: center;
  padding: 100px 20px;
  background: #dfedfa;
}

.about > p:last-child {
  max-width: 550px;
  margin: auto;
  line-height: 2;
}


/* =================================
   KATALOG
================================= */

.catalog {
  padding: 65px 8% 85px;
  text-align: center;
}

.catalog h1 {
  font-size: 55px;
  letter-spacing: 8px;
  font-weight: normal;
  margin-bottom: 15px;
}

.catalog-description {
  margin-bottom: 50px;
  color: #809cb5;
}


/* =================================
   FOTOGRAFI PROIZVODA
================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: left;
}

.product-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.product-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card:focus-visible {
  outline: 2px solid #719fc5;
  outline-offset: 4px;
}


/* =================================
   KONTAKT
================================= */

.contact {
  padding: 100px 20px;
  text-align: center;
  background: #dfedfa;
}

.contact h2 {
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 3px;
  margin: 20px 0;
}

.contact p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto;
  line-height: 2;
  color: #486986;
}

.contact-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 35px;
  border: 1px solid #719fc5;
  color: #486986;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  transition: 0.3s;
}

.contact-button:hover {
  background: #719fc5;
  color: white;
}


/* =================================
   FOOTER
================================= */

.footer {
  background: #486986;
  color: white;
  padding: 30px 5% 18px;
  text-align: center;
}

.footer-brand {
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

.footer a {
  color: #d6eafa;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 10px;
  letter-spacing: 1px;
}

.footer-bottom span:first-child {
  text-align: left;
}

.footer-credit {
  text-align: center;
}

.footer-bottom span:last-child {
  text-align: right;
}


/* =================================
   POPUP GALERIJA
================================= */

.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(35, 57, 76, 0.72);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.product-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #f4f9fd;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  animation: popupShow 0.3s ease;
}

@keyframes popupShow {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =================================
   GLAVNA SLIKA
================================= */

.modal-gallery {
  position: relative;
  width: 100%;
  background: #f4f9fd;
  overflow: hidden;
}

.modal-gallery > img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: #e4eff8;
}


/* =================================
   STRELICE
================================= */

.gallery-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #486986;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.left {
  left: 15px;
}

.gallery-arrow.right {
  right: 15px;
}


/* =================================
   MALE FOTOGRAFIJE
================================= */

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  background: #f4f9fd;
}

.gallery-thumbnails img {
  flex: 0 0 65px;
  width: 65px;
  height: 75px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.65;
  transition: 0.3s;
}

.gallery-thumbnails img.active {
  border-color: #719fc5;
  opacity: 1;
}

.gallery-thumbnails img:hover {
  opacity: 1;
}


/* =================================
   ZATVARANJE - X BEZ KRUGA
================================= */

.close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  border: none;
  background: transparent;
  color: #527da5;
  font-size: 35px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
}

.close-modal:hover {
  background: transparent;
  color: #24435c;
}


/* =================================
   MOBITELI
================================= */

@media (max-width: 700px) {

  .hero-nav {
    padding: 22px 5%;
  }

  .hero-nav div {
    gap: 12px;
  }

  .hero-nav div a {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero-nav .logo {
    font-size: 19px;
    letter-spacing: 2px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 420px;
  }

  .collection {
    padding: 65px 6%;
  }

  .catalog {
    padding: 55px 5% 65px;
  }

  .catalog h1 {
    font-size: 42px;
  }

  .catalog-description {
    margin-bottom: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .contact {
    padding: 75px 20px;
  }

  .contact h2 {
    font-size: 25px;
  }

  .footer-bottom {
    font-size: 8px;
    letter-spacing: 0;
    gap: 5px;
  }
}


/* =================================
   MOBILNI POPUP
================================= */

@media (max-width: 650px) {

  .modal-content {
    max-width: 430px;
  }

  .modal-gallery > img {
    height: 350px;
  }

  .gallery-thumbnails img {
    flex-basis: 55px;
    width: 55px;
    height: 65px;
  }

  .gallery-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

}


/* =================================
   MANJI MOBITELI
================================= */

@media (max-width: 380px) {

  .hero-nav {
    padding: 18px 4%;
  }

  .hero-nav div {
    gap: 8px;
  }

  .hero-nav div a {
    font-size: 8px;
  }

  .hero-nav .logo {
    font-size: 16px;
  }

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

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom span:first-child,
  .footer-credit,
  .footer-bottom span:last-child {
    text-align: center;
  }

}


/* =================================
   PRISTUPACNOST
================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

}
/* =================================
   POPRAVKA FOOTERA I POPUPA
================================= */

.footer {
  position: relative;
  z-index: 1;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.product-modal:not(.active) {
  display: none !important;
}

.product-modal.active {
  display: flex !important;
}