
:root {
  --bg: #f7f3ec;
  --bg-alt: #f3f0eb;
  --card: #fdf8f2;
  --accent: #ff9557;
  --ink: #27313a;
  --ink-soft: #5d6470;
  
  --shadow-soft: 0 14px 32px rgba(15, 18, 28, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top left,#fffdf8 0,#f7f3ec 42%,#f2ece3 100%);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.shell {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(247,243,236,0.97), rgba(247,243,236,0.9), transparent);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* sprečava prelom */
  gap: 0.55rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}


.logo-dot {
  width: 45px;     /* malo veće, možeš staviti 40px, 42px, itd. */
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* ne seče logo, čuva proporcije */
  display: block;
}

.logo-text {
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}

.main-nav a:not(.nav-cta) {
  padding-block: 0.45rem;  
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.16s ease-out;
}

.main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.9);
}

/* hero */

.hero {
  position: relative;
  padding: 4.4rem 0 4rem;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
 
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 2.6vw + 1.8rem, 3.1rem);
  line-height: 1.05;
  margin: 0 0 0rem;
}

.hero-lead {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg,#ff9557,#ffb774);
  color: #24110c;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn.ghost {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.04);
}

.btn.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-elevated {
  padding: 1rem;
}

/* sections */

.section {
  padding: 4rem 0;
}

.section-muted { background: #EFEAE4; }
.section-alt { background: #fbf8f5; }

.section-heading {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.row-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

/* what we do */

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.2rem;
}

.wwd-card {
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: 0 10px 24px rgba(15,18,28,0.12);
  border: 1px solid rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
}

#idea {
  background: #FFEAB9;
}

#sketch {
  background: #FFC953;
}

#digitalization{
  background: #B291E1;
}

#get{
  background: #EA7F79;
}

.wwd-card img {
  margin: -0.3rem -0.3rem 0.85rem;
  width: calc(100% + 0.6rem);
}

.wwd-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.wwd-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* carousel */

#products{
  background: #ecf5e2;
}

.carousel {
  position: relative;
  margin-top: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-track {
  scrollbar-width: none;        /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;                /* Chrome, Edge, Safari */
}

.carousel-track > article {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 0.8rem);
  max-width: calc(33.333% - 0.8rem);
}

#portfolio {
  background: #f9e0ca !important;
}

.product-card,
.portfolio-card {
  background: var(--card);
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15,18,28,0.16);
  
}

.product-card img,
.portfolio-card img {
  margin: -0.3rem -0.3rem 0.8rem;
  width: calc(100% + 0.6rem);

  aspect-ratio: 3 / 4;    /* ista forma kao Library slika */
  object-fit: cover;
}

.portfolio-card--img{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;          /* nema unutrašnjeg okvira */
}

.product-card h3,
.portfolio-card h3 {
  margin: 0 0 0.4rem;
}

.product-card p,
.portfolio-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.carousel-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav.prev { left: -0.6rem; }
.carousel-nav.next { right: -0.6rem; }

.carousel-dots {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.32rem;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  border: none;
  background: rgba(0,0,0,0.16);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 18px;
  background: var(--accent);
}

.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);     /* lagan backdrop */
  backdrop-filter: blur(3px);
  z-index: 1000;
}

.product-modal.is-open {
  display: flex;
}

.product-modal-dialog {
  background: rgba(255,255,255,0.80);  /* GLASS WHITE kao kartice */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);                   /* glavni tekst sajta */
  max-width: 980px;                   /* malo manji modal */
  width: min(980px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);  /* kao kartice */
  border: 1px solid rgba(255,255,255,0.65);
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.product-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-content {
  padding: 2.2rem 2.4rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);              /* tamniji tekst */
}

.product-modal-content h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  letter-spacing: 0.10em;
  color: var(--ink);
}

.product-modal-lead {
  margin: 0 0 1.2rem;
  font-weight: 500;
  color: var(--ink-soft);        /* svetliji opis */
}

