/* Vaqueros Menu Page Add-on Styles */

.category {
    margin-bottom: 1.5em;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: var(--panel);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    background: #f1f5f9;
    padding: 14px 16px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category h2::after {
    content: "▼";
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.category.collapsed h2::after {
    transform: rotate(-90deg);
}

.items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8em;
    padding: 16px;
    transition: max-height 0.4s ease, padding 0.3s ease;
    overflow: hidden;
}

.items.collapsed {
    max-height: 0;
    padding: 0 16px;
    gap: 0;
}

@media (min-width: 768px) {
    .items {
        grid-template-columns: 1fr 1fr;
    }
}

.item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "name price"
        "desc desc";
    gap: 4px 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.item h3 {
    grid-area: name;
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.item p.price {
    grid-area: price;
    margin: 0;
    font-weight: 700;
    color: var(--brand);
    text-align: right;
}

.item p.description {
    grid-area: desc;
    margin: 0;
    color: var(--muted);
    font-size: 0.95em;
}

#menu.error {
    color: red;
    text-align: center;
    padding: 20px;
}