/* ================================================
   Słodki Hurt — Child Theme
   Author: Gryczan.eu | https://gryczan.eu
   Parent: Hummingbird 2 / PrestaShop 9
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ================================================
   ZMIENNE GLOBALNE
   ================================================ */

:root {

--bs-primary: #e8447a;
--bs-primary-rgb: 232, 68, 122;
--bs-link-color: #e8447a;   
--bs-link-hover-color: #c73367;
--bs-link-hover-color-rgb: 199, 51, 103;



  /* --- Kolory główne --- */  
  --sh-primary:          #010101;
  --sh-primary-hover:    #c73367; 
  --sh-rozowy:           #e8447a; /*search do podmiany */
  --sh-primary-light:    #F8A5D0;
  --sh-primary-lighter:  #FADEE6;
  --sh-primary-bg:       #FFF0F7;

  /* --- Akcent B2B --- */
  --sh-b2b:              #F5C518;
  --sh-b2b-hover:        #D4A800;
  --sh-b2b-dark:         #010101;

  /* --- Tekst --- */
  --sh-text:             #010101;
  --sh-text-muted:       #6B7280;
  --sh-text-light:       #9CA3AF;
  --sh-white:            #FFFFFF;

  /* --- Tła --- */
  --sh-bg-body:          #FFFFFF;
  --sh-bg-light:         #FAFAFA;

  /* --- Obramowania --- */
  --sh-border:           #F0D6E8;
  --sh-border-light:     #FAF0F6;

  /* --- Statusy --- */
  --sh-success:          #22C55E;
  --sh-warning:          #F59E0B;
  --sh-danger:           #EF4444;


  /* --- Typografia --- */
  --sh-font:             'Inter', 'Segoe UI', system-ui, sans-serif;
  --sh-size-xs:          12px;
  --sh-size-sm:          14px;
  --sh-size-base:        16px;
  --sh-size-lg:          18px;
  --sh-size-xl:          24px;
  --sh-size-2xl:         32px;
  --sh-size-3xl:         42px;
  --sh-weight-normal:    400;
  --sh-weight-medium:    500;
  --sh-weight-semi:      600;
  --sh-weight-bold:      700;
  --sh-line-height:      1.6;

  /* --- Spacing --- */
  --sh-space-xs:         4px;
  --sh-space-sm:         8px;
  --sh-space-md:         16px;
  --sh-space-lg:         24px;
  --sh-space-xl:         32px;
  --sh-space-2xl:        48px;
  --sh-space-3xl:        64px;

  /* --- Border radius --- */
  --sh-radius-sm:        6px;
  --sh-radius-md:        10px;
  --sh-radius-lg:        16px;
  --sh-radius-xl:        24px;
  --sh-radius-full:      9999px;

  /* --- Cienie --- */
  --sh-shadow-sm:        0 1px 3px rgba(233, 30, 140, 0.08);
  --sh-shadow-md:        0 4px 16px rgba(233, 30, 140, 0.12);
  --sh-shadow-lg:        0 8px 32px rgba(233, 30, 140, 0.16);
  --sh-shadow-card:      0 2px 8px rgba(0, 0, 0, 0.06);

  /* --- Layout --- */
  --sh-container:        1280px;
  --sh-transition:       0.25s ease;
  --sh-transition-fast:  0.15s ease;
}

/* ================================================
   BASE
   ================================================ */

body {
  font-family: var(--sh-font);
  color: var(--sh-text);
}

a {
  color: var(--sh-primary);
  transition: color var(--sh-transition-fast);
}

a:hover { 
  color: var(--sh-primary-hover); /* DO EDYCJI rozne i do usuniecia to */
}

a.btn.btn-outline-primary:hover {
  color: white;
}


/* MINIATURY PRODUKTOW */

.product-miniature__prices, .product-miniature__variants {
  justify-content: center;
}

.product-miniature__title {
  text-align: center;
}

.quantity-button input {
  border-width: 0 1px 0 1px;
}

.quantity-button button {
  border: none;
}

.product-miniature__form .qty-input, .product-miniature__form .input-group {
  height: auto;
}


/* ================================================
   PRZYCISKI
   ================================================ */

.btn-primary,
.btn.btn-primary {
  background:    var(--sh-primary);
  border-color:  var(--sh-primary);
  color:         var(--sh-white);
  border-radius: var(--sh-radius-full);
  font-weight:   var(--sh-weight-semi);
  transition:    background var(--sh-transition-fast),
                 transform var(--sh-transition-fast);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background:   var(--sh-primary-hover);
  border-color: var(--sh-primary-hover);
  color:        var(--sh-white);
  transform:    translateY(-1px);
}

