/* ===============================
   Jansma Haule – Product Archive
   =============================== */

/* Kleuren & basis */
:root{
  --jh-green:#476930;
  --jh-text:#1f1f1f;
  --jh-muted:#6b6b6b;
  --jh-border:#e9e9e9;
  --jh-bg:#f7f7f5;
  --jh-white:#fff;
}

body.archive.tax-product_cat,
body.post-type-archive-product{
  color: var(--jh-text);
}

body.tax-product_cat .full-width { width:1240px; }

.jh-card-cta-wrap .price{ display:none !important; }

body.tax-product_cat .jh-archive-grid ul.products li.product .jh-card-cta-wrap { display:grid;    grid-template-columns: 1fr 2fr; }

.woocommerce ul.products li.product .woocommerce-placeholder {
    border: 1px solid #f2f2f2;
    padding: 20px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
    opacity: 0.7;
    padding: 30px !important;
    box-sizing: border-box;
}

/* Koppen */
.archive .woocommerce-products-header__title.page-title{
  font-weight: 800;
  letter-spacing:.2px;
  color: var(--jh-green);
  margin: 24px 0 8px;
}

/* Result count & ordering */
.woocommerce .woocommerce-result-count{
  font-size:.9rem; color:var(--jh-muted);
}
.woocommerce .woocommerce-ordering select{
  border:1px solid var(--jh-border);
  background: var(--jh-white);
  padding:.6rem .8rem;
  border-radius:10px;
  font-size:.95rem;
}

/* GRID – maak het altijd strak */
.woocommerce ul.products{
  display:grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 600px){
  .woocommerce ul.products{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px){
  .woocommerce ul.products{ grid-template-columns: repeat(4,1fr); }
}

/* KAARTJE */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background: var(--jh-white);
  border:1px solid var(--jh-border);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color:#ddd;
}

/* Wishlist/heart icoon rechtsboven (YITH, etc.) */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .tinv-wraper{
  position:absolute; right:12px; top:12px; z-index:3;
}
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a,
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button{
  background:rgba(0,0,0,.04);
  border-radius:999px;
  padding:.45rem;
  line-height:0;
}

/* Afbeelding met vaste verhouding */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
}
.woocommerce ul.products li.product a img{
  width:100%;
  height:auto;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  aspect-ratio: 4 / 5;          /* houdt grid strak */
  padding:8px;
}

/* Titel + meta */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:1rem;
  font-weight:700;
  color:var(--jh-text);
  line-height:1.25;
  margin:.65rem 0 .35rem;
  display:-webkit-box;
  -webkit-line-clamp: 2;         /* 2 regels, rest ellipsis */
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 2.5em;             /* stabiele hoogte */
}
.woocommerce ul.products li.product .sku,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .product-supplier,
.woocommerce ul.products li.product .stock,
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .jh-extra-meta,
.woocommerce ul.products li.product .vendor,
.woocommerce ul.products li.product .verke-levering{
  display:none !important;       /* maak onrustige meta onzichtbaar */
}

/* Prijs */
.woocommerce ul.products li.product .price{
  color:var(--jh-green);
  font-weight:800;
  font-size:1.05rem;
  margin:.25rem 0 .6rem;
}
.woocommerce ul.products li.product .price del{
  color:var(--jh-muted);
  font-weight:500;
  margin-right:.35rem;
}
.woocommerce ul.products li.product .price ins{
  text-decoration:none;
}

/* Knoppen */
.woocommerce ul.products li.product .button{
  width:100%;
  background: var(--jh-green);
  color:#fff;
  border-radius:12px;
  padding:.65rem .9rem;
  font-weight:700;
  border:none;
  text-align:center;
  transition:filter .18s ease, transform .05s ease;
}
.woocommerce ul.products li.product .button:hover{
  filter: brightness(1.05);
}
.woocommerce ul.products li.product .added_to_cart{
  display:inline-block;
  margin-top:.5rem;
  font-size:.9rem;
  color:var(--jh-green);
}

