/* Styling for the "Add to Cart" button */
/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

a{
    color: white; /* Text color */
    background-color: orange;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 3rem;
    font-size: 1.5rem;
}
#mobile{
    visibility: hidden;
}
a:hover{
    background-color: darkorange; /* Slightly darker orange on hover */
    height: 3.1rem;
    color: #fffbe0; /* Softer white for hover text */
}

/* Menu Container Styling */
.menu-container {
    margin-top: 10px;
    width: 70%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

h1 {
    text-align: center;
    color: #2d3436;
    font-size: 2.8em;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff7f50, #ff4757);
    border-radius: 2px;
}

/* Menu List Grid */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Menu Item Card */
.menu-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 20px;
}

.menu-item h3 {
    font-size: 1.4em;
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price {
    font-size: 1.8em;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7675);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

button:active {
    transform: translateY(1px);
}

/* Cart Container */
.cart-container {
    width: 28%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cart-container h2 {
    font-size: 2em;
    color: #2d3436;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    margin-top: 20px;
}

.cart-container h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 2px;
}

/* Cart Items */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
}

.cart-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item p {
    margin: 0;
    color: #2d3436;
    font-weight: 500;
}

.cart-item button {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
}

.total-price {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    color: #2d3436;
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6f9fc 0%, #f1f5f9 100%);
}

/* User Details Form */
.user-details {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.user-details h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.user-details label {
    font-size: 1rem;
    color: #2d3436;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.user-details input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.user-details input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    outline: none;
}

.user-details button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        flex-direction: column;
    }

    .menu-container, .cart-container {
        width: 100%;
    }

    .cart-container {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2em;
    }

    .menu-item-content {
        padding: 15px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #ff7675);
}/* Add these new styles to your existing CSS */

/* Mobile Cart Button */
.mobile-cart-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: none;
    color: white;
    font-size: 1.1em;
}

/* Modify your existing media queries */
@media (max-width: 768px) {
    body {
        padding: 10px 10px 70px 10px; /* Added bottom padding for mobile cart button */
    }
    #mobile{
        visibility: visible;
        display: block;
        margin-left: 3rem;
    }
    #pc{
        visibility: hidden;
        display: none;
    }

    .user-details button{
        margin-bottom: 10px;
    }
    .menu-container {
        width: 100%;
        margin-bottom: 60px; /* Space for mobile cart button */
    }

    .cart-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 91vh;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-radius: 20px 20px 0 0;
    }
    button{
        -webkit-tap-highlight-color: transparent;
    }
    .cart-container.show {
        transform: translateY(1vh);
    }

    .mobile-cart-btn {
        display: block;
    }

    /* Overlay for cart background */
    .cart-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .cart-overlay.show {
        display: block;
    }
}
.cart-open {
     overflow: hidden;
     position: fixed;
     width: 100%;
 }