:root{--bg:#f6f3ee;--paper:#fff;--ink:#181613;--muted:#706a62;--gold:#9a7a46;--line:#e6dfd5;--dark:#1d1b18;--soft:#eee7dc}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}.topbar{background:#181613;color:#fff;text-align:center;padding:10px;font-size:12px}.header{display:flex;align-items:center;justify-content:space-between;padding:18px max(5vw,22px);background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.logo{font-weight:800;letter-spacing:1.4px}.nav{display:flex;gap:20px;font-size:13px;font-weight:700}.cartlink{background:var(--dark);color:#fff;padding:10px 14px;border-radius:999px}.cartcount{background:#fff;color:#111;border-radius:50%;display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:6px;font-size:11px}.hero{padding:85px max(6vw,25px);background:linear-gradient(145deg,#f6f3ee,#e7ddcf)}.hero h1{font-family:Georgia,serif;font-size:clamp(44px,7vw,86px);max-width:900px;margin:8px 0 18px}.hero p{max-width:720px;color:var(--muted);line-height:1.8}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--gold);font-weight:800}.section{padding:75px max(6vw,25px)}.section h2{font-family:Georgia,serif;font-size:42px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.filter{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;cursor:pointer}.filter.active{background:var(--dark);color:#fff}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}.cardimg{height:285px;background:#eee;display:grid;place-items:center}.cardimg img{width:100%;height:100%;object-fit:contain}.cardbody{padding:18px;display:flex;flex-direction:column;flex:1}.card h3{font-family:Georgia,serif;font-size:22px;margin:0 0 7px}.meta{font-size:12px;color:var(--muted);line-height:1.6}.price{font-weight:800;font-size:17px}.rowbetween{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:16px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--dark);color:#fff;border:0;border-radius:999px;padding:12px 17px;font-weight:800;cursor:pointer}.btn.secondary{background:#fff;color:#111;border:1px solid var(--dark)}.wrap{max-width:1180px;margin:auto;padding:45px 22px 90px}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:22px}.product{display:grid;grid-template-columns:1.05fr .95fr;gap:50px}.mainimg{background:#ddd;border-radius:22px;padding:14px}.mainimg img{display:block;width:100%;max-height:650px;object-fit:contain}.thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.thumbs button{border:1px solid var(--line);background:#fff;padding:3px;border-radius:8px;cursor:pointer}.thumbs img{width:70px;height:55px;object-fit:cover;display:block}.product h1{font-family:Georgia,serif;font-size:50px;margin:8px 0}.infoboxes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.infoboxes div{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px}.colors{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.color input{display:none}.color span{display:block;border:1px solid var(--line);background:#fff;padding:11px;text-align:center;border-radius:10px;cursor:pointer;font-size:12px;font-weight:700}.color input:checked+span{border:2px solid var(--gold);background:#f2eadf;padding:10px}.combo{width:100%;margin-top:10px;padding:11px;border:1px solid var(--line);border-radius:10px}.description{border-top:1px solid var(--line);margin-top:25px;padding-top:20px;color:var(--muted);line-height:1.75}.afteradd{display:none;margin-top:12px;padding:14px;background:#e9efe7;border-radius:12px}.afteradd.show{display:block}.cartbox{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.cartrow{display:grid;grid-template-columns:1fr auto;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.summary{background:var(--soft);border-radius:13px;padding:15px;margin-top:18px}.summary div{display:flex;justify-content:space-between;padding:6px}.footer{background:#161513;color:#aaa;padding:35px max(5vw,22px);font-size:12px;margin-top:50px}@media(max-width:850px){.grid{grid-template-columns:repeat(2,1fr)}.product{grid-template-columns:1fr}.nav{display:none}}@media(max-width:560px){.grid{grid-template-columns:1fr 1fr;gap:9px}.cardimg{height:190px}.cardbody{padding:12px}.card h3{font-size:17px}.product h1{font-size:38px}.colors{grid-template-columns:repeat(2,1fr)}}

/* ===== KATALOG V3 — ujednacene kartice, bez secenja slika ===== */
.grid{
  align-items:stretch;
  grid-auto-rows:1fr;
}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  box-shadow:0 5px 18px rgba(29,27,24,.045);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(29,27,24,.08);
  border-color:#d9d0c4;
}
.card .cardimg{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:330px;
  min-height:330px;
  padding:22px;
  overflow:hidden;
  background:#ecebea;
  border-bottom:1px solid var(--line);
}
.card .cardimg img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center center;
}
.card .cardbody{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:180px;
  padding:20px 20px 18px;
  background:#fff;
}
.card .cardbody h3{
  margin:0 0 8px;
  font-family:Georgia,serif;
  font-size:23px;
  line-height:1.2;
}
.card .cardbody h3 a{
  display:block;
}
.card .meta{
  min-height:42px;
  margin-bottom:12px;
  font-size:12px;
  color:var(--muted);
  line-height:1.65;
}
.card .rowbetween{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid #f0ece6;
}
.card .price{
  white-space:nowrap;
  font-size:18px;
  font-weight:800;
}
.card .btn{
  flex:0 0 auto;
  min-width:112px;
}

