﻿

.w1400{
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar{
   width: 340px;
 border-radius: 8px;
 border: solid 1px #dcdcdc;
   padding: 6px;
   margin-top: 25px;
   height: max-content;
}

.sidebar .btn{
   display: flex;
   justify-content: center;
   display: none;
}

.sidebar .title{
   width: 328px;
 height: 49px;
 background-color: #f6f6f6;
 border-radius: 8px;
   padding: 0 35px;
   font-family: Arial-BoldMT;
 font-size: 20px;
 color: #333333;
   font-weight: bold;
   display: flex;
   align-items: center;
}

.sidebar ul li{
   height: 60px;
   border-bottom: 1px solid #f0f0f0;
   padding: 0 35px;
   font-family: ArialMT;
 font-size: 16px;
 color: #666666;
   display: flex;
   align-items: center;
   
}

.sidebar ul li:last-child{
   border-bottom: unset;
}

.content{
   display: flex;
}

.content .product{
   margin-left:50px;
   margin-top: 40px;
   width:calc( 100%  - 390px);
   padding-bottom:50px;
}

.content .product h1{
   font-family: Arial-BoldMT;
 font-size: 30px;
 font-weight: bold;
 color: #333333;
}

.content .product .list li{
   width: 30%;
   margin-right: 5%;
   margin-bottom: 30px;
}

.content .product .list li:nth-child(3n){
   margin-right: 0;
}

.content .product .list{
   margin-top: 30px;
   display: flex;
   flex-wrap: wrap;
}

.content .product .list li .imgbox{
   display: inline-block;
   width:100%;
   padding-bottom: 100%;
   position: relative;
}

.content .product .list li .imgbox img{
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%,-50%);
   max-height:100%;
   max-width: 100%;
   width: 100%;
   height:100%;
}

.content .product .list li .text{
   margin-top: 10px;
   color: #333333;
}

@media only screen and (max-width: 1440px) {
   .w1400{
       padding: 0 10px;
   }
}

@media only screen and (max-width: 1040px){
   .content{
       flex-direction: column;
   }
   .w1400{
       padding: 0;
   }
   .sidebar{
       width: 100%;
       padding: 20px;
       border: unset;
   }

   .sidebar .title{
       width: 100%;
       justify-content: center;
   }

   .sidebar ul li{
       justify-content: center;
       border: 1px solid #f0f0f0;
       margin-top: 15px;
   }

   .sidebar ul li:last-child{
       border-bottom: 1px solid #f0f0f0;
   }

   .sidebar .btn{
       display: flex;
       margin-top: 28px;
       cursor: pointer;
   }

   .product{
       border-top:25px solid #f1f1f1;
       
   }

   .content .product{
       margin-left: 0;
       width: 100%;
       padding: 25px;
       margin-top: 0px;
   }

   .content .product .list li{
       width: 48%;
       margin-right: 4%;
   }
   .content .product .list li:nth-child(3n){
       margin-right: 4%;
   }

   .content .product .list li:nth-child(2n){
       margin-right: unset;
   }

   .content .product h1{
       text-align: center;
   }

   .content .product .list li .text{
       font-size: 28px;
       line-height: 1.5;
   }

   .sidebar .btn img{
       transform:rotate(180deg);
   }

   .sidebar ul{
       display: none;
   }

}

@media only screen and (max-width: 768px){
   .sidebar{
       padding: 10px;
       margin-top: 10px;
   }

   .sidebar .title{
       height: 45px;
       font-size: 18px;
   }

   .sidebar ul li{
       margin-top: 10px;
       height: 40px;
       font-size: 14px;
   }

   .sidebar .btn img{
       width: 10%;
   }

   .sidebar .btn{
       margin-top: 14px;
   }

   .content .product{
       padding: 10px;
   }

   .content .product h1{
       font-size: 22px;
       margin: 10px 0;
   }

   .content .product .list{
       margin-top: 15px;
   }

   .content .product .list li .text{
       font-size: 14px;
   }
   .content .product .list li{
       margin-bottom: 15px;
   }
}