﻿/* site.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background-color: #003366;
    color: white;
    padding: 15px 0;
}
html, body {
    overflow-x: hidden; /* prevent horizontal scrolling */
}

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
}

.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 15px;
}
main .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.image-box {
    width: 100%;
    padding-top: 75%; /* controls height ratio */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-box.tall {
    height: 420px;
}

.image-box.small {
    height: 200px;
}

.image-box.wide {
    height: 200px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    header h3 {
        font-size: 1.5rem;
    }
}


/* menu  */
.category-container {
    margin-bottom: 1rem;
}

.subcategory-container {
    margin-bottom: 0.75rem;
    padding-left: 1rem; /* will only apply to subcategories */
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Category & Subcategory */
.category-header {
    cursor: pointer;
    border-bottom: 2px solid #000;
    font-size: 1rem; /* smaller than h2 default */
    font-weight: 600;
    margin: 0.5rem 0;
}

.subcategory-header {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem 0;
    color: #333;
}

/* Items layout */
.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    flex-wrap: wrap; /* makes it responsive */
}

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.item-name {
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 0.85rem;
    color: #555;
}

.item-button {
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    margin-top: 0.25rem; /* works if it wraps on small screens */
    flex-shrink: 0;
}
/* Example to style Orchard menu like Bootstrap nav */
.navbar-nav li {
    list-style: none;
    margin-right: 1rem;
}

.navbar-nav li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
}

.navbar-nav li a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 0.25rem;
}
/* Mobile tweaks */
@media (max-width: 768px) {
    .category-header {
        font-size: 0.9rem;
    }

    .subcategory-header {
        font-size: 0.8rem;
    }
}