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

}

:root {
    --main-pink-color: #2a6041;
    --light-pink-color: #28965A;
    --beige-color: #FAF6E8;
    --nav-color: #41493e;
    --top-section-bg: #acc9b3;
    --nav-fs: 18px;
    --fs-16: 16px;
    --fs-32: 32px;
    --fw-500: 500;
}

html {
    scroll-behavior: smooth;
}




/* header */

.header>.container {
    display: flex;
    justify-content: space-between;
    max-width: 100vw;
    margin: auto;
    height: 80px;
    align-items: center;
    transition: all 300ms ease;
}

.logo {
    margin-right: 20px;
    color: var(--nav-color);
    min-height: fit-content;
    text-transform: uppercase;
    font-weight: 500;
    transition-duration: .4s;
    font-size: 27px;
    font-weight: 700;
    text-decoration: none;
}

.logo:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.logo>span {
    color: var(--main-pink-color);
    font-weight: 900;

}

.nav-bar {
    margin: auto;
    transition: 0.5s;
}


.hamburger {
    display: none;
}

.nav-bar>ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.nav-bar.active ul{
    opacity: 1;
    
}


.nav-bar>ul li {
    list-style: none;

}

.nav-bar>ul>li>a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--nav-color);
    font-size: var(--nav-fs);
    font-weight: var(--fw-500);
    position: relative;
    letter-spacing: -0.5px;
}

.nav-bar>ul>li>a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    margin-top: 3px;
    background-color: var(--main-pink-color);
    bottom: -2px;
    left: 0;
    transition-duration: .4s;
}

.nav-bar>ul>li>a:hover::after {
    width: 100%;
}

.nav-store {
    padding: 0 15px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: space-evenly;

}

.nav-store>span {
    color: var(--main-pink-color);
    opacity: 0.9;
    font-size: 32px;
    margin: auto;
    cursor: pointer;

}

.nav-store>span:first-child {
    transform: rotate(90deg);

}

.nav-store>span:last-of-type {
    position: relative;
}
.nav-store>span:last-of-type > span{
    position: absolute;
    width: 14px;
    height: 16px;
    border-radius: 50%;
    bottom: -2px;
    right: -3px;
    background-color: var(--main-pink-color);
    color: white;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}




.search-layout.hidden {
    height: 0;
    overflow: hidden;
    padding: 0;
    transition: height 0.3s ease, opacity 0.5s ease;

}

.search-layout {
    position: fixed;
    background-color: #ffffffd0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    transition: height 200ms ease-in;
}

.search-close {
    position: absolute;
    right: 60px;
    top: 60px;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-pink-color);
    cursor: pointer;
    color: #FFFFFF;
}

.search-close i {
    transition: transform 250ms ease-in;
}

.search-close:hover i {
    transform: rotate(180deg);
}

.search-container {
    max-height: 230px;
    text-align: center;
    padding-top: 130px;
}

.search-container h3 {
    color: var(--nav-color);
    margin-bottom: 10px;
}

.search-input {
    border: 1px solid var(--light-pink-color);
    outline: none;
    padding: 12px 8px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    font-size: 16px;
    transition: border 200ms ease-in;
}

.search-input:focus,
.search-input:hover {
    border: 1px solid var(--main-pink-color);

}


.search-btn {
    width: 120px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    padding: 13px;
    font-size: 16px;
    margin-left: -7px;
    border: none;
    background-color: var(--light-pink-color);
    transition: all 200ms ease;

}

.search-btn:hover {
    background-color: #83cf89;
}

.cart-layout.hidden {
    visibility: hidden;
    opacity: 0;
}


.cart-layout {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 50;
    background-color: rgba(26, 26, 26, 0.861);
    z-index: 999;
    transition: opacity 150ms ease-in;
}

.cart-container {
    background-color: #ffffff;
    position: absolute;
    top: 50vh;
    right: 50vw;
    transform: translate(50%, -50%);
    width: 400px;
    min-height: 330px;
    border-radius: 14px;
    transition: all 300ms ease;
    position: relative;
}



.cart-hero {
    border-bottom: 1px solid #2828281e;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    height: 18%;
}

.cart-hero h3 {
    font-weight: 600;
    font-size: 20px;
}

.cart-hero .cart-close {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
}

.cart-items {
    overflow:hidden;
    width: 100%;
    height: 180px;
    display: grid;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    position: relative;
}


.cart-items::before{
    content: "لا يوجد اي منتج";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
}

.cart-items.special-before-style::before {
    content: "لا يوجد اي منتج";
    display: none
}

.cart-bottom.hidden {
    visibility: hidden;
}


.cart-bottom {
    border-top: 1px solid #2828281e ;
    display: flex;
    flex-direction: column;
}

.total {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 16px;
    color: black;

}

.total .total-price {
    font-weight: 700;
}

.cart-bottom a {
    display: inline-block;
    width: 90%;
    background-color: var(--main-pink-color);
    padding: 8px 3px;
    border-radius: 7px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    text-align: center;
    align-self: center;
    transition: all 150ms ease;
}
.cart-bottom a:hover {
    transform: scale(0.98);
    background-color: #91e0a5c6;
}


