.banner {
   width: 100%;
   max-width: 100%;
   min-height: 200px;
   height: auto;
   background-color: black;
   display: flex;
   align-items: center;
   justify-content: flex-start;
   position: relative;
   overflow: hidden;
   padding: 20px 0;
   margin-top: -10px;
}

.banner::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
   pointer-events: none;
}

.banner-content {
   margin-left: calc((100vw - 1700px) / 2);
   z-index: 2;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   max-width: 100%;
   padding-right: 40px; /* Większy padding dla bezpieczeństwa */
   box-sizing: border-box;
   width: 100%;
}

.banner h1 {
   color: #ffffff;
   font-size: 2.8rem;
   font-weight: 700;
   letter-spacing: -1px;
   margin-bottom: 10px;
   text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
   white-space: nowrap;
   max-width: 100%;
   /* Usunięte overflow: hidden i text-overflow: ellipsis */
}

.breadcrumb {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap;
   white-space: nowrap;
   max-width: 100%;
}

.breadcrumb a,
.breadcrumb .separator,
.breadcrumb .current {
   white-space: nowrap;
}

.breadcrumb a {
   color: #cccccc;
   text-decoration: none;
   font-size: 0.9rem;
   transition: color 0.3s ease;
}

.breadcrumb a:hover {
   color: #ffffff;
}

.breadcrumb .separator {
   color: #666666;
   font-size: 0.8rem;
}

.breadcrumb .current {
   color: #ffffff;
   font-weight: 500;
}

/* Dla bardzo dużych ekranów */
@media (min-width: 1701px) {
   .banner-content {
       margin-left: calc((100vw - 1700px) / 2);
   }
}

/* Główny breakpoint dla dużych ekranów */
@media (max-width: 1700px) {
   .banner-content {
       margin-left: 20px;
       margin-right: 20px;
   }
}

/* Breakpoint gdzie zaczynamy zmniejszać czcionkę zamiast ucinania */
@media (max-width: 1400px) {
   .banner h1 {
       font-size: 2.4rem; /* Mniejsza czcionka */
   }
   
   .breadcrumb a,
   .breadcrumb .current {
       font-size: 0.85rem;
   }
}

/* Kolejny breakpoint - dalsze zmniejszanie */
@media (max-width: 1200px) {
   .banner h1 {
       font-size: 2.2rem;
   }
   
   .breadcrumb a,
   .breadcrumb .current {
       font-size: 0.8rem;
   }
   
   .breadcrumb {
       gap: 6px;
   }
}

/* Tablet - tutaj pozwalamy na zawijanie */
@media (max-width: 992px) {
   .banner {
       min-height: 150px;
       padding: 15px 0;
       margin-top: 10px;
   }

   .banner-content {
       margin-left: 20px;
       margin-right: 20px;
   }

   .banner h1 {
       font-size: 2rem;
       white-space: normal; /* Zawijanie na tablecie */
       word-wrap: break-word;
       overflow-wrap: break-word;
   }
   
   .breadcrumb {
       white-space: normal;
       flex-wrap: wrap;
   }
   
   .breadcrumb a,
   .breadcrumb .separator,
   .breadcrumb .current {
       white-space: normal;
       font-size: 0.8rem;
   }
}

/* Małe tablety i duże telefony */
@media (max-width: 768px) {
   .banner {
       min-height: 120px;
       padding: 15px 0;
   }
   
   .banner-content {
       margin-left: 15px;
       margin-right: 15px;
   }

   .banner h1 {
       font-size: 1.6rem;
       line-height: 1.3;
       white-space: normal;
   }
   
   .breadcrumb {
       gap: 5px;
   }
   
   .breadcrumb a, 
   .breadcrumb .current {
       font-size: 0.75rem;
   }
}

/* Małe telefony */
@media (max-width: 480px) {
   .banner {
       min-height: 100px;
       padding: 12px 0;
   }
   
   .banner-content {
       margin-left: 10px;
       margin-right: 10px;
   }

   .banner h1 {
       font-size: 1.3rem;
       margin-bottom: 5px;
   }
   
   .breadcrumb a, 
   .breadcrumb .current {
       font-size: 0.7rem;
   }
}

/* Dla bardzo małych ekranów */
@media (max-width: 360px) {
   .banner h1 {
       font-size: 1.1rem;
   }
}

/* sekcja z kategoriami */

/* Sekcja z kategoriami */
.ctn-category-page {
   max-width: 1700px;
   margin: 0 auto;
   display: flex;
   gap: 20px;
   padding: 0 20px;
   margin-top: 40px;
}

.category-sidebar {
   width: 250px;
   background-color: #f8f9fa;
   border-radius: 12px;
   height: fit-content;
   top: 20px;
}

.ctn-category-sidebar{
  
}

.category-sidebar-header {
   display: flex;
   align-items: center;
   padding: 15px 20px;
   border-radius: 12px 12px 0 0;
}

.category-sidebar-header .category-icon {
   width: 24px;
   height: 24px;
   background-color: #cc240f;
   margin-right: 12px;
   border-radius: 4px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.category-sidebar-header .category-icon::before {
   content: '';
   width: 12px;
   height: 12px;
   background: linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%),
               linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%);
   background-size: 4px 4px;
   background-position: 0 0, 2px 2px;
}

.category-sidebar-header h3 {
   font-size: 1.1rem;
   font-weight: 600;
   color: #333333;
}

.category-nav-list {
   padding: 10px 0;
}

.category-nav-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 10px 20px;
   color: #333333;
   text-decoration: none;
   font-size: 0.9rem;
   transition: all 0.2s ease;
   border-left: 3px solid transparent;
}

.category-nav-item:hover {
   background-color: #f8f9fa;
   color: black;
   border-left-color: black;
}

.category-nav-item.category-has-dropdown::after {
   content: '▼';
   font-size: 0.7rem;
   color: #666666;
   transition: transform 0.2s ease;
   margin-left: 5px;
}

.category-nav-item.category-has-dropdown:hover::after {
   color: black;
}

.category-nav-item.category-has-dropdown.active::after {
   transform: rotate(180deg);
   color: black;
}

.category-nav-item-wrapper {
   position: relative;
}


.category-dropdown {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease;
   background-color: #ffffff;
   box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
   border-left: 3px solid #333;
}


.category-dropdown.active {
   max-height: none; /* lub bardzo dużą wartość jak 1000px */
   overflow: visible;
}

.category-dropdown-item {
   display: block;
   padding: 8px 15px 8px 40px;
   color: #666666;
   text-decoration: none;
   font-size: 0.85rem;
   transition: all 0.2s ease;
}

.category-dropdown-item:hover {
   background-color: #f8f9fa;
   color: black;
   text-decoration: none;
}

.category-main-content {
   flex: 1;
   background-color: #ffffff;
   padding: 30px;
   min-height: 600px;
}

.category-content-section {
   margin-bottom: 40px;
}

.category-description-section {
   display: flex;
   gap: 30px;
   margin-bottom: 30px;
   justify-content: center;
   align-items: center;
}

.category-btn-see-more{
   margin-top: 20px;
}

.btn-see-more{
   background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
   color: white;
   border: none;
   border-radius: 25px;
   padding: 12px 30px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-see-more:hover {
   opacity: 0.9;
}

.category-description-text {
   flex: 2;
   display: flex;
   flex-direction: column;
}

.category-description-text p {
   color: #666666;
   line-height: 1.6;
   font-size: 0.95rem;
}

.category-description-image {
   flex: 1;
   max-width: 300px;
}

.category-description-image img {
   width: 100%;
   height: auto;
   border-radius: 8px;
}

.category-content-section h2 {
   font-size: 1.5rem;
   color: #333333;
   margin-bottom: 20px;
   padding-bottom: 10px;
   border-bottom: 2px solid #333;
}

.category-content-section p {
   color: #666666;
   line-height: 1.6;
   margin-bottom: 15px;
}

.category-subcategory-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 15px;
   margin-top: 20px;
   margin-bottom: 20px;
}

