.pgu-gallery-grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(var(--pgu-cols, 3), minmax(0, 1fr));
}
.pgu-gallery-card{
  display:block;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
}
.pgu-gallery-card__media{ aspect-ratio: 4/3; overflow:hidden; background:#f3f4f6; }
.pgu-gallery-card__img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .25s ease; }
.pgu-gallery-card:hover .pgu-gallery-card__img{ transform: scale(1.03); }
.pgu-gallery-card__meta{ padding:12px 14px; }
.pgu-gallery-card__title{ font-weight:600; color:#111827; }
.pgu-gallery-card__count{ margin-top:4px; font-size:12px; color:#6b7280; }
.pgu-gallery-card--empty{ border:1px dashed rgba(0,0,0,.08); background:transparent; box-shadow:none; }
.pgu-gallery-card--empty::before{ content:''; display:block; aspect-ratio:4/3; }


/* --- PGU product grid hover overlay (for [pgu_gallery]) --- */
.pgu-gallery-loop ul.products li.product{
  position:relative;
  overflow:hidden;
  border-radius:14px;
}
.pgu-gallery-loop ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
}
.pgu-gallery-loop ul.products li.product img{
  display:block;
  width:100%;
  height:auto;
}

/* create a dark overlay */
.pgu-gallery-loop ul.products li.product::after{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.38);
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
}

/* move price + button into an overlay area */
.pgu-gallery-loop ul.products li.product .price,
.pgu-gallery-loop ul.products li.product a.button{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
}

/* price above button */
.pgu-gallery-loop ul.products li.product .price{
  bottom:52px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  line-height:1;
}
.pgu-gallery-loop ul.products li.product a.button{
  bottom:14px;
  border-radius:999px;
  padding:10px 14px;
}

/* show on hover/focus */
.pgu-gallery-loop ul.products li.product:hover::after,
.pgu-gallery-loop ul.products li.product:focus-within::after{
  opacity:1;
}
.pgu-gallery-loop ul.products li.product:hover .price,
.pgu-gallery-loop ul.products li.product:focus-within .price{
  opacity:1;
  transform:translateX(-50%) translateY(-2px);
}
.pgu-gallery-loop ul.products li.product:hover a.button,
.pgu-gallery-loop ul.products li.product:focus-within a.button{
  opacity:1;
  transform:translateX(-50%) translateY(-2px);
}

/* optional: hide default Woo spacing so overlay looks tidy */
.pgu-gallery-loop ul.products li.product .price{ margin:0 !important; }
.pgu-gallery-loop ul.products li.product a.button{ margin:0 !important; }


/* --- Cart icon button styling --- */
.pgu-gallery-loop ul.products li.product a.button{
  width:44px;
  height:44px;
  padding:0;
  font-size:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  border-radius:50%;
}

/* hide Woo default icon if present */
.pgu-gallery-loop ul.products li.product a.button::before{
  content:'';
}

/* add cart icon */
.pgu-gallery-loop ul.products li.product a.button::after{
  content:'\f174';
  font-family:'dashicons';
  font-size:20px;
  line-height:1;
}

/* hover state */
.pgu-gallery-loop ul.products li.product a.button:hover{
  background:#000;
  transform:translateX(-50%) translateY(-2px) scale(1.06);
}

/* price slightly above icon */
.pgu-gallery-loop ul.products li.product .price{
  bottom:64px;
}


/* --- Strong overrides to beat theme styling --- */
.pgu-gallery-loop ul.products li.product{position:relative!important; overflow:hidden!important; border-radius:14px!important;}
.pgu-gallery-loop ul.products li.product .woocommerce-loop-product__title{display:none!important;}
.pgu-gallery-loop ul.products li.product a.button,
.pgu-gallery-loop ul.products li.product .button{ 
  width:44px!important;
  height:44px!important;
  padding:0!important;
  font-size:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#111!important;
  color:#fff!important;
  border-radius:50%!important;
  position:absolute!important;
  left:50%!important;
  bottom:14px!important;
  transform:translateX(-50%)!important;
  z-index:3!important;
  opacity:0!important;
  margin:0!important;
  min-width:0!important;
  border:0!important;
}
.pgu-gallery-loop ul.products li.product a.button::after,
.pgu-gallery-loop ul.products li.product .button::after{
  content:'\f174'!important;
  font-family:'dashicons'!important;
  font-size:20px!important;
  line-height:1!important;
}
.pgu-gallery-loop ul.products li.product .price{
  position:absolute!important;
  left:50%!important;
  bottom:64px!important;
  transform:translateX(-50%)!important;
  z-index:3!important;
  opacity:0!important;
  transition:opacity .18s ease, transform .18s ease!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;
  line-height:1!important;
  margin:0!important;
}
.pgu-gallery-loop ul.products li.product::after{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  background:rgba(0,0,0,.38)!important;
  opacity:0!important;
  transition:opacity .18s ease!important;
  pointer-events:none!important;
  z-index:2!important;
}
.pgu-gallery-loop ul.products li.product:hover::after,
.pgu-gallery-loop ul.products li.product:focus-within::after{ opacity:1!important; }
.pgu-gallery-loop ul.products li.product:hover .price,
.pgu-gallery-loop ul.products li.product:focus-within .price{ opacity:1!important; transform:translateX(-50%) translateY(-2px)!important; }
.pgu-gallery-loop ul.products li.product:hover a.button,
.pgu-gallery-loop ul.products li.product:focus-within a.button,
.pgu-gallery-loop ul.products li.product:hover .button,
.pgu-gallery-loop ul.products li.product:focus-within .button{ opacity:1!important; }


