/* Restaurant Menu Styles */

:root {
    --primary-color: #46260f;
    --secondary-color: #c9895b;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --price-color: #c61a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.menu-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.category-card:hover {
    background-color: var(--light-bg) !important;
    transform: translateY(-3px);
}

/* Category image styles */
.category-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card-img-top.bg-secondary.category-img {
    font-weight: 600;
}

/* Left-aligned category image for row layout */
.category-img-left {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 12px 0 0 12px;
}

.category-card .card-body {
    padding: 1rem 1rem;
}


.card-title {
    font-weight: 600 !important;
}

.item-price {
    color: var(--price-color);
    font-weight: 600;
}
.card-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.nav-item .nav-link {
    /* Use a very large radius to guarantee perfectly circular sides */
    border-radius: 50rem !important;
    display: inline-block;
}

.nav-pills .nav-item .nav-link {
    border: 1px solid #111;
    background-color: transparent;
    color: #111;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-pills .nav-item .nav-link:hover {
    background-color: #f3f3f3;
    color: #111;
}

.nav-pills .nav-item .nav-link.active,
.nav-pills .nav-item .nav-link.show {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
}

.category-action-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    margin-top: auto;
}

.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.15rem;
}

/* img {
    transition: transform 0.3s ease;
} */

.menu-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

.menu-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item:last-child {
    border-bottom: none;
}

.product-img {
    max-width: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.nav-pills-scroll-wrapper {
    position: relative;
}

.nav-pills-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
}

.nav-pills-scroll .nav {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.nav-pills-scroll .nav-link {
    white-space: nowrap;
}

.nav-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #333;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.nav-scroll-prev {
    left: 0.5rem;
}

.nav-scroll-next {
    right: 0.5rem;
}

.nav-scroll-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 767px) {
    .nav-pills-scroll {
        padding: 0.25rem 2.5rem;
    }

    .nav-scroll-arrow {
        display: flex;
    }
}

.nav-pills-scroll::-webkit-scrollbar {
    display: none;
}

.nav-pills-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.subcategory-scroll-wrapper {
    position: relative;
}

.subcategory-scroll-wrapper .nav-scroll-arrow {
    display: none;
}

.subcategory-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.subcategory-pills .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.subcategory-pills::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .subcategory-scroll-wrapper .nav-scroll-arrow {
        display: flex;
    }

    .subcategory-pills {
        padding: 0.25rem 2.5rem;
    }
}

