:root{
  --bg: #ffffff;
  --ink: #0f172a;         /* tamno teget */
  --muted: #64748b;
  --line: #e7e9ee;

  --navy: #0b1b3a;
  --gold: #c9a24a;

  --soft: #f6f7fb;        /* “bez”/soft sekcije */
  --soft2:#fbfaf6;

  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar{
  position: sticky; top: 0;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{ width:36px; height:36px; }
.brand__text{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--navy);
}
.brand__text::after{
  content:" Natural Cosmetics";
  font-weight: 600;
  color: rgba(11,27,58,.65);
}

.nav{ display:flex; align-items:center; gap: 8px; }
.nav__link{
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(11,27,58,.85);
}
.nav__link:hover{ background: rgba(11,27,58,.06); }
.nav__link.is-active{
  background: rgba(201,162,74,.14);
  color: var(--navy);
}

.nav__cta{
  background: var(--navy);
  color: #fff;
}
.nav__cta:hover{ background: #07142d; }

.nav__toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius: 14px;
}
.nav__toggle span{
  display:block;
  height:2px; margin:6px 10px;
  background: var(--navy);
}

/* Main */
.app{ min-height: calc(100vh - 160px); }

.section{ padding: 64px 0; }
.section--soft{ background: var(--soft); }
.section--beige{ background: var(--soft2); }
.section__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:700;
  color: rgba(11,27,58,.7);
  letter-spacing:.3px;
  text-transform: uppercase;
  font-size: 12px;
}
.kicker::before{
  content:"";
  width:10px; height:10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,74,.18);
}

.h1{
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  margin: 12px 0 10px;
  color: var(--navy);
}
.h2{
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 10px;
  color: var(--navy);
}
.lead{ font-size: 16px; color: rgba(15,23,42,.76); max-width: 60ch; }
.muted{ color: var(--muted); }

.grad-title{
  background: linear-gradient(90deg, var(--navy), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btns{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  font-weight: 700;
}
.btn--primary{
  background: var(--navy);
  color:#fff;
  border-color: transparent;
}
.btn--primary:hover{ background:#07142d; }
.btn--ghost:hover{ background: rgba(11,27,58,.06); }

.badges{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top: 14px;
}
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(201,162,74,.14);
  border: 1px solid rgba(201,162,74,.22);
  font-weight: 650;
  color: rgba(11,27,58,.9);
  font-size: 13px;
}

/* Product grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.product{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding: 16px;
}
.product__name{ font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.product__meta{ font-size: 13px; color: var(--muted); margin:0; }
.product__tag{
  display:inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(11,27,58,.85);
  background: rgba(11,27,58,.06);
  border: 1px solid rgba(11,27,58,.10);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Form */
.form{
  display:grid;
  gap: 12px;
}
.input, .textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background:#fff;
}
.textarea{ min-height: 130px; resize: vertical; }

.footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: #fff;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items: center;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 900px){
  .section__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .nav__toggle{ display:inline-block; }
  .nav{
    position: absolute;
    right: 20px;
    top: 66px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    min-width: 220px;
  }
  .nav.is-open{ display:flex; }
}

.topbar__3col{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-text__main{
  font-weight:800;
  letter-spacing:2px;
  font-size:14px;
  color: var(--navy);
}

.brand-text__sub{
  font-size:11px;
  letter-spacing:2.4px;
  color: rgba(11,27,58,.6);
}

.brand-logo-center{
  display:flex;
  justify-content:center;
  align-items:center;
}

.brand-logo-center img{
  height:64px;           /* 👈 glavno: uvećan logo */
  width:auto;
  object-fit:contain;
}

.brand-logo-center img{
  height:68px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.15));
}

.nav{
  justify-self:end;
}

@media (max-width: 900px){
  .topbar__3col{
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo toggle"
      "text text";
    row-gap:10px;
  }

  .brand-logo-center{
    grid-area: logo;
  }

  .brand-text{
    grid-area: text;
    align-items:center;
    text-align:center;
  }

  .nav{
    right:20px;
    top:86px;
  }
}

.brand-logo-center img{
  transition: transform .25s ease, filter .25s ease;
}

