/* Base Styles */
body {
    background-color: #f6f5f3;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.t2-header {
    background: white;
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    /* Restaurant logos are rarely square: keep the height, let the width follow. */
    height: 2.75rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo span {
    font-weight: bold;
}

.address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(163, 42, 42, 1);
    font-size: 0.875rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle button {
    background: none;
    border: none;
    color: rgba(163, 42, 42, 1);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(163, 42, 42, 1);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar Navigation */
/* Order type option default and selected styles */
.order-type-option{
    border: 1px solid transparent;
}
.order-type-option.selected{
    border: 2px solid #A32A2A;
}
.sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    height: fit-content;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(163, 42, 42, 1);
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.nav-item:hover {
    background-color: rgba(163, 42, 42, 0.05);
    color: rgba(163, 42, 42, 1);
}

.nav-item.active {
    background-color: rgba(163, 42, 42, 1);
	/* border-radius: 8px; */
    color: white;
}

.sidebar>.nav-item:first-child {
	border-radius: 8px 8px 0 0;
}

.sidebar>.nav-item:last-child {
	border-radius: 0 0 8px 8px;
}

.nav-item .emoji {
    font-size: 1.25rem;
}

/* Main Content Area */
.menu-content {
    flex: 1;
}

.category-header {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.category-header p {
    color: #666;
    margin: 0;
}

/* Menu Items List */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Menu Item Card */
.menu-item {
    /* background: white; */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    /* padding: 1rem; */
}

.item-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 50%; */
}

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

.item-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-header p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background-color: #fff3cd;
    color: #664d03;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.order-btn {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.order-btn:hover {
    background-color: rgba(163, 42, 42, 0.9);
}

.radius-8{
	border-radius: 8px;
}

.radius-8-tl-tr{
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.radius-8-bl-br{
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* Fixed Footer Cart Styles */
.footer-cart {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
	z-index: 1000;
}

.footer-cart-header {
	background: white;
	padding: 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.footer-cart-content {
	padding: 1rem;
	background: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.footer-cart-content.active {
	max-height: 400px;
	border-top: 1px solid #eee;
}

.footer-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	color: rgba(163, 42, 42, 1);
	font-weight: 500;
	border: none;
	background: none;
	padding: 0;
}

.footer-cart-button:hover {
	color: rgba(163, 42, 42, 0.8);
}

.footer-cart-button svg {
	width: 24px;
	height: 24px;
}

.footer-cart-footer {
	padding: 1rem;
	background: white;
	border-top: 1px solid #eee;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.footer-cart-footer.active {
	max-height: 100px;
}

.footer-cart-total {
	max-width: 400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chevron-icon {
	transition: transform 0.3s ease;
	margin-left: 0.5rem;
	font-size: 1rem;
}

.chevron-icon.rotated {
	transform: rotate(180deg);
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        border-radius: 0;
        background: white;
        visibility: hidden;
    }

    .sidebar.active {
        left: 0;
        visibility: visible;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        /* background: rgba(163, 42, 42, 1); */
        color: white;
    }

    .sidebar-header h5 {
        margin: 0;
    }

    .close-menu {
        background: none;
        border: none;
        color: white;
        font-size: 1.25rem;
        padding: 0.5rem;
        cursor: pointer;
    }

    body.menu-open {
        overflow: hidden;
    }

    .content-wrapper:not(.full-width) {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-overlay {
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .category-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-btn {
        width: 100%;
    }
}

.tag{
	background: #f1dfdf;
	color: #000;
}

.cart-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0rem;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: none;
}

.cart-content {
    padding: 1rem;
    max-height: 400px;
    min-height: 300px;
    overflow-y: auto;
}

.cart-footer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cart-wrapper {
    position: relative;
}

.wide-cart-btn{
    width: 400px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Header Cart Styles & Others */
body {
    padding-top: 50px; /* Height of fixed header */
}

/* Main header positioning */
.t2-header {
    position: relative;
    background: white;
    z-index: 1040;
    transition: margin-top 0.3s ease;
}

/* Default layout - sidebar left, content right */
.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
}

/* Horizontal Menu Styles */
.horizontal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.horizontal-menu .nav-item {
    flex: 0 1 auto;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1rem;
    color: rgba(163, 42, 42, 1);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    height: 40px;
    border: 1px solid rgba(163, 42, 42, 0.2);
}

.horizontal-menu .nav-item:hover {
    border-color: rgba(163, 42, 42, 1);
}

.horizontal-menu .nav-item.active {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    border-color: rgba(163, 42, 42, 1);
}

.horizontal-menu .nav-item .emoji {
    font-size: 1.25rem;
}

/* Full width layout - sidebar top, content bottom */
.content-wrapper.full-width {
    flex-direction: column;
}

.content-wrapper.full-width .sidebar {
    width: 100%;
    margin-bottom: 1rem;
}

.content-wrapper.full-width .menu-content {
    width: 100%;
}

/* Fixed header styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #dc3545;
    color: white;
    z-index: 1044;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-header .footer-cart-header {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0px;
}

/* Header cart content styles */
.header-cart-content,
.header-cart-footer {
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-cart-content {
    min-height: 200px;
    border-bottom: 1px solid #eee;
}

.header-cart-footer {
    padding: 1rem;
    background: white;
}

.header-cart-content:not(.d-none) + .t2-header {
    margin-top: 250px; /* Combined height of cart content and footer */
}

/* Mobile layout */
@media (max-width: 991px) {
    .content-wrapper:not(.full-width) {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-wrapper:not(.full-width) .sidebar {
        width: 100%;
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
}

.cart-modal.show {
    display: block;
}

.cart-modal .cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(163, 42, 42, 1);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cart-modal .cart-header .badge {
    background: white;
    color: rgba(163, 42, 42, 1);
}

.cart-modal .cart-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-modal .cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
}

.cart-wrapper {
    position: relative;
}

.cart-wrapper.fixed-position {
    position: fixed;
    z-index: 1000;
    right: 20px;
    width: 350px;
}

.cart-wrapper #cartButton {
    width: 100%;
}

.cart-wrapper #cartButton.wide-cart-btn {
    width: 350px;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.cart-overlay {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 350px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 100%;
    right: 0;
}

.cart-overlay.active {
    display: block;
}

/* Start: Load more button */

#loadMoreBtn {
    min-width: 150px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
#loadMoreBtn:hover {
    transform: translateY(-2px);
}
#loadMoreBtn.loading {
    position: relative;
    color: transparent !important;
}
#loadMoreBtn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(163, 42, 42, 1);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* End: Load more button */

/* Start: Bottom Part */

/* Order Type Modal Styles */
.order-type-option {
    transition: all 0.3s ease;
    background: #fff;
}

.order-type-option:hover {
    border-color: rgba(163, 42, 42, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 0.1);
}

.order-type-option.selected {
    border-color: rgba(163, 42, 42, 1) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 1);
}

.flex-1 {
    flex: 1;
}

.cursor-pointer {
    cursor: pointer;
}


.modal-lg {
    max-width: 800px;
}

#addressInput:focus {
    border-color: rgba(163, 42, 42, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(163, 42, 42, 0.25);
}

/* End: Bottom Part */

/* Start: Google Maps */
/* Order Type Modal Styles */
.order-type-option {
    transition: all 0.3s ease;
    background: #fff;
}

.order-type-option:hover {
    border-color: rgba(163, 42, 42, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 0.1);
}

.order-type-option.selected {
    border-color: rgba(163, 42, 42, 1) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 1);
}

/* Google Places Autocomplete styles */
.pac-container {
    z-index: 1056 !important; /* Higher than modal's z-index (1055) */
    border-radius: 8px;
    margin-top: 4px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pac-item {
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-query {
    font-size: 14px;
    color: #212529;
}
/* End: Google Maps */
