*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --black: #000000;
    --white: #fff;
    --secondary: #F5F5F5;
    --secondary-2: #DB4444;
}

.container {
    max-width: 1170px;
    width: 90%;
    margin: 0 auto;
}

.bg-secondary {
    background-color: var(--secondary);
}
.bg-black {
    background-color: var(--black);
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.inter-semibold {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.inter-bold {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
}



.fz-14 {
    font-size: 14px; 
}
.fz-36 {
    font-size: 36px;
}


.capitalize {
    text-transform: capitalize;
}



.relative {
    position: relative;
}
.block {
    display: block;
}

.flex {
    display: flex;
}
.direction-column {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.align-center {
    align-items: center;
}

.g-5 {
    gap: 5px;
}

.g-8 {
    gap: 8px;
}
.g-12 {
    gap: 12px;
}
.g-16 {
    gap: 16px;
}
.g-24 {
    gap: 24px;
}
.g-30 {
    gap: 30px;
}
.g-48 {
    gap: 48px;
}

.pointer {
    cursor: pointer;
}
.mt-20{
    margin-top:20px ;
}
.mt-140{
    margin-top: 140px;

}
.mt-80{
    margin-top: 80px;
}
.mb-20{
    margin-bottom:20px ;
}
.mb-60{
    margin-bottom:60px;
}
.mt-70{
    margin-top:70px;
}

.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, .3);
}
.border-left {
    border-left: 1px solid rgba(0, 0, 0, .3);
}
.border-top {
    border-top: 1px solid rgba(0, 0, 0, .3);
}
.border-right {
    border-right: 1px solid rgba(0, 0, 0, .3);
}
.btn{

     &:hover {
      transform: translateY(-3px);
}
}
.current-price{
    font-family: "Poppins", sans-serif;
    font-weight:500;
    color: var(--secondary-2);
}
.tag {
    color: var(--secondary-2);

    & span {
        &:first-child {
        display: inline-block;
        width: 20px;
        height: 40px;
        background-color: var(--secondary-2);
        border-radius: 4px;
        /* margin-right: 16px; */
        }
        
    }

}

.carousel-navigation {
        > div {
            background-color: var(--secondary);
            width: 46px;
            height: 46px;
            border-radius: 50%;
        }
    }


.view-all {
    margin-block: 60px;
    a {
        color: var(--white);
        padding: 16px 48px;
        background-color: var(--secondary-2);
        border-radius: 4px;
    }
}

/* product card styles */
.card {
            width: 270px;
            & .card-header {
                height: 250px;
                background-color: var(--secondary);
                & .discount {
                    color: var(--white);
                    background-color: var(--secondary-2);
                    border-radius: 4px;
                    padding: 4px 12px;
                    position: absolute;
                    left: 12px;
                    top: 12px;

                }
                & .wishlist {
    width: 34px;
    height: 34px;
    background-color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: absolute;
    top: 12px;
    right: 12px;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: #d9d9d9; 
        cursor: pointer;
    }
}

& .quick-view {
    width: 34px;
    height: 34px;
    background-color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: absolute;
    right: 12px;
    top: 54px;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: #d9d9d9; 
        cursor: pointer;
    }
}

                & img {

                }
            }
            & .card-body {
                & h3 {
                    margin-top: 16px;
                }
                & .prices {
                    margin-block: 8px;
                   /*  & .current-price {
                        color: var(--secondary-2); */
                    }
                    & .old-price {
                        color: var(--black);
                        opacity: .5;
                        text-decoration: line-through;
                    }
                }
                & .rating-count{
                    color:rgba(0, 0, 0, 1);
                    opacity: 0.5;
                    font-family: "Poppins", sans-serif;
                    font-weight:600;

                }

            }
        
/* add to card buttons */
.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

header {
    padding-bottom: 16px;
    & .promotion {
        background-color: var(--black);
        color: var(--white);
        padding-block: 12px;
        margin-bottom: 40px;
    }

    & .header-wrapper {
        padding-block: 7px;

        & .logo {
        font-size: 24px;
    }

    & .cta-wrapper {
        & .search-wrapper {
            border-radius: 4px;
            padding: 7px 0 7px 20px;
            & input {
                padding: 3px;
                border: none;
                background-color: transparent;
                &:focus {
                    outline: none;
                    border-bottom: 2px solid black;
                }

            }
            & .loop-icon {
                position: absolute;
                right: 16px;
                top: 50%;
                transform: translateY(-50%);
            }
        }
        
    }
    }
}

.welcome {
    & aside {
        width: 216px;
        padding-top: 40px;
        padding-right: 16px;
        & li {
            &:not(:last-child) {
                margin-bottom: 16px;
            }
            &:nth-child(1) {
                & svg {
                    transform: rotate(-90deg);
                }
            }
            &:nth-child(2){
                & svg {
                    transform: rotate(-90deg);
                }
            }
        }
    }
    & .welcome-wrapper {
        margin-top: 40px;
        margin-left: 45px;
        color: var(--white);
        & .text-content {
            padding-block: 48px;
            padding-left: 64px;
            & h2 {
                font-size: 48px;
                margin-block: 20px;
            }
            & a {
                background-color: transparent;
                border-bottom: 1px solid rgba(255, 255, 255, .3);
                color: inherit;
                padding-bottom: 4px;
            }
        }
        & .image-wrapper {
            
        }
    }
}

.flash-sales {
    & .flash-sales-header {
        margin-top: 24px;
        width: 600px;
        & .countdown-wrapper {
                & .time {
                    & .days {
                        font-size: 12px;
                    }
                    & .day {
                        font-size: 32px;
                    }
                    & .semicolon {

                        & .dot {
                            width: 4px;
                            height: 4px;
                            background-color: #E07575;
                            border-radius: 50%;
                        }
                    }
                }
            }
    }
    & .products-wrapper {
        margin-top: 40px;
        & .card {
            position: relative;
            overflow: hidden;

            
            
        }
    }
        
    }
    



.browse-category {
    padding-bottom: 70px;
    & .categories-navigation {
        margin-top: 60px;
        & a {
            width: 170px;
            height: 145px;
            transition-duration: .3s;
            &:hover {
                background-color: var(--secondary-2);
                color: var(--white);
                border: none;
                & svg {
                    & path {
                        stroke: var(--white);
                    }
                    & line {
                        stroke: var(--white);
                    }
                }
            }
        }
    }

}

.best-selling-products {

}


.offer {
    background-color: var(--black);
    padding: 30px 40px;
    margin-top: 140px;
    margin-bottom: 70px;
    & .content {
        color: var(--white);
        & span{
            color: #00FF66;

        }
        & h2 {
            margin-block: 32px;
            font-size: 48px;
        }
        & .countdown-item-wrapper {
            width: 62px;
            height: 62px;
            background-color: var(--secondary);
            border-radius: 50%;
            margin-bottom: 40px;
        }
        & a {
            color: var(--white);
            background-color: #00FF66;
            padding: 16px 48px;
            border-radius: 4px;
            &:hover{
                transform: translateY(-3px);

            }
        }
    }
    & .image-wrapper {
       
    }
}


.our-products {

    & .products-wrapper {
        margin-block: 60px;
        
    }
}