:root{
    --primary: #0f766e;
    --secondary: #ecfeff;
    --accent: #ecb235;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --border: rgba(15, 23, 42, 0.06);
    --surface: #f8fafc;
    
}


*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;


}

body{
    margin: 0;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}


/* ===index.html==== */
/* -------Header--------- */

header{
    display: flex;
    padding: 0.7rem 2rem;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-weight: bold;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.185);
    z-index: 10;
}

header nav ul{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

#menuBtn{
    display: none;
}

header nav{
    flex-basis: 45%;
}

header nav ul li{
    list-style: none;
    padding: 0.5rem 1rem;
    
}

nav a{
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    
}

nav a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #111;
    transition: width 0.2s ease;
}

nav a:hover::after{
    width: 100%;
}

nav a.active{
    font-weight: 800;
    color: #0f766e;
}

header i{
    font-size: 2rem;
}


.logo{
    font-size: 2rem;
}

.logo a{
    text-decoration: none;
    color: var(--text-dark);
}

#cartBtn{
    border: none;
    background-color: white;
    position: relative;
}

#cartBtn i{
    color: #1b6c9b;
    cursor: pointer;
}

#cartBtn i:hover{
    color: #145174;
}

#cartBtn i:active{
    color: #3395ce;
}

#cart-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 30;
}

#cart-panel{
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: crimson;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  display: none;
}

#cart-panel.open{
    right: 0;
}

#cart-overlay.show{
    opacity: 1;
    pointer-events: all;
}

#close-cart{
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#cart-items {
  flex: 1;              
  overflow-y: auto;     
  padding: 1rem;
  max-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cart-items::-webkit-scrollbar {
  width: 6px;
}

#cart-items::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 3px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-info{
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.remove-item {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #b91c1c;
}

.remove-item:hover {
  color: #7f1d1d;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-btn{
    font-size: 1.5rem;
    background-color: #1b6c9b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 16px;
}

.checkout-btn:hover{
    background-color: #145174;
}

.checkout-btn:active{
    background-color: #2e70bb;
}

.cart-footer{
    border-top: 1px solid #ddd;
    padding: 1rem;
}

.cart-footer p{
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.plus{
    padding: 5px;
}

.minus{
    padding: 5px;
}

/* ---------hero section-------------- */

.hero{
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 73px);
    gap: 3rem;
}

.hero img{
    width: 600px;
    flex-basis: 60%;
    border-radius: 16px;
}

.hero h1{
    font-family: "Playfair", serif;
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    line-height: 1.15;
    max-width: 500px;
}
.hero p{
    max-width: 420px;
}

.hero .muted{
    color: var(--text-muted);
}

.cta{
    background: var(--primary);
    padding: 20px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.hero button{
    display: inline-block;
}
.cta a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
    width: 100%;
    font-weight: 400;
}

.cta:hover{
    background-color: #0d665f;
}

/* ---------proof section-------- */
.proof{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
}

.proof h2{
    font-size: 2.5rem;
}

.proof-container{
    display: flex;
    justify-content: space-between;
    gap: 3rem;

}

.proof-card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 10px;
    background: var(--surface);
    width: 250px;
    border-radius: 10px;
    transition: all 0.1s ease;
    

}

.proof-card:hover{
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.24);
    transform: scale(1.04);
}

.proof-icon{
    font-size: 4rem;
}


/* -------best-sellers-------- */
.best-sellers{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
}

.best-product-intro{
    font-size: 2rem;
    font-weight: bold;
}
.product-container{
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.product-container .product-card{
    width: 290px;
}

.product-card{
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    /* width: 300px; */
    text-align: center;
    

}


.product-card:hover{
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.24);
    transform: scale(1.04);
}


.product-card img{
    width: 100%;
    height: 250px;
    border-radius: 16px;
}


.product-price{
    margin-top: 10px;
    font-family: "Fraunces", sans-serif;
}


.add-to-cart-btn{
    margin-top: 10px;
    padding: 0.5rem 1.5rem;
    border: none;
    width: 100%;
    background-color: #3278c7;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn i {
  pointer-events: none;
}

.add-to-cart-btn:hover{
    background-color: hsl(212, 65%, 35%);
}

.add-to-cart-btn:active{
    background-color: hsl(212, 65%, 55%);
}

.featured:hover{
    box-shadow: 0px 1px 12px #ecb235;
}

.product-card.featured button{
    background-color: var(--accent);
}

.product-card.featured button:hover{
    background-color: hsl(41, 67%, 44%);
}

.product-card.featured button:active{
    background-color: hsl(41, 67%, 64%);
}