.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.cart-item-image {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

.cart-item-price {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.cart-item-color-size {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.cart-item-quantity {
    flex-shrink: 0;
    margin-left: 25px;

}

.quantity-number {
    outline: none;
    width: 55px;
    padding: 12px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;

}

.cart-item-remove {
    border: none;
    background-color: transparent;
    color: var(--main-pink-color);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 16px;
}


@media (max-width: 768px) {
    .nav-bar ul li a {
        font-size: 17px;
    }

}

@media (max-width: 660px) {
    .nav-bar {
        height: 0;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100vw;
        background: white;
        transition: 0.2s;
        z-index: 999;
        overflow: hidden;

    }

    .nav-bar.active {
        height: 450px;
    }
    .nav-bar ul {
        display: block;
        width: fit-content;
        margin: 80px auto 0 auto;
        text-align: center;
        transition: 0.5s;
    }
    .nav-bar ul li a {
        margin-bottom: 15px;
        color: var(--light-pink-color);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    .hamburger .line {
        width: 25px;
        height: 3px;
        background: var(--main-pink-color);
        margin: 3px 0;
    }

    
}

@media (max-width: 470px) {
    .cart-container {
        width: 95vw;
    }
} 


/* header */




/* top-section */

.top-section {
    background-color: #6a8f7242;

}

.top-section .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 70px 0;
}

.top-section .container div {
    color: #3a423abb;
    font-size: var(--fs-16);
}


.top-section .container h1 {
line-height: 1.3;
font-weight: 500;
letter-spacing: -1px;
font-size: 40px;
color: #3b423a;
max-width: 400px;
text-align: center;
}

.top-section .container .btn {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #FFFFFF;
    background-color: var(--main-pink-color);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--main-pink-color);
    transition: all 300ms ease;
}


.top-section .container .btn:hover {
    background-color: transparent;
    color: var(--main-pink-color);
}
/* top-section */



/* questions-section */

.questions-section .container {
    padding: 100px 0 ;
    max-width: 100vw;
    margin: auto;
    display: flex;
    gap: 10px;
    justify-content: space-evenly;

}

.left-side-column {
    width: fit-content;
    line-height: 2;

}

.sticky-bar {
    left: 150px;
    width: 100%;
    top: 80px;
    position: sticky;
}

.left-side-column h5 {
    color: var(--nav-color);
    font-weight: 500;
}

.left-side-column a {
    text-decoration: none;
    color:#60946b;
    transition: color 250ms ease;
}

.left-side-column a:hover {
color: var(--nav-color);
}



.expand {
    width: 62%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.expand a {
    text-decoration: none;
    color: #609463;
    cursor: pointer;
    position: relative;

}

.arrow i {
    height: 20px;
    width: 20px;
    position: absolute;
    left:-40px;
    top: calc(50% - 10px);
    transition: transform 0.3s ease;
    
}
.arrow.up i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;


}

.expand .content-box {
    border-bottom: 1px solid var(--nav-color);
    padding: 10px;
    padding-left: 40px;

} 


.content-description {
    padding-left: 40px;
    height: 0;
    overflow: hidden;
    padding: 0;
    transition: height 0.3s ease, opacity 0.5s ease;
}

.content-description.show {
    height: 80px; 
    opacity: 1;
}


.expand h5 {
    margin-bottom: 20px ;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.7px;
    color: var(--nav-color);
}


.expand p {
    font-size: var(--fs-16);
    color: hsla(104, 36%, 14%, 0.794);
    margin-top: 10px;
}

@media (max-width: 678px) {

    .top-section h1{
        font-size: 32px !important;
    }
    .content-box .content-title {
        font-size: 16px;
    }

    .content-box p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .questions-section .container {
        padding: 100px 20px;
        flex-direction: column;
    }

    .expand {
        width: fit-content;
    }
}

/* questions-section */




/* footer */

.footer .container {
    max-width: 100vw;
    padding: 30px 60px;
    background-color: var(--light-pink-color);
    margin: auto;
    display: grid;
    gap: 20px 0;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    color: #FFFFFF;
}

.footer .container a {
    color: #FFFFFF;
}

.footer .container .logo {
    color: var(--nav-color);
    margin-left: 0;
}


.footer .container li {
    list-style: none;
}

.footer .container a {
    text-decoration: none;
}

.footer .container ul {
    display: flex;
    gap: 30px;
}

.footer-nav ul {
    flex-wrap: wrap;
}

.footer .container .copyrights {
    grid-column: span 2;
    font-size: 12px;
}

.footer .container .copyrights h3 {
    font-weight: 400;
}

.footer .container .copyrights a {
    font-weight: 800;
}

.footer .container .social-media ul {
    gap: 15px;
}

.footer .container .social-media svg {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: var(--top-section-bg);
    padding: 10px;
    transition: all 200ms ease-in;

}

.footer .container .social-media svg:hover {
    background-color: var(--main-pink-color);
}

@media (max-width: 995px){
    .footer .container {
        grid-template-columns: 1fr;
    }

    .footer .container .copyrights {
        grid-column: 1;
    }
}

@media (max-width: 560px) {
    .footer-nav ul {
        font-size: 16px;
    }
}

/* footer */




.go-top {
    background-color: #2CEAA3;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    padding: 10px;
    position: fixed;
    right: 20px;
    bottom: -50px;
    opacity: 0;
    font-size: 25px;
    color: var(--main-pink-color);
    transition: all 500ms ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;

}

.go-top.show {
    bottom: 10px;
    opacity: 1;
    height: 50px;
    width: 50px;

}