/* Shared FiLLi menu card system
   Source of truth for menu-hub, country/menu, and store-detail card UI.
   Keep page-specific overrides in local Blade templates. */

:root {
    --fm-orange: #fc5007;
    --fm-brown: #3f2016;
    --fm-cream: #faf8f5;
    --fm-text: #555;
    --fm-radius: 14px;
}

/* ── GROUP / SECTION ── */
.fm-group { margin-bottom: 8px; }
.fm-group-title { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fm-orange); background: var(--fm-cream); padding: 16px 0 8px; margin: 0; }
.fm-group-divider { background: var(--fm-cream); padding: 24px 0 8px; }
.fm-group-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fm-orange); }
.fm-section { padding: 28px 0 12px; }
.fm-section-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--fm-brown); margin: 0 0 20px; }
.fm-subcategory { padding: 20px 0 12px; }
.fm-subcategory-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--fm-brown); margin: 0 0 16px; }

/* ── CARD GRID ── */
.fm-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fm-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── CARD ── */
.fm-card {
    border: 1px solid rgba(0,0,0,0.08); border-radius: var(--fm-radius);
    background: #fff; overflow: hidden; cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.fm-card:hover { box-shadow: 0 2px 12px rgba(63,32,22,0.08); }
.fm-card.expanded { border-color: var(--fm-orange); box-shadow: 0 4px 20px rgba(252,80,7,0.12); }
.fm-card-top { display: flex; align-items: center; gap: 12px; padding: 14px; }
.fm-card-thumb { flex-shrink: 0; width: 69px; height: 69px; border-radius: 10px; overflow: hidden; background: var(--fm-cream); }
.fm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-card-thumb-placeholder { width: 100%; height: 100%; background: var(--fm-cream); }
.fm-card-info { flex: 1; min-width: 0; }
.fm-card-info h3 { font-size: 0.82rem; font-weight: 700; color: var(--fm-brown); margin: 0 0 3px; line-height: 1.25; }
.fm-card-price { font-size: 0.75rem; font-weight: 700; color: var(--fm-text); }
.fm-card-badges { display: flex; gap: 6px; margin-top: 4px; }
.fm-badge-veg { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #2e7d32; border-radius: 2px; position: relative; }
.fm-badge-veg::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #2e7d32; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.fm-badge-star { font-size: 0.58rem; font-weight: 700; color: #d4a017; background: #fef9e7; padding: 1px 6px; border-radius: 4px; }
.fm-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.fm-badge-icon svg { width: 14px; height: 14px; fill: none; stroke: #888; stroke-width: 1.5; }
.fm-card-desc-preview { font-size: 0.68rem; color: var(--fm-text); line-height: 1.4; margin: 4px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── EXPAND AREA ── */
.fm-card-expand { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.fm-card.expanded .fm-card-expand { max-height: 800px; }
.fm-card-expand-inner { padding: 0 14px 14px; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 12px; }
.fm-expand-img { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--fm-cream); aspect-ratio: 4/3; }
.fm-expand-img img { width: 100%; height: 100%; object-fit: cover; }
.fm-card-desc { font-size: 0.72rem; color: var(--fm-text); line-height: 1.5; margin: 0 0 10px; }
.fm-card-dietary { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fm-dietary-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 600; color: var(--fm-text); background: var(--fm-cream); padding: 3px 8px; border-radius: 6px; }
.fm-dietary-pill svg { width: 14px; height: 14px; fill: none; stroke: #888; stroke-width: 1.5; }
.fm-card-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fm-size-pill { font-size: 0.68rem; font-weight: 700; color: var(--fm-brown); background: var(--fm-cream); padding: 5px 12px; border-radius: 8px; }
.fm-size-pill .fm-sl { font-weight: 600; color: var(--fm-text); margin-right: 3px; }
.fm-card-order {
    display: block; width: 100%; padding: 10px;
    background: var(--fm-orange); color: #fff !important;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border: none; border-radius: 980px; cursor: pointer;
    text-align: center; text-decoration: none !important; transition: background 0.2s;
}
.fm-card-order:hover { background: #e04400; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .fm-items { grid-template-columns: repeat(2, 1fr); }
    .fm-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .fm-items { grid-template-columns: 1fr; gap: 10px; }
    .fm-card-grid { grid-template-columns: 1fr; gap: 10px; }
    .fm-card-top { padding: 12px; gap: 10px; }
    .fm-card-thumb { width: 60px; height: 60px; }
    .fm-card-expand-inner { padding: 0 12px 12px; padding-top: 10px; }
}
