/* Mohani Promocje — front. Kolory zgodne z motywem (beż/olive/blush). */
:root {
	--mp-primary: #B5A993;
	--mp-th: #878C75;
	--mp-secondary: #F1D1C7;
	--mp-text: #383838;
	--mp-radius: 15px;
}

/* ---------- Pkt 11: countdown ---------- */
.mp-countdown { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--mp-text); }
.mp-countdown--bar { padding: 0; background: transparent; border-radius: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.mp-countdown__clock { display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; }
.mp-cd-tile { display: inline-flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 10px; background: #eef1e8; border-radius: 0; line-height: 1.1; }
.mp-cd-tile > span:first-child { font-size: 1.25rem; font-weight: 700; }
.mp-cd-unit { margin-top: 3px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--mp-th); }
.mp-countdown__ended { color: var(--mp-th); }

/* ---------- Pkt 7: popup (styl jak popup newsletterowy) ---------- */
.mp-popup { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; }
.mp-popup.is-open { display: flex; }
.mp-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); cursor: pointer; }
.mp-popup__box { position: relative; z-index: 1; display: flex; width: 100%; max-width: 1040px; margin: 20px; background: #fff; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.15); min-height: 320px; max-height: 90vh; border-radius: 0; }
.mp-popup__image { display: none; width: 42%; flex-shrink: 0; background-color: #b5a993; }
.mp-popup__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-popup__content { flex: 1; position: relative; padding: 50px 44px 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: left; overflow: auto; }
.mp-popup__heading { margin: 0; font-family: "PP Pangaia", sans-serif; font-weight: 300; font-size: 2.1rem; line-height: 1.15; color: var(--mp-text); }
.mp-popup__text { margin: 0; color: var(--mp-text); }
.mp-popup__close { position: absolute; top: 14px; right: 16px; z-index: 2; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--mp-text); opacity: .5; transition: opacity .2s; }
.mp-popup__close:hover { opacity: 1; }
.mp-popup__btn { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; background: transparent; border: 1px solid #383838; border-radius: 0; font-family: "Satoshi", sans-serif; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #383838; cursor: pointer; text-decoration: none; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.mp-popup__btn:hover { background: #878c75; border-color: #878c75; color: #fff; }
@media (min-width: 724px) { .mp-popup__image { display: block; } }

/* ---------- Pkt 8: pasek darmowej dostawy ---------- */
.mp-fsbar { margin: 24px 0 12px; padding: 16px; background: #faf8f4; border-radius: 0; }
.minicart .mp-fsbar { margin: 0 0 12px; padding: 12px 14px; }
.mp-fsbar__progress { height: 8px; border-radius: 0; background: #e7e2d6; overflow: hidden; margin-bottom: 10px; }
.mp-fsbar__progress span { display: block; height: 100%; background: var(--mp-th); transition: width .4s ease; }
.mp-fsbar__msg { margin: 0; font-weight: 700; color: var(--mp-text); }
.mp-fsbar__msg strong,
.mp-fsbar__msg .woocommerce-Price-amount,
.mp-fsbar__msg .woocommerce-Price-currencySymbol { font-weight: 700; }
.mp-fsbar.is-reached { background: #eef1e8; }
.mp-fsbar.is-reached .mp-fsbar__progress span { background: var(--mp-th); }
.mp-fsbar.is-reached .mp-fsbar__msg { color: var(--mp-th); }
/* Podpowiedź kosztu dostawy w podsumowaniu — inline, ten sam font/weight/rozmiar co etykieta */
.cart-summary__shipping-hint { display: inline; font: inherit; color: inherit; margin-left: 4px; }

/* ---------- Badge promocji (karta produktu + strona produktu) ----------
   Ten sam wygląd co tagi motywu; kolor jak tag „promocja" (#c49387). */
.product-card__tag--promo,
.single-product-hero__tag.tag--promo { border-color: #c49387; color: #c49387; }
.mp-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Informacja o zestawie klienta na stronie produktu */
.mp-bundle-notice { margin: 16px 0; padding: 14px 16px; background: #eef1e8; border-left: 3px solid #878c75; }
.mp-bundle-notice__title { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: #878c75; margin-bottom: 4px; }
.mp-bundle-notice__text { margin: 0; font-size: .9rem; color: var(--mp-text); }

/* Pozycja gratis w koszyku */
.mp-bogo-badge,
.mp-gift-badge { display: inline-block; margin-left: 6px; background: var(--mp-th); color: #fff; font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .5px; padding: 2px 7px; border-radius: 0; vertical-align: middle; }
.mp-bogo-qty { font-weight: 600; }

/* ---------- Pkt 9/4: pasek prezentu + oferty ---------- */
.mp-gift-bar, .mp-offers { margin: 24px 0; }
.mp-gift-tier { padding: 16px; background: #faf8f4; border-radius: 0; margin-bottom: 12px; }
.mp-gift-tier.is-reached { background: #eef1e8; }
.mp-gift-bar__progress { height: 8px; border-radius: 0; background: #e7e2d6; overflow: hidden; margin-bottom: 10px; }
.mp-gift-bar__progress span { display: block; height: 100%; background: var(--mp-th); transition: width .4s ease; }
.mp-gift-bar__msg { margin: 0; font-weight: 700; }
.mp-gift-bar__msg strong,
.mp-gift-bar__msg .woocommerce-Price-amount,
.mp-gift-bar__msg .woocommerce-Price-currencySymbol { font-weight: 700; }
.mp-gift-bar__msg--ok { color: var(--mp-th); }
.mp-gift-choices, .mp-offer__products { display: flex; flex-wrap: wrap; gap: 12px; }
.mp-gift-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; padding: 10px; border: 2px solid transparent; border-radius: var(--mp-radius); background: #fff; cursor: pointer; }
.mp-gift-choice.is-active { border-color: var(--mp-th); }
.mp-gift-choice img, .mp-offer__item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.mp-gift-choice__name, .mp-offer__name { font-size: 12px; text-align: center; }
/* Segmentowy pasek postępu do ofert „dokup taniej" (na górze koszyka) */
.mp-offers-bar { padding: 16px 16px 8px; background: #faf8f4; border-radius: 0; margin: 24px 0 12px; }
.mp-offers-bar__msg { margin: 0 0 22px; font-weight: 700; color: var(--mp-text); }
.mp-offers-bar__msg .woocommerce-Price-amount,
.mp-offers-bar__msg .woocommerce-Price-currencySymbol { font-weight: 700; }
.mp-stepbar { position: relative; height: 6px; background: #e7e2d6; margin: 0 10px 40px; }
.mp-stepbar__fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--mp-th); transition: width .4s ease; }
.mp-stepbar__node { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.mp-stepbar__square { display: block; width: 16px; height: 16px; background: #fff; border: 2px solid #e7e2d6; box-sizing: border-box; }
.mp-stepbar__node.is-reached .mp-stepbar__square { background: var(--mp-th); border-color: var(--mp-th); }
.mp-stepbar__label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--mp-text); }
.mp-stepbar__node.is-reached .mp-stepbar__label { color: var(--mp-th); }
/* Skrajne etykiety kotwiczymy do środka, żeby nie wychodziły poza kontener */
.mp-stepbar__node:last-child .mp-stepbar__label { left: auto; right: 0; transform: none; }
.mp-stepbar__node:first-child .mp-stepbar__label { left: 0; right: auto; transform: none; }

.mp-offer { padding: 16px; background: #faf8f4; border-radius: 0; margin-bottom: 12px; }
.mp-offer__msg { font-family: "PP Pangaia", sans-serif; font-weight: 400; margin: 0 0 16px; font-size: 1.35rem; line-height: 1.2; }
/* Siatka kart produktów (Twoja karta) */
.mp-offer__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mp-offer .product-card { overflow: visible; } /* nie ucinaj przycisku „Dokup" */
/* Cena specjalna na czarno (zamiast beżu karty) */
.mp-offer .product-card__price .woocommerce-Price-amount,
.mp-offer .product-card__price .woocommerce-Price-currencySymbol { color: #000; }
.mp-offer__added { font-size: 12px; color: var(--mp-th); font-weight: 700; align-self: center; }
