/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --text-color: #000000;
    --main-color: #d63384;
}

section{
    padding: 40px 10%;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 100px;
    background: #edecea;
}
.logo{
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}
.logo span{
    color: var(--main-color);
}
.navbar {
    position: relative;
    display: flex;
}
.navbar a{
    font-size: 1rem;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-color);
     
}
.navbar a:hover{
    color: var(--main-color);
}
#menu-icon{
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

#cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cart */
.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    min-height: 100vh;
    padding: 20px;
    background: #fff;
    box-shadow: -2px 0 4px hsl(0, 4%, 15% / 10%);
    transition: 0.3s;
}
.cart.active {
    right: 0;
}
 .cart-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
 }
 .cart-box {
    display: grid;
    grid-template-columns: 32% 50% 18%;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
 }
 .cart-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
 }
 .detail-box {
     display: grid;
     row-gap: 0.5rem;
 }
.cart-product-title {
    font-size: 1rem;
    text-transform: uppercase;
}
.cart-price {
    font-weight: 500;
}
.cart-quantity {
    border: 1px solid var(--text-color);
    outline-color: var(--main-color);
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;

}
.cart-remove {
    font-size: 24px;
    color: var(--main-color);
    cursor: pointer;
}
.total {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    border-top: 1px solid var(--text-color);
}
.total-title {
    font-size: 1rem;
    font-weight: 600;
}
.total-price {
    margin-left: 0.5rem;
}
.btn-buy {
    display: flex;
    margin: 1.5rem auto 0 auto;
    padding: 12px 20px;
    border: none;
    background: var(--main-color);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}
.btn-buy:hover {
    background: var(--text-color);
}
#close-cart {
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}


.home {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/home2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}
.home-text h1{
    font-size: 2.7rem;
}
.home-text p{
    font-size: 0.938rem;
    margin: 0.4rem 0 1.8rem;
}
.home-text span {
    color: var(--main-color);
}
.btn {
    padding: 10px 14px;
    background: var(--main-color);
    color: #fff;
    border-radius: 0.3rem;
    font-size: 14px;
}
.btn:hover {
    background: #8fc53d;
}

.heading{
    text-align: center;
}

.heading span{
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
}

.heading h2{
    font-size: 1.8rem;
}

.shop-container, .new-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 1.5rem;
    margin-top: 2rem;
}

.box{
    position: relative;
    /* background: #f4f4f4; */
    box-shadow: 1px 4px 4px rgb(0, 0, 0, 0.1);
    border-radius: 44px 4px 4px 4px;
    padding: 10px;
    /* border-radius: 10px; */
}

.box-img{
    width: 100%;
    height: 280px;
    overflow: hidden;
    /* background: #eaeaea; */
    border-radius: 44px 4px 0 0;
}

/* .box-img{
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 44px 4px 0 0;
} */

.box-img img{ 
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.box-img:hover img{
    transform: scale(1.1);
    transition: 0.5s;
}

.title-price {
    display: flex;
    justify-content: space-between;
    padding: 12px;
}
.title-price h3 {
    font-size: 1rem;
    font-weight: 600;
}

.box span{
    font-size: 1.1rem;
    font-weight: 500;
    padding-left: 12px;
    color: var(--main-color);
}
.stars{
   color: var(--main-color);
}
.box .bx-cart{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 7px;
    font-size: 20px;
    color: #fff;
    border-radius: 4px 0 4px 0;
    background: var(--main-color);
}
.box .bx-cart:hover{
    background: #8fc53d;
}

.new-container .box{
    border-radius: 4px;
}

.nav-container .box .box-img {
    border-radius: 4px;
    height: 400px;
}
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-bottom: 20px;
}

.about-img img {
    width: 90%;
    height: 65%;
    border-radius: 10px;
    object-fit: contain;
}
.about-text span{
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--main-color);
}
.about-text p{
    font-size: 0.938rem;
    margin: 0.5rem 0 1.4rem;
}

/* Testimonials  */
.testimonials {
    background: #f9f9f9;
    padding-top: 20px;
}

.testimony-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.quote {
    font-size: 2rem;
    color: var(--main-color);
}

.testimonial-box p {
    font-size: 0.9rem;
    margin: 10px 0 20px;
    color: #555;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-profile h3 {
    font-size: 0.95rem;
    margin: 0;
}

.testimonial-profile span {
    font-size: 0.8rem;
    color: #777;
}
.newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-image: url(img/wrap.png); */
    background-color: #9ca3af;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.newsletter h2{
    color: #fff;
}
.news-box {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}
.news-box input {
    width: 260px;
    height: 44px;
    border: none;
    outline: none;
    background: #fff;
    padding: 10px;
}
.news-box .btn {
    height: 44px;
    padding: 11px;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
}

/* Contact Section */
.contact {
    background: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Contact Info */
.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #555;
}

.info-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-box i {
    font-size: 20px;
    color: var(--main-color);
    margin-right: 10px;
}

.info-box span {
    font-size: 0.9rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: #fff;
    padding: 60px 10% 25px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 2rem;
}

/* Brand */
.footer-box h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-box h2 span {
    color: var(--main-color);
}

.footer-box p {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Links */
.footer-box h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-box a {
    display: block;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-box a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

/* Social */
.social a i {
    font-size: 20px;
    margin-right: 10px;
    color: #bbb;
    transition: 0.3s;
}

.social a i:hover {
    color: var(--main-color);
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
}


/* Making Responsive */
@media (max-width: 991px){
    header {
        padding: 18px 4%;
    }
    section {
        padding: 40px 4%;
    }
}

@media (max-width: 881px) {
    .home-text h1 {
        font-size: 2rem;
    }
    .shop-container,
    .new-container {
        grid-template-columns: repeat(auto-fit, minmax(218px, auto));
    }
}

@media (max-width: 768px) {
    header{
        padding: 11px 5%;
    }
    #menu-icon{
        display: initial;
    }
    header .navbar{
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 4px rgb(0 0 0 /10px);
        transition: 0.2s ease;
        text-align: center;
    }
    .navbar a{
        padding: 1.5rem;
        display: block;
    }
    .navbar.active{
        top: 100%;
    }
    .navbar a:hover {
        color: #fff;
        background: var(--main-color);
    }
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-img {
        padding-top: 1rem;
        order: 2;
    }
}

@media (max-width: 491px) {
    .home-text h1 {
        font-size: 1.7rem;
    }
    .shop-container, 
    .new-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    }
    .box .box-img {
        height: 300px;
    }
   .news-box input {
    width: 180px;
   }
    .about-text h2 {
        font-size: 1.2rem;
    }

}