/* =========================================================
   V2 PRODUCT CARD – ROLLERPIAC GLASS UI (FINAL)
========================================================= */

/* === TELJES KÁRTYA (Woo product item) === */
.woocommerce ul.products li.product.rp-product {
  display: flex;
  flex-direction: column;

  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px 18px 22px 18px;
  margin-bottom: 28px !important;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(41,255,38,0.12) inset;

  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover lebegés */
.woocommerce ul.products li.product.rp-product:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(41,255,38,0.22) inset,
    0 0 25px rgba(41,255,38,0.25);
}

/* === TERMÉKKÉP === */
.woocommerce ul.products li.product.rp-product img {
  border-radius: 20px;
  margin-bottom: 14px;
  transition: transform .25s ease;
}

.woocommerce ul.products li.product.rp-product:hover img {
  transform: scale(1.03);
}

/* Cinematic fénycsík */
.woocommerce ul.products li.product.rp-product::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 140%;
  height: 26%;
  background: linear-gradient(
    290deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.05) 22%,
    rgba(255,255,255,0) 60%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  border-radius: 30px;
  pointer-events: none;
  z-index: 1;
  transform: translateY(calc(var(--rp-glass-offset, 0px) * -1));
  transition: transform 0.08s linear;
}

/* =========================================================
   KÁRTYA TARTALOM
========================================================= */

/* CÍM */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
}

/* KATEGÓRIA */
.product-category {
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
}

/* =========================================================
   ÁR MEGJELENÍTÉS (BALRA)
========================================================= */

.woocommerce ul.products li.product .price {
  color: #ffffff;
  font-weight: 600;
  margin: 10px 0;
  text-align: left;
}

.price del {
  opacity: 0.5;
}

.price ins {
  color: #29ff26;
  text-decoration: none;
}

/* =========================================================
   🔥 ADD TO CART GOMB KÖZÉPRE (A LÉNYEG)
========================================================= */

/* Woo alap float kikapcsolása */
.woocommerce ul.products li.product .button {
  float: none !important;
}

/* GOMB */
.woocommerce ul.products li.product .add_to_cart_button {
  align-self: center;   /* EZ teszi középre */
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 11px 26px;
  font-size: 14px;
  font-weight: 800;

  background: linear-gradient(90deg,#29ff26,#00c853);
  color: #000 !important;

  border: none;
  border-radius: 14px;

  box-shadow: 0 0 14px rgba(41,255,38,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(41,255,38,0.8),
    0 0 35px rgba(41,255,38,0.35);
}

/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 768px) {

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
  }

  .woocommerce ul.products li.product .add_to_cart_button {
    width: 100% !important;
    text-align: center;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  .woocommerce ul.products li.product .price {
    text-align: left;
  }
}

