:root {
    --color-primary: #e63946; /* Fiery red */
    --color-secondary: #f1faee; /* Off-white background */
    --color-dark: #1d3557; /* Dark blue/almost black text */
    --color-accent: #a8dadc; /* Light blue/teal accent */
    --color-warning: #ffb703; /* Orange/Yellow for buttons */
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    line-height: 1.6;
}

header {
    background-color: var(--color-primary);
    color: white;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
}

header p {
    margin: 5px 0 0;
    font-size: 1em;
    font-style: italic;
    opacity: 0.8;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

main {
    padding: 10px;
}

section {
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 5px;
    margin-top: 0;
    font-size: 1.8em;
}

/* Menu Grid */
#menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

.menu-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-details h3 {
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.item-details p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.item-price {
    font-size: 1.2em;
    color: var(--color-primary);
    font-weight: bold;
    margin-top: auto;
}

.btn-order {
    background-color: var(--color-warning);
    color: var(--color-dark);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
    min-height: 44px; /* Touch friendly */
}

.btn-order:active {
    background-color: #e49a00;
}

/* Payment Section */
#payment-methods {
    text-align: center;
}

.payment-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    flex: 1 1 100px;
    max-width: 150px;
    padding: 10px;
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    background: #f8f8f8;
    text-align: center;
}

.payment-method img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.payment-method p {
    margin: 0;
    font-size: 0.8em;
    color: #333;
}

/* Location Section */
.location-card {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.location-card h4 {
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 5px;
}

.location-card a {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
}

.location-card a:hover {
    text-decoration: underline;
}

/* Floating Order Button (Cart) */
#floating-order-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.2s;
}

#floating-order-btn:active {
    background-color: #c62828;
}

.order-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-warning);
    color: var(--color-dark);
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

/* Modal for Ordering */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--color-dark);
}

.order-item-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.order-item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
    font-size: 0.9em;
}

.order-item-list li:last-child {
    border-bottom: none;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.item-quantity button {
    background: var(--color-accent);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-weight: bold;
}

#order-total {
    font-size: 1.3em;
    font-weight: bold;
    text-align: right;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid var(--color-primary);
}

.btn-whatsapp {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

/* Footer (Optional) */
footer {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background-color: var(--color-dark);
    color: var(--color-secondary);
    font-size: 0.8em;
}