@media(max-width:1100px){
  .card .cardimg{height:300px;min-height:300px;padding:18px}
}
@media(max-width:850px){
  .card .cardimg{height:270px;min-height:270px}
  .card .cardbody{min-height:170px}
}
@media(max-width:560px){
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .card{border-radius:16px}
  .card .cardimg{height:180px;min-height:180px;padding:10px}
  .card .cardbody{padding:12px;min-height:158px}
  .card .cardbody h3{font-size:17px;margin-bottom:6px}
  .card .meta{font-size:10px;min-height:38px;line-height:1.5}
  .card .rowbetween{gap:6px;padding-top:10px}
  .card .price{font-size:13px}
  .card .btn{min-width:0;padding:9px 11px;font-size:11px}
}



/* ===== HOMEPAGE V5: products first, framed memory block below ===== */
#proizvodi.section{
  padding-top:46px;
}
.memory-wrap{
  padding-top:28px;
  padding-bottom:34px;
}
.memory-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  padding:38px 42px;
  border:1px solid rgba(151,126,91,.28);
  border-radius:28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(185,159,121,.14), transparent 34%),
    linear-gradient(145deg,#fff,#f7f2ea);
  box-shadow:0 18px 55px rgba(59,45,28,.08);
}
.memory-card:before{
  content:"";
  position:absolute;
  inset:9px;
  border:1px solid rgba(151,126,91,.12);
  border-radius:21px;
  pointer-events:none;
}
.memory-copy{
  position:relative;
  z-index:1;
  max-width:780px;
}
.memory-copy h2{
  margin:8px 0 13px;
  font-family:Georgia,serif;
  font-size:clamp(32px,4vw,52px);
  line-height:1.06;
  letter-spacing:-.02em;
}
.memory-copy p{
  margin:0;
  max-width:720px;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}
.memory-detail{
  position:relative;
  z-index:1;
  min-width:170px;
  padding:24px 20px;
  border-left:1px solid rgba(151,126,91,.22);
  text-align:center;
  color:#8d7450;
}
.memory-detail span{
  display:block;
  font-size:34px;
  line-height:1;
  margin-bottom:10px;
}
.memory-detail small{
  color:var(--muted);
  line-height:1.55;
  font-size:11px;
  letter-spacing:.03em;
}
@media(max-width:760px){
  #proizvodi.section{padding-top:30px}
  .memory-card{
    grid-template-columns:1fr;
    padding:28px 24px;
    border-radius:22px;
  }
  .memory-detail{
    min-width:0;
    border-left:0;
    border-top:1px solid rgba(151,126,91,.22);
    padding:18px 0 0;
  }
  .memory-copy p{font-size:14px}
}


/* ===== MOBILE PRODUCT CARD FIX V5.2 ===== */
@media (max-width: 760px){

  .card .rowbetween{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
    margin-top:14px !important;
  }

  .card .rowbetween .price{
    display:block !important;
    width:100% !important;
    white-space:nowrap !important;
    font-size:18px !important;
    line-height:1.2 !important;
    margin:0 !important;
  }

  .card .rowbetween .btn{
    display:flex !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    align-items:center !important;
    margin:0 !important;
    padding:12px 8px !important;
    border-radius:14px !important;
    font-size:14px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .cardbody{
    overflow:hidden !important;
  }
}
