/*
    File: user/style/products-style.css
    Author: Yash Balotiya
    Description: This file contains the styling part of the products page
    Created on: 13/10/2024
    Last Modified: 30/04/2025
*/

* {
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body {
    max-width: 100vw;
    height: 100vh;
    background-color: white;
}

.main {
    width: 100%;
    height: 1300px;
    display: flex;
    justify-content: center;
}

/* main section */
.main-sec {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

/* left side */
.side-menu-sec {
    width: 30%;
}

.side-menu-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background-color: #f7f7f7;
    border-radius: 10px;
    margin-top: 50px;
    height: 95%;
    overflow-y: auto;
}

.side-menu-div a {
    text-decoration: none;
    color: black;
}

.side-menu-div ul li {
    margin: 12px 0;
}

.vertical-divider {
    width: 1px;
    height: 100%;
    background-color: #acacac;
    margin-top: 20px;
}

/* right side */
.orders-sec {
    width: 60%;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.orders-sec h5 {
    text-align: center;
}

.product-div {
    width: 100%;
    padding: 20px;
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    margin: 10px 0;
}

.product-img {
    width: 200px;
    height: 150px;
    margin: 0 20px;
}

.product-desc {
    width: 80%;
    padding: 10px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-desc p {
    margin: 0;
}

.view-btn {
    color: #65c1f0;
    background-color: transparent;
    border: 1px solid #65c1f0;
    border-radius: 6px;
    padding: 0 8px;
    width: 150px;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.view-btn:hover {
    color: white;
    background-color: #65c1f0;
}

#pagination {
    display: flex;
    justify-content: center;
    /* Center the pagination */
    margin-top: 20px;
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-button:hover {
    background-color: #e0e0e0;
    /* Change background on hover */
}

#pagination {
    display: flex;
    justify-content: center;
    /* Center the pagination */
    align-items: center;
    /* Align items vertically */
    margin-top: 20px;
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-button:hover {
    background-color: #e0e0e0;
    /* Change background on hover */
}

.prev-next-button {
    font-weight: bold;
    /* Make previous/next buttons stand out */
}

.pagination-button.active {
    background-color: #01204e;
    /* background-color: #007bff; */
    /* Active page button color */
    color: white;
    border-color: #01204e;
    /* border-color: #007bff; */
    /* Match border color to active background */
}

.pagination-button:disabled {
    cursor: not-allowed;
    /* Change cursor for disabled buttons */
    opacity: 0.5;
    /* Make disabled buttons look faded */
}

/* Responsiveness */
@media(max-width: 1400px) {
    .main-sec {
        width: 90%;
    }
}

@media(max-width: 1100px) {
    .main-sec {
        width: 95%;
    }

    #side-menu {
        padding: 20px;
    }
}

@media(max-width: 900px) {
    .main-sec {
        width: 100%;
        justify-content: center;
    }

    .side-menu-sec,
    .vertical-divider {
        display: none;
    }

    .orders-sec {
        width: 90%;
    }
}

@media(max-width: 550px) {
    .product-div {
        flex-direction: column;
    }

    .product-desc {
        width: 100%;
        margin: 0;
    }

    .product-img-div {
        text-align: center;
    }

    .product-desc button {
        margin: 8px 0 0 0;
    }

    #pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .main {
        height: 2000px;
    }
}