/* RÓŻNE DROBNE */
@media (max-width: 767px) {
  .header-bottom {
    padding: 0.6rem 0;
  }
}

.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree {
  gap: 1.5rem;
}

div.password-field button{
  border-radius: none;
}

.footer__main {
    background: #fcf7f9;
    background-image: url('/img/custom/stopka_slodki_bg.jpg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    
}
.footer__main li {
  list-style-image: url('/img/custom/li.svg');
}

.footer-block__title, .footer-block__title a, #footer_contactinfo, .sh-footer {
    color: var(--sh-primary);
}

.sh-footer {
    font-size: 0.9rem;
}

.footer-block__title a:hover {
    color: var(--sh-primary-hover);
}




/* ==========================================================================
   ps_mainmenu — override stylów
   Author : Gryczan.eu
   ========================================================================== */

.header-nav-full-width {
  background-color: var(--sh-primary-lighter);
}

a.ps-mainmenu__tree-link {
  font-weight: 700;
}

/* Cały hook displayTop logo + wyszukiwarka + zaloguj + koszyk */
.header-bottom__row > #_desktop_ps_searchbar,
.header-bottom__row > #_desktop_ps_customersignin,
.header-bottom__row > #_desktop_ps_shoppingcart {
    width: auto;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   ps_customersignin — override stylów
   Author : Gryczan.eu
   ========================================================================== */

@media (max-width: 767px) {

    #_mobile_ps_customersignin .slodkihurt-account__text {
        display: none;
    }

    #_mobile_ps_customersignin .header-block__icon {
        font-size: 30px;
    }

}

.slodkihurt-account .header-block__action-btn {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.slodkihurt-account .header-block__icon {
    font-size: 36px;
    color: var(--sh-primary);
}

.slodkihurt-account__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.slodkihurt-account__label {
    font-size: 0.7rem;
    color: var(--sh-text-light);
    font-weight: 400;
}

.slodkihurt-account__signin {
    font-size: 1rem;
    color: var(--sh-primary);
    font-weight: 700;
}

.header-block .slodkihurt-account:hover span{
    color: var(--bs-primary);
}

.header-block.slodkihurt-account:hover .header-block__icon,
.header-block.slodkihurt-account:hover .slodkihurt-account__signin {
    color: var(--bs-primary);
}

.header-block__icon, 
.slodkihurt-account__signin {
    transition: color 0.2s ease-in-out;
}

/**
 * ps_shoppingcart.css
 * Style dla widgetu koszyka (desktop) i modala
 * Zachowane oryginalne klasy — nadpisujemy tylko wygląd
 */

/* ================================================
   WIDGET KOSZYKA — DESKTOP
   ================================================ */

#_desktop_ps_shoppingcart .header-block__action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 6px 4px;
  cursor: pointer;
}

/* Lewa kolumna: Koszyk + kwota */
#_desktop_ps_shoppingcart .header-block__cart-info {
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

#_desktop_ps_shoppingcart .header-block__title {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--sh-text-light);;
  /* letter-spacing: 0.04em; */
}

#_desktop_ps_shoppingcart .header-block__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-primary);
}

/* Prawa kolumna: ikona koszyka + badge */
#_desktop_ps_shoppingcart .header-block__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

#_desktop_ps_shoppingcart .header-block__icon {
  font-size: 2rem;
  color: var(--sh-primary); /* główny kolor akcentu – podmień wg brand */
  display: block;
}

/* Badge z liczbą produktów */
#_desktop_ps_shoppingcart .header-block__badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stan nieaktywny (pusty koszyk) — ikona szara */
#_desktop_ps_shoppingcart .blockcart.inactive .header-block__icon {
  color: #bbb;
}

#_desktop_ps_shoppingcart .blockcart.inactive .header-block__badge {
  background-color: var(--bs-primary); /* badge zawsze różowy nawet przy 0 */
}

/* Hover na aktywnym linku */
#_desktop_ps_shoppingcart .header-block--active .header-block__action-btn:hover .header-block__icon {
  color: var(--bs-link-hover-color);
}

/* ================================================
   WIDGET KOSZYKA — MOBILE (placeholder w header.tpl)
   ================================================ */

#_mobile_ps_shoppingcart .header-block__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
  color: inherit;
  text-decoration: none;
}

#_mobile_ps_shoppingcart .header-block__icon {
  font-size: 1.7rem;
  color: var(--sh-primary);
}