.category-product-card {
   background-color: transparent;
   border: 2px solid #e0e0e0;
   border-radius: 15px;
   padding: 15px;
   text-align: center;
   transition: all 0.2s ease;
   min-height: 180px;
   height: auto;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   opacity: 1;
   transform: scale(1);
}

.category-product-card:hover {
   border-color: #333;
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-product-card.hidden {
   display: none;
}

.category-product-card.show-animation {
   animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.category-cart {
   text-decoration: none;
   color: inherit;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100%;
   width: 100%;
}

.category-cart:hover {
   text-decoration: none;
   color: inherit;
}

.category-image {
   width: 100%;
   max-width: 120px;
   height: auto;
   object-fit: contain;
}

.category-product-card h4 {
   color: #333333;
   margin-bottom: 0;
   font-size: 0.95rem;
   line-height: 1.3;
}

.category-show-more-container {
   text-align: center;
   margin-top: 20px;
}

.category-btn-show-more {
   background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
   color: white;
   padding: 12px 40px;
   border: none;
   border-radius: 25px;
   cursor: pointer;
   font-size: 0.95rem;
   font-weight: 500;
   transition: all 0.2s ease;
}

.category-btn-show-more:hover {
   opacity: 0.9;
}

.category-btn-show-more.hidden {
   display: none;
}

@media (max-width: 992px) {
   .ctn-category-page {
       flex-direction: column;
       padding: 0 15px 15px;
   }

   .ctn-category-page:has(.category-information) {
       margin-top: -20px;
   }

   .category-sidebar {
       width: 100%;
       position: static;
       display: none;
   }

   .category-sidebar-header {
       padding: 15px;
   }

   .category-main-content {
       padding: 0 20px 20px;
   }

   .category-description-section {
       flex-direction: column;
       gap: 20px;
   }

   .category-description-image {
       max-width: 100%;
   }

   .category-subcategory-grid {
       grid-template-columns: repeat(2, 1fr);
       gap: 12px;
   }

   .category-product-card {
       padding: 12px;
       min-height: 150px;
       height: auto;
   }

   .category-image {
       max-width: 90px;
       margin-bottom: 10px;
   }

   .category-product-card h4 {
       font-size: 0.85rem;
   }
}

@media (max-width: 768px) {
   .ctn-category-page {
       padding: 0 10px 10px;
   }

   .category-main-content {
       padding: 0 15px 15px;
   }

   .category-description-section {
       gap: 15px;
   }

   .category-subcategory-grid {
       grid-template-columns: repeat(2, 1fr);
       gap: 10px;
   }

   .category-product-card {
       padding: 10px;
       min-height: 130px;
       height: auto;
   }

   .category-image {
       max-width: 70px;
       margin-bottom: 8px;
   }

   .category-product-card h4 {
       font-size: 0.8rem;
   }
}


/* Responsive adjustments for smaller screens */



/* Filter Sidebar Styles */
.filter-sidebar {
 width: 100%;
 background-color: #f8f9fa;
 border-radius: 12px;
 height: fit-content;
 margin: 20px 0px;
}

.filter-sidebar-header {
 display: flex;
 align-items: center;
 padding: 15px 20px;
 border-radius: 12px 12px 0 0;
}

.filter-sidebar-header .filter-icon {
 width: 24px;
 height: 24px;
 background-color: #cc240f;
 margin-right: 12px;
 border-radius: 4px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 font-size: 14px;
}

.filter-sidebar-header h3 {
 font-size: 1.1rem;
 font-weight: 600;
 color: #333333;
}

.filter-section {
 padding: 15px 20px;
 border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
 border-bottom: none;
}

.filter-title {
 font-size: 0.95rem;
 font-weight: 600;
 color: #333333;
 margin-bottom: 10px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 cursor: pointer;
}

.filter-title::after {
 content: '▼';
 font-size: 0.7rem;
 color: #666666;
 transition: transform 0.2s ease;
}

.filter-title.collapsed::after {
 transform: rotate(0deg);
}

.filter-content {
 overflow: hidden;
 transition: max-height 0.3s ease;
 max-height: 0;
}

.filter-content.collapsed {
 max-height: 0;
}

.price-range {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-top: 10px;
}

.price-input {
 width: 70px;
 padding: 6px 8px;
 border-radius: 4px;
 border: none;
 text-align: center;
 font-size: 0.85rem;
 background-color: #ffffff;
 -moz-appearance: textfield; /* Firefox - ukrywa spinner */
}

.price-input::placeholder {
 font-weight: 500;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
 -webkit-appearance: none;
 margin: 0;
}

.price-separator {
 color: #666;
 font-weight: bold;
}

.price-currency {
 color: #666;
 font-size: 0.85rem;
}

.filter-option {
 display: flex;
 align-items: center;
 margin-bottom: 8px;
 font-size: 0.9rem;
 color: #333;
}

.filter-option input[type="checkbox"] {
 margin-right: 8px;
 width: 16px;
 height: 16px;
 accent-color: #cc240f;
 cursor: pointer;
}

.filter-option input[type="checkbox"]:checked {
 background-color: #cc240f;
 border-color: #cc240f;
}

.filter-count {
 color: #666;
 font-size: 0.8rem;
}

.brand-checkbox-list {
 /* Usunięty scroll - bez max-height i overflow */
}

.brand-option {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-bottom: 6px;
 font-size: 0.85rem;
 color: #333;
 padding: 2px 0;
 border-bottom: 1px solid transparent;
 transition: border-bottom-color 0.2s ease;
}

.brand-option:hover {
 color: black;
 font-weight: 600;
}

.brand-option label {
 display: flex;
 align-items: center;
 flex: 1;
 cursor: pointer;
}

.brand-option input[type="checkbox"] {
 margin-right: 8px;
 width: 16px;
 height: 16px;
 accent-color: #cc240f;
 cursor: pointer;
}

.brand-option input[type="checkbox"]:checked {
 background-color: #cc240f;
 border-color: #cc240f;
}

.brand-name {
 flex: 1;
}

.brand-count {
 color: #666;
 font-size: 0.8rem;
 margin-left: 5px;
}


@media (max-width: 992px) {
   .filter-sidebar {
       display: none;
   }
}



/* style dla produktow kart */


/* Popularne produkty sekcja */

/* Popularne produkty sekcja */

.category-content-section .category-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    gap: 20px;
    cursor: pointer;
    align-items: start;
}




@media (max-width: 1200px) {
  .category-content-section .category-product-grid  {
      grid-template-columns: repeat(3, 1fr);
  }


}

@media (max-width: 992px) {
  .category-content-section .category-product-grid  {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }
}

@media (max-width: 768px) {
 .category-content-section .category-product-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
  }
}

@media (max-width: 480px) {
 .category-content-section .category-product-grid  {
      grid-template-columns: 1fr;
  }
}


/* Galeria pod głównym zdjęciem - ukryta domyślnie */
.category-content-section .product-gallery {
    display: none;
    margin-top: 10px;
    position: relative;
}

/* Pokazanie galerii na hover */
.category-content-section .product-item:hover .product-gallery {
    display: block;
}

/* Stylizacja miniatur galerii - w jednej linii ze strzałkami */
.category-content-section .gallery-thumbnails {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
    position: relative;
}


.category-content-section .gallery-thumbnails  .gallery-thumb{
   width: 25%;
   margin: 10px 0px;
}


.gallery-thumb {
    width: 15px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    border-color: #333;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #333;
    border-width: 1px;
}

