
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

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

body{
    color: #333;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 9%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: rgb(181, 228, 210);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 25px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

nav .cart-icon{
    position: relative;
    font-size: 30px;
    color: #333;
    display: flex;
}

nav .cart-icon .cart-item-count{
    position: absolute;
    top: 0;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #e35f26;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    display: none;
}

.product-collection{
    padding:100px 9% 30px;
}

.product-collection h1{
    font-size: 35px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600px;
}

.product-collection .product-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-collection .img-box{
    display: flex;
    overflow: hidden;
    cursor: pointer;
}

.product-collection .img-box img{
    width: 100%;
    transition: 0.5s;
}

.product-collection .img-box:hover img{
    transform: scale(1.2);
}

.product-collection .title{
    font-size: 18px;
    font-weight: 400;
    margin-top: 10px;
}

.product-collection .price{
    display: block;
    font-weight: bold;
    margin-top: 5px;
}

.product-detail{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 130px 9% 30px;
}

.product-detail .product-img{
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 12px;
    height: 550px;
}

.product-detail .product-img img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .thumbnail-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail .thumbnail-list img{
    height: calc(100%/ 4 - 9px);
    cursor: pointer;
}

.product-detail .title{
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.product-detail .rating{
    color: #e35f26;
}

.product-detail .price{
    display: block;
    font-size: 25px;
    font-weight: 600;
    margin: 20px 0;
}

.product-detail :is(.size-selection, .color-selection){
    margin: 20px 0;
}

.product-detail :is(.size-selection p, .color-selection p){
    margin-bottom: 10px;
}

.product-detail :is(.size-options, .color-options){
    display: flex;
    gap: 10px;
}

.product-detail .size-options button{
    width: 45px;
    height: 45px;
    background: #f2f2f2;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-detail .color-options img{
    width: 75px;
    height: 75px;
    border: 2px solid transparent;
    cursor: pointer;
}


.product-detail :is(.size-options .selected, .color-options .selected){
    border-color: #999;
}

.btn{
    padding: 12px 50px;
    background: #222;
    border: none;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    margin-bottom: 20px;
}

.product-detail .product-policy{
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.product-detail .product-policy p{
    margin: 3px 0;
}

/* Footer Section */
.items-sections{
    display:block;
    color:#000000;
    text-decoration:none;
    margin:12px 0;
    font-size:15px;
    transition:all 0.3s
}

.nav-links{
    display:block;
    color:#000000;
    text-decoration:none;
    margin:12px 0;
    font-size:15px;
    cursor: not-allowed;
}

/* Cart Section */

.cart{
    padding: 110px 9% 30px;
}

.cart-header{
    display: flex;
    padding: 10px 0;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.cart-header span{
    flex: 1;
    text-align: center;
}

.cart-header span:first-child{
    flex: 2;
    text-align: left;
}

.cart-item{
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

.cart-item .product{
    display: flex;
    align-items: center;
    flex: 2;
}

.cart-item img{
    width: 80px;
    margin-right: 15px;
}

.cart-item .size-color-box{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-item .size{
    padding: 6px 12px;
    background: #f2f2f2;
    font-size: 14px;
}

.cart-item :is(.price, .quantity, .total-price){
    flex: 1;
    text-align: center;
}

.cart-item .quantity input{
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    outline: none;
    text-align: center;
}

.cart-item .remove{
    background: transparent;
    border: none;
    flex: 1;
}

.cart-item.remove i{
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.cart-total{
    width: 400px;
    margin: 50px 0 0 auto;
}

.cart-totalh3{
    margin-bottom: 15px;
}

.cart-total p {
    display: flex;
    justify-content: space-between;
}

.cart-total p:not(:last-of-type){
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.cart-total p:last-of-type{
    font-weight: bold;
}

.cart-total .btn{
    display: block;
    padding: 12px 30px;
    margin: 30px 0 0 auto;
}
