/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/




/* ============================================================
   UPSSELL – ROMANTIC BRAND POWER (MISTERGIFT)
============================================================ */

.mg-upsell-premium {
  display: flex;
  gap: 12px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

/* === KARTA BAZOWA === */
.mg-upsell-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #c1121f, #8a0f1a);
  box-shadow: 0 10px 26px rgba(193,18,31,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mg-upsell-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(193,18,31,.45);
}

/* delikatny połysk */
.mg-upsell-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px 120px at -10% -40%,
    rgba(255,255,255,.35),
    transparent 60%
  );
  opacity: .6;
  pointer-events: none;
}

/* IKONA – ROMANTYCZNA */
.mg-upsell-card .icon {
  font-size: 22px;
  opacity: .95;
}

/* TEKST – CZYTELNY */
.mg-upsell-card .content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.mg-upsell-card .content span {
  display: block;
  font-size: 12px;
  opacity: .9;
}

/* CTA – JASNY, WIDOCZNY */
.mg-upsell-card .cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #ffffff;
  white-space: nowrap;
}

/* ============================================================
   WARIANTY PRODUKTÓW – TEN SAM STYL, INNY AKCENT
============================================================ */

/* MIS – ROMANTYCZNA CZERWIEŃ (SPOJNA Z BRAND) */
.mg-upsell-card.mis {
  background: linear-gradient(
    135deg,
    #f03e38 0%,
    #e03131 100%
  );
  box-shadow: 0 6px 16px rgba(240,62,56,.35);
}

/* TERMOS – CZYSTA CZERWIEŃ / ELEGANCJA */
.mg-upsell-card.termos {
  background: linear-gradient(
    135deg,
    #fa5252 0%,
    #f03e38 100%
  );
  box-shadow: 0 6px 16px rgba(240,62,56,.30);
}

/* ============================================================
   📱 MOBILE – JESZCZE WIĘCEJ „WOW”
============================================================ */

@media (max-width: 640px) {

  .mg-upsell-premium {
    flex-direction: column;
    gap: 14px;
  }

  .mg-upsell-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .mg-upsell-card .icon {
    font-size: 26px;
  }

  .mg-upsell-card .content strong {
    font-size: 16px;
  }

  .mg-upsell-card .content span {
    font-size: 13px;
  }

  .mg-upsell-card .cta {
    font-size: 13px;
    padding: 7px 12px;
  }
}
/* ============================================================
   UPSSELL – WYMUSZENIE BIAŁEJ CZCIONKI (SAFE)
============================================================ */

.mg-upsell-card,
.mg-upsell-card:hover,
.mg-upsell-card * {
  color: #ffffff !important;
}






/* ============================================================
   WAPF – MOBILE ONLY
   1 IMAGE SWATCH = 100% WIDTH + CENTER
============================================================ */

@media (max-width: 768px) {

  /* kontener swatchy */
  .single-product form.cart 
  .wapf-image-swatch-wrapper {
    display: block !important;
    width: 100% !important;
  }

  /* pojedynczy swatch */
  .single-product form.cart 
  .wapf-swatch {
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* obrazek w swatchu */
  .single-product form.cart 
  .wapf-swatch-image {
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product form.cart 
  .wapf-swatch-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}
/* TYLKO: Zamawiam zestaw z GRATISem */
label.wapf-swatch:has(input[data-field-id="47eeca"]) 
.wapf-swatch-label {
    font-weight: 800;
    color: #e10600;
    font-size: 18px;
}

/* fallback – tylko to pole */
.wapf-swatch input[data-field-id="47eeca"] {
    position: absolute;
    opacity: 0;
}

.wapf-swatch input[data-field-id="47eeca"]
  ~ .wapf-swatch-label {
    font-weight: 800;
    color: #e10600;
    font-size: 18px;
}
.pozorny-wybor .wapf-swatch-label {
    color: #d60000;
    font-weight: 900;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* =========================================
   SALIENT – SECONDARY HEADER FORCE RED
========================================= */

/* CAŁA BELKA (zielona → czerwona) */
#header-secondary-outer,
#header-secondary-outer.default {
  background-color: #c40000 !important;
}

/* reset stylów mobilnych Salienta */
@media (max-width: 1000px) {
  #header-secondary-outer,
  #header-secondary-outer.default {
    background-color: #c40000 !important;
  }
}

/* =========================================
   PROMO TEKST
========================================= */

#header-secondary-outer .promo-line {
  display: inline-block !important;
  color: #ffffff !important;

  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  padding: 8px 12px !important;
  text-align: center !important;
}

/* DARMOWA DOSTAWA */
#header-secondary-outer .promo-line b {
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

/* GRATIS – kapsuła */
#header-secondary-outer .promo-gratis {
  display: inline-block !important;

  background: #ffffff !important;
  color: #c40000 !important;

  padding: 3px 10px !important;
  margin-left: 6px !important;

  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* =========================================
   ANIMACJA – KOMPATYBILNA (CHROME / SAFARI)
========================================= */

@keyframes promoPulseSafe {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

#header-secondary-outer .promo-gratis {
  animation: promoPulseSafe 1.4s infinite !important;
}

/* =========================================
   MOBILE – GRATIS POD TEKSTEM
========================================= */

@media (max-width: 768px) {
  #header-secondary-outer .promo-line {
    font-size: 16px !important;
  }

  #header-secondary-outer .promo-gratis {
    display: block !important;
    margin: 6px auto 0 !important;
    width: max-content !important;
  }
}
/* ===============================
   SALIENT – FORCE SECONDARY HEADER
   DZIAŁA: Chrome / Safari / Firefox / Mobile
=============================== */

