/* 1) Spriječi kolaps margina na hero sekciji */
.home-hero{
  display: flow-root;              /* ili: overflow: hidden; */
}

/* 2) U tablet zoni eksplicitno zadaj dno hero-a, i ugasi svaki margin-top iduće sekcije */
@media (max-width: 850px){
  .home-hero{ padding-bottom: 30px !important; }   /* razmak ispod hero-a */
  .home-cats{ margin-top: 0 !important; }          /* da ništa ne “probije” gore */
}

/* 3) Ako tema na .col-full umeće top/bottom padding u tablet zoni, pregazi ga */
@media (max-width: 850px){
  .site-content .col-full{ padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* TEMP: vidi odakle dolazi vertikalni razmak 
.home-hero, .home-cats { outline: 2px solid rgba(255,0,0,.4); }
.home-cats__grid { outline: 2px dashed rgba(0,128,255,.4); }*/


/* =========================
   HOME HERO — BASE
   ========================= */
.home-hero .home-hero__inner{
  display: grid !important;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  grid-auto-rows: min-content;
  align-items: center;
  column-gap: 72px;
  margin: 0 auto;
  max-width: 100% !important;
  padding: 80px 0 0 0 !important;   /* top 80, ostalo 0 */
}
.home-hero .home-hero__copy{
  grid-column: 1 / 2;
  justify-self: start;
  max-width: 680px;
  padding-bottom: 140px;
}
.home-hero .home-hero__title{
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0 0 18px 0;
}
.home-hero .home-hero__lead{
  font-size: 22px;
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-width: 56ch;
}
.home-hero .home-hero__media{
  grid-column: 2 / 3;
  margin: 0;
}
.home-hero .home-hero__media img{
  display: block;
  width: 100%;
  height: 740px;
  object-fit: cover;
  border-radius: 0 !important;
}

/* ========== WIDE (≤1280px) HERO========== */
@media (max-width:1280px){
  .home-hero .home-hero__inner{
    padding: 60px 0 0 0 !important;  /* top 60 */
  }
  .home-hero .home-hero__copy{ padding-bottom: 0; }
  .home-hero .home-hero__media img{
    height: 500px;
  }
}

/* ========== TABLET (≤850px) HERO========== */
@media (max-width: 850px){
    
  .home-hero{
    padding-bottom:0 !important;
  } 

  .home-hero .home-hero__inner{
    display:flex !important;
    flex-direction:column;
    gap:0px;
    padding-top: 50px !important;
  }
  .home-hero .home-hero__inner::before{ content:none !important; }

  .home-hero .home-hero__copy{
    max-width:100%;
    padding-bottom:0;
  }
  .home-hero .home-hero__title{
    max-width:72%;
    padding-right:0;
    line-height:1.20;
  }
  .home-hero .home-hero__lead{ max-width:80%; }
  .home-hero .home-hero__media img{
    height:440px;
    border-radius:0;
    padding-top:14px;
  }
}

/* ========== MOBILE (≤580px) HERO========== */
@media (max-width: 580px){
  .home-hero .home-hero__inner{
    display:flex !important;
    flex-direction:column;
    gap:16px;
    padding-top: 50px !important;   /* vertikalni razmak */
  }
  .home-hero .home-hero__copy{ max-width:100%; padding-bottom:0; }
  .home-hero .home-hero__title{
    max-width:100%;
    font-size:clamp(36px, 6vw, 40px);
    line-height:1.3;
  }
  .home-hero .home-hero__lead{ 
      max-width:100%; 
      line-height:1.45;
  }
  .home-hero .home-hero__media img{
    width:100%;
    height:380px;
    border-radius:0;
    padding-top:0px;
  }
}

/* =========================
   HOME – CATEGORIES (BASE)
   ========================= */
.home-cats{ background:transparent; }
.home-cats__inner.col-full{ padding:0 !important; } /* makni bočni padding .col-full za ovu sekciju */
.home-cats__grid{
  list-style:none;
  margin:0;
  padding:0;
}

  .home-cats__heading{
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #111;
}

.home-cats__sublead{
  margin: 0 0 20px 0;
  font-size: 18px;
  line-height: 1.55;
  color: #444;
  max-width: 56ch;
}

/* ========== DESKTOP (≥1281px) CATEGORIES========== */
@media (min-width:1281px){
  .home-cats{ padding-top:120px !important; }
  .home-cats__inner{ max-width:100%; }

  .home-cats__grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0,1fr));
    gap:16px;
  }
  .home-cats__item{ text-align:left; }
  .home-cats__link{
    display:block; color:inherit; text-decoration:none;
  }
  .home-cats__figure{
    margin:0 0 8px 0;
    background:#f3f3f0;
    overflow:hidden;
    border-radius:0;
  }
  .home-cats__figure img{
    width:100%; height:100%; object-fit:cover; display:block;
    transform:scale(1); transition:transform .28s ease;
    border-radius:0 !important;
  }
  .home-cats__title{
    margin:0; 
    padding-left:10px;
    font-weight:600; 
    line-height:1.25;
    font-size:clamp(18px, 1.3vw, 22px);
  }
  .home-cats__link:hover .home-cats__figure img{ transform:scale(1.03); }
}

