@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

body {
    overflow-x: hidden;
}


.main {
    width: 100%;
    background-color: #FFFFFF;
    height: 100vh;
}

/* side navbar */
.side-navbar {
    position: fixed;
    height: 100vh;
    width: 200px;
    overflow: hidden;
    transition: .5s ease;
    padding-top: 13px;
    display: flex;
    flex-wrap: wrap;
}

.side-navbar.active {
    width: 60px;
}


.side-navbar.active .sale {
    visibility: hidden;
}

.sale .icon-name {
    background-color: rgb(170, 231, 196);
    border: solid 0px rgb(170, 231, 196);
    border-radius: 50%;
    padding: 6px;
}

.side-navbar ul .sale a .text {
    font-size: 14px;
}



.side-navbar ul {
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
}

.side-navbar ul li {
    width: 80%;
    margin: auto;
}

.side-navbar ul li:hover:not(.logout, .sale) {
    background-color: seagreen;
    border-radius: 10px;
}

.side-navbar ul li:hover:not(.logout, .sale) span.text {
    color: white;
    font-weight: medium !important;
}

.side-navbar ul li:hover:not(.logout, .sale) span.icon i {
    color: white !important;
}

.sale {
    border: solid darkgrey 1px;
    border-radius: 30px;
}

.side-navbar ul li:first-child {
    margin-bottom: 1rem;
    background: none;
}

.side-navbar ul li a {
    display: block;
    width: 100%;
    display: flex;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;

}

.side-navbar ul li {
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}


.side-navbar ul li a .icon {
    min-width: 40px;
    display: block;
    font-size: 20px;

    color: seagreen;
}

.side-navbar .logout {

    bottom: 20px;
    margin: auto;
    width: 80%;
}

.side-navbar ul li a .text {
    display: block;
    white-space: nowrap;
    padding: 0;
    color: black;

}

#menu-icon {
    font-size: 32px;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 10px;
    background-color: white;

}

.active .logo {
    display: none;
}



/* content */
.content {
    position: absolute;
    width: calc(100% - 260px);
    left: 200px;
    height: 100vh;
    transition: .5s ease;
}

.content.active {
    width: calc(100% - 60px);
    left: 45px;
}

/* search icon */
.search-container {
    position: relative;
    width: 100%;
    padding-left: 15px;
}

.search-container .form-control {
    padding-left: 2.5rem;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.25);
    border-color: rgb(15, 197, 94);
}

.search-container .search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: gray;
    pointer-events: none;
}

/* categorys */
.categorys {
    width: 74%;
    background-color: #f5f5f5;
    height: auto;
}

.categorys .top {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 15px;
    background-color: white;

}

.categorys .top i {
    color: black;
    font-size: large;
    cursor: pointer;

}


/* CARD */
.product .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.product .card:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;

}

.card-img-top:hover {
    transform: scale(1.05);
}

.card-body p.card-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.card-body span {
    font-size: 14px;
}

.product .card button {
    background-color: #cbe8d7;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product .card button:hover {
    background-color: #a8ddc1;
}

.shopping-icon {
    background-color: seagreen;
    color: white;
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.shopping-icon:hover {
    background-color: darkgreen;
}

.login-btn {
    background-color: seagreen;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background-color: darkgreen;
    color: #fff;
}

/*   icons for registered users only  */
.item-count {
    position: absolute;
    top: 0;
    left: 90%;
    padding: 4px;
}



/* SCROLL ITEMS */

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    padding-top: 100px;
}


.horizontal-scroll .item {
    flex: 0 0 auto;
    width: 120px;
    height: 130px;
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    padding: 12px;
}


.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.item.active-item {
  background-color: #cfe8d5;
  border-radius: 8px;
  transition: 0.3s;
}

/* RIGHT BAR */
.rightbar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    padding-top: 13px;
    background-color: #ffffff;
    margin: 0px;
    width: 26%;
}
.order-type-option.active {
  background-color: seagreen;
  color: white;
  border-radius: 10px;
}


