#home{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 10px;
}
#home aside{
    grid-column: 1/2;
    max-width: 250px;
}
#home article{
    grid-column: 2/6;
}
/* CATEGORY */
.category-list ul{
    background-color: white;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding-bottom: 5px;
    box-shadow: 0px 1px 2px #dadada;
    border: 1px solid black;
}
.category-list ul li:nth-child(2) > a{
    margin-top: 5px;
}
.category-list ul li a{
    display: block;
    padding: 10px;
    color: black;
    margin: 0px 5px;
    transition: 0.2s;
    text-decoration: underline;
}
.category-list ul li a:hover{
    transition: 0.2s;
    font-weight: bold;
}
/* CATEGORY */
/* BEST-SELLER */
#best-seller-list{
    display: flex;
    flex-direction: column;
    background-color: white;
    margin-top: 10px;
    box-shadow: 0px 1px 2px #dadada;
}
.best-seller{
    min-width: 100%;
    max-width: max-content;
    padding: 10px;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 10px;
    white-space: wrap;
    overflow: hidden;
    word-wrap: break-word;
    align-items: center;
}
.best-seller img{
    width: 100%;
    border-radius: 3px;
    height: 100%;
}
.best-seller span{
    height: 55px;
    overflow: hidden;
}
#best-seller-list a{
    color: black;
}
#best-seller-list a:hover{
    transition: 0.2s;
    font-weight: bold;
}
.title-best-seller{
    display: block;
    padding: 10px 15px;
    background: var(--color-admin);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}