/* --- Apply the same overlay treatment on matching Woo product category archives --- */
.pgu-gallery-archive ul.products li.product{position:relative!important; overflow:hidden!important; border-radius:14px!important;}
.pgu-gallery-archive ul.products li.product .woocommerce-loop-product__title{display:none!important;}

.pgu-gallery-archive ul.products li.product::after{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  background:rgba(0,0,0,.38)!important;
  opacity:0!important;
  transition:opacity .18s ease!important;
  pointer-events:none!important;
  z-index:2!important;
}
.pgu-gallery-archive ul.products li.product:hover::after,
.pgu-gallery-archive ul.products li.product:focus-within::after{opacity:1!important;}

.pgu-gallery-archive ul.products li.product .price{
  position:absolute!important;
  left:50%!important;
  bottom:64px!important;
  transform:translateX(-50%)!important;
  z-index:3!important;
  opacity:0!important;
  transition:opacity .18s ease, transform .18s ease!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;
  line-height:1!important;
  margin:0!important;
}
.pgu-gallery-archive ul.products li.product:hover .price,
.pgu-gallery-archive ul.products li.product:focus-within .price{
  opacity:1!important;
  transform:translateX(-50%) translateY(-2px)!important;
}

.pgu-gallery-archive ul.products li.product a.button,
.pgu-gallery-archive ul.products li.product .button{
  width:44px!important;
  height:44px!important;
  padding:0!important;
  font-size:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#111!important;
  color:#fff!important;
  border-radius:50%!important;
  position:absolute!important;
  left:50%!important;
  bottom:14px!important;
  transform:translateX(-50%)!important;
  z-index:3!important;
  opacity:0!important;
  margin:0!important;
  min-width:0!important;
  border:0!important;
}
.pgu-gallery-archive ul.products li.product a.button::after,
.pgu-gallery-archive ul.products li.product .button::after{
  content:'\f174'!important;
  font-family:'dashicons'!important;
  font-size:20px!important;
  line-height:1!important;
}
.pgu-gallery-archive ul.products li.product:hover a.button,
.pgu-gallery-archive ul.products li.product:focus-within a.button,
.pgu-gallery-archive ul.products li.product:hover .button,
.pgu-gallery-archive ul.products li.product:focus-within .button{
  opacity:1!important;
}


/* --- PGU Archive Header + Breadcrumbs --- */
.pgu-gallery-header{ margin: 8px 0 18px 0; }
.pgu-gallery-title{ margin: 10px 0 0 0; font-size: 32px; line-height:1.1; }
.pgu-breadcrumbs{ margin: 0 0 10px 0; }
.pgu-breadcrumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0; align-items:center; }
.pgu-bc-item{ display:flex; align-items:center; gap:8px; }
.pgu-breadcrumbs a{ text-decoration:none; }
.pgu-breadcrumbs a:hover{ text-decoration:underline; }
.pgu-bc-sep{ opacity:.55; }

/* --- Compact price pill (override full-width themes) --- */
.pgu-gallery-loop ul.products li.product .price,
.pgu-gallery-archive ul.products li.product .price{
  display:inline-flex !important;
  width:auto !important;
  max-width:max-content !important;
  white-space:nowrap !important;
  padding:4px 8px !important;
  font-size:13px !important;
  font-weight:700 !important;
  border-radius:999px !important;
}

/* Single product image: show full photo */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img{
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}