.brand-logo-center:hover img{
  transform: scale(1.04);
  filter: drop-shadow(0 12px 26px rgba(11,27,58,.2));
}

@media (max-width: 900px){

  /* sakrij tekstualni brand */
  .brand-text{
    display: none;
  }

  /* header layout */
  .topbar__3col{
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  /* centriraj logo */
  .brand-logo-center{
    justify-self: center;
  }

  /* logo malo veći na mobitelu */
  .brand-logo-center img{
    height: 72px;
  }

}

@media (max-width: 900px){
  .topbar{
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 900px){

  /* sakrij tekstualni brand */
  .brand-text{
    display: none;
  }

  /* header kao referenca */
  .topbar{
    position: relative;
  }

  /* logo ide APSOLUTNO u centar ekrana */
  .brand-logo-center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .brand-logo-center img{
    height: 72px;
  }

  /* grid više ne određuje centar */
  .topbar__3col{
    grid-template-columns: 1fr auto;
  }

}

@media (max-width: 900px){

  /* sakrij tekst na mobitelu */
  .brand-text{ display:none; }

  /* header referenca */
  .topbar{ position: relative; }

  /* logo TAČNO u centru */
  .brand-logo-center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    translate: 0 -50%;          /* fino vertikalno centriranje */
    z-index: 2;
  }

  .brand-logo-center img{ height: 72px; }

  /* burger uvijek gore desno */
  .nav__toggle{
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  /* grid ne treba da gura ništa */
  .topbar__3col{
    display:block;              /* najjednostavnije */
    padding: 14px 0;
    min-height: 84px;           /* da logo ima mjesta */
  }

  /* dropdown meni da se otvara DESNO ispod burgera */
  .nav{
    right: 20px;
    top: 84px;                  /* ispod headera */
  }
}

.h1{
  line-height: 1.15;      /* umjesto 1.1 */
  padding-bottom: .12em;  /* da repovi slova imaju prostora */
}

.product{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
  transition: box-shadow .25s ease;
}

.product:hover{
  box-shadow: var(--shadow);
}

.product__image img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.product__body{
  padding:16px;
}

.product__name{
  margin:0 0 6px;
  font-weight:800;
  color: var(--navy);
}

.product__desc{
  margin:0;
  font-size:14px;
  color: var(--muted);
}

.product__desc--short{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.product__desc--full{
  display:none;
  margin-top:8px;
  color: var(--muted);
}

.product__toggle{
  margin-top:10px;
  background:none;
  border:none;
  cursor:pointer;
  width:100%;
  display:flex;
  justify-content:center;
}

.product__toggle .arrow{
  font-size:18px;
  transition: transform .25s ease;
}

.product.is-open .product__desc--short{
  display:none;
}

.product.is-open .product__desc--full{
  display:block;
}

.product.is-open .arrow{
  transform: rotate(180deg);
}

.product__body{
  transition: all .25s ease;
}

.product__toggle{
  margin-top:10px;
  background:none;
  border:none;
  cursor:pointer;
  width:100%;
  display:flex;
  justify-content:center;
  padding: 10px 0;
}

.product__toggle .chev{
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  transform: rotate(45deg);
  transition: transform .25s ease, opacity .25s ease;
  opacity: .9;
}

/* kad je otvoreno - rotiraj da "gleda" gore */
.product.is-open .product__toggle .chev{
  transform: rotate(-135deg);
}

.product__toggle:hover .chev,
.product__toggle:focus-visible .chev{
  opacity: 1;
  transform: rotate(45deg) scale(1.08);
}

.product.is-open .product__toggle:hover .chev,
.product.is-open .product__toggle:focus-visible .chev{
  transform: rotate(-135deg) scale(1.08);
}

/* wrapper za sliku – prati radius kartice */
.product__image{
  border-radius: 16px;      /* ili var(--radius) ako hoćeš isto kao card */
  overflow: hidden;
}

.product__image{
  height: 340px;
  overflow: hidden;
}

/* slika normalno */
.product__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .35s ease;

  transform: translateZ(0);
  will-change: transform;
}

.product__image:hover img{
  transform: scale(1.06);
}

.product__image{
  position: relative;
}

.product__image::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.06);
  opacity: 0;
  transition: opacity .35s ease;
}

