/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* Body */
body {
    background-color: #f6f7fb;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;

    height: 200px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: white;
    text-align: center;
    padding: 1rem 1rem;
    margin: 0 auto;
    max-width: 1300px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header h1 {
    font-size: 2.5rem;
}

.header h1:hover {
    color: #000;
}

.logoimg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.header p {
    transform: translateY(-30px);
    opacity: 0.9;
}

.header p:hover {
    color: #000;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-link {
    background: #222;
    color: white;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-link:hover {
    color: #000;
    background: #3e3eef;
    transform: translateY(-2px);
}

/* Container for the image */
.image-panel {
    height: 300px;
    background-image: url("./images/menue.png");
    background-size: contain;
    width: 100%;
    margin: auto;
    max-width: 1300px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Menu */
.menu h2,
.status h2 {
    margin-bottom: 1rem;
}

.menu h2:hover {
    color: #e86c10;
}

/* Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card :hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-weight: bold;
    margin-bottom: 1rem;
}

.card h3:hover,
.card p:hover {
    color: #e86c10;
}

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Hide utility */
.hide {
    display: none !important;
}

.action-container {
    width: 100%;
    margin-top: 10px;
}

/* Make the initial button full width */
.order-init-btn {
    width: 100%;
    padding: 12px;
    background: #121621;
    color: white;
    border-radius: 12px;
    border: none;
}

/* Quantity Controls Layout */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 45px;
    height: 45px;
    border: 10px solid #ddd;
    background: white;
    border-radius: 10px;
}


.qty-display {
    flex: 1;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.card button {
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background-color: #ff7a18;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.card button:hover {
    background-color: #e86c10;
}

/* Delivery Address Form */
form {
    background: white;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
}

/* Form title*/
form h3 {
    margin-bottom: 0.5rem;
    color: #ff7a18;
    font-size: 1.4rem;
}

form h3:hover {
    color: #333;
}

/* Labels */
form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

/* Inputs */
form input {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

form input:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
}

/* Input focus effect */
form input:focus {
    outline: none;
    border-color: #ff7a18;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

/* Submit button */
form button {
    margin-top: 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
}

/* Button active */
form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 122, 24, 0.25);
}

form button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.4);
}

/* Status Section */
.status {
    margin-top: 3rem;
}

.status h2 {
    font-size: 1.4rem;
}

.status h2:hover {
    color: #e86c10;
}

.status-box {
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    min-height: 80px;
    align-items: center;
}

.cart-item {
    display: flex;
    background: #fff5ed;
    padding: 1rem;
    border-radius: 5px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

#display-food-name {
    color: #000;
    flex: 1 1 150px;
    font-size: 1rem;

}

#display-food-name:hover {
    color: #e86c10;
}

/* Align the + and - buttons nicely with the text */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px;
    justify-content: flex-end;
}

.qty-controls button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: white;
}

.qty-controls button:hover {
    background: #e86c10;
}

#itemCount:hover {
    color: #e86c10;
}

#display-price {
    margin-left: 10px;
    font-weight: bold;
}


#display-price:hover {
    color: #e86c10;
}

/* Make the total price stand out */
.total-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    padding: 20px 0 20px 0;
    border-top: 2px dashed #ddd;
}

.total-display:hover {
    color: #e86c10;
}

#orderStatus::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    85% {
        content: '....';
    }

    100% {
        content: '';
    }
}

.nxt-btn {
    border-radius: 50%;
    display: flex;
    margin-left: auto;
    transform: translateY(-45px);
}

.acct {
    display: none;
    border-top: 2px dashed #ddd;
}

.acct h3 {
    text-align: center;
}

.acct p {
    text-align: center;

}

/* Target the specific amount in the payment area */
#pay-amount {
    color: #e74c3c;
    font-size: 1.2rem;
}

#paymentStatus {
    font-weight: bold;
    animation: pulseColor 1.5s infinite;
}

@keyframes pulseColor {
    0% {
        color: #e86c10;
        opacity: 1;
    }

    50% {
        color: #ffb347;
        opacity: 0.5;
    }

    100% {
        color: #e86c10;
        opacity: 1;
    }
}

#confirmOrderBtn {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.err-message {
    color: red;
    font-size: 14px;
    display: none;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
}

/* The dark background */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* The popup card */
.success-card {
    background: white;
    padding: 2.5rem;
    margin: auto;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-card h2 {
    color: #ff7a18;
    margin-bottom: 10px;
}

.success-card button {
    margin-top: 20px;
    background: #ff7a18;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.success-card button:hover {
    transform: translateY(-2px);
    background: #e86c10;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    border-radius: 5px;
    background: linear-gradient(135deg, #f8791f, #ffb347);
    width: 100%;
    margin: auto;
    max-width: 1300px;
}

.footer:hover {
    color: #f6f7fb;
}


/* Size in em 	Size in px	Device Target */
/* 23.4375em (which is 375px / 16px) */
/* 48em	768px	Tablets (Portrait) */
/* 64em	1024px	Laptops / Small Desktops */
/* 80em	1280px	Standard Large Desktops */
/* 120em	1920px	Full HD Monitors */

@media screen and (width <=34em) {
    .header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }

    form h3 {
        font-size: 1.2rem;
    }

    .qty-controls {
        width: 100%;
        justify-content: space-between;
    }


    .qty-controls button {
        width: 40px;
        height: 40px;

    }

    #display-price {
        transform: translateX(-20px);
    }

    #paymentStatus {
        font-size: 15px;
    }

}