.product-modal-list {
  margin: 1.3rem 0 1.8rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.product-modal-list li + li {
  margin-top: 0.3rem;
}

/* BUY BUTTON – svetla pill verzija */

.product-modal-buy {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: 0.2s;
}

.product-modal-buy:hover {
  background: white;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* Close dugme */

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  border: none;
  background: rgba(255,255,255,0.65);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.product-modal-close:hover {
  background: white;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
}

@keyframes modalSmooth {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.product-modal-dialog {
  animation: modalSmooth 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* about */

.about-shell {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 2.4rem;
  align-items: center;
}

.about-text .lead {
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.about-text h2 {
  font-size: 2rem;
}

/* footer */

.site-footer {
  background: #11141b;
  color: #f6f2e9;
  padding: 3.2rem 0 3rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-main h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.footer-main p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  max-width: 26rem;
  color: #d1c8b6;
}

.footer-meta {
  text-align: right;
}

.brand-line {
  margin-bottom: 0.6rem;
  color: #d1c8b6;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-end;
}

.footer-links a {
  color: #f6f2e9;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a:hover { opacity: 1; }

/* links */

.link-arrow {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* responsive */

@media (max-width: 960px) {
  .hero-shell,
  .about-shell {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-shell { gap: 2.1rem; }

  .hero-visual { order: -1; }

  .wwd-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .carousel-track > article {
    flex: 0 0 70%;
    max-width: 70%;
  }

  .main-nav { display: none; }

  .footer-shell {
    flex-direction: column;
    text-align: left;
  }

  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  .section { padding: 3.2rem 0; }

  .wwd-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .carousel-track > article {
    flex: 0 0 88%;
    max-width: 88%;
  }

  .carousel-nav.prev { left: 0; }
  .carousel-nav.next { right: 0; }
}


/* why we do this */

.section-why {
  background: #fdfaf4;
}

.why-card {
  background: #FFF1C7;
  padding: 2.4rem 2.8rem 2.5rem;
  box-shadow: 0 18px 40px rgba(10, 12, 20, 0.16);
  border: 1px solid rgba(255,255,255,0.9);
}

.why-card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 2.1rem;
}

.why-intro {
  margin: 0 0 1.6rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.why-quote {
  margin: 0;
  padding-left: 1.3rem;
  border-left: 3px solid #617b4c;
  color: #3c4650;
  font-size: 1.02rem;
  font-style: italic;
}

.why-quote footer {
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
}


/* =====================
   WHAT'S NEW – FINAL (BADGES ALIGNED, NO EMPTY SPACE)
===================== */

.section-new .new-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 980px){
  .section-new .new-grid{
    grid-template-columns: 1fr;
  }
}

/* =====================
   BASE CARD
===================== */

.section-new .new-card{
  position: relative; /* badge anchor */
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;

  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.section-new .new-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.08);
}

/* =====================
   BADGES – SAME ROW ON ALL CARDS
===================== */

.new-badge{
  position: absolute;
  top: 16px;     /* ✔ isti red */
  left: 16px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(97,123,76,0.18);
  color: #2f3b2a;
  border: 1px solid rgba(97,123,76,0.35);
}

.new-badge--deal{
  background: rgba(255,160,97,0.22);
  border-color: rgba(255,160,97,0.45);
  color: #5a2f18;
}

.new-badge--free{
  background: rgba(80,160,255,0.22);
  border-color: rgba(80,160,255,0.45);
  color: #14324f;
}

/* =====================
   CONTENT (shared)
===================== */

.section-new .new-card-content{
  padding: 52px 18px 16px; /* ✔ prostor za badge */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-new .new-card-content h3{
  margin: 0 0 4px;
}

.section-new .new-card-content p{
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  opacity: 0.9;
}

.section-new .new-card-content .link-arrow{
  margin-top: 6px;
  display: inline-flex;
  width: fit-content;
}

/* =====================
   FIRST CARD – TEXT LEFT / IMAGE RIGHT (thumbnail)
===================== */

.new-card-horizontal{
  display: grid !important;
  grid-template-columns: 1fr 200px;
  align-items: center;
}

@media (max-width: 980px){
  .new-card-horizontal{
    grid-template-columns: 1fr;
  }
}

/* prvo: content neka bude malo “šire” */
.new-card-horizontal .new-card-content{
  padding: 52px 18px 18px;
}

.new-card-horizontal .new-card-media{
  padding: 16px;
}

.new-card-horizontal .new-card-media img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* =====================
   2nd & 3rd – COMPACT, NO EMPTY SPACE
===================== */

.new-card-compact .new-card-media{
  padding: 12px 16px 16px;
  margin-top: -6px; /* ✔ zbijanje da nema “rupe” */
}

.new-card-compact .new-card-media img{
  width: 100%;
  height: 88px;      /* ✔ manja slika */
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.new-product-title{
  font-size: 1.35rem;     /* ⬆ veće */
  font-weight: 700;
  margin: 0;
}

.new-product-sub{
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: -2px 0 6px;     /* ⬅ popunjava prazan prostor */
}


/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem;
}

.blog-card {
  background: var(--card);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.9);
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.blog-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* =====================
   FIVERR
===================== */

.section-fiverr {
  background: #DDEED9;
}

.fiverr-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

/* LOGO-LIKE TITLE */

.fiverr-title{
  margin: 0 0 0.9rem;
  line-height: 1;
}

.fiverr-logo{
  display: block;
  font-size: 3rem;       /* ⬆ veći Fiverr */
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #1dbf73;          /* Fiverr green */
}

.fiverr-subtitle{
  display: block;
  margin-top: 2rem;     /* ⬆ veći razmak ispod FIVERR */
  font-size: 1.55rem;     /* ⬆ malo veće */
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em; /* ⬆ više vazduha */
}

/* TEXT LIST */

.fiverr-text ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.fiverr-text ul li:not(:last-child) {
  margin-bottom: 0.7rem;
}

/* NOTE CARD */

.fiverr-note {
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.small-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

/* IMAGE BELOW "GOOD TO KNOW" */

.fiverr-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 0.4rem;
  box-shadow: 0 12px 30px rgba(15,18,28,0.12);
  background: #fff;
}

.fiverr-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive tweaks for new sections */

@media (max-width: 960px) {
  .new-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .fiverr-shell {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Portfolio - image only cards */
.portfolio-card--img{
  padding: 1.05rem;
}

.portfolio-card--img img{
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;      /* kartice ostaju ujednačene */
  object-fit: cover;        /* u kartici može crop, to je ok */
  cursor: zoom-in;
}

/* =========================
   LIGHTBOX – IMAGE ONLY
   ========================= */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1400;
}

.lightbox.is-open{
  display: block;
}

/* tamni backdrop */
.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

/* nema dialog / okvira */
.lightbox-dialog{
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* centriranje slike */
.lightbox-content{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px; /* razmak od ivica ekrana */
}

/* PRIRODNA VELIČINA SLIKE */
.lightbox-img,
#lightboxImg{
  display: block;
  width: auto;
  height: auto;

  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);

  object-fit: contain;
  background: transparent;
}

/* CLOSE dugme – samo bijeli X */
.lightbox-close{
  position: fixed;
  top: 16px;
  right: 16px;

  width: auto;
  height: auto;
  padding: 6px;              /* malo veći klik area */
  border: 0;
  border-radius: 0;

  background: transparent;
  color: #fff;
  font-size: 34px;           /* po želji */
  line-height: 1;

  cursor: pointer;
  box-shadow: none;
  z-index: 2;
}

/* strelice – samo bijeli znakovi */
.lightbox-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: auto;
  height: auto;
  padding: 10px;             /* klik area */
  border: 0;
  border-radius: 0;

  background: transparent;
  color: #fff;
  font-size: 44px;           /* po želji */

  cursor: pointer;
  box-shadow: none;
  z-index: 2;
}

.lightbox-nav.prev{ left: 16px; }
.lightbox-nav.next{ right: 16px; }

/* opcionalno: blagi hover */
.lightbox-close:hover,
.lightbox-nav:hover{
  opacity: 0.85;
}

/* BLOG modal */
.blog-modal[aria-hidden="true"]{ display:none; }
body.modal-open{ overflow:hidden; }

.blog-modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 80;
}

.blog-modal-dialog{
  position: fixed;
  inset: 0;
  z-index: 81;
  display: grid;
  place-items: center;
  padding: 18px;
}

.blog-modal-body{
  width: min(920px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.blog-modal-close{
  position: fixed;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  z-index: 82;
}

.blog-modal-meta{
  margin: 0 0 6px;
  opacity: .75;
  font-size: 14px;
}

.blog-modal-content p{ line-height: 1.65; }
.blog-modal-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* list view inside modal */
.blog-list{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.blog-list-item{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,.08);
}

.blog-list-date{ opacity: .7; font-size: 14px; }
.blog-list-title{ font-weight: 700; }

/* =====================
   MOBILE / TABLET BURGER NAV (icon -> X)
===================== */

.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border: 0;                 /* nema kruga */
  background: transparent;   /* nema pozadine */
  cursor: pointer;
  padding: 0;
  position: relative;
  color: var(--ink);
}

/* 3 linije */
.nav-toggle span{
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease;
}

/* pozicije linija */
.nav-toggle span:nth-child(1){ top: 14px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 28px; }

/* kada je otvoreno -> X */
body.nav-open .nav-toggle span:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2){
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3){
  top: 21px;
  transform: rotate(-45deg);
}

/* backdrop */
.nav-backdrop{ display:none; }

/* IMPORTANT: otvori i na "malo vecoj od mobilne" */
@media (max-width: 1100px){
  .nav-toggle{ display:inline-block; }

  /* sakrij desktop nav dok je zatvoren */
  .main-nav{
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;

    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    padding: 14px;

    display: none;            /* zatvoren */
    flex-direction: column;
    gap: 10px;

    z-index: 1001;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  }

  body.nav-open .main-nav{ display:flex; }

  .nav-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1000;
  }
  body.nav-open .nav-backdrop{ display:block; }

  /* linkovi */
  .main-nav a{
    padding: 10px 12px;
    border-radius: 12px;
  }
  .main-nav a.nav-cta{
    width: fit-content;
  }

  body.nav-open{ overflow:hidden; }
}

/* desktop: normalni meni */
@media (min-width: 1101px){
  .main-nav{ display:flex !important; }
}

/* =====================
   PRODUCT MODAL – RESPONSIVE
===================== */

@media (max-width: 860px){
  .product-modal-dialog{
    width: min(720px, 94vw);
    max-height: 90vh;
  }

  .product-modal-layout{
    grid-template-columns: 1fr;      /* 1 kolona */
  }

  .product-modal-image{
    height: 240px;                  /* kontrolisana visina slike */
  }

  .product-modal-image img{
    height: 100%;
    object-fit: cover;
  }

  .product-modal-content{
    padding: 1.4rem 1.4rem;         /* manji padding */
  }

  .product-modal-content h2{
    font-size: 1.35rem;
  }

  .product-modal-close{
    top: 0.8rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px){
  .product-modal-dialog{
    width: 94vw;
    max-height: 92vh;
  }

  .product-modal-image{
    height: 200px;
  }

  .product-modal-content{
    padding: 1.2rem 1.1rem;
    font-size: 0.95rem;
  }

  .product-modal-buy{
    width: 100%;
    text-align: center;             /* dugme preko cele širine */
  }
}

/* =====================
   PRODUCT MODAL – SCROLL WITHOUT VISIBLE BAR
===================== */

/* dozvoli scroll u modalu */
.product-modal-dialog{
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* sakrij scrollbar – Chrome / Edge / Safari */
.product-modal-dialog::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* sakrij scrollbar – Firefox */
.product-modal-dialog{
  scrollbar-width: none;
}

/* sakrij scrollbar – IE / stari Edge */
.product-modal-dialog{
  -ms-overflow-style: none;
}