/* ========== WIDE (≤1280px) CATEGORIES========== */
@media (max-width:1280px){
  .home-cats{ padding:80px 0 0 0 !important; }

  .home-cats__grid{
    display:flex; gap:14px;
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }
  .home-cats__grid::-webkit-scrollbar{ display:none; }

  .home-cats__item{
    flex:0 0 320px;          /* fiksna širina kartice */
    scroll-snap-align:start;
  }
  .home-cats__figure,
  .home-cats__figure img{ border-radius:0 !important; }
  .home-cats__title{
    padding-left:10px;
    font-size:clamp(18px, 1.3vw, 22px);
    font-weight:600;
  }
}

/* ========== TABLET (≤850px) CATEGORIES========== */
@media (max-width:850px){
body.home #content.site-content > .col-full {
    padding-bottom: 0 !important;
  }    
  .home-cats{ padding-top:60px !important; }

  .home-cats__grid{
    display:flex; gap:12px;
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }
  .home-cats__grid::-webkit-scrollbar{ 
      display:none; 
  }

  .home-cats__item{ 
      flex:0 0 280px; scroll-snap-align:start; 
  }
      
  .home-cats__figure{
    margin:0 0 6px 0; 
    background:#f3f3f0; 
    overflow:hidden; 
    border-radius:0;
  }
  .home-cats__figure img{
    width:100%; 
    height:100%; 
    object-fit:cover; 
    display:block; 
    border-radius:0 !important;
  }
  .home-cats__title{
    margin:0;
    padding-left:8px; 
    font-size:18px; 
    font-weight:600; 
    line-height:1.25;
  }
}

/* ========== MOBILE (≤580px) CATEGORIES========== */
@media (max-width:580px){
  .home-cats{ padding: 60px 0 0 0 !important; }

  .home-cats__grid{
    display:flex; gap:12px;
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }
  .home-cats__grid::-webkit-scrollbar{ display:none; }

  .home-cats__item{ flex:0 0 220px; scroll-snap-align:start; }
  .home-cats__figure{ margin:0 0 6px 0; background:#f3f3f0; overflow:hidden; border-radius:0; }
  .home-cats__figure img{
    width:100%; height:300px; object-fit:cover; display:block; border-radius:0 !important;
  }
  .home-cats__title{
    margin:0; padding-left:8px; font-size:18px; font-weight:600; line-height:1.25;
  }
}


/* =========================
  /* =========================
   HOME CTA PRODUCT — BASE
   ========================= */

/* BASE DESKTOP CTA PRODUCT */
.home-cta-product .home-cta-product__inner{
  display: grid !important;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%); /* slika uža, tekst širi ako želiš */
  grid-auto-rows: min-content;
  align-items: center;
  column-gap: 72px;
  margin: 0 auto;
  max-width: 100% !important;
  padding: 120px 0 0 0 !important;
}

.home-cta-product .home-cta-product__media{
  grid-column: 1 / 2;
  margin: 0;
}

.home-cta-product .home-cta-product__media img{
  display: block;
  width: 100%;
  height: 740px;
  object-fit: cover;
  border-radius: 0 !important;
}

/* TEKST BLOK */
.home-cta-product .home-cta-product__copy{
    grid-column: 2 / 3;
  justify-self: start;
  max-width: 680px;
}

/* NASLOV I PARAGRAF */
.home-cta-product .home-cta-product__title{
  font-weight: 800;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0 0 18px 0;
}