#header-secondary-outer,
#header-secondary-outer.default,
#header-secondary-outer[data-mobile-fixed="1"],
body #header-secondary-outer {
  background-color: #c40000 !important;
  background-image: none !important;
}

/* mobile fallback */
@media (max-width: 1000px) {
  #header-secondary-outer,
  #header-secondary-outer.default,
  body #header-secondary-outer {
    background-color: #c40000 !important;
  }
}
/* ===============================
   PROMO TEXT – CROSS BROWSER SAFE
=============================== */

#header-secondary-outer .promo-line {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  display: block !important;
}

/* darmowa dostawa */
#header-secondary-outer .promo-line b {
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

/* GRATIS – kapsuła, BEZ animacji */
#header-secondary-outer .promo-gratis {
  display: inline-block !important;
  background-color: #ffffff !important;
  color: #c40000 !important;
  padding: 3px 10px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
@media (max-width: 768px) {
  #header-secondary-outer .promo-gratis {
    display: block !important;
    margin: 6px auto 0 !important;
    width: max-content !important;
  }
}
/* ============================================================
   BADGE – DARMOWA DOSTAWA (INPOST)
============================================================ */

.mg-free-shipping-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;

    background: #e6f9ec;
    color: #0a8f3c;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;

    border-radius: 999px;
    white-space: nowrap;
}

/* mobile */
@media (max-width: 768px) {
    .mg-free-shipping-badge {
        display: block;
        margin: 6px 0 0 32px;
        width: fit-content;
    }
}


/*----------------------------------------
 * BANER GWARANCJA DOSTAWY
 * -------------------------------------*/

/* ============================================================
   ❤️ WALENTYNKI – GWARANCJA DOSTAWY (WOW BANNER)
============================================================ */

.mg-valentine-guarantee {
    position: relative;
    margin-bottom: 22px;
    border-radius: 18px;
    padding: 3px;

    background: linear-gradient(
        135deg,
        #ff4d6d,
        #f03e38,
        #ff758f
    );

    box-shadow: 0 14px 34px rgba(240,62,56,.35);

}

.mg-valentine-inner {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;
    border-radius: 15px;
    padding: 20px 22px;
}

/* ❤️ IKONA */
.mg-valentine-icon {
    font-size: 34px;
    line-height: 1;
    animation: mgHeartPulse 1.8s ease-in-out infinite;
}

/* 📝 TEKST */
.mg-valentine-text {
    flex: 1;
}

.mg-valentine-title {
    font-size: 20px;
    font-weight: 900;
    color: #c40000;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

.mg-valentine-title span {
    display: inline-block;
    color: #f03e38;
    font-size: 22px;
    text-transform: uppercase;
}

.mg-valentine-sub {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.35;
}

.mg-valentine-sub strong {
    color: #c40000;
    font-weight: 800;
}

/* ✨ GLOW ANIMATION */
@keyframes mgValentineGlow {
    0%   { box-shadow: 0 10px 26px rgba(240,62,56,.28); }
    50%  { box-shadow: 0 18px 42px rgba(240,62,56,.45); }
    100% { box-shadow: 0 10px 26px rgba(240,62,56,.28); }
}

/* ❤️ SERCE */
@keyframes mgHeartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    .mg-valentine-inner {
        gap: 14px;
        padding: 18px;
    }

    .mg-valentine-icon {
        font-size: 30px;
    }

    .mg-valentine-title {
        font-size: 18px;
    }

    .mg-valentine-title span {
        font-size: 20px;
    }

    .mg-valentine-sub {
        font-size: 14px;
    }
}
/* ============================================================
   ❤️ WALENTYNKI – GLOW (CHROME / MOBILE SAFE)
============================================================ */

.mg-valentine-guarantee {
    position: relative;
    margin-bottom: 22px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, #ff4d6d, #f03e38, #ff758f);
    overflow: hidden;
}

/* 🔥 GLOW LAYER – jedyny animowany element */
.mg-valentine-guarantee::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle,
        rgba(255,77,109,.45) 0%,
        rgba(255,77,109,.25) 30%,
        transparent 65%
    );
    opacity: .6;
    animation: mgGlowPulseSafe 2.4s ease-in-out infinite;
    pointer-events: none;
    transform: scale(1);
}

/* CONTENT NAD GLOW */
.mg-valentine-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px 22px;
}

/* ❤️ IKONA – bez zmian, działa w Chrome */
.mg-valentine-icon {
    font-size: 34px;
    line-height: 1;
    animation: mgHeartPulse 1.8s ease-in-out infinite;
}

/* ✨ SAFE ANIMATION */
@keyframes mgGlowPulseSafe {
    0%   { transform: scale(1); opacity: .45; }
    50%  { transform: scale(1.12); opacity: .75; }
    100% { transform: scale(1); opacity: .45; }
}

/* ❤️ SERCE – SAFE */
@keyframes mgHeartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
@media (max-width: 768px) {
    .mg-valentine-guarantee::before {
        inset: -60%;
    }
}
/* =========================================================
   PROMO BAR – 100% CHROME / MOBILE SAFE
========================================================= */
/* =========================================================
   GLOBAL PROMO BAR – TOP LAYER
========================================================= */

#mg-global-promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 999999;

  background: linear-gradient(135deg, #c40000, #f03e38);
  color: #fff;

  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;

  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.mg-promo-text strong {
  font-weight: 900;
}

.mg-promo-badge {
  background: #ffffff;
  color: #c40000;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 900;
}

/* mobile */
@media (max-width: 768px) {
  #mg-global-promo-bar {
    font-size: 14px;
    padding: 9px 10px;
  }
}
/* =========================================================
   OFFSET STRONY POD PROMO BAR
========================================================= */

body {
  padding-top: var(--mg-promo-offset, 0px);
}
