* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f5f5f5;
    font-family: 'Inter', sans-serif;
}

/* Header Styles */
header {
    display: flex;
    justify-content: center;
}

.header-container {
    position: relative;
    height: 167px;
    width: 100%;
    max-width: 600px;
    font-family: "Italiana", sans-serif;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.header-title {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 1;
}

.header-text {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2em;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 1;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.menu-section {
    width: 100%;
    margin-bottom: 2rem;
}

/* Categories Section */
.categories-section {
    width: 100%;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card.active {
    background-color: #fff3cd;
    border-color: #ffc107;
    transform: translateY(-2px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.category-arrow {
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-card.active .category-arrow {
    transform: rotate(180deg);
}

.menu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.menu-items.show {
    max-height: 1000px;
    opacity: 1;
}

/* Menu Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 3rem;
    margin: 0;
    flex-shrink: 0;
}

.item-details {
    flex-grow: 1;
}

.name {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.ingredients {
    color: #666;
    margin: 0 0 0.5rem 0;
    font-style: italic;
    font-size: 0.9em;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ff6b6b;
    margin: 0;
}

.add-to-cart {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.add-to-cart:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Cart Section */
.cart-section {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: none;
}

.cart-section.show {
    display: block;
}

.cart-title {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #ff5252;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    font-size: 1.25rem;
    font-weight: bold;
}

.complete-order-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background 0.2s;
}

.complete-order-btn:hover {
    background: #218838;
}

.complete-order-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Payment Modal Styles */
.modalPay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modalPay.show {
    display: block;
}

.modalPay-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.modalPay-title {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.modalPay-form-group {
    margin-bottom: 1rem;
}

.modalPay-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.modalPay-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modalPay-form-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.pay-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.pay-btn:hover {
    background: #218838;
}

.modalPay-order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modalPay-order-summary h4 {
    margin-top: 0;
    color: #333;
}

.modalPay-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.modalPay-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

/* Thank you message */
.thank-you-message {
    width: 100%;
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.thank-you-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.delivery-time {
    font-size: 0.9rem;
    color: #0f5132;
    margin: 0;
}

/* Responsive design */
@media (max-width: 640px) {
    .header-container {
        height: 120px;
    }
    
    .header-title {
        font-size: 2em;
    }
    
    .header-text {
        font-size: 1em;
    }
    
    .card {
        padding: 1rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 1.25rem;
    }
}

/* Pay Modal Styles */
.modalPay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modalPay.show {
    display: block;
}

.modalPay-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: black;
}

.modalPay-title {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.pay-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.pay-btn:hover {
    background: #218838;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-summary h4 {
    margin-top: 0;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

/* Thank you message */
.thank-you-message {
    width: 100%;
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.thank-you-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.delivery-time {
    font-size: 0.9rem;
    color: #0f5132;
    margin: 0;
}

/* Responsive design */
@media (max-width: 640px) {
    .header-container {
        height: 120px;
    }
    
    .header-title {
        font-size: 2em;
    }
    
    .header-text {
        font-size: 1em;
    }
    
    .card {
        padding: 1rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 1.25rem;
    }
}






.cookie-modal {
    display: none;
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 420px;
    width: 350px;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 2px #666;
    background-color: #212529;
    color: whitesmoke;
}

.cookie-modal-inner{
    width: 290px;
    margin: 0 auto;
}

.cookie-modal-inner-loading{
    text-align: center;
}

/* cookie modal buttons */

.cookie-close-modal-btn-container{
    text-align: right;
    margin: 9px;
}

.cookie-modal-close-btn {
  font-size: 22px;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid transparent;
  color: whitesmoke;
}

.cookie-modal-close-btn:hover,
.cookie-modal-close-btn:active{
    color: red;
    cursor: pointer;
}

.cookie-modal-close-btn:disabled{
    color: whitesmoke;
    opacity: 0.2;
    cursor: not-allowed;
}

.cookie-modal-choice-btns{
    margin-top: 10px;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
}

.cookie-modal-btn{
    padding: 10px 24px;
    cursor: pointer;
}

.cookie-modal-btns-reverse{
    flex-direction: row-reverse;
}

/* cookie modal input */

.cookie-modal input{
    margin-top: 10px; 
    border: 1px solid #212529;
    padding: 10px;
    width: 100%;
    border-radius: 3px;
}

/* cookie modal after submit */

.cookie-loading{
    width: 100%; 
    margin-top: 10px;
}

.cookie-modal-display-name{
    color: fuchsia;
}

.cookie-modal-text{
    height: 140px;
    line-height: 23px;
    margin-bottom: 0;
}

.cookie-idiot-gif{
    width: 95%;
    margin: 0 auto;
}

.cookie-idiot-gif img{
    box-shadow: 1px 1px 3px #999;
    border-radius: 5px;
}

#payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#payment-modal.show {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.modal-title {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-summary h4 {
    margin-top: 0;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

/* Thank you message */
.thank-you-message {
    width: 100%;
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.thank-you-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.delivery-time {
    font-size: 0.9rem;
    color: #0f5132;
    margin: 0;
}

/* Responsive design */
@media (max-width: 640px) {
    .header-container {
        height: 120px;
    }
    
    .header-title {
        font-size: 2em;
    }
    
    .header-text {
        font-size: 1em;
    }
    
    .card {
        padding: 1rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 1.25rem;
    }
}