* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background: #000;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(255, 38, 0, 0.527);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    background-color: red;
    padding: 0 5px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    
    margin-right: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.cart-btn button {
    background-color: rgba(209, 36, 5, 0.831);
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cart-btn button:hover {
    background-color: rgba(0, 97, 139, 0.427);
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: red;
    cursor: pointer;
}

main {
    margin-top: 75px;
}

#search-bar-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.search-bar {
    width: 60%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #707070a8;
    border-radius: 50px;
    outline: none;
    background-color: rgba(0, 97, 139, 0.427);
    color: white;
}

#main {
    display: flex;
    justify-content: space-between;
    margin: 20px 40px;
}

#filter-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 97, 139, 0.427);
}

#filter-section ul {
    list-style: none;
}

#filter-section h3 {
    margin-bottom: 10px;
    text-align: center;
}

#filter-section ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

#filter-section input[type="checkbox"] {
    margin-right: 10px;
}

#filter-section input[type="checkbox"]:hover, #filter-section input[type="range"]:hover {
    cursor: pointer;
}

#price-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
}

#filter-section button {
    background-color: rgba(209, 36, 5, 0.831);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#filter-section button:hover {
    background-color: rgba(0, 97, 139, 0.427);
}

#Products {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.Product-item {
    position: relative;
    background-color: rgba(0, 97, 139, 0.427);
    border: 1px solid #707070a8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.Product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.Product-image {
    width: 100%;
    height: 150px;
    background-color: #242424;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.Product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.Product-info {
    text-align: center;
}

.Product-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.Product-description {
    display: none;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Show description on hover */
.Product-item:hover .Product-description {
    display: block;
}

.add-to-cart {
    background-color: rgba(209, 36, 5, 0.831);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: rgba(0, 97, 139, 0.427);
}

#page-number-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#page-number-container nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
}

#page-number-container nav ul li {
    margin: 0 5px;
}

#page-number-container nav ul li a,
#page-number-container nav ul li span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

#page-number-container nav ul li a:hover {
    background-color: #e0e0e0;
    color: #333;
}

#page-number-container nav ul li span#current-page {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

#page-number-container nav ul li a {
    color: #555;
}

#page-number-container nav ul li a:focus,
#page-number-container nav ul li a:active {
    outline: none;
    background-color: #555;
    color: #fff;
}

#page-number-container nav ul li:last-child a {
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#page-number-container nav ul li:last-child a:hover {
    background-color: #555;
    color: #fff;
}

footer {
    background-color: rgba(0, 97, 139, 0.311);
    color: #fff;
    padding: 20px 10px;
    text-align: center;
    padding-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    padding: 5px;
}

.footer-section h2 {
    color: #ff4d4d;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 3px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff4d4d;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.socials a {
    margin: 0 8px;
    display: inline-block;
}

.socials img {
    width: 35px;
    height: 35px;
}

.footer-bottom {
    margin-top: 15px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: #777;
}

@media screen and (max-width: 1024px) {
    #main {
        flex-direction: column;
    }

    #filter-section {
        width: 100%;
        margin-bottom: 20px;
    }

    #Products {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
    }

    header.active nav ul {
        display: block;
        position: absolute;
        top: 60px;
        right: 50px;
        background-color: #000;
        padding: 10px;
        border-radius: 5px;
    }

    nav ul li {
        margin: 10px 0;
    }

    #Products {
        grid-template-columns: 1fr;
    }

    .search-bar {
        width: 90%;
    }
}