
/* =========================================================
   WOOCOMMERCE / SKLEP
   ========================================================= */

/* Siatka produktów (docelowo max 4 kolumny z breakpointami) */
ul.products{
  display:grid !important;
  gap:20px !important;
  margin:0 !important;
  padding:0 !important;

  /* domyślnie duże ekrany */
  grid-template-columns:repeat(4,1fr) !important;
}
@media (max-width:1300px){
  ul.products{ grid-template-columns:repeat(3,1fr) !important; }
}
@media (max-width:900px){
  ul.products{ grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width:600px){
  ul.products{ grid-template-columns:1fr !important; }
}

/* usuń pseudo-elementy robiące “pusty kafelek” */
ul.products::before,
ul.products::after{
  content:none !important;
  display:none !important;
}

/* Kafelek produktu */
ul.products li.product{
  width:100% !important;
  margin:0 !important;
  float:none !important;

  display:flex !important;
  flex-direction:column !important;
  height:100% !important;

  border:0 !important;
  border-radius:8px !important;
  overflow:hidden;
  padding:0 !important;
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
ul.products li.product:hover{
  border:1px solid #bff747 !important;
  transform:translateY(-5px);
  box-shadow:0 10px 20px rgba(0,0,0,.1);
}

/* Link z treścią ma rosnąć */
ul.products li.product .woocommerce-LoopProduct-link{
  flex-grow:1 !important;
  display:flex !important;
  flex-direction:column !important;
}

/* Zdjęcie */
ul.products li.product img{
  width:100% !important;
  height:auto;
  object-fit:cover;
  margin:0 !important;
  border-radius:0 !important;
  margin-bottom:15px !important;
}

/* Teksty z paddingiem */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .button,
ul.products li.product .star-rating{
  padding-left:15px !important;
  padding-right:15px !important;
}

ul.products li.product .woocommerce-loop-product__title{
  font-size:1.1rem !important;
  font-weight:700;
  color:#fff;
  margin-bottom:10px;
  line-height:1.3;
}

ul.products li.product .price{
  font-size:1.2rem;
  color:#bff747;
  font-weight:700;
  display:block;
  margin-top:auto !important;
  margin-bottom:10px !important;
}

/* Przycisk */
ul.products li.product .button,
ul.products li.product .added_to_cart{
  margin-top:0 !important;
  align-self:center !important;
  margin-bottom:15px !important;

  background:#bff747 !important;
  color:#000 !important;
  border-radius:50px !important;
  padding:10px 20px !important;
  text-decoration:none;
}

/* Produkt single */
.single-product #secondary{ display:none !important; }
.single-product #primary{
  flex:0 0 100% !important;
  max-width:1200px !important;
  width:100% !important;
  margin:0 auto !important;
  float:none !important;
  display:block !important;
  padding-left:15px !important;
  padding-right:15px !important;
  margin-top:40px !important;
}
.single-product .row{ justify-content:center !important; }

/* Kolory linków i tabów */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{ background:#bff747 !important; }
.single_add_to_cart_button{ background:#bff747 !important; color:#000 !important; }
.product_meta a,
.woocommerce-breadcrumb a{ color:#bff747 !important; text-decoration:none !important; }

/* Archiwum sklepu szeroko */
.archive.woocommerce-page #primary{
  max-width:98% !important;
  width:98% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Mobile “poduszka” */
@media (max-width:767px){
  .archive.woocommerce-page #primary,
  .single-product #primary{
    width:100% !important;
    padding-left:30px !important;
    padding-right:30px !important;
    box-sizing:border-box !important;
  }
  ul.products{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}