.rightbar .hed .pen {
    background-color: #d1d1d1;
    border-radius: 10px;
}

.rightbar .lists {
    background-color: #d1d1d1;
    border-radius: 10px;

}




.rightbar .paymentMethod .child {
    border: solid rgb(128, 126, 126) 1px;
    border-radius: 10px;
    margin: 0px 8px;
}


.rightbar .paymentMethod div span {
    font-size: 13PX;
}

.rightbar .paymentMethod .child i {
    display: flex;
    justify-content: center;
}

.rightbar .order-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* MOBILE NAVBAR */
.mobile-navbar-container {
    display: none;
    align-items: center;
    justify-content: space-between;
}

/* AL MADIA QUERY */


@media (max-width: 599px) {
    .product {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .image-wrapper {
        height: 370px;
    }

    .auth-section-mobile {
        margin-left: 40px;

    }

}

@media (min-width: 600px) and (max-width: 767px) {

    .auth-section-mobile {
        margin-left: 80px;

    }

}

@media (min-width: 768px) and (max-width: 7991px) {

    .auth-section-mobile {
        margin-left: 160px;

    }

}


@media (max-width: 768px) {
    .content {
        width: 100%;
        left: 0;
    }

    .content.active {
        width: calc(100% - 60px);
        left: 60px;
    }

    .side-navbar {
        width: 60px;
        left: -60px;
    }

    .side-navbar.active {
        left: 0;
    }
}


@media (max-width: 991px) {

    .main {
        display: flex;
        flex-direction: column;
    }


    .content {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        z-index: 0 !important;
        width: 100% !important;

    }

    .rightbar {
        position: relative !important;
        width: 100%;
        margin-top: 20px;
        padding: 15px;
        z-index: 0 !important;
        bottom: 0;
    }

    .side-navbar,
    #menu-icon {
        display: none;
    }

    .categorys {
        width: 100% !important;
    }

    .paymentMethod {
        justify-content: center;
        padding-top: 10px;
    }

    .side-navbar {
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        transition: top 0.3s ease;
    }

    .side-navbar.active {
        top: 0;
        left: 0;
    }

}


@media (max-width: 991px) {
    .mobile-navbar-container {
        display: block;
    }

    .categorys .top {
        display: flex;
        flex-direction: row;
        align-items: start;
        justify-content: space-between;
        padding-left: 15px;

    }


    .categorys .top i {
        color: rgb(26, 133, 26);
    }


    .mobile-toggle-btn {
        font-size: 26px;
        color: black;
        cursor: pointer;
        border-radius: 5px;
        width: auto;
        margin-right: 20px;
    }

    .mobile-navbar-alt {
        display: none;
        padding: 10px 0;
        position: relative;
    }

    .mobile-navbar-alt ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mobile-navbar-alt ul li a {
        text-decoration: none;
        color: seagreen;
        font-weight: bold;
        font-size: 16px;
    }

    .mobile-navbar-alt.show {
        display: block;
    }

    .user-menu li {
        padding: 10px;
        cursor: pointer;
        align-items: center;
        gap: 10px;
        display: block;
    }
}

@media (min-width:600px) and (max-width:767px) {

    .product {
        width: 45%;
        margin: auto;
    }
}

@media (min-width:768px) and (max-width:991px) {

    .product {
        width: 38%;
        margin: auto;
    }
}

@media (min-width:992px) and (max-width:1100px) {

    .product {
        width: 43%;
    }
}

@media (min-width:1101px) and (max-width:1150px) {

    .product {
        width: 45%;
    }
}

@media (min-width:1150px) and (max-width:1200px) {

    .product {
        width: 45%;
        margin: auto;
        margin-left: 0px;
    }
}

@media (min-width:1201px) and (max-width:1250px) {

    .product {
        width: 40%;
        margin: auto;
        margin-left: 10px;
    }
}

@media (min-width:992px) and (max-width:1400px) {
    .mobile-btn-sign-up {
        display: none;
    }
}