/* Strzałki nawigacji - na głównym obrazku */
.category-content-section .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 5;
    margin-bottom: 20px;
}

.category-content-section .gallery-nav:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-content-section .gallery-nav.prev {
    left: 8px;
}

.category-content-section .gallery-nav.next {
    right: 8px;
}

/* Strzałki na miniaturach galerii */
.category-content-section .gallery-nav-mini {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 5;
}

.category-content-section .gallery-nav-mini:hover {
    background-color: #dddddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.category-content-section .gallery-nav-mini.prev {
    left: -8px;
}

.category-content-section .gallery-nav-mini.next {
    right: -8px;
}

/* Pokazanie strzałek na hover głównego obrazka */
.category-content-section .product-item:hover .gallery-nav {
    display: flex;
}

/* Pokazanie strzałek na hover galerii */
.category-content-section .product-gallery:hover .gallery-nav-mini {
    display: flex;
}

/* Container dla głównego zdjęcia z pozycjonowaniem relative */
.category-content-section .product-image-container {
    position: relative;
    margin-bottom: 15px;
}



.category-content-section .product-details {
    display: none;
    text-align: left;
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
    height: auto; /* Zwiększone dla dwóch linii tekstu */
    line-height: 1.4;
}

/* Hover effect - pokazanie product-details */
.category-content-section .product-item:hover .product-details {
    display: block;
}

