@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

:root{
    --orange:#ff7800;
    --black:#130f40;
    --light-color:#666;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1);
    --border:.2rem solid rgba(0,0,0,.1);
    --outline:.1rem solid rgba(0,0,0,.1);
    --outline-hover:.2rem solid var(--black);
}

*{
    font-family: 'Poppins', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    outline: none; border:none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body{
    background:#eee;
}

section{
    padding:2rem 9%;
}

.heading{
    text-align: center;
    padding:2rem 0;
    padding-bottom: 3rem;
    font-size: 3.5rem;
    color:var(--black);
}

.heading span{
    background: var(--orange);
    color:#fff;
    display: inline-block;
    padding:.5rem 3rem;
    clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding:.8rem 3rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    border:.2rem solid var(--black);
    color:var(--black);
    cursor: pointer;
    background: none;
}

.btn:hover{
    background: var(--orange);
    color:#fff;
}

.header{
    position: fixed;
    top:0; left:0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:2rem 9%;
    background:#fff;
    box-shadow: var(--box-shadow);
}

.header .logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--black);
    text-decoration: bold;
}

.header .logo .logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.header .navbar a{
    font-size: 1.7rem;
    margin:0 1rem;
    color:var(--black);
}

.header .navbar a:hover{
    color:var(--orange);
}

.header .icons{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header .icons div{
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    border-radius: .5rem;
    background: #eee;
    color:var(--black);
    font-size: 2rem;
    margin-left: .3rem;
    cursor: pointer;
    text-align: center;
}

.header .icons div:hover{
    background: var(--orange);
    color:#fff;
}

#menu-btn{
    display: none;
}

.header .search-form{
    position: absolute;
    top:110%; right:-110%;
    width: 50rem;
    height:5rem;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.header .search-form.active{
    right:2rem;
    transition: .4s linear;
}

.header .search-form input{
    height:100%;
    width:100%;
    background: none;
    text-transform: none;
    font-size: 1.6rem;
    color:var(--black);
    padding:0 1.5rem;
}

.header .search-form label{
    font-size: 2.2rem;
    padding-right: 1.5rem;
    color:var(--black);
    cursor: pointer;
}

.header .search-form label:hover{
    color:var(--orange);
}

/* Add styles for the search button */
.search-form .search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--black);
    height: 100%; /* Ensure the button height matches the input height */
}

.header .shopping-cart{
    position: absolute;
    top:110%; right:-110%;
    padding:1rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width:35rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header .shopping-cart.active{
    right:2rem;
    transition: .4s linear;
}

/* Add styles for horizontal centering and divider */
.header .shopping-cart .box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd; /* Add horizontal line */
}

.header .shopping-cart .box img {
    height: 10rem;
    object-fit: cover; /* Maintain aspect ratio */
}

.header .shopping-cart .box .content {
    flex-grow: 1;
    padding: 0 1rem;
}

.header .shopping-cart .box .content .info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header .shopping-cart .box .content .info-item .soum {
    font-size: 1.6rem;
    color: var(--orange);
}

.header .shopping-cart .box .fa-trash {
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-color);
}

.header .shopping-cart .box .fa-trash:hover {
    color: var(--orange);
}

.header .shopping-cart .box .content h3 {
    color: var(--black);
    font-size: 1.7rem;
}

.header .shopping-cart .box .content span {
    color: var(--light-color);
    font-size: 1.6rem;
}

.header .shopping-cart .box .content .quantity {
    padding-left: 1rem;
}

.header .shopping-cart .total {
    font-size: 2.5rem;
    padding: 1rem 0;
    text-align: center;
    color: var(--black);
}

.header .shopping-cart .btn {
    display: block;
    text-align: center;
    margin: 1rem;
}

/* Login form container */
.header .login-form {
    position: absolute;
    top: 110%;
    right: -110%;
    width: 35rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    border-radius: .5rem;
    background: #fff;
    text-align: center;
}

/* Active login form */
.header .login-form.active {
    right: 2rem;
    transition: .4s linear;
}

/* Welcome text */
.header .login-form h3 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--black);
}

/* User menu inside the login form */
.header .login-form .user-menu {
    margin-top: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
}

.header .login-form .user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header .login-form .user-menu li {
    margin: .5rem 0;
    text-align: left;
}

.header .login-form .user-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: var(--black);
    padding: .8rem;
    border-radius: .5rem;
    transition: background 0.3s, color 0.3s;
}

.header .login-form .user-menu li a:hover {
    background: var(--orange);
    color: #fff;
}

/* Icons next to links */
.header .login-form .user-menu li a i {
    font-size: 1.8rem;
    color: var(--orange);
}

.header .login-form .user-menu li a:hover i {
    color: #fff;
}

/* Logout button */
.header .login-form #logout-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--orange);
    color: #fff;
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: 0.3s;
}

.header .login-form #logout-btn:hover {
    background: #d9534f;
}

/* Hide elements properly */
.hidden {
    display: none;
}

/* Language selector styles */
.language-selector {
    display: inline-block;
    margin-left: 1rem;
}

.language-selector select {
    padding: 0.5rem;
    font-size: 1.6rem;
    border: 1px solid var(--light-color);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--black);
    cursor: pointer;
}

/* media queries  */

@media (max-width:991px){

    .header{
        padding:2rem;
    }

}

@media (max-width:768px){

    #menu-btn{
        display: inline-block;
    }

    .header .search-form{
        width:90%;
    }

    .header .navbar{
        position: absolute;
        top:110%; right:-110%;
        width:30rem;
        box-shadow: var(--box-shadow);
        border-radius: .5rem;
        background: #fff;
    }

    .header .navbar.active{
        right:2rem;
        transition: .4s linear;
    }

    .header .navbar a{
        font-size: 2rem;
        margin:2rem 2.5rem;
        display: block;
    }

    .language-selector select {
        margin-bottom: 10px;
    }

}

@media (max-width:450px){

    .heading{
        display: block;
        font-size: 2.5rem;
    }

}

.shopping-cart {
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width: 35rem;
    background: #fff;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    font-size: 1.6rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cart-item-value {
    font-size: 1.4rem;
    color: var(--orange);
}

.cart-item-price, .cart-item-qty {
    font-size: 1.4rem;
    color: var(--light-color);
}

.cart-divider {
    border: none;
    height: 1px;
    background: lightgray;
    margin: 1rem 0;
}

.cart-total {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
}

/* Media query for screen widths under 395px */
@media (max-width: 395px) {
    .header .icons div {
        height: 3.5rem;
        width: 3.5rem;
        line-height: 3.5rem;
        font-size: 1.6rem;
    }

    .header .logo .logo-img {
        width: 40px;
        height: 40px;
    }

    .header .navbar a {
        font-size: 1.4rem;
    }
}