
:root {
    --primary-color: #8affa3;
    --primary-color-dark: #5cb85c;
    --primary-color-darker: #3e8e41;
    --secondary-color: #2baa5b;
    --secondary-color-dark: #16801e;
    --highlight-color: #2e92d4;
    --text-color: #ffffff;
    --text-muted: #4caf50;
    --text-muted-alt: #185525;
    --border-color-for-nav: #4caf50;
    --bg-color: #121212;
    --bg-color-light: #272727;
    --border-color: var(--primary-color);
    --nav-bg: #272727;
    --card-bg: #1e1e1e;
    --input-bg: #333;
    --gradient: linear-gradient(270deg, #121212, #272727, #121212);
}

.skeleton {
    border-radius: 30px;
    min-height: 16px;
    width: 100%;
    background: var(--gradient);
    background-size: 600% 600%;
    animation: skeleton-loading 1.5s linear infinite alternate;
}

.skeleton-img {
    width: 245px;
    height: 325px;
    background: var(--gradient);
    border-radius: 30px;
    background-size: 600% 600%;
    animation: skeleton-loading 1.5s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background: var(--gradient);
    background-size: 600% 600%;
    animation: gradientBackground 8s ease infinite;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#navbar {
    width: 85%;
    height: 60px;
    background-color: var(--bg-color-light);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-radius: 20px;
    margin-top: 20px;
    border: 1px solid var(--primary-color);
}

input[type="checkbox"] {
    display: none;
}

.menu {
    display: none;
}

.logo {
    padding-left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.logo-name {
    color: var(--primary-color);
    font-size: 20px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    padding-left: 0px;
}

nav ul li {
    margin: auto 15px;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.1s ease;
    display: flex;
    cursor: pointer;
    gap: 5px;
}

nav ul li a:hover {
    color: var(--highlight-color);
}

.profile {
    padding-right: 15px;
}

.profile-icon {
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.profile-icon-in-links {
    width: 80px;
    height: 80px;
    margin: auto;
    background-color: rgba(127, 133, 133, 0.733);
    border-radius: 50%;
}

.profile-data {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

#cart {
    display: flex;
}

#Cartnumber {
    display: inline;
    transition: transform 0.3s ease;
}

#cart:hover #Cartnumber {
    animation: bounce 0.6s ease-out;
}

.cart-summary {
    position: fixed;
    top: 165px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    background: var(--bg-color);
    padding: 5px;
    border-radius: 16px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-right-color: blue;
    border: 1px solid var(--border-color-for-nav);
}

.total-orders1 {
    margin-left: 8px;
}

a#cart-summary-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    flex-direction: column;
}

svg#cart-icon {
    background: var(--primary-color);
    border-radius: 50px;
}

/* Updated "links-in-profileicon" styling */
.links-in-profileicon {
    width: 370px;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    top: 100px;
    right: 10%;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
}

hr#profile-hr {
    margin: 0px;
    border: 1px solid var(--border-color-for-nav);
}

.profile:hover .links-in-profileicon {
    visibility: visible;
    opacity: 1;
}

#show-username,
#show-fullname {
    color: var(--text-muted);
    font-size: 18px;
    text-align: center;
}

#show-email {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
}

#login-link,
#register-link,
#register-link1,
#logout-link,
#forgot-password-link {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.1s ease;
    margin-right: 10px;
}

#login-link:hover,
#register-link:hover,
#register-link1:hover,
#logout-link:hover,
#forgot-password-link:hover {
    color: var(--highlight-color);
}

#login-link:active,
#register-link:active,
#register-link1:active,
#logout-link:active,
#forgot-password-link:active {
    color: var(--text-muted-alt);
    text-decoration: underline;
}

/* Toast message styling */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin: 0 auto;
    background-color: var(--input-bg);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 100000000000;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.toast.success {
    background-color: var(--text-muted);
}

.toast.error {
    background-color: #f44336;
}

.toast.warning {
    background-color: #ffae42;
}

