
/* סגנונות לקטני מסך */
@media only screen and (max-width: 600px) {

    html, body {
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f4f4f9;
        color: #333;
        text-align: center;
    }

    h1 {
        font-size: 1.8rem;
        color: #ff6d4a;
        margin-top: 30px;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .product-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        justify-content: center;
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .product-box {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .product-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .product-image {
        width: 100%;
        height: auto;
        border-bottom: 5px solid #ff6d4a;
        transition: transform 0.3s ease;
    }

    .product-box:hover .product-image {
        transform: scale(1.1);
    }

    .product-description {
        font-size: 1.2rem;
        color: white;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 15px;
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        transition: background-color 0.3s ease;
    }

    .product-box:hover .product-description {
        background-color: rgba(0, 0, 0, 0.9);
    }

    /* Pagination styles */
    .pagination {
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .pagination button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 15px;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    outline: none;
    }

    .pagination button:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .pagination button[disabled] {
        background-color: rgba(0, 0, 0, 0.2);
        cursor: not-allowed;
    }

    .pagination button::before {
        content: '';
        border: solid white;
        border-width: 0 4px 4px 0;
        display: inline-block;
        padding: 8px;
        transform: rotate(45deg);
    }

    #prevPage::before {
        transform: rotate(-45deg);
    }

    #nextPage::before {
        transform: rotate(135deg);
    }

}

/* סגנונות למסכים גדולים יותר */
@media only screen and (min-width: 601px) {
    html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    }

    h1 {
        font-size: 1.8rem;
        color: #ff6d4a;
        margin-top: 30px;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .product-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        justify-content: center;
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .product-box {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .product-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .product-image {
        width: 100%;
        height: auto;
        border-bottom: 5px solid #ff6d4a;
        transition: transform 0.3s ease;
    }

    .product-box:hover .product-image {
        transform: scale(1.1);
    }

    .product-description {
        font-size: 1.2rem;
        color: white;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 15px;
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        transition: background-color 0.3s ease;
    }

    .product-box:hover .product-description {
        background-color: rgba(0, 0, 0, 0.9);
    }

    /* Pagination styles */
    .pagination {
        position: fixed;
        top: 50%;
        width: 80%;
        margin-left: 190px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
    }

    .pagination button {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: all;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s ease;
        outline: none;
    }

    .pagination button:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .pagination button[disabled] {
        background-color: rgba(0, 0, 0, 0.2);
        cursor: not-allowed;
    }

    .pagination button::before {
        content: '';
        border: solid white;
        border-width: 0 4px 4px 0;
        display: inline-block;
        padding: 8px;
        transform: rotate(45deg);
    }

    #prevPage::before {
        transform: rotate(-45deg);
    }

    #nextPage::before {
        transform: rotate(135deg);
    }
}    