* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px;
    box-shadow: 0 1px 10px lightgray;
}

.logo img {
    width: 100px;
}

.search {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search input[type="text"]:focus {
    outline: none;
}

.search input[type="text"] {
    padding: 5px;
    border-radius: 5px;
    border: none;
    margin-right: 10px;
}

.search input[type="submit"] {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: #fff;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

#sidebar {
    position: fixed;
    right: -280px;
    top: 0;
    width: 280px;
    background-color: #f8f8f8;
    min-height: 100vh;
    height: 100%;
    z-index: 3;
    padding-top: 20px;
    overflow-y: auto;
    transition: all .3s ease;
}

#close {
    color: #fff;
    background-color: #CC0C39;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    margin: 0 20px;
    margin-top: 10px;
}

.menu-icon {
    font-size: 30px;
    margin: 0px 20px;
    display: none;
}


.sidebar-items {
    padding-top: 30px;
}

.trending ul {
    padding: 5px;
}

.trending ul li a {
    color: #0F1111;
    text-decoration: none;
}

.trending ul li:hover {
    background-color: #3333331c;
}

.trending ul li {
    list-style: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    transition: all .3s ease;
}

.trending h2,
.trending h3 {
    margin-left: 20px;
    margin-bottom: 10px;
}

.trending {
    border-bottom: 1px solid lightgray;
}

.page-name {
    margin: 20px 0;
    background-color: rgb(245, 245, 245);
    color: #000;
    padding: 10px 80px;
}

.page-name b {
    color: rgb(202, 16, 202);
}

section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.Styling {
    display: flex;
    flex-direction: column;
}

.Category {
    display: flex;
    justify-content: space-between;
}

.Top-Category,
.Filtring {
    width: 230px;
    padding: 15px 20px;
    border: 1px solid lightgray;
    border-radius: 5px;
    margin: 10px 0;
}

.Category div p,
.Category div b {
    margin: 10px 0;
    display: block;
}

.Category div b {
    color: rgb(202, 16, 202);
}

.Top-Category h3 {

    margin-bottom: 10px;
}

input[type='range'] {
    width: 100%;
    margin: 10px 0;
}

.price {
    color: rgb(167, 167, 167);
    font-size: 13px;
}

.Filtring div {
    margin: 15px 0;
}

.Size {
    margin: 10px 0;
    cursor: pointer;
}

.colors p {
    font-size: 15px;
    margin: 15px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

select {
    padding: 10px;
    background-color: rgb(221, 221, 221);
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease;
}

select:focus {
    border: none;
    background-color: rgb(51, 51, 51);
    color: white;
}

select:hover {
    position: relative;
    -webkit-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.75);
}

.PRODUCTS{
    width: 75%;
}

.product-buy{
    width: 300px;
    border: 1px solid lightgray;
    padding: 25px;
    position: relative;
}

.Product-Details{
    margin-top: 15px;
    text-align: center;
}

.Product-Details i{
    color: gold;
}

.Product-Details h1{
    margin-top: 10px;
    color: rgb(202, 16, 202);
}

.Product-Details h5{
    margin-top: 10px;
    color: #3e3e3e;
    margin-bottom: 20px;
}

.Add-to-cart{
    background-color: rgb(202, 16, 202);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    position: absolute;
    left: 15px;
    bottom: 10px;
}

#open-modal{
    background-color: #fff;
    color: rgb(202, 16, 202);
    border: 1px solid rgb(202, 16, 202);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all .3s ease;
}

#open-modal:hover{
    color: #fff;
    border: 1px solid #fff;
    background-color: rgb(202, 16, 202);
}

main{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 40px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5);
  }

  .modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }















@media (max-width: 750px) {
    header .search {
        display: none;
    }

    header nav {
        display: none;
    }

    .menu-icon {
        display: block;
    }
}

@media (max-width: 350px) {
    .page-name {
        padding: 10px 0;
        text-align: center;
    }
    .product-buy{
        width: 280px;
        padding: 5px;
    }
    .Quick-view , .Add-to-cart{
        position: static;
    }
}

@media (max-width: 1050px){
    section{
        flex-direction: column;
        justify-content: center;
        margin: auto;
    }
    .Styling{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        margin-bottom: 20px;
    }
    .PRODUCTS{
        width: 100%;
    }
    .products-header{
        justify-content: space-around;
    }
    main{
        justify-content: space-around;
    }
}

@media (max-width: 470px){
    .Styling{
        flex-direction: column;
    }
}

@media (max-width: 410px){
    .products-header{
        flex-direction: column;
    }
    .products-header h2{
        margin-bottom: 15px;
    }
}

@media (max-width: 1300px){
    main{
        grid-template-columns: auto auto;
    }
}
@media (max-width: 686px){
    main{
        grid-template-columns: auto;
    }
}