@media (min-width:0px) and (max-width:991px) {
    li {
        padding: 5px 0px;
        display: flex;
        align-items: center;
    }

    li i {
        padding: 5px 0px;
        display: flex;
        padding-right: 10px;
    }

    li .text:hover {
        text-decoration: underline;
    }

    .desktop-btn-signUp {
        display: none;
    }

    .login-btn {
        position: absolute;
        top: 20px;
    }


    a {
        text-decoration: none;
        color: #28a745;
    }

}



/* eror and success msg */
.message-box {
    position: fixed;
    top: 85px;
    right: 15px;
    background-color: #f44336;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: bold;
    font-size: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 280px;
}

.close-icon {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}




/* welcome msg  */
.welcome-message-box {
    display: none;
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.welcome-message-box.show {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px) translateX(50%);
        opacity: 0;
    }

    100% {
        transform: translateY(0) translateX(50%);
        opacity: 1;
    }
}

.close-icon {
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
}


/* place order msg */
.place-message-box {
    display: none;
    position: fixed;
    top: 85px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 18px;
}

.close-message {
    cursor: pointer;
    margin-left: auto;
    font-size: 18px;
}


/* menu profile */
.user-menu {
    position: fixed;
    top: 60px;
    right: 70px;
    background-color: white;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    padding: 10px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}

.user-menu li:hover {
    background-color: #f1f1f1;
    border: solid 1px white;
    border-radius: 20px;

}



/* Toggle button style */
.switch-mode {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch-mode input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-mode {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider-mode:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.switch-mode input:checked+.slider-mode {
    background-color: seagreen;
}

.switch-mode input:checked+.slider-mode:before {
    transform: translateX(20px);
}



/* dark mode */

body.dark-mode .card {
    background-color: #000000 !important;
    color: white !important;

}

body.dark-mode .card p {
    color: white !important;
}

body.dark-mode .rightbar * {
    color: white !important;
}

body.dark-mode .btn {
    background-color: #918888;
    color: white;
    border-color: #444;
}

body.dark-mode .btn:hover {
    background-color: #444;
}

body.dark-mode textarea,
body.dark-mode select {
    background-color: #2c2c2c;
    color: white;
    border: 1px solid #555;
}

body.dark-mode .rightbar,
body.dark-mode .side-navbar,
body.dark-mode .top,
body.dark-mode .item,
body.dark-mode .user-menu,
body.dark-mode .allItems {
    background-color: #000000;
    color: white;
}

body.dark-mode .side-navbar .text {
    color: white;
}


body.dark-mode .user-menu {
    box-shadow: 0px 0px 5px #FFFFFF;
}

body.dark-mode .user-menu li:hover {
    background-color: white;
    color: black;
    border: solid 1px white;
    border-radius: 20px;

}

body.dark-mode .categorys {
    background-color: #141212;
}



body.dark-mode .mobile-toggle-btn {
    color: white;
}


/* Modal Background */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Box */
.admin-modal-content {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 350px;
  text-align: center;
  position: relative;
}

/* Title */
.admin-modal-content h5 {
  margin-bottom: 15px;
  font-weight: bold;
  color: seagreen;
}

/* Input */
.admin-modal-content input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: 0.3s ease;
  font-size: 15px;
}

.admin-modal-content input[type="password"]:focus {
  border-color: seagreen;
  box-shadow: 0 0 5px rgba(46, 139, 87, 0.3);
}

/* Error Message */
#admin-error {
  color: red;
  font-size: 14px;
  margin: 10px 0;
  display: none;
}

/* Buttons */
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-buttons button {
  width: 48%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}



#admin-submit {
  background-color: seagreen;
  color: white;
}

#admin-submit:hover {
  background-color: darkgreen;
}

#admin-cancel {
  background-color: #ccc;
  color: #333;
}

#admin-cancel:hover {
  background-color: #bbb;
}


.user-info span
{
    text-decoration: underline;
}
.user-info span:hover
{
    text-decoration: none;
}