
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

.noto-serif-font{
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* --------------- Shared Style --------------- */

main{
    max-width: 1440px;
    margin: 0 auto;
}

main > section{
    margin-top: 100px;
}

.display-flex{
    display: flex;
}

.h1-title{
    color: #000000;
    font-size: 4.0625rem;
    font-weight: 700;
    margin-bottom: 0;
}
.h2-title{
    color: #000000;
    font-size: 3.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.h3-title{
    font-family: 'inter', sans-serif;
    color: #8987A1;
    font-size: 1rem;
    font-weight: 400;
}

.h3-p{
    font-family: 'inter', sans-serif;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.375rem;
    font-weight: 400;
}

.btn-primary{
    color: #FFFFFF;
    background-color: #E95A08;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 19px 80px;
    cursor: pointer;
}

#color-text{
    color: #E95A08;
}
#Bold-text{
    color: #000000;
    font-weight: 700;
}
.p-mb{
    margin-bottom: 0;
}

.product-name{
    font-family: 'inter', sans-serif;
    color: #111111;
    font-size: 1.375rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 0;
}
.price{
    font-family: 'inter', sans-serif;
    color: #111111;
    font-size: 1.375rem;
    font-weight: 700; 
    margin-top: 10px;
    margin-bottom: 30px;
}
/* --------------------------------------------- */
/* --------------- Header Style --------------- */
.navbar{
    max-width: 1140px;
    justify-content: space-between;
    margin: 0 auto;
    align-items: center;
}
.nav-links{
    gap: 48px;
}
.nav-item{
    list-style: none;
}
.nav-link{
    text-decoration: none;
}
.nav-item-cart{
    align-items: center;
    gap: 10px;
}
.cart-icon{
    height: 24px;
    width: 24px;
}

.banner{
    max-width: 1140px;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 120px;
}
.text-center{
    text-align: center;
}
.first-section, .second-section, .third-section{
    max-width: 1140px;
    margin: auto 150px;
}
/* --------------------------------------------- */
/* --------------- Main Style --------------- */
/* ----- First Section ----- */
.first-section{
    margin-top: 120px;
}
.fs-card-contents{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 49px;
}
.fs-cart{
    max-width: 270px;
    justify-items: center;
}
.fs-cart img{
    width: 100%;
}
.fs-cart button{
    width: 100%;
}

/* ----- Second Section ----- */
.second-section{
    justify-content: space-between;
    gap: 60px;
    margin-top: 210px;
}
.ss-ls-imgContainer {
    position: relative;
}

#trust-badge{
    position: absolute;
    max-width: 286px;
    max-height: 286px;
    margin-left: -188px;
    margin-top: -128px;
}

/* ----- Third Section ----- */
.third-section{
    justify-content: space-between;
    margin-top: 130px;
}
.ts-images{
    position: relative;
    gap: 28px;
    margin-top: 120px;
}
.col1 {
    flex-direction: column;
    gap: 25px;
}
.ts-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Deal card wrapper */
.deal-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
/* Overlay text */
.deal-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Full overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
}

.deal-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.deal-text a {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
}

#dealText-h3{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#dealText-a{
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ----- Fourth Section ----- */
.fourth-section{
    margin-top: 120px;
    background-image: url('../B12A02-Responsive-Flowers/assets/news-letter-bg.png');
    background-size: cover;
    height: 533px;
    position: relative;
    justify-content: center;
    align-items: center;
}

#subscribe-title{
    color: #FFFFFF;
}

.subscribe-form input{
    padding-left: 20px;
    font-size: 1rem;
    border: none;
    width: 644px;
    height: 50px;
}

.subscribe-form button{
    background-color: #E95A08;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    width: 186px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #d35400;
}

/* --------------------------------------------- */
/* --------------- Footer Style --------------- */
.site-footer{
    max-width: 1440px;
    margin: 20px auto;
    justify-content: space-around;
}
.footer-left{
    width: 359px;
}
.footer-links li{
    list-style: none;
}
.footer-links ul{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.footer-social{
    flex-direction: row;
    gap: 24px;
    justify-items: center;
    padding-top: 24px;
}
/* --------------------------------------------- */
/* --------------- Responsive Style --------------- */
@media screen and (max-width: 393px) {

    .first-section, .second-section, .third-section{
        margin: auto 0;
    }
    .navbar{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-item, #trust-badge{
        display: none;
    }
    .nav-item-cart {
        flex-direction: row;
        align-items: center;
    }
    .logo{
        width: 63px;
        height: 38px;
    }
    .banner{
        flex-direction: column-reverse;
        margin-top: 28px;
    }
    .h1-title, .h2-title{
        font-size: 1.5rem;
    }
    .h3-p{
        font-size: 0.875rem;
    }

    /* ----- First Section ----- */
    .first-section{
        margin-top: 65px;
    }
    .fs-card-contents{
        grid-template-columns: repeat(2, 1fr);
        
    }
    .fs-cart{
        max-width: 171px;
    }
    .product-name, .price{
        font-size: 1rem;
    }
    .btn-primary{
        padding: 19px 30.5px;
    }

    /* ----- Second Section ----- */
    .second-section{
        flex-direction: column;
        margin-top: 41px;
    }
    .ss-rs-infoContainer{
        margin-top: -50px;
    }
    .flower-store{
        width: 100%;
    }

    /* ----- Third Section ----- */
    .ts-images{
        flex-direction: column;
        gap: 20px;
        margin-top: 51px;
    }
    .col1 {
        gap: 20px;
    }
    #dealText-h3{
        font-size: 1.25rem;
    }
    #dealText-a{
        font-size: 1rem;
    }

    /* ----- Fourth Section ----- */
    .fourth-section {
        margin-top: 120px;
        height: 276px;
    }
    .subscribe-form input{
        width: 180px;
    }
    .subscribe-form button{
        width: 100px;
    }

    /* ----- Footer ----- */
    .site-footer{
        flex-direction: column;
        padding-bottom: 20px;
    }
    .footer-links ul{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
    }
}

