/* ------------------ RESET & ZMIENNE ------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fafaf0;
  --surface: #ffffff;
  --surface-2: #fdf9ef;
  --ink: #2f2f2f;
  --muted: #6b7280; /* szarość */
  --brand: #6EC627; /* zielony */
  --brand-700: #5cb224;
  --ring: #cdeab0;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, #fffff6 0%, var(--bg) 60%);
  color: var(--ink);
}

/* ------------------ LAYOUT ------------------ */
.one-product-page { padding: 2rem 0 0; }
.container { width: min(1200px, 92%); margin: 0 auto; }

.breadcrumbs { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.left-col { display: grid; gap: 1rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.subtle { background: var(--surface-2); }

/* ------------------ GALERIA ------------------ */
.image-card { padding: .75rem; }
.image-wrapper2 { position: relative; width: 100%; background: #fff; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.main-image { width: 100%; height: clamp(360px, 52vw, 520px); object-fit: contain; display: block; transition: transform .35s ease; }
.image-wrapper2:hover .main-image { transform: scale(1.02); }

.mini-photos { position: absolute; left: .75rem; bottom: .75rem; display: flex; gap: .5rem; }
.mini-photo { appearance: none; border: 0; padding: 0; background: transparent; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.mini-photo img { width: 76px; height: 76px; object-fit: cover; display: block; border-radius: 10px; border: 2px solid #fff; transition: transform .25s, border-color .25s; }
.mini-photo:hover img { transform: translateY(-2px); border-color: var(--brand); }

/* ------------------ OPIS POD ZDJĘCIEM ------------------ */
.product-description { padding: 1.25rem; }
.product-description h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.prose { color: #444; line-height: 1.7; }
.prose p + p { margin-top: .75rem; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.meta-label { font-size: .85rem; color: var(--muted); display: block; }
.meta-value { font-weight: 600; }

/* ------------------ PANEL PRAWY ------------------ */
.product-info { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.product-name { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
.product-short-desc { color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: .75rem; }
.product-price { font-size: 1.9rem; font-weight: 700; color: var(--brand); }

.quantity { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .25rem; }
.calc-container { display: inline-flex; align-items: center; gap: .35rem; background: #f3f4f6; border-radius: 12px; padding: .35rem; }
.calc-container button { width: 2.4rem; height: 2.4rem; font-size: 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; line-height: 1; }
.calc-input { width: 3rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

.product-info{
    margin-top:-18px;
}



/* Podstawowy styl dla przycisku koszyka i ulubionych */
.cart, .favorite-toggle {
    padding: 0 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform .02s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

/* Styl przycisku koszyka */
.cart {
    background-color: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    box-shadow: 0 8px 16px rgba(110, 198, 39, .2);
}

/* Efekt hover na przycisku koszyka */
.cart:hover {
    background-color: var(--brand-700);
    box-shadow: 0 12px 24px rgba(110, 198, 39, .28);
}

/* Styl przycisku ulubionych (puste serce) */
.favorite-toggle {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--ring);
}

/* Efekt hover na przycisku ulubionych */
.favorite-toggle:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Styl przycisku ulubionych, gdy produkt jest w ulubionych */
.favorite-toggle.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Stylizacja serca */
.cart .bx-cart, .favorite-toggle .bxs-heart,
.favorite-toggle.active .bxs-heart,
.favorite-toggle .bx-heart {
    margin-bottom: .5rem;
}

/* Pełne serce, gdy produkt jest w ulubionych */
.favorite-toggle.active .bxs-heart {
    color: red;  /* Czerwony kolor pełnego serca */
}

/* Puste serce przed dodaniem do ulubionych */
.favorite-toggle .bx-heart {
    color: rgb(255, 59, 0);  /* Kolor pustego serca */
}

/* Dodatkowe efekty - animacja powiększenia przy najechaniu */
.favorite-toggle:hover .bx-heart,
.favorite-toggle.active .bxs-heart {
    transform: scale(1.1);
}



.add-info-wrapper { display: flex; gap: .75rem; align-items: center; padding: .5rem .75rem; border-radius: 12px; }
.add-icon { width: 36px; height: 36px; }
.bullets { list-style: none; display: grid; gap: .35rem; color: var(--muted); }
.bullets li { display: flex; align-items: center; gap: .5rem; }

/* ------------------ TOAST KOSZYK ------------------ */
.cart-notification { position: fixed; right: 1rem; bottom: 1rem; background: #111; color: #fff; padding: .9rem 1rem; border-radius: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s, transform .3s; box-shadow: var(--shadow); z-index: 60; }
.cart-notification.show { opacity: 1; transform: translateY(0); }

/* ------------------ PODOBNE PRODUKTY ------------------ */
.information-section { padding: 2rem 0 3rem; background: linear-gradient(180deg, transparent, #f8f8f2); margin-top: 2rem; }
.title { font-size: 1.6rem; text-align: center; margin-bottom: 1rem; color: var(--brand); font-weight: 800; }
.diff-products-wrapper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1rem; overflow-x: auto; padding: .25rem 0 1rem; scroll-snap-type: x mandatory; }
.diff-product { scroll-snap-align: start; background: #fff; border-radius: 14px; padding: .5rem; text-align: center; transition: transform .2s, box-shadow .25s; box-shadow: var(--shadow); }
.diff-product:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.diff-product img { width: 100%; height: 150px; object-fit: contain; border-radius: 10px; margin-bottom: .5rem; }
.diff-product h3 { font-size: 1rem; margin: .25rem 0; color: var(--ink); }
.diff-product .price { font-weight: 700; color: var(--brand); }

/* ------------------ RESPONSYWNOŚĆ ------------------ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-info { position: static; }
}
@media (max-width: 768px) {
  .mini-photos { position: static; padding: .5rem; flex-wrap: nowrap; overflow-x: auto; }
  .image-card { padding-bottom: 0; }
  .main-image { height: 64vw; }
  .meta-grid { grid-template-columns: 1fr; }
  .cart, .favorite { flex: 1 1 auto; justify-content: center; }
}




.card { position: relative; }

.badge--promo {
  position: absolute;
  top: 16px; left: -7px;
  background: #e63946;
  color: #fff!important;
  padding: 10px 16px;
  font: 600 16px/1.1 "Poppins", system-ui;
  text-transform: uppercase; letter-spacing: .5px;
  border-radius: 1px 8px 8px 1px;

  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  z-index: 100;


  z-index: 3;             /* ponad obrazkiem (który zwykle ma z-index:auto/0) */
  pointer-events: none;   /* żeby hover na obrazku działał normalnie */
  transform: translateZ(0);
}