:root{
  --zms-bg:#f7f3ec;
  --zms-card:#fff;
  --zms-ink:#1c1814;
  --zms-muted:#8e8376;
  --zms-gold:#ad7d2f;
  --zms-gold2:#c9a35d;
  --zms-border:#e5dccf;
  --zms-radius:16px;
}
body.zmshop1-page{background:var(--zms-bg)!important}
body.zmshop1-page #primary,
body.zmshop1-page main,
body.zmshop1-page .site-main{max-width:1480px;margin-left:auto;margin-right:auto}

/* hide theme's raw category tiles after our section is built */
body.zmshop1-page.zmshop1-ready ul.products li.product-category{display:none!important}

.zmshop1-category-section{margin:18px auto 26px;padding:0 4px}
.zmshop1-category-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
.zmshop1-category-heading{margin:0;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(27px,3vw,38px);color:#51493f}
.zmshop1-allcats{color:var(--zms-gold)!important;text-decoration:none!important;font-weight:800;white-space:nowrap}
.zmshop1-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.zmshop1-cat-card{display:flex;align-items:center;gap:13px;min-height:100px;padding:12px;border:1px solid var(--zms-border);border-radius:15px;background:#fff;color:#1f1c18!important;text-decoration:none!important;box-shadow:0 7px 18px rgba(65,49,29,.035)}
.zmshop1-cat-thumb{width:78px;height:78px;flex:0 0 78px;border-radius:12px;overflow:hidden;background:#eee8df}
.zmshop1-cat-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.zmshop1-cat-name{display:block;font-size:18px;line-height:1.15;font-weight:800}
.zmshop1-cat-count{display:block;margin-top:5px;font-size:14px;color:#aaa095}

/* existing filter/search bar */
body.zmshop1-page .zmshop1-filter-wrap{margin:0 auto 22px;padding:16px;background:#f3ece3;border-radius:14px}
body.zmshop1-page .zmshop1-filter-wrap select{min-height:52px;border:1px solid #ded3c4;border-radius:7px;background:#fff;padding:0 14px}
body.zmshop1-page .zmshop1-filter-wrap button,
body.zmshop1-page .zmshop1-filter-wrap input[type=submit],
body.zmshop1-page .zmshop1-filter-wrap .button{background:linear-gradient(180deg,#c9a45f,#b48a42)!important;color:#fff!important;border:0!important;border-radius:0!important;font-weight:800!important}

/* results + ordering */
body.zmshop1-page .woocommerce-result-count{color:#756d64;font-size:16px}
body.zmshop1-page .woocommerce-ordering select{min-height:45px;border:1px solid #ddd3c6;border-radius:12px;background:#fff;padding:0 40px 0 14px}

/* products */
body.zmshop1-page.zmshop1-ready ul.products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  margin:0 auto 34px!important;
  padding:0!important;
}
body.zmshop1-page.zmshop1-ready ul.products::before,
body.zmshop1-page.zmshop1-ready ul.products::after{display:none!important}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category){
  float:none!important;width:auto!important;margin:0!important;padding:0 0 14px!important;
  overflow:hidden!important;background:#fff!important;border:1px solid var(--zms-border)!important;border-radius:var(--zms-radius)!important;
  box-shadow:0 9px 26px rgba(55,41,24,.05)!important;position:relative!important;
}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) img{
  display:block!important;width:100%!important;height:clamp(300px,27vw,450px)!important;object-fit:cover!important;margin:0!important;border-radius:0!important;background:#eee8df!important;
}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) h2,
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) h3{
  margin:12px 15px 7px!important;padding:0!important;font-size:clamp(18px,1.5vw,23px)!important;line-height:1.2!important;color:var(--zms-ink)!important;font-weight:800!important;
}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .price{
  display:block!important;margin:0 15px 10px!important;font-size:18px!important;line-height:1.2!important;color:var(--zms-gold)!important;font-weight:800!important;
}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .price *{color:inherit!important}
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .button,
body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) a.button{
  display:flex!important;align-items:center!important;justify-content:center!important;margin:4px 15px 0!important;width:calc(100% - 30px)!important;min-height:43px!important;padding:9px 12px!important;
  border:1px solid #ded3c4!important;border-radius:9px!important;background:#faf6ef!important;color:#6e5c43!important;font-size:14px!important;font-weight:800!important;box-shadow:none!important;text-decoration:none!important;
}
.zmshop1-quick{position:absolute;top:11px;right:11px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 3px 11px rgba(0,0,0,.08);display:grid;place-items:center;font-size:20px;cursor:pointer;z-index:4}

.zmshop1-lightbox{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(20,18,15,.78);backdrop-filter:blur(4px)}
.zmshop1-lightbox.is-open{display:flex}.zmshop1-lightbox-inner{position:relative;max-width:min(980px,94vw);max-height:90vh;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.zmshop1-lightbox img{display:block;max-width:100%;max-height:78vh;object-fit:contain;background:#eee8df}.zmshop1-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;font-size:24px;cursor:pointer}

@media(max-width:900px){
  body.zmshop1-page.zmshop1-ready ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0 10px!important}
  .zmshop1-category-section{padding:0 10px}.zmshop1-cat-thumb{width:68px;height:68px;flex-basis:68px}.zmshop1-cat-name{font-size:16px}
}
@media(max-width:600px){
  .zmshop1-category-head{align-items:end}.zmshop1-category-heading{font-size:27px}.zmshop1-allcats{font-size:13px}
  .zmshop1-category-grid{gap:10px}.zmshop1-cat-card{min-height:82px;padding:9px;gap:9px}.zmshop1-cat-thumb{width:58px;height:58px;flex-basis:58px}.zmshop1-cat-name{font-size:14px}.zmshop1-cat-count{font-size:12px;margin-top:3px}
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) img{height:clamp(210px,55vw,310px)!important}
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) h2,
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) h3{font-size:16px!important;margin:10px 11px 6px!important}
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .price{font-size:15px!important;margin:0 11px 8px!important}
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) .button,
  body.zmshop1-page.zmshop1-ready ul.products li.product:not(.product-category) a.button{width:calc(100% - 22px)!important;margin:3px 11px 0!important;font-size:12px!important;min-height:39px!important}
}

/* V1.2: korisnik želi Shop bez gornjih filtera (Boja / Kategorija / Pronađi slike). */
body.zmshop1-page .zmshop1-filter-wrap{display:none!important;}

/* V1.3: kompletno uklonjen gornji blok pretrage/filtera. */
body.zmshop1-page .zmshop1-search-removed{display:none!important;}

/* V1.4: uklonjena sekcija Pretraži po kategorijama. */
.zmshop1-category-section{display:none!important;}
