/* Sortowanie produktów */
.sort-container {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-container label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sort-container select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-container select:hover {
    border-color: #007bff;
}

.sort-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    .sort-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-container select {
        width: 100%;
        min-width: auto;
    }
}

/* Style dla listy produktów */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Wrapper dla treści produktu */
.product-content {
    flex: 1;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #333;
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.product-card .price {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin: 15px 0;
}

/* Kontener dla przycisków produktu - układane jeden pod drugim */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
}

/* Podstawowe style przycisków */
.product-card .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Przycisk "Zobacz" - stylowy gradient niebieski */
.product-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.product-card .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Przycisk "Dodaj do koszyka" - pomarańczowo-czerwony gradient z emoji */
.product-card .btn-cart {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 600;
}

.product-card .btn-cart:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Dodatkowe style dla przycisków button */
.product-card button.btn {
    border: none;
    font-family: inherit;
}

/* Stany aktywne */
.product-card .btn:active {
    transform: translateY(0);
}

.product-card .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Responsywność przycisków */
@media (max-width: 768px) {
    .product-actions {
        gap: 10px;
    }

    .product-card .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        gap: 8px;
    }

    .product-card .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Responsywność dla kart produktów na małych ekranach */
@media (max-width: 480px) {
    .product-card {
        padding: 12px;
    }

    .product-card img {
        height: 150px;
        margin-bottom: 10px;
    }

    .product-card h3 {
        font-size: 16px;
        margin: 8px 0;
    }

    .product-card p {
        font-size: 13px;
        margin: 8px 0;
    }

    .product-card .price {
        font-size: 18px;
        margin: 10px 0;
    }
}

/* Responsywność dla siatki produktów */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .product-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
}

/* Powiadomienia o dodaniu do koszyka */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-weight: 600;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}