#_mobile_ps_shoppingcart .header-block__badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ================================================
   MODAL — "Produkt dodany do koszyka"
   ================================================ */

#blockcart-modal.blockcart-modal {
  --modal-accent: var(--bs-primary);
}

#blockcart-modal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Nagłówek */
#blockcart-modal .modal-header {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
}

#blockcart-modal .blockcart-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sh-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#blockcart-modal .blockcart-modal__title-icon {
  color: var(--modal-accent);
  font-size: 1.3rem;
}

#blockcart-modal .btn-close {
  opacity: 0.5;
  transition: opacity 0.2s;
}

#blockcart-modal .btn-close:hover {
  opacity: 1;
}

/* Body */
#blockcart-modal .modal-body {
  padding: 1.5rem;
  background: #fafafa;
}

/* Zdjęcie produktu */
#blockcart-modal .blockcart-modal__image {
  border-radius: 8px;
  border: 1px solid #eee;
  object-fit: cover;
  width: 100%;
}

/* Info o produkcie */
#blockcart-modal .blockcart-modal__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

#blockcart-modal .blockcart-modal__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--modal-accent);
  margin-bottom: 4px;
}

#blockcart-modal .blockcart-modal__quantity {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

#blockcart-modal .blockcart-modal__property {
  font-size: 0.82rem;
  color: #555;
}

/* Podsumowanie koszyka (prawa kolumna) */
#blockcart-modal .blockcart-modal__summary {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  border: 1px solid #ececec;
}

#blockcart-modal .blockcart-modal__nb-products {
  font-size: 0.82rem;
  color: var(--sh-text-light);;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

#blockcart-modal .blockcart-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 6px;
}

#blockcart-modal .blockcart-modal__total .value {
  font-weight: 600;
  color: var(--sh-primary);
}

#blockcart-modal .blockcart-modal__total--bold {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-primary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

#blockcart-modal .blockcart-modal__total--bold .value {
  color: var(--modal-accent);
  font-size: 1.1rem;
}

/* Footer */
#blockcart-modal .modal-footer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 1rem 1.5rem;
  gap: 10px;
}

#blockcart-modal .modal-footer .btn-outline-primary {
  border-color: #ddd;
  color: #555;
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all 0.2s;
}

#blockcart-modal .modal-footer .btn-outline-primary:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

#blockcart-modal .modal-footer .btn-primary {
  background-color: var(--modal-accent);
  border-color: var(--modal-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

#blockcart-modal .modal-footer .btn-primary:hover {
  background-color: var(--bs-link-hover-color);
  border-color: var(--bs-link-hover-color);
}


/* ===== PS ImageSlider — custom figcaption ===== */
.ps-imageslider__figcaption {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 48%;
  padding: 0;
  /* wyłącz domyślne Bootstrap carousel-caption */
  right: auto;
  bottom: auto;
}

.ps-imageslider__figcaption .slide-heading {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #2d1a3a;
  line-height: 1.15;
  margin: 0 0 1rem 0;
}

.ps-imageslider__figcaption .slide-heading span {
  color: #e8447a;
}

.ps-imageslider__figcaption .slide-desc {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: #5a4060;
  line-height: 1.65;
  margin: 0 0 1.8rem 0;
  font-weight: 400;
}


@media (max-width: 767px) {
  .ps-imageslider__figcaption .slide-desc {
    display: none;
  }
   .ps-imageslider__figcaption a.btn-b2b {
    display: none;
  } 

    .ps-imageslider__figcaption .slide-buttons {
    gap: 0;
  }
  section.ps-imageslider .carousel-indicators {
    display: none;;
  }
}

.ps-imageslider__figcaption .slide-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.ps-imageslider__figcaption .btn-oferta {
  background: #e8447a; 
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.ps-imageslider__figcaption .btn-oferta:hover {
  background: #c73367;
  color: #fff;
}

.ps-imageslider__figcaption .btn-b2b {
  background: #fff;
  color: #2d1a3a;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  border: 1.5px solid #e0d0e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.ps-imageslider__figcaption .btn-b2b:hover {
  border-color: #e8447a;
  color: #e8447a;
}

.ps-imageslider__figcaption .btn-b2b svg {
  width: 18px;
  height: 18px;
  fill: #e8447a;
}

/* Upewnij się że figcaption jest widoczny na wszystkich rozmiarach */
.ps-imageslider__figcaption.carousel-caption {
  display: block !important;
}

.ps-imageslider__figcaption {
    background-color: transparent;
}