/***  product-list  ***/
.pagination>li{display:inline-block}
.product--attributes{
  margin:1.5em 0;
}
.product--specs { margin-top: 1em; width: 100%; border-collapse: collapse; }
.product--specs th { text-align: left; padding: .4em 1.2em .4em 0; color: #777; font-weight: 500; white-space: nowrap; vertical-align: top; }
.product--specs td { padding: .4em 0; color: #222; }
.product--specs tr { border-bottom: 1px solid #eee; }

/* generic attribute-filter sidebar (shop-attribute-filter widget) */
.pl-filters { display: flex; flex-direction: column; gap: 1.1rem; }
.pl-filter-group { border-bottom: 1px solid #eee; padding-bottom: .9rem; }
.pl-filter-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: .5rem; font-size: .92rem; color: #222; }
.pl-filter-clear { font-size: .78rem; font-weight: normal; color: #777; text-decoration: underline; }
.pl-filter-options { display: flex; flex-direction: column; gap: .35rem; }
.pl-filter-option { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: #444; cursor: pointer; font-weight: normal; }
.pl-filter-option input { width: 1rem; height: 1rem; cursor: pointer; }
.sidebar{
  display: none;
}
@media (min-width:800px) {
  .sidebar{
    display: inline-block;
  }
}

.pl, .pl *, .pl *::before, .pl *::after { box-sizing: border-box; }

/* category quick-strip: always visible, no widget placement needed */
.pl-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.pl-cat { display: inline-block; padding: .35rem .9rem; border: 1px solid #d8d8d8; border-radius: 999px; color: #333; text-decoration: none; font-size: .9rem; transition: border-color .15s, background .15s; }
.pl-cat:hover { border-color: #999; background: #f7f7f7; }

.pl-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; color: #555; font-size: .92rem; }
.pl-clear { margin-left: .5rem; text-decoration: underline; }
.pl-sort { display: flex; align-items: center; gap: .5rem; }
.pl-sort label { font-size: .85rem; color: #777; }
.pl-sort select { padding: .35rem .6rem; border-radius: 8px; border: 1px solid #d8d8d8; font: inherit; background: #fff; }

.pl-grid{
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  justify-content:center;
}
@media (min-width:540px) {
  .pl-grid{
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  }
}
.pl-grid-widget { grid-template-columns: repeat(auto-fit, minmax(200px,240px)); }

.pl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.pl-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: #ddd;
  transform: translateY(-2px);
}
.pl-thumb-link { display: block; }
.pl-thumb {
  position: relative;
  height: 200px;
  background-color: #f4f4f4;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: background-color .5s;
}
/* a plain neutral placeholder tone while the real photo (data-image) loads in; .pl-loaded (added once the
   swap is detected, see the script in shop-list.php/shop-product-grid.php) clears it so a photo that
   doesn't fill the box (background-size:contain) doesn't show a stale grey backdrop around it forever */
.pl-thumb.lazy:not(.pl-loaded) { background-color: #ececec; }
.pl-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: #fff;
}
.pl-badge-out { background: rgba(0,0,0,.72); }
.pl-badge-pre { background: #b26a00; }
.pl-badge-sale { background: #c0392b; }
.pl-quick-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--main-a-color, #222);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.pl-quick-add img { height: 20px; width: 20px; }
@media (hover: hover) {
  .pl-card:hover .pl-quick-add, .pl-quick-add:focus { opacity: 1; transform: none; }
}
@media (hover: none) {
  .pl-quick-add { opacity: .92; }
}
.pl-body { padding: .9rem 1rem 1.1rem; flex: 1; }
.pl-title { display: block; font-family: var(--hfont); color: var(--hcolor); font-weight: 600; line-height: 1.3; text-decoration: none; }
.pl-title:hover { text-decoration: underline; }
.pl-desc { margin-top: .35rem; font-family: var(--bfont); color: var(--bcolor); font-size: .88rem; }
.pl-price { margin-top: .5rem; }
.pl-price-now { font-weight: 700; color: #ff4545; font-size: 1.1rem; }
.pl-price del { margin-left: .4rem; color: #999; font-size: .85rem; font-weight: normal; }
.pl-footer { padding: 0 1rem 1rem; text-align: center; }
.pl-footer-2 { display: flex; gap: .5rem; align-items: center; justify-content: center; }

.pl-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: #777; }
.pl-empty svg { width: 56px; height: 56px; color: #bbb; margin-bottom: .75rem; }

/***   product  ***/
#imgZoom{
  margin:auto;
  margin-top:0;
  max-height: 600px;
}
#overlay{
  width:300px;
  height:300px;
  position:absolute;
  display:none;
  background-repeat:no-repeat;
  z-index:999999;
  background-color: rgba(200,200,200,0.9);
  border: 1px solid #ccc;
}
.thumbs>img{
  border:2px solid rgba(1,1,1,0.1);
}
.thumbs>img.tmb-selected{
  border:2px solid steelblue;
  max-height: 160px;
}
.product-view {
  display:grid;
  grid-gap:20px;
  background:white;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
.product-img {
  display:grid;
  grid-gap:20px;
  grid-template-columns: 1fr;
}
.product-img .thumbs img{
  max-width: 60px;
}

#overlay {
  visibility: hidden;
}

@media (min-width:600px) {
  .product-img {
    grid-template-columns: 80px 1fr;
  }
  .product-img .thumbs img{
    max-width: 100px;
  }
}
@media (min-width:900px) {
  .product-view {
    grid-template-columns: 1fr 1fr;
  }
  .product-img {
    grid-template-columns: 100px 1fr;
  }
  #overlay {
    visibility: visible;
  }
}

.widget-category-list ul,
.widget-shop-category-list ul{
  list-style: none;
  display: block;
  margin: auto;
  font: 18px Arial;
  line-height: 1.2;
  padding:0;
}
.widget-category-list ul li a,
.widget-shop-category-list ul li a{
  width:100%;
  margin:0;
  text-decoration: none;
}
.widget-category-list ul li,
.widget-shop-category-list ul li{
  padding: 8px;
}


#shop-cart-icon{display:none}
@media (max-width: 755px) {
    #shop-cart-icon{
      display: inline-block;
      border-radius: 50%;
      box-shadow: 0px 0px 4px #888;
      padding: 1em 0.8em;
      position: fixed;
      right: 10px;
      top: 10px;
      background: var(--header-bgcolor);
      color: var(--menu-color);
      z-index: 1000;
    }
    #shop-cart-btn{display:none}
}