/* Badges (sale/new) netjes linksboven */
.woocommerce span.onsale{
  position:absolute;
  left:12px; top:12px;
  background: var(--jh-green);
  color:#fff;
  border-radius:999px;
  padding:.25rem .55rem;
  font-weight:800;
  font-size:.75rem;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

/* Paginatie */
.woocommerce nav.woocommerce-pagination{
  margin:26px 0 40px;
  text-align:center;
}
.woocommerce nav.woocommerce-pagination ul{
  border:none; display:inline-flex; gap:6px; background:transparent;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:none; margin:0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px;
  border-radius:10px; border:1px solid var(--jh-border);
  background:#fff;
  font-weight:700; color:var(--jh-text);
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background: var(--jh-green); color:#fff; border-color:var(--jh-green);
}

/* Breadcrumbs (optioneel subtieler) */
.woocommerce .woocommerce-breadcrumb{
  color:var(--jh-muted);
}
.woocommerce .woocommerce-breadcrumb a{ color:var(--jh-green); }

/* Filter/toolbar blokjes netjes uitlijnen als je widgets/filters gebruikt */
.woocommerce .woocommerce-notices-wrapper{ margin:0 0 12px; }

/* ====== Jansma Haule – Archive Grid (scoped) ====== */
body.tax-product_cat .jh-archive-grid ul.products,
body.post-type-archive-product .jh-archive-grid ul.products{
  /* Zet flex van oude CSS uit en forceer grid */
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  margin: 0 0 30px 0;
  padding: 0;
  justify-content: initial;
}
@media (min-width: 600px){
  body.tax-product_cat .jh-archive-grid ul.products{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px){
  body.tax-product_cat .jh-archive-grid ul.products{ grid-template-columns: repeat(4,1fr); }
}

/* Kaartje basis – haal ‘pill’ look en 50x50 knopgedrag weg */
body.tax-product_cat .jh-archive-grid ul.products li.product{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  width: auto;
    margin: 0;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}
body.tax-product_cat .jh-archive-grid ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color:#ddd;
}

/* Afbeelding in vaste verhouding, rustig kader */
body.tax-product_cat .jh-archive-grid ul.products li.product a img{
  width: 100%;
  height: auto;
  object-fit: contain;
  background:#fff;
  border-radius: 12px;
      aspect-ratio: 7 / 4;
  padding: 8px;
}

/* Titel, prijs en knoppen strak */
body.tax-product_cat .jh-archive-grid .woocommerce-loop-product__title{
  font-size: 1rem; font-weight: 800; margin: .6rem 0 .35rem;
  line-height: 1.25; color:#1f1f1f;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
body.tax-product_cat .jh-archive-grid .price{
  color:#476930; font-weight: 800; font-size:1.05rem; margin:.2rem 0 .6rem;
}

/* — jouw CSS dwingt de knop naar 50x50 en verbergt tekst.
   Hier resetten we dat binnen de scope — */
body.tax-product_cat .jh-archive-grid li.product .button{
  width: 100% !important;
  height: auto !important;
  text-indent: 0 !important;
  padding: .65rem .9rem !important;
  border-radius: 12px !important;
  background: #476930 !important;
  color: #fff !important;
  font-weight: 700 !important;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
}

/* Wishlist/heart netjes in de hoek (als aanwezig) */
body.tax-product_cat .jh-archive-grid li.product .yith-wcwl-add-to-wishlist,
body.tax-product_cat .jh-archive-grid li.product .tinv-wraper{
  position:absolute; right:12px; top:12px; z-index:3;
}

/* Sale badge */
body.tax-product_cat .jh-archive-grid span.onsale{
  position:absolute; left:12px; top:12px;
  background:#476930; color:#fff; border-radius:999px;
  padding:.25rem .55rem; font-weight:800; font-size:.75rem;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

/* Paginatie neutral */
body.tax-product_cat nav.woocommerce-pagination ul{
  border:0; display:inline-flex; gap:6px; justify-content:center;
}
body.tax-product_cat nav.woocommerce-pagination li a,
body.tax-product_cat nav.woocommerce-pagination li span{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid #e9e9e9; background:#fff; font-weight:700; color:#1f1f1f;
}
body.tax-product_cat nav.woocommerce-pagination li span.current{
  background:#476930; color:#fff; border-color:#476930;
}

/* Rommel weg op de tiles (SKU, etc.) – pas aan naar wens */
body.tax-product_cat .jh-archive-grid .sku,
body.tax-product_cat .jh-archive-grid .product-supplier,
body.tax-product_cat .jh-archive-grid .stock,
body.tax-product_cat .jh-archive-grid .variations_form{ display:none !important; }

/* ========= JH override tegen Woo default floats/kolommen ========= */
body.tax-product_cat .woocommerce ul.products,
body.post-type-archive-product .woocommerce ul.products{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
  clear: both;            /* negeer clear uit Woo */
  margin: 0 0 30px 0 !important;
  padding: 0 !important;
}

@media (min-width: 600px){
  body.tax-product_cat .woocommerce ul.products{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px){
  body.tax-product_cat .woocommerce ul.products{ grid-template-columns: repeat(4,1fr); }
}

/* Haal Woo-floats/widths van tegels weg */
body.tax-product_cat .woocommerce ul.products li.product,
body.post-type-archive-product .woocommerce ul.products li.product{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px !important;
  position: relative;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  display: flex !important;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.tax-product_cat .woocommerce ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color: #ddd;
}

/* Afbeelding netjes kadreren */
body.tax-product_cat .woocommerce ul.products li.product a img{
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  padding: 8px;
}

/* Tekst/prijs */
body.tax-product_cat .woocommerce .woocommerce-loop-product__title{
  font-size: 1rem; font-weight: 800; color:#1f1f1f;
  margin: .6rem 0 .35rem;
  line-height: 1.25;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  min-height: 2.5em;
}
body.tax-product_cat .woocommerce .price{ color:#476930; font-weight:800; font-size:1.05rem; margin:.2rem 0 .6rem; }

/* Reset knop-icoon gedrag uit jouw/Woo CSS (50×50 en text-indent) */
body.tax-product_cat .woocommerce li.product .button{
  width: 100% !important;
  height: auto !important;
  text-indent: 0 !important;
  padding: .65rem .9rem !important;
  border-radius: 12px !important;
  background: #476930 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center; justify-content: center;
}

/* Sale badge, wishlist etc. (optioneel) */
body.tax-product_cat .woocommerce span.onsale{
  position:absolute; left:12px; top:12px;
  background:#476930; color:#fff; border-radius:999px; padding:.25rem .55rem; font-weight:800; font-size:.75rem;
}

/* Paginatie */
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul{
  border:0; display:inline-flex; gap:6px; justify-content:center;
}
body.tax-product_cat .woocommerce nav.woocommerce-pagination li a,
body.tax-product_cat .woocommerce nav.woocommerce-pagination li span{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid #e9e9e9; background:#fff; font-weight:700; color:#1f1f1f;
}
body.tax-product_cat .woocommerce nav.woocommerce-pagination li span.current{
  background:#476930; color:#fff; border-color:#476930;
}

/* Huisstijl-kleuren in Woo variabelen, alleen hier */
body.tax-product_cat{
  --woocommerce: #476930;
  --wc-green: #476930;
  --wc-primary: #476930;
  --wc-primary-text: #ffffff;
  --wc-secondary: #e9e9e9;
  --wc-secondary-text: #1f1f1f;
  --wc-content-bg: #fff;
}

/* Wrapper behoudt verhouding en toont skeleton */
.jh-thumbwrap{
  display:block;
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

/* Shimmer skeleton */
.jh-skeleton::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, #f2f2ee 25%, #ecebe6 37%, #f2f2ee 63%);
  animation: jh-shimmer 1.25s infinite linear;
  transform: translateX(-100%);
}
@keyframes jh-shimmer{ 
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}

/* Afbeelding blur-up (start zacht, vult netjes) */
.jh-blurimg{
  display:block;
  width:100%; height:auto;
  object-fit:contain;
  filter: blur(12px);
  transform: scale(1.02);
  transition: filter .3s ease, transform .3s ease, opacity .2s ease;
  background:#fff;            /* voor transparante PNG's */
  opacity: .85;
  aspect-ratio: 4 / 5;        /* houdt kaarten strak */
  padding:8px;                /* zelfde padding als je kaarten */
  border-radius:12px;
}

/* Zodra geladen: blur eraf en skeleton uit */
.jh-thumbwrap.jh-loaded .jh-blurimg{
  filter: blur(0);
  transform: none;
  opacity: 1;
}
.jh-thumbwrap.jh-loaded::before{ display:none; }

.jh-blurimg[data-jh-placeholder="1"]{
  filter: none;       /* placeholder scherp laten */
  opacity: 1;
}

/* Kaart moet een kolom-layout hebben (heb je waarschijnlijk al) */
.woocommerce ul.products li.product{
  display:flex; flex-direction:column;
}

/* CTA-blok onderaan de kaart */
.jh-card-cta{
  margin-top:auto;               /* duwt CTA naar beneden */
  display:flex; gap:10px; align-items:center;
}

/* Quantity input */
.jh-card-cta .jh-qty{
  width:72px; min-width:72px;
  text-align:center;
  padding:.6rem .5rem;
  border:1px solid #e2e2e2; border-radius:12px;
  font-weight:700;
  background:#fff;
}

/* Knop */
.jh-card-cta .button.jh-add-btn{
  flex:1 1 auto;
  display:inline-flex; align-items:center; justify-content:center;
  padding:.65rem .9rem;
  border-radius:12px; border:none;
  background:#476930; color:#fff; font-weight:700;
}
.jh-card-cta .button.jh-add-btn:hover{ filter:brightness(1.06); }

/* Voor heel smalle kaartjes op mobiel */
@media (max-width: 420px){
  .jh-card-cta{ gap:8px; }
  .jh-card-cta .jh-qty{ width:64px; min-width:64px; }
}

