css


/* Style głównego kontenera */
.chicken-king-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', 'Anton';
    color: #fff;
}

/* Tytuł sekcji */
.section-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #ffa200;
    font-family: 'Anton';
    letter-spacing: 1.5px;
}

/* Filtry kategorii - wersja desktopowa */
.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-filter {
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    background-color: #222;
    border: 1px solid #333;
}

.category-filter:hover {
    color: #ffa200;
    border-color: #ffa200;
}

.category-filter.active {
    color: #363636;
    font-weight: 600;
    background-color: #ffa200;
    border-color: #ffa200;
}

/* Rozwijana lista kategorii - wersja mobilna */
.mobile-category-dropdown {
    display: none;
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
}

.mobile-category-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background-color: #ffa200;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.mobile-category-button:after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-category-button.active:after {
    transform: rotate(180deg);
}

.mobile-category-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-category-list.show {
    display: block;
}

.mobile-category-list a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

.mobile-category-list a:last-child {
    border-bottom: none;
}

.mobile-category-list a.active {
    background-color: #333;
    color: #ffa200;
}

.mobile-category-list a:hover {
    background-color: #333;
}

/* Loader */
.loading-products {
    text-align: center;
    color: #fff;
    padding: 40px;
    font-size: 16px;
}

/* Slider produktów */
.products-slider {
    margin: 0 -15px;
}

/* Dostosowanie strzałek slidera */
.slick-prev, .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
}

.slick-prev {
    left: -10px;
}

.slick-next {
    right: -10px;
}

.slick-prev:before, .slick-next:before {
    color: #ffa200;
    font-size: 30px;
}

/* Dostosowanie kropek slidera */
.slick-dots li button:before {
    color: #ffa200;
}

.slick-dots li.slick-active button:before {
    color: #ffa200;
}

/* Karta produktu - struktura flex dla wyrównania */
.product-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 15px;
    height: 520px; /* Zwiększona wysokość, aby przycisk był w pełni widoczny */
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
    border-color: #ffa200;
}

/* Etykieta promocji */
.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6600;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Zdjęcie produktu - zwiększona wysokość */
.product-image {
    height: 240px; /* Zwiększona wysokość zdjęcia */
    overflow: hidden;
    background-color: #1a1a1a;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Szczegóły produktu - flex dla wyrównania */
.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between; /* Kluczowe dla wyrównania */
}

/* Górna część szczegółów produktu */
.product-info {
    display: flex;
    flex-direction: column;
}

/* Tytuł produktu - zwiększona wysokość */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: 70px; /* Zwiększona wysokość dla 3-4 linii tekstu */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Zwiększona liczba linii */
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #ffa200;
}

/* Oceny produktu */
.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    height: 20px; /* Stała wysokość */
}

.star {
    color: #ff6600;
    margin-right: 2px;
}

.star.full {
    color: #ff6600;
}

.star.half {
    color: #ff6600;
}

.star.empty {
    color: #555;
}

.rating-count {
    color: #aaa;
    margin-left: 5px;
    font-size: 12px;
}

/* Cena produktu */
.product-price {
    margin: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    height: 28px; /* Stała wysokość */
}

.regular-price {
    color: #aaa;
    text-decoration: line-through;
    font-size: 14px;
}

.current-price {
    color: #ffa200;
    font-size: 18px;
    font-weight: 700;
}

/* Przyciski akcji - zawsze na dole */
.product-actions {
    width: 100%;
    margin-top: 20px; /* Zwiększony margines */
    padding-bottom: 10px; /* Dodatkowy padding na dole */
}

.add-to-cart-button {
    background-color: #ffa200;
    color: #363636;
    border: none;
    padding: 12px 15px; /* Zwiększony padding dla lepszej widoczności */
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
}

.add-to-cart-button:hover {
    background-color: #ff8533;
}

/* Style dla przycisku w trakcie ładowania */
.add-to-cart-button.loading {
    opacity: 0.7;
    cursor: wait;
    background-color: #888;
}

/* Style dla przycisku po dodaniu do koszyka */
.add-to-cart-button.added {
    background-color: #4CAF50;
}

/* Komunikat o braku produktów */
.no-products {
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 20px;
}

/* Style dla powiadomienia o dodaniu do koszyka */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

/* Responsywność */
@media (max-width: 1024px) {
    .product-card {
        height: 540px;
    }
    
    .slick-prev {
        left: -25px;
    }
    
    .slick-next {
        right: -25px;
    }
}

@media (max-width: 768px) {
    .product-card {
        height: 560px;
    }
    
    /* Pokaż rozwijaną listę kategorii na urządzeniach mobilnych */
    .product-categories {
        display: none;
    }
    
    .mobile-category-dropdown {
        display: block;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    /* Ukryj strzałki slidera na tabletach */
    .slick-prev, .slick-next {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        height: 520px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .chicken-king-products-container {
        padding: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 14px;
        height: 60px;
        -webkit-line-clamp: 2;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .add-to-cart-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Dodatkowe style dla lepszej kompatybilności z różnymi motywami */
.chicken-king-products-container * {
    box-sizing: border-box;
}

.chicken-king-products-container a {
    text-decoration: none;
}

.chicken-king-products-container button {
    outline: none;
}

/* Animacje ładowania */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-products {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth scrolling dla mobilnych urządzeń */
.mobile-category-list {
    -webkit-overflow-scrolling: touch;
}

/* Zapewnienie, że slider nie wychodzi poza kontener */
.chicken-king-products-container {
    overflow: hidden;
}

/* Style dla przypadku gdy brak jest zdjęcia produktu */
.product-image img[src*="placeholder"] {
    opacity: 0.7;
    filter: grayscale(20%);
}