.product:hover .product__image::after{
  opacity: 1;
}

/* da kartica djeluje klikabilno */
.product{
  cursor: pointer;
}

/* MODAL */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

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

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(10px);
}

.modal__dialog{
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalIn .18s ease-out;
}

@keyframes modalIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.modal__close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal__content{
  display:grid;
  grid-template-columns: 1fr 1fr;
}

.modal__image img{
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display:block;
}

.modal__text{
  padding: 22px;
}

@media (max-width: 900px){
  .modal__dialog{ margin: 24px auto; }
  .modal__content{ grid-template-columns: 1fr; }
  .modal__image img{ min-height: 260px; }
}

#modal-desc{
  white-space: pre-line;
  line-height: 1.6;
}

.modal__dialog{
  position: relative;
  width: min(920px, calc(100% - 28px));
  height: min(80vh, 680px);   /* 👈 KLJUČ */
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalIn .18s ease-out;
}

.modal__content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;              /* KLJUČ */
}

.modal__image{
  height: 100%;
}

.modal__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal__text{
  padding: 22px;
  overflow-y: auto;     /* 👈 KLJUČ */
}

@media (max-width: 900px){
  .modal__dialog{
    height: 90vh;
  }

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

  .modal__image{
    height: 220px;      /* slika gore, fiksna */
  }

  .modal__text{
    overflow-y: auto;
  }
}

.modal__text::after{
  content:"";
  position: sticky;
  bottom: 0;
  display: block;
  height: 24px;
  background: linear-gradient(transparent, #fff);
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal.is-open{
  display: flex;              /* 👈 umjesto block */
  align-items: center;        /* vertikalno centar */
  justify-content: center;    /* horizontalno centar */
  padding: 24px;              /* da ne lijepi uz ivice */
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(10px);
}

.modal__dialog{
  position: relative;
  z-index: 1;                 /* iznad overlay-a */
  margin: 0;                  /* 👈 ovo je bilo što ga je guralo gore */
}

#modal-desc strong{
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--navy);
}

#modal-desc{
  line-height: 1.65;
}

#modal-desc .modal-h{
  display: block;
  margin: 16px 0 8px;
  font-weight: 800;
  color: var(--navy);
}

/* generalno: da grid scroll radi kako treba */
.modal__content{
  height: 100%;
  min-height: 0;
}

.modal__text{
  min-height: 0;          /* 👈 KLJUČ */
  overflow-y: auto;       /* tekst scroll */
  background: #fff;       /* da nikad ne “prozirno” prelazi preko slike */
  padding-bottom: 28px;   /* da zadnje linije ne upadaju pod ivicu */
}

/* MOBILE */
@media (max-width: 900px){
  .modal.is-open{
    padding: 14px;        /* malo više prostora oko modala na mobitelu */
  }

  .modal__dialog{
    height: 90dvh;        /* 👈 bolje od 90vh na telefonu (adresna traka) */
    width: min(520px, calc(100% - 12px));
  }

  .modal__content{
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;  /* 👈 slika fiksno, tekst zauzme ostatak */
    height: 100%;
    min-height: 0;
  }

  .modal__image{
    height: 240px;
  }

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

.modal__text::after,
#modal-desc::after{
  content: none !important;
  display: none !important;
}

.modal{ z-index: 9999; }          /* iznad svega */

.modal__overlay{
  position: absolute;
  inset: 0;
  pointer-events: auto;           /* mora hvatati klik */
}

.modal__dialog{
  position: relative;
  z-index: 1;                     /* iznad overlay-a unutar modala */
}

/* STATIC INFO CARD – Zašto Magnolia? */
.product.product--static{
  cursor: default;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.product.product--static:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow);
}

.ig-link{
  color: var(--navy);
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease;
}
.ig-link:hover{
  opacity: 1;
  transform: translateY(-1px) scale(1.05);
}

#modal-price {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: rgba(0, 0, 0, 0.48);
  font-style: italic;
}

.card .muted strong {
  color: #111;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card .muted p {
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.65;
  margin-bottom: 16px;
}