.category-content-section .product-item {
    background-color: #ffffff;
    border: 2px solid #f0efef;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Minimalna wysokość dla wszystkich kart */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Hover effect - wzmocnienie cienia */
.category-content-section .product-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.category-content-section .product-item img {
    margin: 0 auto;
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    object-fit: contain;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

@media  (max-width: 992px) {
    .category-content-section .product-item img {
        max-width: 50%;
    }    
}


@media  (max-width: 768px) {
    .category-content-section .product-item img {
        max-width: 40%;
    }    
}

.category-content-section .category-content-section p {
    color: #333333;
    margin-bottom: 0px;
}

.category-content-section .product-title {
    font-size: 16px;
    font-weight: 600;
    color: black;
    display: flex;
    align-items: center;
}

.category-content-section .producer-title {
    text-align: left;
    color: #4a5568;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Dodatkowo - odstępy między div-ami w product-details */
.category-content-section .product-details div {
    margin-bottom: 2px;
}

.category-content-section .product-details div:last-child {
    margin-bottom: 0;
}



.separator-category {
    height: 1px;
    border: none;
    border-top: 1px solid #e9e9e9;
    margin: 10px -30px;
    width: calc(100% + 50px);
}

/* Responsywność */
@media (max-width: 1500px) {
  .category-content-section .category-product-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsywność */
@media (max-width: 1200px) {
  .category-content-section .category-product-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .category-content-section .product-item img {
  max-width: 50%;
}

}

@media (max-width: 992px) {
  .category-content-section .category-product-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }
}

@media (max-width: 768px) {
  .category-content-section .category-product-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
  }
}

@media (max-width: 600px) {
  .category-content-section .category-product-grid {
      grid-template-columns: 1fr;
  }

  .category-content-section .product-item img {
    max-width: 40%;
  }

}

.category-content-section .add-to-cart-btn {
   background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
   color: white;
   border: none;
   border-radius: 25px;
   padding: 10px 20px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s ease, transform 0.2s ease;
   margin-top: auto; /* Przenosi przycisk na dół karty */
   display: none;
}

.category-content-section p {
   margin-bottom: 0px;
}

.category-content-section .shipping-info {
  background-color: #f5f5f5;
  justify-content: flex-start;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  border-radius: 9999px;
  margin-top: 10px;
  margin-left: 0px;
  width: fit-content;
  width: 80%;
}

.availability{
  text-align: left;
  color: #4a5568;
  font-size: 0.9rem;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

.stock-status.in-stock {
  color: #02816f;
  font-weight: bold;
  font-size: 14px;
}

.stock-status.low-stock {
   color: rgb(255, 154, 82) !important;
   font-weight: bold;
   font-size: 14px;
}

.stock-status.out-of-stock {
   color: #dc3545;
   font-weight: bold;
   font-size: 14px;
}

.category-content-section .product-price {
   color: black;
}


.category-add-to-cart {
   background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 8px 10px;
  text-align: center;
  margin-top: 10px;
  display: none;
  max-width: 100%;
}

.product-item:hover .category-add-to-cart {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.category-add-to-cart-btn:hover {
   opacity: 0.9;
}


@media (max-width: 992px) {
    /* Pokazuje galerię na stałe */
    .category-content-section .product-gallery {
        display: block !important;
    }
    
    /* Pokazuje szczegóły produktu na stałe */
    .category-content-section .product-details {
        display: block !important;
    }
    
    /* Pokazuje przycisk dodaj do koszyka na stałe */
    .category-content-section .category-add-to-cart {
        display: block !important;
    }
    
    /* Pokazuje strzałki nawigacji na stałe */
    .category-content-section .gallery-nav {
        display: flex !important;
    }
    
    /* Pokazuje mini strzałki nawigacji na stałe */
    .category-content-section .gallery-nav-mini {
        display: flex !important;
    }
    
    /* Opcjonalnie - usuń efekt podnoszenia karty na hover */
    .category-content-section .product-item:hover {
        transform: none;
    }

   

}




@media (max-width: 992px) {
    /* Ukrywa całą galerię miniatur */
    .category-content-section .product-gallery {
        display: none !important;
    }
    
    /* Pokazuje szczegóły produktu na stałe */
    .category-content-section .product-details {
        display: block !important;
    }
    
    /* Pokazuje przycisk dodaj do koszyka na stałe */
    .category-content-section .category-add-to-cart {
        display: block !important;
    }
    
    /* Ukrywa strzałki nawigacji na głównym obrazku */
    .category-content-section .gallery-nav {
        display: none !important;
    }
    
    /* Ukrywa mini strzałki nawigacji */
    .category-content-section .gallery-nav-mini {
        display: none !important;
    }
    
    /* Opcjonalnie - usuń efekt podnoszenia karty na hover */
    .category-content-section .product-item:hover {
        transform: none;
    }
}



 .dropdown {
            position: relative;
            display: inline-block;
            margin-top: 20px;
        }

        /* Przycisk główny */
        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            color: #333;
            font-weight: 500;
            transition: all 0.2s ease;
            min-width: 150px;
        }

        .dropdown-toggle:hover {
            border-color: #ccc;
            background-color: #fafafa;
        }

        /* Ikona sortowania */
       .dropdown-toggle::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="6" x2="20" y2="6"></line><line x1="4" y1="12" x2="20" y2="12"></line><line x1="4" y1="18" x2="11" y2="18"></line></svg>') no-repeat center;
    background-size: contain;
}

        /* Strzałka w dół */
        .dropdown-toggle::after {
            content: '';
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 4px solid #666;
            margin-left: auto;
            transition: transform 0.2s ease;
        }

        /* Obrót strzałki gdy dropdown jest otwarty */
        .dropdown.active .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        /* Menu dropdown */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 1000;
            overflow: hidden;
        }

        /* Pokazanie menu */
        .dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Elementy menu */
        .dropdown-item {
            display: block;
            padding: 8px;
            color: #666;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .dropdown-item:hover {
            background-color: #f8f8f8;
            color: #333;
        }

        /* Aktywny element */
        .dropdown-item.active {
            color: #333;
            font-weight: 600;
            background-color: #f0f0f0;
        }

        /* Separator między elementami (opcjonalny) */
        .dropdown-divider {
            height: 1px;
            margin: 0;
            background-color: #e0e0e0;
        }


/*pagetiony ng*/


 .pagination-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin: 40px 0;
        }

        /* Wrapper dla numerów stron */
        .pagination-numbers {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Przycisk strony */
        .page-number {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: #666;
            font-size: 16px;
            cursor: pointer;
            border-radius: 50%;
            transition: all 0.2s ease;
            text-decoration: none;
            font-weight: 500;
        }

        .page-number:hover {
            background-color: #f0f0f0;
            color: #333;
        }

        /* Aktywna strona */
        .page-number.active {
            background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
            color: white;
            cursor: default;
            font-weight: 600;
        }

        .page-number.active:hover {
            
            color: white;
        }

        /* Kropki (...) */
        .page-dots {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-size: 16px;
            cursor: default;
        }

        /* Przyciski nawigacji */
        .nav-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border: none;
            background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
            color: white;
            font-size: 16px;
            font-weight: 600;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .nav-button:hover {
           opacity: 0.9;
    
        }

        .nav-button:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(0, 169, 145, 0.3);
        }

        /* Strzałka w przycisku */
        .nav-button::after {
            content: '›';
            font-size: 20px;
            font-weight: bold;
        }

        .nav-button.prev::after {
            content: '';
        }

        .nav-button.prev::before {
            content: '‹';
            font-size: 20px;
            font-weight: bold;
        }

        /* Disabled state */
        .nav-button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .nav-button:disabled:hover {
            background-color: #ccc;
            transform: none;
            box-shadow: none;
        }

        /* Przykład 2 - z przyciskiem "Poprzednie" */
        .pagination-with-prev {
            margin-top: 60px;
            padding-top: 40px;
            border-top: 1px solid #e0e0e0;
        }

        .prev-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0;
            border: none;
            background: transparent;
            color: #666;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .prev-button:hover {
            color: #333;
        }

        .prev-button::before {
            content: '‹';
            font-size: 20px;
            font-weight: bold;
        }

        /* Responsywność */
        @media (max-width: 768px) {
            .pagination-container {
                gap: 12px;
            }

            .page-number, .page-dots {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

            .nav-button {
                padding: 10px 20px;
                font-size: 14px;
            }

            .prev-button {
                font-size: 14px;
            }

            /* Na małych ekranach ukryj niektóre numery */
            .hide-mobile {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .pagination-numbers {
                gap: 4px;
            }

            .page-number, .page-dots {
                width: 32px;
                height: 32px;
            }

            .nav-button {
                padding: 8px 16px;
            }
        }


     




        @media (max-width: 525px) {

    /* Ukryj tekst "Poprzednia" / "Następna", zostaw tylko strzałkę */
    .page-link.previous,
    .page-link.next {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        font-size: 0 !important;        /* ukrywa tekst */
        gap: 0 !important;
    }

    /* Strzałka "poprzednia" przez ::before */
    .page-link.previous::before {
        content: '‹' !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    /* Strzałka "następna" przez ::after */
    .page-link.next::after {
        content: '›' !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    /* Cały wiersz paginacji w jednej linii wyśrodkowany */
    .pagination,
    .responsive-pagination-container {
        gap: 6px !important;
        margin: 24px 0 !important;
    }

    .page-list {
        gap: 4px !important;
    }

    /* Numery stron trochę mniejsze */
    .page-link {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
}








  .custom-section {
            background: linear-gradient(to right, #e1001d 0%, #03294c 100%);
            height: 300px;
            position: relative;
        }

        .card {
            position: absolute;
            top: 80%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 2rem 3rem;
            border-radius: 16px;
            width: 35%;
            height: 200px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .card h2 {
            margin: 0;
            font-size: 2.2rem;
            font-weight: bold;
            color: black;
        }

        .category-about {
            max-width: 1200px;
            margin: 130px auto;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            min-height: 500px;
            gap: 40px;
            background: white;
        }

        .text-section {
            flex: 1;
            padding: 50px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .image-section {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 15px;
        }

        .image-section img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
        }

        .text-section h2 {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin-bottom: 24px;
            line-height: 1.3;
        }

        .highlight {
            color: #333;
            font-weight: bold;
        }

        .text-section p {
            font-size: 16px;
            line-height: 1.6;
            color: #666;
            margin-bottom: 20px;
            text-align: justify;
        }

        .text-section p:last-child {
            margin-bottom: 0;
        }

        .brand-emphasis {
            font-weight: 600;
            color: #333;
        }

        .special-text {
            font-weight: 600;
            color: #555;
        }

        /* Responsywność */
        @media (max-width: 1200px) {
            .card {
                width: 45%;
                height: 180px;
                padding: 1.8rem 2.5rem;
            }

            .card h2 {
                font-size: 2rem;
            }
        }

        @media (max-width: 992px) {
            .category-about {
                flex-direction: column;
                min-height: auto;
                margin: 80px auto;
                gap: 20px;
            }
            
            .text-section {
                padding: 30px 25px;
                order: 2;
            }
            
            .image-section {
                height: 350px;
                order: 1;
                margin: 20px;
            }
            
            .image-section img {
                height: 350px;
                width: 100%;
                object-fit: cover;
            }

            .card {
                width: 55%;
                height: 160px;
                padding: 1.6rem 2rem;
            }

            .card h2 {
                font-size: 1.9rem;
            }
        }

        @media (max-width: 768px) {
            .category-about {
                flex-direction: column;
                min-height: auto;
                margin: 50px auto;
            }
            
            .text-section {
                padding: 30px 25px;
                order: 2;
            }
            
            .image-section {
                min-height: 300px;
                order: 1;
            }
            
            .text-section h2 {
                font-size: 24px;
                margin-bottom: 20px;
            }
            
            .text-section p {
                font-size: 15px;
            }

            .card {
                width: 60%;
                height: 150px;
                padding: 1.5rem 2rem;
            }

            .card h2 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 650px) {
            .card {
                width: 75%;
                height: 150px;
                padding: 1.4rem 1.8rem;
            }

            .card h2 {
                font-size: 1.6rem;
            }
        }

     
           
        @media (max-width: 480px) {
        
        .card h2 {
                font-size: 1.4rem;
            }
        }




             .gradient-section {
            background: linear-gradient(to right, #e1001d 0%, #03294c 100%);
            padding: 80px 20px;
            color: white;
        }

       .gradient-section .container {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .gradient-section h2 {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 40px;
            line-height: 1.3;
        }

        .gradient-section p {
            font-size: 18px;
            line-height: 1.8;
            margin-bottom: 30px;
            max-width: 1000px;
            margin-left: auto;
            margin-right: auto;
        }

        .gradient-section p:last-child {
            margin-bottom: 0;
        }

        .highlight-text {
            font-weight: bold;
        }

        /* Responsywność */
        @media (max-width: 768px) {
            .gradient-section {
                padding: 60px 20px;
            }

            .gradient-section h2 {
                font-size: 28px;
                margin-bottom: 30px;
            }

            .gradient-section p {
                font-size: 16px;
                margin-bottom: 25px;
            }
        }

        @media (max-width: 480px) {
            .gradient-section {
                padding: 50px 15px;
            }

            .gradient-section h2 {
                font-size: 24px;
                margin-bottom: 25px;
            }

            .gradient-section p {
                font-size: 15px;
                margin-bottom: 20px;
                line-height: 1.6;
            }
        }





        /* Stylizacja dla sekcji banneru */



  .banner-categories-page {
            background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
            border-radius: 16px;
            padding: 40px;
            max-width: 1200px;
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .banner-categories-page::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
            pointer-events: none;
        }

        .banner-categories-page .content {
            flex: 1;
            z-index: 2;
            position: relative;
        }

        .banner-categories-page .title {
            font-size: 2rem;
            font-weight: 700;
            color: #2c2c2c;
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .banner-categories-page .subtitle {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 32px;
            font-weight: 400;
        }

        .banner-categories-page .cta-button {
            background: #ffd700;
            color: #2c2c2c;
            padding: 14px 28px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            text-decoration: none;
            box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
        }

        .banner-categories-page .cta-button:hover {
            background: #ffed4e;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
        }

        .banner-categories-page .tools-container {
            display: flex;
            align-items: center;
            gap: 30px;
            z-index: 2;
            position: relative;
        }

        .banner-categories-page .tool {
            /* Removed animation */
        }

        .banner-categories-page .tool img {
            max-height: 180px;
            max-width: 220px;
            object-fit: contain;
            filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
        }

        /* Responsywność */
        @media (max-width: 1024px) {
            .banner-categories-page {
                padding: 30px;
                margin: 20px;
            }
            
            .banner-categories-page .title {
                font-size: 1.6rem;
            }
            
            .banner-categories-page .tools-container {
                gap: 20px;
            }
            
            .banner-categories-page .tool img {
                max-height: 150px;
                max-width: 180px;
            }
        }

        @media (max-width: 992px) {
            .banner-categories-page {
                flex-direction: column;
                text-align: center;
                padding: 30px 20px;
                margin: 20px;
            }
            
            .banner-categories-page .content {
                margin-bottom: 30px;
            }
            
            .banner-categories-page .title {
                font-size: 1.6rem;
            }
            
            .banner-categories-page .subtitle {
                font-size: 1rem;
                margin-bottom: 24px;
            }
            
            .banner-categories-page .tools-container {
                justify-content: center;
                flex-wrap: wrap;
                gap: 20px;
            }
            
            .banner-categories-page .tool img {
                max-height: 140px;
                max-width: 170px;
            }
        }

        @media (max-width: 768px) {
            .banner-categories-page {
                flex-direction: column;
                text-align: center;
                padding: 30px 20px;
                margin: 15px;
            }
            
            .banner-categories-page .content {
                margin-bottom: 30px;
            }
            
            .banner-categories-page .title {
                font-size: 1.6rem;
            }
            
            .banner-categories-page .subtitle {
                font-size: 1rem;
                margin-bottom: 24px;
            }
            
            .banner-categories-page .tools-container {
                justify-content: center;
                flex-wrap: wrap;
                gap: 15px;
            }
            
            .banner-categories-page .tool img {
                max-height: 120px;
                max-width: 140px;
            }
        }

        @media (max-width: 480px) {
            .banner-categories-page {
                padding: 20px 15px;
                margin: 10px;
            }
            
            .banner-categories-page .title {
                font-size: 1.5rem;
            }
            
            .banner-categories-page .subtitle {
                font-size: 0.9rem;
            }
            
            .banner-categories-page .cta-button {
                padding: 12px 24px;
                font-size: 0.9rem;
            }
            
            .banner-categories-page .tool img {
                max-height: 90px;
                max-width: 110px;
            }
        }




/* Stylizacja dla sekcji kart dlaczego */



.why-choose-us {
            background: #f5f5f5;
            padding: 80px 20px 40px 20px;
            position: relative;
        }

        .why-choose-us .container {
            max-width: 1300px;
            margin: 0 auto;
        }

        .why-choose-us .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .why-choose-us .main-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #2c2c2c;
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .why-choose-us .subtitle {
            font-size: 1.1rem;
            color: #666;
            font-weight: 400;
        }

        .why-choose-us .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 50px;
        }

        .why-choose-us .feature-card {
            background: white;
            padding: 25px 18px;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .why-choose-us .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .why-choose-us .icon {
            font-size: 2.2rem;
            color: #2c2c2c;
            margin-bottom: 18px;
            display: block;
        }

        .why-choose-us .feature-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c2c2c;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .why-choose-us .feature-description {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }

        .why-choose-us .cta-banner {
            background: #1a252f;
            border-radius: 12px;
            padding: 30px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            position: relative;
            z-index: 10;
            transform: translateY(50%);
        }

        .why-choose-us .cta-text {
            font-size: 1.3rem;
            font-weight: 600;
        }

        .why-choose-us .cta-button {
            background: #cc240f;
            color: white;
            padding: 14px 28px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .why-choose-us .cta-button:hover {
            opacity: 0.9;
            
        }

        /* Responsywność */
        @media (max-width: 1024px) {
            .why-choose-us {
                padding: 60px 20px 30px 20px;
            }
            
            .why-choose-us .main-title {
                font-size: 2rem;
            }
            
            .why-choose-us .features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
                margin-bottom: 50px;
            }
            
            .why-choose-us .feature-card {
                padding: 25px 15px;
            }
        }

        @media (max-width: 768px) {
            .why-choose-us {
                padding: 50px 15px 25px 15px;
            }
            
            .why-choose-us .main-title {
                font-size: 1.8rem;
            }
            
            .why-choose-us .subtitle {
                font-size: 1rem;
            }
            
            .why-choose-us .features-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                margin-bottom: 40px;
            }
            
            .why-choose-us .feature-card {
                padding: 25px 20px;
            }
            
            .why-choose-us .icon {
                font-size: 2.2rem;
                margin-bottom: 15px;
            }
            
            .why-choose-us .feature-title {
                font-size: 1.1rem;
            }
            
            .why-choose-us .cta-banner {
                flex-direction: column;
                text-align: center;
                gap: 20px;
                padding: 25px 20px;
                transform: translateY(30%);
            }
            
            .why-choose-us .cta-text {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .why-choose-us {
                padding: 40px 10px;
            }
            
            .why-choose-us .main-title {
                font-size: 1.6rem;
            }
            
            .why-choose-us .subtitle {
                font-size: 0.95rem;
            }
            
            .why-choose-us .feature-card {
                padding: 20px 15px;
            }
            
            .why-choose-us .icon {
                font-size: 2rem;
            }
            
            .why-choose-us .feature-title {
                font-size: 1rem;
            }
            
            .why-choose-us .feature-description {
                font-size: 0.9rem;
            }
            
            .why-choose-us .cta-text {
                font-size: 1.1rem;
            }
            
            .why-choose-us .cta-button {
                padding: 12px 24px;
                font-size: 0.9rem;
            }
        }









/* Desktop - powyżej 992px */
@media (min-width: 993px) {
    .custom-section {
        margin:  100px 0;
    }
    
    .category-about {
        margin: 150px auto 50px auto;
    }
    
    .gradient-section {
        margin: 100px 0;
    }
    
    .banner-categories-page {
        margin: 100px auto 80px auto;
    }
    
    .why-choose-us {
        margin-top: 80px;
        margin-bottom: 0;
    }
}



/* Tablet - 769px do 992px */
@media (max-width: 992px) and (min-width: 769px) {

    .custom-section {
        margin: 80px 0;
    }
    
    .category-about {
        margin: 120px auto 80px auto;
        padding: 0 15px;
    }
    
    .gradient-section {
        margin: 80px 0;
    }
    
    .banner-categories-page {
        margin: 80px 15px 50px 15px;
    }
    
    .why-choose-us {
        margin-top: 80px;
        margin-bottom: 0;
    }
}

/* Mobile - poniżej 768px */
@media (max-width: 768px) {

    .banner{
        margin-top: 20px;
    }

    .brands-section {
        margin: 0px 10px 60px 10px;
    }
    
    .custom-section {
        margin: 60px 0;
    }
    
    .category-about {
        margin: 100px auto 60px auto;
        padding: 0 10px;
    }
    
    .gradient-section {
        margin: 60px 0;
    }
    
    .banner-categories-page {
        margin: 80px 10px 40px 10px;
    }
    
    .why-choose-us {
        margin-top: 80px;
        margin-bottom: 0;
    }
}

/* Small Mobile - poniżej 480px */
@media (max-width: 480px) {
    .brands-section {
        margin: 60px 5px 40px 5px;
    }
    
    .custom-section {
        margin: 40px 0;
    }
    
    .category-about {
        margin: 80px auto 40px auto;
        padding: 0 5px;
    }
    
    .gradient-section {
        margin: 40px 0;
    }
    
    .banner-categories-page {
        margin: 40px 5px 30px 5px;
    }
    
    .why-choose-us {
        margin-top: 30px;
        margin-bottom: 0;
    }
}




.footer{
    margin-top: 80px;
}






.cart-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    flex-shrink: 0;
    /* Accessibility */
    outline: none;
}

.cart-button:hover {
    background: linear-gradient(to left, #c4001a 0%, #021f35 100%);
    transform: scale(1.05);
}

.cart-button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.cart-button:active {
    transform: scale(0.95);
}

/* Kontener dla wysyłki i przycisku koszyka */
.ctn-shipping {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

/* Pokazanie przycisku po najechaniu na product-item */
.product-item:hover .cart-button {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Ikonka koszyka SVG */
.cart-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Na mobile zawsze widoczny dla dostępności */
@media (max-width: 768px) {
    .cart-button {
        display: flex !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}



@media (max-width: 992px) {
    .cart-button {
        display: flex !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}





/* Układ siatki produktów */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Układ dla tabletów (992px i mniej) */
@media (max-width: 992px) {
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .desktop-hidden {
    display: none !important;
  }
}

/* Układ dla mobile (768px i mniej) */
@media (max-width: 768px) {
  .category-product-grid {
    grid-template-columns: 1fr;
  }
  
  .tablet-hidden {
    display: none !important;
  }
}

/* Klasy pomocnicze */
.desktop-hidden { display: none; }
.tablet-hidden { display: block; }
.mobile-hidden { display: block; }

@media (max-width: 992px) {
  .tablet-hidden { display: none; }
  .mobile-hidden { display: block; }
}

@media (max-width: 768px) {
  .mobile-hidden { display: none; }
}



/* Pagination Styles - wykorzystuje style z category-page.css */

/* Pagination Styles - wykorzystuje style z category-page.css */
/* Pagination Styles - wykorzystuje style z category-page.css */
.pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 40px 0 !important;
}

.page-list {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
}

.page-item {
  display: flex !important;
  align-items: center !important;
}

/* Przycisk strony - kółeczka */
.page-link {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #e0e0e0 !important;
  background: white !important;
  color: #666 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.page-link:hover {
  background-color: #f8f9fa !important;
  border-color: #ccc !important;
  color: #333 !important;
  text-decoration: none !important;
}

/* Aktywna strona */
.page-item.active .page-link,
.page-link.current {
  background: linear-gradient(to left, #e1001d 0%, #03294c 100%) !important;
  color: white !important;
  cursor: default !important;
  font-weight: 600 !important;
  border: none !important;
}

.page-item.active .page-link:hover,
.page-link.current:hover {
  color: white !important;
  border: none !important;
}

/* Disabled state */
.page-item.disabled .page-link {
  color: #ccc !important;
  pointer-events: none !important;
  background-color: transparent !important;
  cursor: not-allowed !important;
}

/* Przyciski nawigacji Previous/Next */
.page-link.previous,
.page-link.next {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  background: linear-gradient(to left, #e1001d 0%, #03294c 100%) !important;
  color: white !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: auto !important;
  height: auto !important;
}

.page-link.previous:hover,
.page-link.next:hover {
  opacity: 0.9 !important;
  color: white !important;
}

.page-link.previous:active,
.page-link.next:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(0, 169, 145, 0.3) !important;
}

/* Disabled state dla przycisków nawigacji */
.page-item.disabled .page-link.previous,
.page-item.disabled .page-link.next {
  background-color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.page-item.disabled .page-link.previous:hover,
.page-item.disabled .page-link.next:hover {
  background-color: #ccc !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.6 !important;
}

/* Responsywność */
@media (max-width: 768px) {
  .pagination {
    gap: 12px !important;
  }

  .page-link {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .page-link.previous,
  .page-link.next {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .page-list {
    gap: 4px !important;
  }

  .page-link {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .page-link.previous,
  .page-link.next {
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  /* Ukryj niektóre numery stron na bardzo małych ekranach */
  .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
    display: none !important;
  }
}





/* Fix dla dropdown sortowania */

.category-nav-item.level-1 {
 display: flex;
 justify-content: flex-start;
}


/* Przycisk "Wróć" - kolor i margines */
.category-back-btn {
 color: #333;
 margin-left: 15px;
}

.category-back-btn span {
 color: #333;
}

.category-back-btn span:hover {
  text-decoration: underline;
}

/* Ukryj notatkę o sprawdzeniu innych kategorii */
.category-nav-note {
 display: none;
}


.category-dropdown,
.category-dropdown * {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


.category-toggle-btn {
            background: transparent !important;
            border: none !important;
            width: auto !important;
            height: auto !important;
            display: none !important; /* Domyślnie ukryj wszystkie */
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            color: #666 !important;
            position: static !important; /* Nie absolute - normalny flow */
            margin-left: 8px !important; /* Odstęp od nazwy */
            margin-right: 0 !important;
            transform: none !important;
            z-index: 10;
            padding: 0 !important;
        }



        /* === STRUKTURA === */
.category-nav-item-wrapper.has-toggle-button,
.category-item-with-toggle {
  display: block !important;
  margin: 0;
  padding: 0;
  position: relative;
}

/* === PRZYCISK TOGGLE === */
.category-toggle-btn {
  display: none !important;
  position: absolute !important;
  top: 14px !important; /* Poprawione z 50% */
  right: 8px !important;
  transform: none !important; /* Usunięto translateY(-50%) */
  width: 20px !important;
  height: 20px !important;
  background: transparent !important;
  border: none !important;
  color: #666 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10;
  align-items: center !important;
  justify-content: center !important;
}

.category-nav-item-wrapper .category-toggle-btn {
  display: flex !important;
}

.category-toggle-btn:hover {
  color: #333 !important;
}

.category-toggle-btn .toggle-icon {
  font-size: 14px !important;
  font-weight: normal !important;
  transition: transform 0.2s ease !important;
  color: #666 !important;
  transform: rotate(90deg) !important;
}

.category-toggle-btn .toggle-icon.expanded {
  transform: rotate(-90deg) !important;
}

/* === STRZAŁKI - TYLKO DLA GŁÓWNYCH === */
.category-dropdown .category-toggle-btn {
  display: none !important;
}

.category-nav-item-wrapper.has-toggle-button > .category-toggle-btn:first-child {
  display: flex !important;
}

.category-nav-item[data-category-name="Wiertarki"] + .category-toggle-btn,
.category-nav-item-wrapper:first-child .category-toggle-btn {
  display: flex !important;
}

/* === LINK KATEGORII === */
.category-nav-item {
  display: block !important;
  width: 100% !important;
  padding: 14px 32px 14px 16px !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  color: #444 !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
  border: none !important;
  border-radius: 0 !important;
}

.category-nav-item:hover {
  color: #222 !important;
}

.category-nav-item.current {
  color: #000 !important;
  font-weight: 600;
}

.category-nav-item.dropdown-expanded {
  font-weight: 600 !important;
  color: #222 !important;
}

/* === DROPDOWN === */
.category-dropdown {
  max-height: 0;
  opacity: 0;
  display: none;
  margin: 0 !important;
  padding-left: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.category-dropdown.active,
.category-dropdown.expanded {
  max-height: 1000px !important;
  opacity: 1 !important;
  display: block !important;
}

.category-dropdown.level-1,
.category-dropdown.level-2,
.category-dropdown.level-3,
.category-dropdown.level-4 {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* === KONTROLKI DRZEWA === */
.category-tree-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tree-control-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tree-control-btn:hover {
  color: #333;
}

/* === WSZYSTKO NA JEDNYM POZIOMIE === */
.category-nav-item-wrapper,
.category-nav-item,
.category-dropdown,
.category-nav-list,
.category-sidebar *,
.category-dropdown.level-1,
.category-dropdown.level-2,
.category-dropdown.level-3,
.category-dropdown.level-4 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* === PSEUDOELEMENTY === */
.category-nav-item-wrapper::before,
.category-nav-item-wrapper::after,
.category-nav-item::before,
.category-nav-item::after,
.category-dropdown::before,
.category-dropdown::after {
  display: none !important;
  content: none !important;
}

/* === PRZYCISK WRÓĆ === */
.category-back-container {
  padding: 12px 16px;
}

.category-back-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-back-btn:hover {
  color: #000 !important;
}

.category-back-btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* === WSKAŹNIKI === */
.current-indicator,
.active-indicator {
  color: #333 !important;
  font-weight: bold;
  margin-left: 8px;
}

.category-sidebar-header .category-icon {
   width: 24px;
   height: 24px;
   background-color: #cc240f !important; /* ← tylko tło */
   /* brak ikony! */
}







/* STYLE DLA POPRAWIONYCH FILTRÓW CEN */


/* POPRAWIONY CSS DLA FILTRÓW CEN - bez efektów pulse i z szarym obramowaniem */


/* FINALNY CSS DLA FILTRÓW CEN - czerwony kolor i przycisk pod inputami */

/* FINALNY CSS DLA FILTRÓW CEN - inputy obok siebie, przycisk pod spodem */


/* FINALNY CSS DLA FILTRÓW CEN - wszystko wycentrowane */

.price-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.price-inputs-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    justify-content: center;
}

.price-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.price-separator {
    font-weight: bold;
    color: #666;
    padding: 0 5px;
    flex-shrink: 0;
}

.price-currency {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
    flex-shrink: 0;
}

.price-filter-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.apply-price-btn {
    background-color: #cc240f !important;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
    border-radius: 25px;
}

.apply-price-btn:hover {
    background-color: #cc240f;
    opacity: 0.9;
}

.apply-price-btn:active {
    background-color: #cc240f;
    opacity: 0.8;
}

.apply-price-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 1;
}

/* Responsywność */
@media (max-width: 768px) {
    .price-inputs-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .price-input {
        min-width: 100px;
    }
    
    .apply-price-btn {
        width: 100%;
        margin-top: 15px;
    }
}


/* czyszczenie fitlrów style */


.clear-filters-btn {
    background-color: transparent !important;
    color: #cc240f !important;
    border: 2px solid #cc240f !important;
    padding: 6px 14px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.clear-filters-btn:hover {
    background-color: #cc240f !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.clear-filters-btn:active {
    transform: translateY(0) !important;
}


.active-indicator{
    display: none;
}




.responsive-pagination .page-item.next .page-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  background: linear-gradient(to left, #e1001d 0%, #03294c 100%) !important;
  color: white !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: auto !important;
  height: auto !important;
}

.responsive-pagination .page-item.next .page-link:hover {
  opacity: 0.9 !important;
  color: white !important;
}


.responsive-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  width: 100%;
}

.responsive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}


.responsive-pagination .page-item.previous .page-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  background: linear-gradient(to left, #e1001d 0%, #03294c 100%) !important;
  color: white !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: auto !important;
  height: auto !important;
}

.responsive-pagination .page-item.previous .page-link:hover {
  opacity: 0.9 !important;
  color: white !important;
}

.responsive-pagination .page-item.next .page-link .mobile-icon {
 display: none;
}

.responsive-pagination .page-item.previous .page-link .mobile-icon {
 display: none;
}


.mobile-pagination-actions{
    display: none;
}

@media (max-width: 992px) {
  .category-product-grid {
    gap: 10px !important;
  }
  
  .product-item {
    margin-bottom: 10px !important;
  }
}

.status-label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
}

/* Gdy promocja jest po nowości (są razem) - przesuń w prawo */
.nowość-badge-pro + .promocja-badge-pro {
  left: 85px !important;
}



.category-content-section .category-product-grid {
  align-items: stretch;
}



.cart-button {
  width: 40px;
  height: 40px;
  background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex !important; /* Zawsze wyświetlaj */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0; /* Ukryj wizualnie */
  transform: scale(0.8);
  flex-shrink: 0;
  outline: none;
}

/* Pokazuj przy hover */
.product-item:hover .cart-button {
  opacity: 1;
  transform: scale(1);
}


/* tutaj do buttonu style */


#products-categories .ajax-add-to-cart-button {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(to left, rgb(225, 0, 29) 0%, rgb(3, 41, 76) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
    flex-shrink: 0 !important;
    outline: none !important;
    padding: 0px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    margin: 0px !important;
    font-size: 0px !important;
    pointer-events: none !important;
}

/* Hover na CAŁYM kontenerze */
#products-categories:hover .ajax-add-to-cart-button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Ikona */
#products-categories .ajax-add-to-cart-button i,
#products-categories .ajax-add-to-cart-button svg {
    color: white !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* Mobile – zawsze widoczny */
@media (max-width: 991px) {
    #products-categories .ajax-add-to-cart-button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
        pointer-events: auto !important;
    }
}


.category-information {
    padding: 20px 0px;
    margin: 24px 0px;
}

.text-category-info {
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.2px;
    font-weight: 500;
}

.text-category-info a {
    color: #cc240f;
    background: none;
    text-decoration: none;
}

.text-category-info a:hover {
    text-decoration: underline;
}

/* ============================================================
   WYRÓWNANIE KART PRODUKTÓW – RÓWNA WYSOKOŚĆ I WYRÓWNANE ELEMENTY
   ============================================================ */

/* Siatka: karty mają równą wysokość */
.category-content-section .category-product-grid {
    align-items: stretch !important;
}

/* Karta: flex column, wypełnia całą wysokość wiersza siatki */
.category-content-section .product-item {
    display: flex !important;
    flex-direction: column !important;
}

/* Kontener obrazu: stała wysokość, obraz wycentrowany bez przycinania */
.category-content-section .product-image-container {
    height: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Obraz: contain zamiast cover – bez przycinania */
.category-content-section .product-item img {
    max-height: 100% !important;
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* Sekcja informacyjna: flex column – wypełnia resztę karty */
.category-content-section .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tytuł: max 3 linie z wielokropkiem – bez łamania layoutu przy bardzo długich tytułach */
.category-content-section .product-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3em;
    flex-grow: 0;
    flex-shrink: 0;
    margin-bottom: 10px; /* mały gwarantowany odstęp od linii separatora */
}

/* Separator: pcha cenę/dostępność na dół + linia dokładnie do krawędzi karty (padding karty = 20px) */
.category-content-section .product-info .separator-category {
    margin-top: auto !important;
    margin-right: -20px !important;
    margin-left: -20px !important;
    width: calc(100% + 40px) !important;
}

/* Sticker "Oszczędź" – prawy górny róg karty */
.savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #cc240f;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    white-space: nowrap;
}

/* ============================================================
   NOWOŚCI & PROMOCJE – TE SAME KARTY CO STRONA KATEGORII
   ============================================================ */

/* Siatka */
.news-product-grid,
.promotion-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

@media (max-width: 1500px) {
    .news-product-grid,
    .promotion-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
    .news-product-grid,
    .promotion-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .news-product-grid,
    .promotion-product-grid { gap: 15px; }
}
@media (max-width: 600px) {
    .news-product-grid,
    .promotion-product-grid { grid-template-columns: 1fr; }
}

/* Karta */
.news-product-item,
.promotion-product-item {
    background-color: #fff;
    border: 2px solid #f0efef;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-product-item:hover,
.promotion-product-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Kontener obrazu */
.news-product-image-container,
.promotion-product-image-container {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.news-product-image-container img,
.promotion-product-image-container img {
    max-height: 100%;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Info section */
.news-product-info,
.promotion-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Producent */
.news-producer-title,
.promotion-producer-title {
    color: #4a5568;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tytuł – max 3 linie, min 3em */
.news-product-title,
.promotion-product-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3em;
    flex-grow: 0;
    flex-shrink: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.news-product-title a,
.promotion-product-title a {
    color: black;
    text-decoration: none;
}

.news-product-title a:hover,
.promotion-product-title a:hover {
    text-decoration: underline;
}

/* Separator – do krawędzi karty, zawsze na dole info */
.news-separator,
.promotion-separator {
    margin-top: auto !important;
    margin-right: -20px !important;
    margin-left: -20px !important;
    width: calc(100% + 40px) !important;
    height: 1px;
    border: none;
    border-top: 1px solid #e9e9e9;
    margin-bottom: 10px;
}

/* Cena */
.news-price-container,
.promotion-price-container {
    margin: 10px 0;
    font-weight: bold;
    font-size: 16px;
}

/* Dostępność */
.news-availability,
.promotion-availability {
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
}

.news-stock-status,
.promotion-stock-status {
    font-size: 14px;
    font-weight: bold;
}

/* Wysyłka */
.news-shipping-container,
.promotion-shipping-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.news-shipping-info,
.promotion-shipping-info {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    border-radius: 9999px;
    width: 100%;
}

/* ============================================================
   STRONA PRODUCENTA – TE SAME KARTY CO STRONA KATEGORII
   Używamy .producer-content-section jako rodzica (wyższa specyficzność)
   ============================================================ */

/* Siatka: karty mają równą wysokość */
.producer-content-section .producer-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px;
    align-items: stretch !important;
}

@media (max-width: 1500px) {
    .producer-content-section .producer-product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 1200px) {
    .producer-content-section .producer-product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 992px) {
    .producer-content-section .producer-product-grid { gap: 15px !important; }
}
@media (max-width: 600px) {
    .producer-content-section .producer-product-grid { grid-template-columns: 1fr !important; }
}

/* Karta: flex column, wypełnia całą wysokość wiersza siatki */
.producer-content-section .producer-page-product-item {
    background-color: #fff;
    border: 2px solid #f0efef;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    min-height: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.producer-content-section .producer-page-product-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Link: wypełnia kartę (minus sekcja wysyłki na dole) */
.producer-content-section .producer-product-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Kontener obrazu: stała wysokość */
.producer-content-section .producer-product-image-container {
    height: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-bottom: 10px;
}

.producer-content-section .producer-product-image-container img {
    max-height: 100% !important;
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* Sekcja informacyjna: flex column, wypełnia link (minus obraz) */
.producer-content-section .producer-product-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Brand/SKU: zawsze 1 linia nad tytułem */
.producer-content-section .producer-producer-title {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* Tytuł: STAŁA wysokość = zawsze dokładnie 3 linie we WSZYSTKICH kartach.
   Używamy height (nie min-height) – element nigdy nie rośnie ponad 3 linie */
.producer-content-section .producer-product-title {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.4 !important;
    height: calc(3 * 1.4em) !important;
    max-height: calc(3 * 1.4em) !important;
    flex: 0 0 calc(3 * 1.4em) !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: black !important;
}

/* Separator: pcha cenę/dostępność na dół + linia do krawędzi karty */
.producer-content-section .producer-product-info .producer-separator-category {
    margin-top: auto !important;
    margin-right: -20px !important;
    margin-left: -20px !important;
    width: calc(100% + 40px) !important;
    height: 1px;
    border: none;
    border-top: 1px solid #e9e9e9;
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* Cena */
.producer-content-section .producer-product-price-container {
    margin: 10px 0;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

/* Dostępność */
.producer-content-section .producer-availability {
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
}

.producer-content-section .producer-stock-status {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.producer-content-section .producer-in-stock  { color: #02816f; }
.producer-content-section .producer-low-stock { color: rgb(255, 154, 82); }
.producer-content-section .producer-out-of-stock { color: #dc3545; }

/* Globalna min-height dla kontenera wysyłki – działa na stronach nowości i promocji */
.producer-ctn-shipping {
    min-height: 40px;
}

/* Wysyłka: przyklejona do dołu karty – STAŁA wysokość = zawsze 40px
   (tyle co przycisk koszyka), dzięki temu link/info mają IDENTYCZNĄ
   wysokość dla produktów dostępnych i niedostępnych */
.producer-content-section .producer-ctn-shipping {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 10px;
    gap: 10px;
    flex-shrink: 0;
    min-height: 40px;
}

.producer-content-section .producer-shipping-info {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    border-radius: 9999px;
    flex: 1;
}

/* Kontener przycisku – stała szerokość ZAWSZE (nawet gdy pusty dla niedostępnych) */
.producer-content-section .producer-cart-button-container {
    width: 40px;
    flex-shrink: 0;
}

/* PRZYCISK KOSZYKA */
.producer-content-section .producer-cart-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    flex-shrink: 0;
    outline: none;
}

.producer-content-section .producer-cart-button:hover {
    background: linear-gradient(to left, #c4001a 0%, #021f35 100%);
    transform: scale(1.05);
}

.producer-content-section .producer-cart-button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    opacity: 1;
    transform: scale(1);
}

.producer-content-section .producer-cart-button:active {
    transform: scale(0.95);
}

.producer-content-section .producer-cart-button:disabled,
.producer-content-section .producer-cart-button[disabled] {
    display: none !important;
}

.producer-content-section .producer-page-product-item:hover .producer-cart-button:not(:disabled):not([disabled]) {
    opacity: 1;
    transform: scale(1);
}

.producer-content-section .producer-page-product-item.out-of-stock .producer-cart-button {
    display: none !important;
}

.producer-content-section .producer-cart-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

/* AJAX przycisk koszyka */
.producer-content-section .producer-page-product-item .ajax-add-to-cart-button {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(to left, rgb(225, 0, 29) 0%, rgb(3, 41, 76) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
    flex-shrink: 0 !important;
    outline: none !important;
    padding: 0 !important;
    min-width: 40px !important;
    max-width: 40px !important;
    margin: 0 !important;
    font-size: 0 !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    .producer-content-section .producer-page-product-item:hover .ajax-add-to-cart-button {
        opacity: 1 !important;
        transform: scale(1) !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 991px) {
    .producer-content-section .producer-page-product-item .ajax-add-to-cart-button {
        opacity: 1 !important;
        transform: scale(1) !important;
        pointer-events: auto !important;
    }
    .producer-content-section .producer-cart-button:not(:disabled):not([disabled]) {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}

/* === STICKERY / BADGE === */
.producer-content-section .manufacturer-status-label {
    position: absolute;
    top: 15px;
    z-index: 2;
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.producer-content-section .manufacturer-nowosc-badge {
    left: 15px;
    background-color: #4CAF50;
}

.producer-content-section .manufacturer-promocja-badge {
    left: 85px;
    background-color: #0FA9AC;
}

.producer-content-section .producer-page-product-item:not(:has(.manufacturer-nowosc-badge)) .manufacturer-promocja-badge {
    left: 15px;
}

.producer-content-section .manufacturer-savings-amount {
    color: #079257;
    font-size: 15px;
    font-weight: bold;
    margin-left: 10px;
}

/* Hover effect – wyłącz uniesienie karty gdy hover na tytule */
.producer-content-section .producer-page-product-item:has(.producer-product-title:hover) {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.producer-content-section .producer-page-product-item.title-hover-active {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

/* Hover – podkreślenie tytułu */
.producer-content-section .producer-product-link:hover .producer-product-title {
    text-decoration: underline;
}