.home-cta-product .home-cta-product__lead{
  font-size: 18px;
  line-height: 1.55;
  color: #444;
  margin: 0;
  max-width: 56ch;
}

/* ========== WIDE (≤1280px) CTA PRODUCT========== */
@media (max-width:1280px){
  .home-cta-product .home-cta-product__inner{
    padding: 80px 0 0 0 !important;
  }
  .home-cta-product .home-cta-product__media img{
    height: 500px;
  }
  
  .home-cta-product .home-cta-product__lead{
  max-width: 90%;
}
}

/* ========== TABLET (≤850px) CTA PRODUCT ========== */
@media (max-width: 850px){
  .home-cta-product .home-cta-product__inner{
    display:flex !important;
    flex-direction:column;
    gap:0px;
    padding-top:60px !important;
  }

  /* PRVO SLIKA, ONDA TEKST */
  .home-cta-product .home-cta-product__media{ order:1; }
  .home-cta-product .home-cta-product__copy{ order:2; }

  /* cijeli tekst blok centriran */
  .home-cta-product .home-cta-product__copy{
    max-width:100%;
    text-align:center;
  }

  .home-cta-product .home-cta-product__title{
    max-width:100%;
    padding-top:24px;
    margin:0 auto;          /* centriraj blok */
  }

  .home-cta-product .home-cta-product__lead{
    max-width:100%;
    padding:14px 60px 0px 60px;
    margin:0 auto;          /* centriraj blok */
  }

  .home-cta-product .home-cta-product__media img{
    height:680px;
  }

  /* ako imaš gumb, i njega centriraj */
  .home-cta-product .home-cta-product__btn{
    margin-top:26px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* ========== MOBILE (≤580px) CTA PRODUCT========== */
@media (max-width:580px){
  .home-cta-product .home-cta-product__inner{
    display:flex !important;
    flex-direction:column;
    gap:0px;
    padding-top: 60px!important;
  }

  /* PRVO SLIKA, ONDA TEKST */
  .home-cta-product .home-cta-product__media{ order:1; }
  .home-cta-product .home-cta-product__copy{ order:2; }

  .home-cta-product .home-cta-product__title{
    font-size:clamp(28px, 6vw, 36px);
    padding-top:20px;
  }

  .home-cta-product .home-cta-product__lead{
    font-size:17px; /* manji paragraf */
    max-width:100% !important;   /* pregazi 80% iz tableta */
    padding:14px 20px 0px 20px;
  }

  .home-cta-product .home-cta-product__media img{
    height:480px;
  }
}

/* =========================
   HOME CTA PRODUCT — BUTTON
   ========================= */

.home-cta-product .home-cta-product__btn {
  display: inline-block;
  margin-top: 16px;     /* veći razmak od paragrafa */
  font-size: 16px;              /* osnovna veličina */
  font-weight: 500;
  text-transform: uppercase;    /* velika tiskana slova */
  letter-spacing: 0.06em;       /* malo proreda */
  color: #111;                  /* crna kao i naslov */
  text-decoration: none;
  border-bottom: 1px solid #111; /* linija ispod */
  padding: 2px 0;               /* vertikalni razmak */
  transition: opacity .25s ease;
}

.home-cta-product .home-cta-product__btn:hover {
  opacity: .6;
}

/* Mobile tweak button*/
@media (max-width:580px){
  .home-cta-product .home-cta-product__btn {
    font-size: 14px;   /* mrvu manji tekst */
  }
}

/* Fix WooCommerce thumbnail hard-size limitation */
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}

/* =========================
   HOME – PRODUCTS 4 (BASE)
   ========================= */

.home-product-4{
  padding-top: 120px;
  background: transparent;
}

.home-product-4__inner.col-full{
  padding: 0 !important;
}

.home-product-4__title{
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #111;
}

.home-product-4__lead{
  margin: 0 0 20px 0;
  font-size: 18px;
  line-height: 1.55;
  color: #444;
  max-width: 56ch;
}

/* reset za UL – vrijedi na svim širinama */
.home-product-4__grid{
  list-style:none;
  margin:0;
  padding:0;
}

/* ITEM */
.home-product-4__item a{
  display: block;
  text-decoration: none;
  color: inherit;
  /* flex:0 0 320px;  -> premjesti u @media gdje je grid = flex slider */
}

.home-product-4__figure{
  width:100%;
  height: 350px;
  overflow: hidden;
  background:#f3f3f0;
  border-radius:0;
}

.home-product-4__figure img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
  transform: scale(1);
  transition: transform .3s ease;
  border-radius:0 !important;
}