/* BEST-SELLER */
/* PRODUCT */
.product-container{
    background-color: white;
    box-shadow: 0px 1px 2px #dadada;
    margin: 10px 0px;
}
.product-container h3{
    padding: 20px 20px 0px 20px;
}
#product-list{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    padding: 20px;
}
.product{
    background-color: white;
    overflow: hidden;
    transition: 0.3s;
    /* box-shadow: 0px 1px 2px #dadada; */
    /* border: 1px solid #dadada; */
    border-radius: 3px;
}
.product a{
    height: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product a{
    color: black;
}
.product:hover{
    box-shadow: 0px 1px 10px #dadada;
    transition: 0.3s;
    transform: translateY(-5px);
}
.product-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.information-product{
    padding: 10px;
}
.title{
    height: 40px;
    overflow: hidden;
    padding-bottom: 10px;
    text-decoration: underline;
}
.title:hover{
    font-weight: bold;
    transition: 0.2s;
}
.price{
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}
.price del{
    font-size: 12px;
    color: black;
}
.price span{
    color: black;
}
/* PRODUCT */
/* --------------------------------- REPONSE -------------------------------- */
@media screen and (max-width: 1280px) {
    main #product-list{
        grid-template-columns: repeat(5,1fr);
        padding: 20px;
    }
}
@media screen and (max-width: 1080px) {
    main #home{
        grid-template-columns: repeat(6,1fr);
    }
    main #home aside{
        min-width: 100%;
        grid-column: 1/3;
    }
    main #home article{
        grid-column: 3/7;
    }
    main #product-list{
        grid-template-columns: repeat(3,1fr);
        padding: 20px;
    }
}
@media screen and (max-width: 900px){
    main #product-list{
        grid-template-columns: repeat(3,1fr);
        padding: 10px;
    }
    main #home{
        gap: 10px;
    }
    .product-container h3{
        padding: 15px 10px 10px 10px;
    }
}
@media screen and (max-width: 768px){
    main{
        padding: 10px;
    }
    main #home{
        grid-template-columns: repeat(1,1fr);
    }
    main #home aside{
        grid-column: 1/2;
        max-width: 100%;
    }
    main .best-seller img{
        grid-column: 1/2;
    }
    main .best-seller span{
        grid-column: 2/5;
    }
    main .best-seller{
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 10px;
    }
    main #home article{
        grid-column: 1/2;
        order: -1;
    }
    main #product-list{
        grid-template-columns: repeat(3,1fr);
    }
}
@media screen and (max-width: 575px){
    main #product-list{
        grid-template-columns: repeat(2,1fr);
        gap: 5px;
    }
}
@media screen and (max-width: 480px){
    .product-image{
        height: 160px;
    }
}
@media screen and (max-width: 360px){
    main #home aside .best-seller img{
        height: 80px;
    }
    main #product-list{
        grid-template-columns: repeat(1,1fr);
        padding: 10px;
        gap: 5px;
    }
    nav ul li a{
        font-size: 15px;
        display: block;
        padding: 0px 5px 5px 5px;
    }
    main .best-seller img{
        width: 80px;
        height: 20px;
    }
    .product-image{
        height: 290px;
    }
}
@media screen and (max-width: 320px){
}
/* --------------------------------- REPONSE -------------------------------- */
/* VIEW-MORE */
.view-more{
    display: flex;
    justify-content: center;
}
.view-more button{
    display: block;
    padding: 10px 15px;
    border: 2px solid;
    border-radius: 3px;
    background-color: var(--color-admin);
    color: white;
    font-size: 16px;
}
/* VIEW-MORE */
/* COLOR PRODUCT */
.allColorProduct{
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
}
.allColorProduct > div{
    padding: 10px;
    width: 20px;
    border-radius: 50px;
}
/* COLOR PRODUCT */
/* --------------------------------- PRODUCT SAMPLE -------------------------------- */
.product-sample{
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(3,170px);
    gap: 20px;
    place-items: center ;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.box-product-mini a{
    display: block;
    padding: 10px;
    color: black;
    height: 30px;
    overflow: hidden;
    text-align: center;
    text-decoration: underline;
}
.box-product-mini img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* product-main */
.product-main{
    padding: 20px 150px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    align-items: center;
    gap: 20px;
}
.product-main-item{
    position: relative;
    height: 100%;
}
.product-main-item:nth-child(1){
    grid-column: 1/3;
    grid-row: 1/2;
}
.product-main-item:nth-child(2){
    grid-row: 1/2;
    grid-column: 3/5;
}
.product-main-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-product-main-item{
    position: absolute;
    transform: translate(-50%, -50%);
    left: 30%;
    top: 50%;
    color: white;
    font-size: 30px;
    text-shadow: 0px 0px 10px gray;
    -webkit-text-stroke: 1px black; 
    text-stroke: 1px black;
}
.text-product-main-item button{
    padding: 10px 20px;
    margin-top: 10px;
    background-color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}
.text-product-main-item button:hover{
    background-color: var(--color-admin);
    color: white;
    text-shadow: 0px 0px 0px;
    -webkit-text-stroke: 0px; 
    transition: 0.2s;
}
/* product-main */
@media (max-width: 900px) {
    body .product-sample{
        grid-template-columns: repeat(2,1fr);
    }
    body .product-sample img{
        width: 100%;
    }
    body .product-main{
        grid-template-columns: repeat(2,1fr);
        padding: 0px;
    }
    body .product-main-item:nth-child(1){
        grid-column: 1/2;
        grid-row: 1/2;
    }
    body .product-main-item:nth-child(2){
        grid-column: 2/3;
        grid-row: 1/2;
    }
}
@media (max-width: 575px) {
    body .text-product-main-item{
        font-size: 20px;
    }
    body .product-main{
        grid-template-columns: repeat(1,1fr);
    }
    body .product-main-item:nth-child(1){
        grid-column: 1/2;
        grid-row: 1/2;
    }
    body .product-main-item:nth-child(2){
        grid-column: 1/2;
        grid-row: 1/2;
    }
}
/* --------------------------------- PRODUCT SAMPLE -------------------------------- */
/* -------------------------------- cate view ------------------------------- */
.container-product-croll{
    padding: 10px 100px;
}
.container-product-croll a{
    color: black;
    text-decoration: underline;
}
.title-product-croll{
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin: 20px 0px 15px 0px;
}
.product-croll {
    padding: 20px;
    border: 2px solid;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    color: black;
}

.product-croll-item {
    padding-left: 20px;
    flex: 0 0 calc(25% - 10px); 
    margin-right: 10px; 
    scroll-snap-align: start;
}

.product-croll-item:last-child {
    flex: 0 0 calc(25% - 10px); 
}

.product-croll-item img {
    width: 100%;
    height: auto;
}

.prd-cr-title {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

.prd-cr-price {
    display: block;
    margin-top: 5px;
}
.view-all{
    display: flex;
    justify-content: flex-end;
    margin-top: 10px
}
@media (max-width: 575px) {
    .product-croll-item {
        flex: 0 0 calc(50% - 10px); /* 50% width for each item with some spacing */
    }

    .product-croll-item:last-child {
        flex: 0 0 calc(50% - 10px); /* Last item takes half of the space */
    }
}
@media (max-width: 768px) {
    body .container-product-croll{
        padding: 20px 10px;
    }
}
/* -------------------------------- cate view ------------------------------- */
