:root {
    --primary: #a15100;
    --mainColor: #a15100;
    --color-primary: #d56b00;
    --text-color: black;
    --background: white;
    --btn-text-color: white;
    --background2: #fffbf1;
    --btn-hover: #814200;
    --border-gray: 1px solid rgba(128, 128, 128, 0.2);
    --shadow: 4px 6px 4px 0 rgba(0, 0, 0, 0.25);
    --theme-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
    --font-montserrat: "Montserrat", sans-serif;
}
[data-theme="dark"] {
    --text-color: white;
    --text-color2: #d0d0d0;
    --background: #222;
    --background2: #282828;
    --background-negative: #707070;
    --shadow: 4px 6px 4px 0 rgba(39, 39, 39, 0.25);
    --shadow2: 0px 0px 20px 5px #444;
  }

body {
    background-size: cover;
    background-position: inherit;
    font-family: 'montserrat';
}

.account {
    margin-top: 100px;
    text-align: -webkit-center;
}

.swap {
    display: flex;
    width: 70%;
  cursor:pointer;
    direction: rtl;
    padding: 15px;
    justify-content: space-evenly;
    min-width: 200px;
    /* gap: 10%; */
    align-items: center;
    position: relative;
}
.swap a{
    cursor: pointer !important;
}
.sticky-container{
    border-bottom: 1px solid lightgray;
    width: 100vw;
    position: sticky;
    top: 90px;
    z-index:2;
    background-color: var(--background);
}

.orders,
.balance {
    color: black;
}

.active {
    color: #d56b00;
}

.swap a:hover,
.swap a :active {
    color: #d56b00;
    transition: 0.5s ease;
}

.form {
    margin-top: 40px;
    margin-bottom: 50px;
    min-width: 280px;
    position: relative;
}

form {
    border-radius: 4px 30px;
    box-shadow: 0px 0px 8px 4px #00000021;
    border-radius: 35px;
    padding: 30px;
    padding-top:70px;
    width: 50%;
    min-width: 700px;
    position: relative;
}

#login input,
#signup input,
#signup2 input,
select {
    width: 100%;
    height: 50px;
    background-color: #d9d9d945;
    color: var(--text-color);
    border-radius: 14px;
    border: 1px solid #A8A8A9;
    padding: 0px 15px;
    font-size: 14px;
    outline: none;
    margin-bottom: 20px;
    margin-block: 5px;
    padding-left: 35px;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    top: 38%;
    left: 10px;
    color: var(--text-color);
}

/* If page language is Arabic, move icon to right */
:lang(ar) .input-container i {
    left: auto;
    right: 10px;
}

.form {
    display: flex;
    justify-content: center;
}

#login input::placeholder,
#signup input::placeholder ,
#signup2 input::placeholder{
    color: rgba(0, 0, 0, 0.536);
}

.form .button1,
.newlogin.button1,
.button1 {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    background-color: var(--primary);
    padding: 10px 20px;
    display: block;
    letter-spacing: 1px;
    border: none;
    transition: all .3s;
    margin-bottom: 20px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    width: 45%;
}

#toggle1 .button1 {
    margin-bottom:unset;
}

.bttn {
    font-size: 16px;
    color: var(--primary);
    font-weight: bold;
    background-color: var(--background);
    padding: 10px 20px;
    display: block;
    letter-spacing: 1px;
    transition: all .3s;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    border: 3px solid var(--primary);

}

.bttn:hover {
    color: white;
    background-color: var(--primary);
}

.form .button1:hover,
.newlogin.button1:hover,
.button1:hover {
    background-color: var(--btn-hover);

}

.pass {
    position: relative;
}

.password-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-141%);
    cursor: pointer;
}

.password-icon i {
    font-size: 18px;
    line-height: 1;
    color: var(--text-color);
    transition: color 0.3s ease-in-out;
    margin-bottom: 20px;
}