/* title pod slikom */
.home-product-4__name{
  font-size: 18px;
  font-weight: 600;
  line-height:1.3;
  padding: 10px 4px 0;
}

/* hover efekt */
.home-product-4__item:hover img{
  transform: scale(1.03);
}

/* =========================
   HOME – PRODUCTS 4 (DESKTOP ≥1281px)
   ========================= */

@media (min-width: 1281px){
  .home-product-4__grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
}

/* =========================
   WIDE (≤1280px) PRODUCTS 4 – horizontalni slider
   ========================= */
@media (max-width:1280px){

  .home-product-4{
    padding-top: 80px;
  }

  .home-product-4__inner.col-full{
    padding: 0 !important;
  }

  .home-product-4__grid{
    display:flex;
    gap:16px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }

  /* sakrij scrollbar (po želji) */
  .home-product-4__grid::-webkit-scrollbar{
    display:none;
  }

  .home-product-4__item{
    flex:0 0 320px;          /* širina kartice na wide */
    scroll-snap-align:start;
  }

  .home-product-4__figure{
    height:320px;            /* malo niža slika nego na desktopu */
  }
}

/* =========================
   TABLET (≤850px) PRODUCTS 4
   ========================= */
@media (max-width:850px){

  .home-product-4{
    padding-top: 80px;
  }

  .home-product-4__grid{
    gap:14px;
  }

  .home-product-4__item{
    flex:0 0 280px;          /* uža kartica */
  }

  .home-product-4__figure{
    height:280px;
  }

  .home-product-4__name{
    font-size:17px;
    padding: 8px 4px 0;
  }
}

/* =========================
   MOBILE (≤580px) PRODUCTS 4
   ========================= */
@media (max-width:580px){

  .home-product-4{
    padding-top: 60px;
  }

  .home-product-4__grid{
    gap:12px;
  }

  .home-product-4__item{
    flex:0 0 220px;          /* još uža kartica – “carousel” osjećaj */
  }

  .home-product-4__figure{
    height:240px;
  }

  .home-product-4__name{
    font-size:16px;
    line-height:1.3;
    padding: 8px 2px 0;
  }
}

/* Remove all rounding on product images Product 4 */
/* Hard reset svih zaobljenja unutar product-4 sekcije */
.home-product-4,
.home-product-4 * {
  border-radius: 0 !important;
}

/* =========================
   HOME – CTA CATEGORY 2 (DESKTOP)
   ========================= */

.home-cta-category-2{
  padding-top: 120px;
  background: transparent;
}

.home-cta-category-2__inner.col-full{
  padding: 0 !important;
}

/* GRID layout – 2 u nizu */
@media (min-width:1281px){
  .home-cta-category-2__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
  }
}

/* ITEM / LINK / FIGURE */
.home-cta-category-2__item{
  position: relative;
  overflow: hidden;
}

.home-cta-category-2__link{
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
  color:inherit;
}

.home-cta-category-2__figure{
  width:100%;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  background:#f3f3f0;
}

.home-cta-category-2__figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
  display:block;
  border-radius:0 !important;
}

.home-cta-category-2__item:hover img{
  transform:scale(1.03);
}

/* TEXT OVERLAY – bottom left */
.home-cta-category-2__meta{
  position:absolute;
  left:32px;
  bottom:32px;
  z-index:2;
  text-align:left;
}

.home-cta-category-2__title{
  margin:0 0 0 0;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight:800;
  color:#111;
}

.home-cta-category-2__desc{
  display:block;
  font-size:18px;
  color:#444;
  line-height:1.5;
  max-width: 42ch;
}

/* =========================
   HOME – CTA CATEGORY 2 (WIDE ≤1280px)
   ========================= */

