@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

:root {
    --primary-color: #D4AF37;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    padding: 0;
}

.accordion-header-top {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container .logo {
    max-height: 60px;
}

.restaurant-name-logo {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.header-icons a {
    color: #333;
    font-size: 20px;
    margin-left: 20px;
    text-decoration: none;
}

.header-buttons {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 15px;
}

.header-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid #eee;
}
.header-btn:last-child {
    border-right: none;
}
.header-btn i {
    margin-right: 8px;
}

.wifi-info {
    text-align: center;
    padding: 12px 0;
    background-color: #fff;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}
.wifi-info i {
    margin-right: 8px;
}

.accordion-menu-container {
    padding: 10px;
    background-color: #fff;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
}

.category-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.category-image-container {
    position: relative;
    width: 100px;
    height: 70px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.icon-container {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 14px;
    color: #333;
}
.accordion-header.open .icon-container i {
    transform: rotate(45deg);
}
.icon-container i {
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    padding: 0 10px 15px;
}

.menu-items {
    padding-top: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #f2f2f2;
    gap: 15px;
}
.menu-item:first-child {
    border-top: none;
}

.menu-item-with-image {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.menu-item-without-image {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

.product-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.1);
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.accordion-item-title-row {
    line-height: 1.35;
    margin-bottom: 5px;
}

.accordion-item-title-row .item-title {
    display: inline;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.accordion-product-tag-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.accordion-tag-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary-color);
    cursor: default;
    outline: none;
    flex-shrink: 0;
}

.accordion-tag-icon-wrap:hover,
.accordion-tag-icon-wrap:focus-visible {
    background: rgba(0, 0, 0, 0.1);
}

.accordion-tag-icon {
    font-size: 0.72rem;
    line-height: 1;
}

.accordion-tag-icon-wrap::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 50;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.accordion-tag-icon-wrap:is(:hover, :focus-visible, .is-open)::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.item-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.item-price-area {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-size: 16px;
    min-width: 80px;
    padding-left: 15px;
    flex-shrink: 0;
}

/* Variant Styles */
.product-variants {
    margin-top: 8px;
    text-align: left;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 11px;
    padding: 3px 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    border-left: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: 4px;
}

.variant-name {
    color: #666;
    font-weight: 500;
    flex: 1;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.variant-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.item-price-old {
    font-weight: 400;
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    display: block;
}
.stock-badge {
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.accordion-footer {
    padding: 20px;
    text-align: center;
    background-color: #333;
    color: #fff;
}

.footer-info {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-address,
.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-address i,
.footer-phone i {
    color: var(--primary-color);
    font-size: 16px;
}

.footer-phone a {
    color: #fff;
    text-decoration: none;
}

.footer-phone a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social {
    margin-bottom: 15px;
}
.footer-social a {
    color: #fff;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

.footer-copyright .footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 500px) {
    .item-details {
        min-width: 0;
    }
    .item-price-area {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 14px;
        padding-left: 10px;
    }
    .item-title {
        font-size: 15px;
    }
    .item-description {
        font-size: 13px;
    }
    .category-title {
        font-size: 16px;
    }
    .logo-container .logo {
        max-height: 50px;
    }
    .restaurant-name-logo {
        font-size: 20px;
    }
    .header-btn {
        font-size: 12px;
    }
    .header-icons a {
        font-size: 18px;
        margin-left: 15px;
    }
    .accordion-header {
        padding: 12px 8px;
    }
}

.restaurant-description {
    padding: 0 1.5rem 1rem 1.5rem;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.restaurant-description p {
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments for mobile */
@media (max-width: 500px) {
    .product-image-container {
        width: 60px;
        height: 60px;
    }

    .menu-item {
        gap: 10px;
    }

    .item-details {
        font-size: 14px;
    }

    .item-price-area {
        font-size: 14px;
        min-width: 70px;
        padding-left: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

.header-language {
    margin-left: auto;
    margin-right: 15px;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #D4AF37;
    font-weight: 500;
}

.language-selector-current:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.language-flag {
    font-size: 16px;
}

.language-name {
    font-size: 13px;
    white-space: nowrap;
}

.language-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(212, 175, 55, 0.1);
}

.language-option .language-flag {
    font-size: 16px;
}

.language-option .language-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 100px) {
    .header-language {
        margin-right: 10px;
    }

    .language-selector-current {
        padding: 6px 10px;
        font-size: 13px;
    }

    .language-name {
        display: none;
    }

    .language-dropdown {
        min-width: 140px;
        right: -10px;
    }

    .language-option {
        padding: 10px 14px;
    }

    .language-option .language-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-language {
        margin-right: 5px;
    }

    .language-selector-current {
        padding: 5px 8px;
    }

    .language-flag {
        font-size: 14px;
    }

    .language-arrow {
        font-size: 10px;
    }
}

.item-price-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.item-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-add-to-cart:hover {
    background: #B8941F;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.btn-add-to-cart i {
    font-size: 9px;
}

.cart-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    min-width: 140px;
    justify-content: space-between;
}

.cart-toggle i {
    font-size: 16px;
}

.cart-text {
    font-size: 12px;
    font-weight: 500;
}

.cart-total {
    font-size: 13px;
    font-weight: 700;
}

#cartCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 20px;
}

.cart-toggle:hover {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}


#cartPanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #f8f9fa;
    box-shadow: -2px 0 20px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e9ecef;
}

#cartPanel.active {
    right: 0;
}

#cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cartOverlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 0 0 12px 12px;
    margin: 0 0 10px 0;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

#cartClose {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 225px);
    padding: 10px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 0 10px 10px 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.item-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.selected-options .badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 5px;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #B8941F;
}

.quantity {
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #ff3742;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: white;
    border-radius: 12px 12px 0 0;
    margin: 10px 0 0 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

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

.btn-clear-cart, .btn-checkout {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.btn-clear-cart.show, .btn-checkout.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-clear-cart {
    background: #ff4757;
    color: white;
}

.btn-clear-cart:hover {
    background: #ff3742;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
}

.btn-checkout:hover {
    background: #B8941F;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ddd;
}

.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-modal.active {
    opacity: 1;
    visibility: visible;
}

body.cart-open {
    overflow: hidden;
}

.order-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.required {
    color: #ff4757;
}

.order-summary {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel, .btn-submit-order {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit-order {
    background: var(--primary-color);
    color: white;
}

.btn-submit-order:hover {
    background: #B8941F;
}

.btn-submit-order:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #cartPanel {
        width: 100%;
        right: -100%;
    }

    .cart-toggle {
        min-width: 120px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .cart-toggle i {
        font-size: 14px;
    }

    .cart-text {
        font-size: 11px;
    }

    .cart-total {
        font-size: 12px;
    }

    .order-modal-content {
        padding: 20px;
        width: 95%;
    }
}