.login-form a,
.signup-form a {
    display: block;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: bold !important;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.login-form a:hover {
    color: #d60101;
}

.login-form .button1:hover,
.signup-form .button1:hover {
    background-color: #8b322c;
    color: #fff;
}

.newlogin:hover {
    color: #fff !important;
    background-color: #d60d0d !important;
    border: none !important;
}

.newlogin {
    border: 2px solid #d60d0d !important;
    color: #d60d0d !important;
    background-color: white !important;
}

.prices{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (max-width:780px) {

    .sticky-container{
        top: 70px;
    }

    .login-form a,
    .signup-form a {
        font-size: 11px;
    }

    .form .button1,
    .newlogin.button1,
    .button1 {
        width: 100%;
        font-size: 13px;
    }
}


.name {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.myOrders,div.wishlist {
    display: grid;
    justify-items: end;
    place-items: center;
    margin-bottom: 20px;
    gap: 30px !important;
    margin-top: 40px;
}
.myOrders p{
    margin: auto;
    height: 25vh;
    display: flex;
    align-content: center;
    justify-content: center;
}

.orderdetails {
    position: relative;
    display: flex;
    /* justify-content:space-around; */
    font-size: 16px;
    border-radius: 25px;
    width: calc(100% - 160px);
    max-width: 850px;
    box-shadow: 0px 3px 5px 3px #00000030;
    min-width: 240px;
    padding: 15px;
    gap:20px;
    padding-left:50px;
}
.orderdetails h4, .orderdetails h5{
    justify-self: start;
}
.wishlist .orderdetails{
    max-width: 600px;
}

.number {
    border-radius: 10px;
    font-weight: 800;
    place-content: center;
    text-align: center;
    align-self: center;
    color: var(--color-primary);
    /*  */
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
}

.number h3 {
    font-size: 45px;
}


.number h3 {
    text-align: center;
    font-size: 30px !important;
}

.hidden {
    display: none;
}

.vertical {
    width: 1px;
    height: 25px;
    background-color: black;
}

.orderss {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pfp {
    width: 90px;
    height: 90px;
    display:flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    top: -30px;
}
.pfp:hover::after{
    cursor:pointer;
    font-family: "Font Awesome 6 Free"; 
    content: "\f030";
    color: white;
    font-size: 2rem;
    font-weight: 900;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    opacity: 0.4;
}
.pfp img{
    height:100%;
}

.input-container-two {
    display: flex;
    justify-content: space-between;
}
.input-container,.input-container-two{
    margin-bottom: 20px;
}

.input-container-two div {
    width: 47% !important;
    position: relative;
}

.input-container-two div i {
    left: 10px;
    position: absolute;
    top: 36%;
    color: var(--text-color);
}

.photo {
    align-content: center;
}
#toggle1{
  min-height:223px;
}
.photo img {
    height:100px;
    max-width: 150px;
    border-radius: 15px;
    box-shadow: 0px 0px 7px 4px #0000003d;

}

.closed {
    margin-top: auto;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items:center;
    margin-top: 10px;
    gap:15px;
}

#toggle1 .buttons button{
    width: 110px;
    height: 40px;
}

@media (max-width:767px) {
    form{
        min-width:90vw;
    }
    .input-container-two {
        flex-direction: column;
    }

    .input-container-two div {
        width: 100% !important;

    }

    #toggle1{
        position: relative;
        gap:0 !important;
    }

    #product-filter{
        position: sticky;
        transform: translateX(-10px);
        margin-top: 20px !important;
        padding:15px 10px !important;
        font-size: 10px;
    }
    #product-filter label{
        display:flex;
    }
    #toggle1 .buttons button{
        width: 90px;
        padding:5px;
    }

    .account{
        margin-top:10px !important;
    }

    .myOrders{
        margin-top: unset;
        width:100%;
        padding:20px 5px !important;
    }
    .orderdetails{
        width:calc(100% - 90px);
    }

}


@media (max-width:670px) {

    .number h3 {
        font-size: 30px !important;
    }
}

@media (max-width:660px) {
    .prices{
        display:block;
    }
    .orderdetails {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        padding-bottom: 15px;
    }

    .O-content {
        border: none;
        place-items: center;
        padding: 5px;
        text-align: -webkit-center;
    }

    .closed {
        place-items: center;
    }

    .orderdetails h4 {
        font-size: 16px;
    }

    .orderdetails h5 {
        font-size: 14px;
    }

    .photo img {
        margin-right: 0;
    }

    .photo {
        padding-top: 20px;
        align-self: center;

    }

    /* .number {
        min-width: 60px;
        min-height: 60px;
        margin-right: auto;
    } */


    .swap {
        width: 100%;
        padding-inline: 0px;
        /* gap: 6%; */

    }
}

@media (max-width:400px) {
    .orderdetails h4 {
        font-size: 15px;

    }

    .orderdetails h5 {
        font-size: 13px;
    }
}

/*balance*/
.balance-container {
    width: 95%;
    padding: 10px 15px;
    height: 100%;
    margin: 75px 0;
    place-self: center;
    border-radius: 15px;
    box-shadow: 1px 6px 7px 2px #0000002e;
    min-width: 270px;
    max-width: 750px;
    display: block;
    place-items: center;
}

.balance-container .fa-university {
    font-size: 85px;
    color: var(--mainColor);
    margin: 20px 0;
}

.balance-container .infor {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.balance-container .infor p {
    font-weight: bold;
}

.balance-details .button1 {
    width: 60%;
    font-size: 13px;
}

.balance-details h2 {
    margin: 20px 0;
}

.balance-no {
    text-align: center;
    font-size: 25px;
    margin-bottom: 10px;
}

.loyalty {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.loyalty p {
    font-weight: 600;
}

.loyalty p span {
    margin-left: 5px;
    font-weight: 400;
}

.coupons {
    display: flex;
    justify-content: space-between;

}

.coupons div {
    margin-bottom: 10px;
}

.special {
    padding: 10px 5px;
    border: 1px solid #0000003e;
    border-radius: 10px;
    background: #0000000f;
    display: flex;
    justify-content: space-evenly;
    height: fit-content;
    width: fit-content;
margin-bottom: 20px;
}

.special i {
    color: #0000003e;
}

.couponss {
    display: flex;
    justify-content: space-between;
    align-items: anchor-center;
}

.coupons div a {
    color: #0099d4;
    text-decoration: underline;
    font-size: 15px;
}

.coupons div .button1 {
    width: 100%;
}



@media (max-width: 650px) {
    .coupons {
        flex-direction: column;
        width: 80%;
    }

    .balance-details .button1 {
        width: 80%;
    }
    .balance-details h2,
    .loyalty {
        place-content: center;
        justify-self: center;
    }
}

@media (max-width: 360px) {
    .balance-details .button1 {
        width: 100%;
    }
}
/* Popup Styles */
.popupp {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: var(--background);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    z-index: 1000;
}

/* Animation for the popup */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.popupp.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.popupp.hide {
    animation: slideOut 0.5s ease-out;
}
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: var(--background);
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80%; 
    min-width: 260px;
    overflow-y: auto; /* Enable vertical scrolling */
    position: relative;
    display: grid
    ;
        align-self: anchor-center;
        justify-self: anchor-center;
}
.popup-content h2{
    margin-bottom: 20px;
}
.popup-content p{
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
}
.popup-content ul{
    margin-bottom: 20px;
    width: 90%;
    text-align: left;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.active-coupons {
margin-bottom: 20px;
    display: none; /* Hidden by default */
    
}

a.change{
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    /* color: var(--text-color2); */
    color: var(--primary);
}
/* a.change:hover{
} */