@media (max-width:1280px){
    
    .home-cta-category-2{
  padding-top: 80px;
    }
    
  /* kartice jedna ispod druge */
  .home-cta-category-2__grid{
    display:flex;
    flex-direction:column;
    gap:24px;
  }

  .home-cta-category-2__item{
    position:relative;
    overflow:hidden;
  }

  .home-cta-category-2__figure{
    width:100%;
    height: 580px;
    aspect-ratio: 4 / 3;   /* malo niži format na wide */
    overflow:hidden;
    background:#f3f3f0;
  }

  .home-cta-category-2__figure img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:0 !important;
  }

  /* tekst i dalje UNUTAR slike, dolje lijevo */
  .home-cta-category-2__meta{
    position:absolute;
    left:32px;
    bottom:32px;
    right:18px;          /* da tekst ne ide skroz u desni rub */
  }

  .home-cta-category-2__title{
    font-size:24px;
    margin:0 0 0 0;
  }

  .home-cta-category-2__desc{
    font-size:18px;
    max-width:100%;
  }
}

/* =========================
   HOME – CTA CATEGORY 2 (TABLET ≤850px)
   ========================= */

@media (max-width:850px){
    
    .home-cta-category-2{
  padding-top: 60px;
    }
}
/* =========================
   HOME – CTA CATEGORY 2 (MOBILE ≤580px)
   ========================= */
@media (max-width:580px){
    
    .home-cta-category-2{
  padding-top: 60px;
    }

  .home-cta-category-2__grid{
    gap:20px; /* manji razmak između kartica */
  }

  .home-cta-category-2__figure{
    aspect-ratio: 4 / 4.6; /* viši format slike na mobile */
    height: 420px;
  }

  .home-cta-category-2__meta{
    left:14px;
    bottom:16px;
    right:14px;
  }

  .home-cta-category-2__title{
    font-size:22px;
    margin:0 0 3px 0;
  }

  .home-cta-category-2__desc{
    font-size:16px;
    line-height:1.45;
  }
}

/* =========================
   HOME – ABOUT (BASE DESKTOP)
   ========================= */

.home-about{
  padding: 120px 0;
  background: transparent;
}

/* makni bočne paddove od .col-full za ovu sekciju */
.home-about__inner.col-full{
  padding: 0 !important;
}

.home-about__inner{
  display: grid !important;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  grid-auto-rows: min-content;
  align-items: center;
  column-gap: 72px;
  margin: 0 auto;
  max-width: 100% !important;
}

/* lijevi stupac – tekst */
.home-about__copy{
  grid-column: 1 / 2;
  justify-self: start;
  max-width: 680px;
}

.home-about__title{
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: clamp(32px, 3vw, 48px);   /* malo manje od hero H1 */
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #111;
}

.home-about__lead{
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  max-width: 56ch;
}

/* desni stupac – slika */
.home-about__media{
  grid-column: 2 / 3;
  margin: 0;
}

.home-about__media img{
  display: block;
  width: 100%;
  height: 840px;          /* kao i CTA product/hero */
  object-fit: cover;
  border-radius: 0 !important;
}

/* ========== WIDE (≤1280px) ABOUT ========== */
@media (max-width:1280px){
  .home-about{
    padding: 80px 0;
  }

  /* i dalje koristimo GRID, samo malo smanjimo gap i visinu slike */
  .home-about__inner{
    column-gap: 48px;
  }

  .home-about__media img{
    height: 680px;
  }
}

/* ========== TABLET (≤850px) ABOUT ========== */
@media (max-width:850px){
  .home-about{
    padding-top: 20px;
    padding-bottom:60px;
  }

  .home-about__inner{
    display:flex !important;
    flex-direction: column;    /* tekst gore, slika dolje */
    gap: 20px;
  }

  .home-about__copy{
    order:1;
    max-width:100%;
  }

  .home-about__media{
    order:2;
    width:100%;
  }

  .home-about__title{
    max-width: 80%;
  }

  .home-about__lead{
    max-width: 90%;
  }

  .home-about__media img{
    height: 780px;
  }
}

/* ========== MOBILE (≤580px) ABOUT ========== */
@media (max-width:580px){
  .home-about{
    padding: 60px 0;
  }

  .home-about__inner{
    gap: 20px;
  }

  .home-about__title{
    max-width: 100%;
    font-size: clamp(26px, 6vw, 32px);
    line-height: 1.2;
  }

  .home-about__lead{
    max-width: 100%;
    font-size: 17px;
  }

  .home-about__media img{
    height: 680px;
    padding-top:0;
  }
}