/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
.current-price .price {
   color: #df0195;
   font-size: 20px;
   font-weight: bold;
 }

.current-price .price-tax-incl-all{
    margin-bottom:10px;
}
.current-price .discount{
    padding-left:5px;
    padding-right: 5px;
}
.product-price-and-shipping .price-tax-incl span,
.product-price-and-shipping .price-tax-excl span{
    color: #df0195;
    font-weight: bold;
}
.product-price-and-shipping .price-tax-incl .price-tax-label,
.product-price-and-shipping .price-tax-excl .price-tax-label{
    color: #777;
    font-size:12px;
    font-weight: normal;
}
 .price-tax-label {
   color: #777;
   font-size: 16px;
   font-weight: 400;
 }
 
 .product-miniature .product-price-and-shipping .price {
   margin-bottom: 2px;
 }
 
 #product .has-discount .discount{
   margin-left: 0px;
 }

.product-pack .pack-product-price .price-tax-label{
    display: block;
}
.product-pack .pack-product-price .price:first-child{
    margin-right: 5px;
}
/* Ustawienia ogólne tabeli */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Styl nagłówków */
.custom-table th {
    background-color: #000; /* Czarny nagłówek */
    color: #fff; /* Biały tekst */
    font-weight: bold;
    padding: 12px;
    text-align: center;
}

/* Styl wierszy tabeli */
.custom-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    vertical-align: middle;
    background-color: #f9f9f9; /* Domyślny jasny szary */
}

/* Tylko nieparzyste wiersze mają ciemniejszy kolor */
.custom-table tr:nth-child(odd) td {
    background-color: #ffffff; /* Biały */
}

/* Przyciski "Dodaj do koszyka" */
.custom-button {
    background-color: #730dad;
    color: #ffffff !important;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    min-width: 140px;
    max-width: 180px;
}

/* Efekt hover */
.custom-button:hover {
    background-color: #b00075;
}

/* Przyciski "Brak w magazynie" - wyszarzenie */
.custom-button.disabled {
    background-color: #cccccc;
    color: #888888 !important;
    cursor: not-allowed;
}

/* Poprawka dla wersji mobilnej */
@media (max-width: 768px) {
    .custom-table {
        font-size: 12px;
    }
    
    .custom-table th, 
    .custom-table td {
        padding: 8px;
        font-size: 13px;
    }

    .custom-button {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 10px;
    }
}
.custom-table td:first-child, 
.custom-table td:nth-child(2) {
    font-weight: bold;
}

.custom-button {
    font-weight: bold;
}

.product-flag.free-shipping {
  position: absolute !important;
  top: -11px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: url('/themes/warehouse/assets/img/dostawa3.png') no-repeat center center;
  background-size: contain;
  z-index: 10;
  pointer-events: none;
  transform: translateX(20px) translateY(10px) !important; /* Przesunięcie w prawo i w dół */
}

@media (max-width: 768px) {
  .product-flag.free-shipping {
    top: -10px !important;
    left: -14px !important;
    width: 60px !important;
    height: 60px !important;
    transform: translateX(15px) translateY(8px) !important; /* Przesunięcie dla mobile */
  }
}

/* Naprawa rozjeżdżania logotypów przewoźników */
.carrier-hasLogo .carrier-logo img,
.carrier-hasLogo img {
    max-width: 100px; /* maksymalna szerokość */
    max-height: 50px; /* maksymalna wysokość */
    width: auto;
    height: auto;
    object-fit: contain; /* zachowuje proporcje */
    display: block;
    margin: 0 auto; /* wycentrowanie w kolumnie */
}

/* FREE SHIPPING POPUP */
.free-shipping-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.free-shipping-popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.free-shipping-popup {
    background: linear-gradient(135deg, #0a0a0a 0%, #0a0a0a 20%, #2d2d2d 50%, #0a0a0a 80%, #0a0a0a 100%);
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 4px solid rgba(255, 0, 170, 0.6);
    animation: popupSlideIn 0.4s ease;
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.free-shipping-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.free-shipping-popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.free-shipping-popup-content {
    text-align: center;
}

.free-shipping-popup-icon {
    margin-bottom: 20px;
}

.free-shipping-popup-icon i {
    font-size: 72px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: truckBounce 2s ease-in-out infinite;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.free-shipping-popup h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #ff00aa;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: bold;
    font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.free-shipping-popup p {
    margin: 10px 0;
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-family: 'Montserrat', Arial, sans-serif;
}

.free-shipping-popup p strong {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* MOBILE */
@media (max-width: 768px) {
    .free-shipping-popup {
        padding: 40px 25px;
        border: 4px solid #9d3dd9;
    }
    
    .free-shipping-popup h2 {
        font-size: 24px;
        color: #9d3dd9;
    }
    
    .free-shipping-popup-icon i {
        font-size: 60px;
        color: #ffffff;
    }
    
    .free-shipping-popup p {
        font-size: 18px;
    }
    
    .free-shipping-popup p strong {
        font-size: 18px;
        color: #ffffff;
    }
    
}

/* PRZEWIJAJĄCY SIĘ BANNER DARMOWA WYSYŁKA */
.free-shipping-banner {
  width: 100%;
  background: linear-gradient(135deg, #730dad 0%, #9d3dd9 100%);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
  z-index: 999;
}

.free-shipping-banner-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scrollBanner 30s linear infinite;
}

.banner-text {
  color: white;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.banner-separator {
  color: white;
  font-size: 13px;
  padding: 0 25px;
  font-weight: bold;
  display: inline-block;
}

@keyframes scrollBanner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .free-shipping-banner {
    padding: 7px 0;
  }
  
  .banner-text {
    font-size: 11px;
  }
  
  .banner-separator {
    font-size: 11px;
    padding: 0 20px;
  }
}

/* Tylko dla lewej kolumny - większy i ciemniejszy tekst */
#left-column .block-categories a,
#left-column .category-tree a {
    font-size: calc(1em + 2px) !important;
    color: #333 !important;
}

/* Tylko dla lewej kolumny - ZWIĘKSZONE odstępy między kategoriami */
#left-column .block-categories li,
#left-column .category-tree li,
#left-column .block-links li {
    margin-bottom: 6px !important;
}

/* Tylko dla lewej kolumny - padding linków */
#left-column .block-categories a,
#left-column .category-tree a {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    padding-left: 20px !important;
}

/* Tylko dla lewej kolumny - główne kategorie mniejsze wcięcie */
#left-column .block-categories > ul > li > a,
#left-column .category-tree > ul > li > a {
    padding-left: 5px !important;
}

/* Napraw pozycjonowanie strzałek w lewej kolumnie */
#left-column .block-links ul > li a::before {
    position: relative !important;
    left: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    top: -2px !important;  /* DODANE - podnosi strzałki */
    bottom: auto !important;
}

/* Usuń przesunięcie przy hover */
#left-column .block-links ul > li a:hover::before {
    left: auto !important;
}