.loading-icon {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Login Modal */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.login-container.show {
    display: flex;
    opacity: 1;
}

.login-container > form {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 350px;
    transform: scale(0.7) rotate(10deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-container.show > form {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Register Modal */
.register-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.register-container.show {
    display: flex;
    opacity: 1;
}

.register-container > form {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 350px;
    transform: scale(0.7) rotate(-10deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.register-container.show > form {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cart-modal.show {
    display: flex;
    opacity: 1;
}

.cart-modal .cart-content {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 500px;
    max-width: 90%;
    max-height: 600px;
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-modal.show .cart-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.checkout-modal.show {
    display: flex;
    opacity: 1;
}

.checkout-modal .checkout-content {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 450px;
    max-width: 90%;
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-modal.show .checkout-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-modal.show {
    display: flex;
    opacity: 1;
}

.contact-modal .contact-content {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 450px;
    max-width: 90%;
    transform: translateX(-100px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-modal.show .contact-content {
    transform: translateX(0) scale(1);
    opacity: 1;
}
#reasonforpincodeselected {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

/* Order Modal */
.order-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.order-container.show {
    display: flex;
    opacity: 1;
}

.order-container > div {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 550px;
    max-width: 90%;
    max-height: 600px;
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-container.show > div {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
}

/* Cancel Order Modal */
.cancel-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cancel-order-modal.show {
    display: flex;
    opacity: 1;
}

.cancel-order-content {
    background-color: var(--bg-color-light);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 500px;
    max-width: 90%;
    text-align: center;
    transform: scale(0.7) rotate(5deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cancel-order-modal.show .cancel-order-content {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

#login-image,
#register-image {
    border: solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    height: 110px;
    width: 110px;
    border: 2px solid var(--primary-color);
}

#logintext,
#registertext {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

hr {
    margin: 0 auto;
    margin-bottom: 10px;
}

#loginRole {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background-color: var(--bg-color-light);
}

.form-group {
    margin-bottom: 20px;
}

.h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

#role {
    display: flex;
    gap: 15px;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.loginlable,
h6,
#forgot-password-link {
    color: var(--primary-color);
}

h6 {
    margin-bottom: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--primary-color);
    outline: none;
    margin-bottom: 10px;
    background: linear-gradient(270deg, var(--bg-color), var(--bg-color-light), var(--bg-color));
}

input[type="submit"],
#show-contact-form,
#close-contact-section,
#close-contact,
.close-contact,
#close-login,
#close-orders,
#close-register,
#checkadminpin,
#next {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--bg-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover,
.close-contact:hover,
#close-login:hover,
#close-orders:hover,
#close-register:hover,
#checkadminpin:hover,
#next:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.05);
}

input[type="submit"]:active,
.close-contact:active,
#close-login:active,
#close-orders:active,
#close-register:active,
#checkadminpin:active,
#next:active {
    background-color: var(--primary-color-darker);
    transform: scale(0.95);
}

.submit {
    display: flex;
    align-items: center;
    gap: 30px;
}

#loginpage-link,
#registerpage-link {
    margin-top: 15px;
}

/*Body & all*/
.container {
    width: 95%;
    height: 100%;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 10px;
    background-color: var(--bg-color-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: white;
    overflow: hidden;
}

.products-nav {
    width: 15%;
    border: 3px solid var(--secondary-color-dark);
    border-radius: 20px;
    padding: 20px;
    padding-right: 15px;
    background-color: var(--gradient);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 10px;
    height: 571px;
    overflow-y: scroll;
    scrollbar-color: var(--secondary-color) transparent;
    scrollbar-width: thin;
    scroll-behavior: auto;
}

.product-categery {
    color: white;
    font-size: 18px;
    width: 95%;
    text-align: center;
    padding: 10px 5px;
    border: 4px solid var(--border-color-for-nav);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    padding-bottom: 0px;
    height: fit-content;
}

.product-categery:hover {
    color: white;
    background-color: var(--border-color-for-nav);
}

.product-categery.active {
    border: 4px solid var(--border-color-for-nav);
    animation: borderColorChange 0.5s infinite alternate;
}

@keyframes borderColorChange {
    0% {
        border-color: var(--border-color-for-nav);
    }
    100% {
        border-color: var(--secondary-color-dark);
    }
}

input[type="radio"] {
    display: none;
}

.selected-products {
    flex: 1;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    height: 98%;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    overflow-y: scroll;
    scrollbar-color: var(--secondary-color) transparent;
    scrollbar-width: thin;
    background: linear-gradient(270deg, var(--bg-color), var(--bg-color-light), var(--bg-color));
    background-size: 600% 600%;
    animation: gradientBackground 8s ease infinite;
}

#selectedproductsname {
    padding: 10px;
    background-color: var(--secondary-color);
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
}

#selectedproductsname.blurred,
#searchBox.blurred {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.3);
}

#searchBox {
    width: 200px;
    justify-content: flex-end;
    margin-bottom: 0px;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

#selectedproductsnameansearchbox {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 25px;
}

#dispalyproducts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 70px;
    width: 100%;
}

.product-item {
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
    width: 242px;
    height: fit-content;
    line-height: 25px;
    animation: fadeInScale 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#product-image {
    width: 220px;
    height: 270px;
    object-fit: cover;
    border-radius: 20px;
}

.quantity-label {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: var(--primary-color);
}

.quantity-input {
    width: 60px;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: #fff;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--highlight-color);
}

.quantity-product {
    margin-left: 5px;
}

.increment,
.decrement {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px;
    height: 30px;
    width: 25px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.increment:hover,
.decrement:hover {
    background-color: var(--border-color-for-nav);
    transform: scale(1.05);
}

.increment:active,
.decrement:active {
    background-color: var(--secondary-color-dark);
    transform: scale(0.95);
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--primary-color);
}

.cart-item img {
    border-radius: 10px;
}

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

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 200px;
    overflow-y: scroll;
    scrollbar-color: var(--secondary-color) transparent;
    scrollbar-width: thin;
    scroll-behavior: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid var(--primary-color);
}

.cart-buttons {
    display: flex;
    gap: 10px;
}

.cart-button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--bg-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cart-button:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.05);
}

.cart-button:active {
    background-color: var(--primary-color-darker);
    transform: scale(0.95);
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-content label {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.checkout-content input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--primary-color);
    outline: none;
    margin-bottom: 15px;
    background: linear-gradient(270deg, var(--bg-color), var(--bg-color-light), var(--bg-color));
}

.checkout-content input[type="radio"] {
    margin-right: 10px;
}

.checkout-content div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkout-button {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--bg-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.checkout-button:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.05);
}

.checkout-button:active {
    background-color: var(--primary-color-darker);
    transform: scale(0.95);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-content textarea {
    height: 150px;
    background-color: var(--input-bg);
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    overflow-y: auto;
    scrollbar-color: var(--secondary-color) transparent;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    color: var(--primary-color);
    outline: none;
}

.contact-content p {
    font-size: 16px;
    margin-bottom: 5px;
}

input#show-contact-form,
input#close-contact-section {
    margin-left: 10px;
}

.orderlist {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    scroll-behavior: smooth;
    padding-right: 5px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    padding: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--card-bg);
}