.badge{
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.product-card.featured .badge i {
    color: gold;
    font-size: 1rem;
}



/* ----------why this brand---------- */

.why-this-brand{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 6rem 0;
}

.why-this-brand p:first-child{
    font-size: 2rem;
    font-weight: bold;
}
.reasons{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}


.reason-card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 10px;
    background: var(--surface);
    width: 250px;
    height: 200px;
    border-radius: 10px;
    transition: scale 0.2s ease;
}

.reason-card:hover{
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.24);
    transform: scale(1.04);
}


/* ----------testimonials-------- */
.testimonials{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    gap: 3rem;
}

.review-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.review-text{
    font-size: 2rem;
    font-weight: bold;
}
.review-card{
    width: 400px;
    font-size: small;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 10px;
    transition: all 0.1s ease;
}

.review-card:hover{
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.24);
    transform: scale(1.04);
}


.review-card img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}


/* ------cta-banner------ */

.cta-banner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 0 0;
}

.banner{
    background: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/bannercta.jpeg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 1rem;
    
}

.banner p{
    font-size: 2rem;
    font-weight: bold;
}
.banner button{
    color: white;
    font-size: 1.2rem;
}


/* -----------footer----------- */

footer{
    background-color: #fcf4fd;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 2rem;
}

.footlinks{
    display: flex;
    gap: 4rem;
}

footer ul li{
    list-style: none;
    padding: 20px;
}

footer ul li a{
    color: var(--text-muted);
}


.footer{
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14rem;
}


.newletter-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.newletter-form form{
    width: 80%;
    max-width: 400px;
    border-radius: 16px;
    display: flex;
    margin-top: 10px;
    
}

.newletter-form input{
    flex: 1;
    font-size: 1rem;
    padding: 13px;
    border-right: none;
    border: 1px solid #1b6c9b;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.newletter-form button{
    padding: 1rem;
    border: none;
    border: 1px solid #ccc;
    font-size: 1rem;
    border-radius: 0 20px 20px 0;
    border-left: none;
    background-color: #1b6c9b;
    color: white;
    cursor: pointer;
    display: inline;
}

.newletter-form p{
    font-size: 1.5rem;
    font-weight: bold;
}




/* ======PRODUCTS.HTML======== */
/* -------hero----------- */
.product-hero{
    background: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/the_banner.png);
    height: 15rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ---------controls------------ */

.filter{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    position: sticky;
    top: 73px;
    z-index: 10;
    background: white;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
}

.clear-filters-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background: var(--primary);
  color: white;
}


.controls{
    display: flex;
    gap: 3rem;

}

.controls select{
    padding: 10px;
    border: none;
}

/* -------products--------- */
.products{
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-grid{
    display: grid;
    grid-template-columns: repeat(4, 250px);
    width: fit-content;
    gap: 3rem;
    margin: 4rem 0;
}

.products-grid .product-card img{
    height: 250px;
}


/* ========ABOUT.HTML======== */

/* ---------about-header------- */

.about-banner, .contact-banner{
    background: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/banner2.png);
    height: 15rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}




.closing-line{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.philosophy{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0 0;
}


.about-product-image{
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-product-image img{
    width: 600px;
}



/* =====contact.html======= */


.contact-us{
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;

}
.row{
    display: flex;
    justify-content: center;
    align-items: center;

}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa{
    font-size: 28px;
    color: var(--primary);
    margin: 10px;
    margin-right: 30px;
}
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size:20px ;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}

.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #1b6c9b;
    box-sizing: border-box;
    border-radius: 10px;
}

.contact-col input, .contact-col textarea:focus{
    border: 1px solid #1b6c9b;
}

.contact-submitbtn{
    padding: 1rem;
    border: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #1b6c9b;
    color: white;
    cursor: pointer;
    display: inline;
}



.add-to-cart-btn::before, .add-to-cart-btn::after{
    content: none;
    
}




