/* =========================
 *  Grid – termékek
 * ======================= */

.pp-shop-grid {
  margin: 0px auto 60px;                     /* középre igazítva */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* =========================
 *  Termék kártya
 * ======================= */

.pp-product-card {
  position: relative;                         /* hogy a buborékot aljára tudjuk rakni */
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;                       /* elég hely a buboréknak alul */
}

.pp-product-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.pp-product-body {
  padding: 16px 18px 18px;
}

.pp-product-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pp-product-title a {
  text-decoration: none;
  color: #111827;
}

/* SKU fent, külön sorban, finomabb stílussal */
.pp-product-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 6px;
}

/* === Fehér buborék: ár + db + Kosárba === */

.pp-add-to-cart-form {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);                /* vízszintesen középre igazítva */
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25); /* mint a pill-ek */
}

.pp-product-price {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.pp-qty-input {
  width: 56px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

/* Gomb a buborékban */

.pp-btn-add {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: #6F2DA8;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.pp-btn-add:hover {
  opacity: 0.92;
}

/* =========================
 *  Általános gombok
 * ======================= */

.pp-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.pp-btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #e5e7eb;
  color: #111827;
  font-size: 0.85rem;
  cursor: pointer;
}

.pp-btn-primary:hover,
.pp-btn-secondary:hover {
  opacity: 0.92;
}

/* =========================
 *  Kosár
 * ======================= */

.pp-cart {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 24px 30px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.16);
}

.pp-cart h2 {
  margin-top: 0;
}

.pp-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.pp-cart-table th,
.pp-cart-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.92rem;
}

.pp-cart-table input[type="number"] {
  width: 70px;
}

.pp-cart-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pp-cart-total {
  text-align: right;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.pp-cart-empty {
  text-align: center;
}

.pp-cart-message {
  padding: 10px 14px;
  background: #dcfce7;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* =========================
 *  Checkout form
 * ======================= */

.pp-checkout-form p {
  margin: 0 0 12px;
}

.pp-checkout-form input,
.pp-checkout-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 0.95rem;
}

/* =========================
 *  Single product template
 * ======================= */

.pp-single-product {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
}

.pp-single-gallery img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.pp-single-summary h1 {
  margin-top: 0;
}
/* Add-to-cart success state (zöld kör + pipa) */
.pp-btn-add{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, width .2s ease;
}

.pp-btn-add .pp-btn-text{
  transition: opacity .12s ease;
}

.pp-btn-add.is-loading{
  opacity: .75;
  pointer-events: none;
}

.pp-btn-add.is-added{
  background: #18b560 !important;
  border-color: transparent !important;

  /* kör */
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 999px !important;
}

.pp-btn-add.is-added .pp-btn-text{
  opacity: 0;
}

.pp-btn-add.is-added::after{
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.pp-btn-add{
  transition: 
    transform .15s ease,
    opacity .15s ease,
    background .35s ease,
    width .45s ease,
    min-width .45s ease,
    border-radius .45s ease,
    padding .45s ease;
}

.pp-btn-add::after{
  transition: opacity .25s ease;
}

.pp-btn-add.is-added::after{
  opacity: 1;
}
/* Trend / product kártyák – hover kiugrás */
.pp-product-card{
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
  z-index: 0;
}

.pp-product-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  opacity:0;
  transition: opacity .18s ease;
  background: linear-gradient(180deg,
    rgba(255,255,255,.10),
    rgba(0,0,0,.06)
  );
}

/* ha a kártya egy linket tartalmaz, hover legyen akkor is */
.pp-product-card:hover,
.pp-product-card:focus-within{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .28), 0 0 0 1px rgba(255,255,255,.85);
  filter: saturate(1.05);
  z-index: 2; /* ne vágja le a szomszéd */
}

.pp-product-card:hover::after,
.pp-product-card:focus-within::after{
  opacity: 1;
}

/* mozgáscsökkentés */
@media (prefers-reduced-motion: reduce){
  .pp-product-card,
  .pp-product-card::after{ transition:none !important; }
  .pp-product-card:hover,
  .pp-product-card:focus-within{ transform:none !important; }
}