.order-item h3 {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.order-item p {
    margin: 5px 0;
}

.order-item-detail {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid var(--primary-color);
    color: #fff;
}

#yourorders,
#close-orders {
    margin-top: 10px;
    margin-bottom: 10px;
}

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

.order-animated {
    animation: fadeInUp 0.5s ease forwards;
}

.cancel-order-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cancel-order-content p {
    color: var(--text-color);
    margin-bottom: 20px;
}

#cancel-reason {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
    resize: vertical;
    background-color: var(--input-bg);
    color: var(--primary-color);
    outline: none;
}

.cancel-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cancel-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#confirm-cancel {
    background-color: #dc3545;
    color: white;
}

#confirm-cancel:hover {
    background-color: #c82333;
}

#close-cancel-modal {
    background-color: #6c757d;
    color: white;
}

#close-cancel-modal:hover {
    background-color: #5a6268;
}

.order-item .cancel-order-btn {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 12px;
}

.order-item .cancel-order-btn:hover {
    background-color: #c82333;
}

.order-item .cancel-order-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        color: var(--highlight-color);
        text-shadow: 0 0 10px rgba(138, 255, 163, 0.8);
    }
    75% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Media queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links ul li {
        margin-bottom: 10px;
    }

    .profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-icon {
        margin-bottom: 10px;
    }

    .product-categery {
        margin-bottom: 0px;
    }

    .selected-products {
        padding: 10px;
    }

    .cart-modal,
    .checkout-modal,
    .contact-modal {
        width: 100%;
        margin: auto;
    }

    .cart-content,
    .checkout-content,
    .contact-content {
        padding: 10px;
    }

    .cart-buttons,
    .checkout-button,
    .close-contact {
        width: 100%;
        margin-bottom: 10px;
    }

    .logo-name {
        font-size: 18px;
    }

    .menu {
        display: block;
        cursor: pointer;
        font-size: 30px;
        color: var(--primary-color);
        padding-right: 5%;
    }

    input[type="checkbox"]:checked~.nav-links {
        border: 2px solid var(--primary-color);
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px;
        background-color: var(--bg-color-light);
        border-radius: 20px;
        padding: 10px;
        gap: 10px;
        right: 3%;
        z-index: 1;
    }

    #selectedproductsnameansearchbox {
        gap: 11px;
    }

    #selectedproductsname {
        padding: 11px;
        font-size: 22px;
    }

    #searchBox {
        width: 166px;
    }

    .container {
        width: 95%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 10px;
    }

    .products-nav {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 10px 5px;
        margin-bottom: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        background-color: var(--card-bg);
        border: 2px solid var(--secondary-color-dark);
        border-radius: 15px;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--secondary-color) transparent;
    }

    .product-categery {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 12px;
        white-space: nowrap;
        text-align: center;
        background-color: transparent;
        border: 2px solid var(--border-color-for-nav);
    }

    .product-categery:hover {
        background-color: var(--border-color-for-nav);
        color: white;
    }

    .product-categery {
        text-align: center;
    }

    label {
        margin-bottom: 0px;
    }

    .selected-products {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding: 15px;
    }

    .product-item {
        width: 45%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        border-radius: 10px;
        background: #1f1f1f;
        height: fit-content;
    }

    #product-image {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .profile {
        padding-right: 10px;
    }

    .profile-icon {
        width: 42px;
        height: 42px;
    }

    .links-in-profileicon {
        width: 80%;
        right: 10%;
        position: absolute;
        z-index: 1;
    }

    .welcomemessage {
        width: 100%;
        text-align: center;
    }

    .cart-modal {
        width: 100%;
    }

    .checkout-modal {
        width: 100%;
    }

    .contact-modal {
        width: 100%;
    }

    .order-container {
        width: 100%;
    }
}