@media(max-width: 768px){

    /* ====index.html==== */
    header{
        width: 100%;
    }

    #menuBtn {
        width: 32px;
        height: 22px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 50;
    }

    #menuBtn span {
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        background: var(--text-dark);
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

     #menuBtn span:nth-child(1) {
        top: 0;
    }

    #menuBtn span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    #menuBtn span:nth-child(3) {
        bottom: 0;
    }

        /* Animate to X */
    #menuBtn.mobile-active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    #menuBtn.mobile-active span:nth-child(2) {
        opacity: 0;
    }

    #menuBtn.mobile-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }




    header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        z-index: 40;
        box-shadow: 0 1px 12px var(--text-dark);
    }

    header nav.mobile-open {
        transform: translateY(0);
    }

    header nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }



    .logo{
        font-size: 1.4rem;
    }
    .hero{
        flex-direction: column;
    }
    .hero-text{
        width: 80%;
        align-items: center;
    }
    .hero-text h1{
        font-size: 30px;
        
    }
    .cta{
        font-size: 1rem;
    }
    .hero-image{
        display: flex;
        justify-content: center;
        order: -1;
    }
    .hero img{
        max-width: 100%;
        width: 70%;
        flex-basis: 90%;
        border-radius: 16px;
    }
    .proof-container{
        padding: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .product-container{
        flex-wrap: wrap;
    }
    .proof h2{
        font-size: 25px;
    }
    .best-sellers p:first-child{
        font-size: 25px;
    }
    .why-this-brand p:first-child{
        font-size: 25px;
    }
    .reasons{
        justify-content: center;
        flex-wrap: wrap;
    }
    .review-container{
        flex-wrap: wrap;
    }
    .review-text{
        font-size: 25px;
    }
    .review-card{
        width: 300px;
    }
    .product-container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    }
    .banner{
        text-align: center;
        justify-content: center;
    }

    /* products.html */
    .product-banner{
        text-align: center;
        padding: 1rem;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
        width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
    }
    .add-to-cart-btn{
        padding: 10px 15px;
    }

    .product-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product-card h3 {
    font-size: 0.95rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }
    .filter{
        background-color: white;
        z-index: auto;
        position: static;
    }
    .controls{
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;

    }

    /* about.html */
    .philosophy{
        padding: 10px;
    }
    .philosophy h2{
        text-align: left;
        font-size: 1rem;
    }

    .about-product-image img{
        width: 80%;
    }
   .closing-line h2{
    font-size: 1rem;
   }

   /* contact.html */
   .row{
    flex-direction: column;
   }

   .contact-form{
    width: 80%;
   }


    .footer{
        flex-direction: column;
        gap: 5rem;
    }
    .newsletter-form form{
        min-width: 80%;
    }
    .newletter-form{
        text-align: center;
        width: 100%;
    }
    .newletter-form input{
        min-width: 80%;
    }
}


@media(768px <= width <= 1024px) {
    header{
        width: 100%;
        padding: 1.5rem;
    }
    
   #menuBtn {
        width: 32px;
        height: 22px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 50;
    }

    #menuBtn span {
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        background: var(--text-dark);
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    #menuBtn span:nth-child(1) {
        top: 0;
    }

    #menuBtn span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    #menuBtn span:nth-child(3) {
        bottom: 0;
    }

        /* Animate to X */
    #menuBtn.mobile-active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    #menuBtn.mobile-active span:nth-child(2) {
        opacity: 0;
    }

    #menuBtn.mobile-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        z-index: 40;
        box-shadow: 0 1px 12px var(--text-dark);
    }

    header nav.mobile-open {
        transform: translateY(0);
    }

    header nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo{
        font-size: 1.4rem;
    }
    .hero{
        flex-direction: column;
    }
    .hero-text{
        width: 80%;
        align-items: center;
    }
    .hero-text h1{
        font-size: 30px;
        
    }
    .cta{
        font-size: 1rem;
    }
    .hero-image{
        display: flex;
        justify-content: center;
        order: -1;
    }
    .hero img{
        max-width: 100%;
        width: 70%;
        flex-basis: 90%;
        border-radius: 16px;
    }
    .proof-container{
        padding: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .product-container{
        flex-wrap: wrap;
    }
    .proof h2{
        font-size: 25px;
    }
    .best-sellers p:first-child{
        font-size: 25px;
    }
    .why-this-brand p:first-child{
        font-size: 25px;
    }
    .reasons{
        justify-content: center;
        flex-wrap: wrap;
    }
    .review-container{
        flex-wrap: wrap;
    }
    .review-text{
        font-size: 25px;
    }
    .review-card{
        width: 300px;
    }
    .product-container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    }
    .banner{
        text-align: center;
        justify-content: center;
    }

    /* products.html */
    .product-banner{
        text-align: center;
        padding: 1rem;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
        width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
    }

    .product-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product-card h3 {
    font-size: 0.95rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }
    .filter{
        background-color: white;
        z-index: auto;
        position: static;
    }
    .controls{
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;

    }



    .footer{
        flex-direction: column;
        gap: 5rem;
    }
}


@media(width: 1024px){
    .hero{
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    .hero-text{
        order: -1;
        margin-left: 2rem;
    }
    .about-product-image img{
        width: 80%;
    }
}



















