/* ==========================================================================
   Flavor Menu – Restaurant Menu Card Styles
   Version: 1.0.0
   ========================================================================== */

/* ---------- CSS Custom Properties per Theme ---------- */

.flavor-theme-dark {
    --fm-bg: #0f0f0f;
    --fm-surface: #1a1a1a;
    --fm-surface-hover: #222222;
    --fm-border: rgba(255,255,255,0.08);
    --fm-text: #e8e4df;
    --fm-text-muted: #8a8580;
    --fm-heading: #f5f0eb;
    --fm-accent: #c9a96e;
    --fm-accent-soft: rgba(201,169,110,0.12);
    --fm-badge-bg: #c9a96e;
    --fm-badge-text: #0f0f0f;
    --fm-filter-bg: transparent;
    --fm-filter-active: #c9a96e;
    --fm-filter-text: #8a8580;
    --fm-filter-text-active: #0f0f0f;
    --fm-card-shadow: 0 4px 24px rgba(0,0,0,0.4);
    --fm-card-shadow-hover: 0 12px 40px rgba(0,0,0,0.6);
    --fm-dots-color: rgba(255,255,255,0.1);
    --fm-radius: 12px;
    --fm-placeholder-bg: #252525;
}

.flavor-theme-light {
    --fm-bg: #faf8f5;
    --fm-surface: #ffffff;
    --fm-surface-hover: #fdfcfb;
    --fm-border: rgba(0,0,0,0.06);
    --fm-text: #3d3832;
    --fm-text-muted: #7a7165;
    --fm-heading: #1a1714;
    --fm-accent: #b8860b;
    --fm-accent-soft: rgba(184,134,11,0.08);
    --fm-badge-bg: #1a1714;
    --fm-badge-text: #faf8f5;
    --fm-filter-bg: transparent;
    --fm-filter-active: #1a1714;
    --fm-filter-text: #9a938b;
    --fm-filter-text-active: #faf8f5;
    --fm-card-shadow: 0 2px 16px rgba(0,0,0,0.06);
    --fm-card-shadow-hover: 0 8px 32px rgba(0,0,0,0.10);
    --fm-dots-color: rgba(0,0,0,0.08);
    --fm-radius: 12px;
    --fm-placeholder-bg: #f0ece6;
}

.flavor-theme-earth {
    --fm-bg: #1e1b16;
    --fm-surface: #2a2520;
    --fm-surface-hover: #332e28;
    --fm-border: rgba(200,180,150,0.1);
    --fm-text: #d4c8b8;
    --fm-text-muted: #8c7f6f;
    --fm-heading: #f0e6d6;
    --fm-accent: #d4845a;
    --fm-accent-soft: rgba(212,132,90,0.12);
    --fm-badge-bg: #d4845a;
    --fm-badge-text: #1e1b16;
    --fm-filter-bg: transparent;
    --fm-filter-active: #d4845a;
    --fm-filter-text: #8c7f6f;
    --fm-filter-text-active: #1e1b16;
    --fm-card-shadow: 0 4px 24px rgba(0,0,0,0.4);
    --fm-card-shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
    --fm-dots-color: rgba(200,180,150,0.12);
    --fm-radius: 12px;
    --fm-placeholder-bg: #35302a;
}

/* ---------- Base Container ---------- */

.flavor-menu {
    padding: 60px 0;
    font-family: var(--fm-font-body);
    color: var(--fm-text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */

.flavor-menu__header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.flavor-menu__title {
    font-family: var(--fm-font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--fm-heading);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.flavor-menu__title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.flavor-menu__title-ornament span:nth-child(1),
.flavor-menu__title-ornament span:nth-child(3) {
    width: 40px;
    height: 1px;
    background: var(--fm-accent);
    opacity: 0.5;
}

.flavor-menu__title-ornament span:nth-child(2) {
    width: 6px;
    height: 6px;
    background: var(--fm-accent);
    border-radius: 50%;
}

.flavor-menu__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--fm-text-muted);
    margin: 0;
    font-weight: 300;
}

/* ---------- Category Filters ---------- */

.flavor-menu__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.flavor-filter-btn {
    background: var(--fm-filter-bg);
    color: var(--fm-filter-text);
    border: 1px solid var(--fm-border);
    padding: 8px 22px;
    font-family: var(--fm-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flavor-filter-btn:hover {
    color: var(--fm-heading);
    border-color: var(--fm-accent);
}

.flavor-filter-btn.is-active {
    background: var(--fm-filter-active);
    color: var(--fm-filter-text-active);
    border-color: var(--fm-filter-active);
}

/* ---------- Subcategory Nav Bar ---------- */

.flavor-menu__subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fm-border);
}

.flavor-subnav-btn {
    background: transparent;
    color: var(--fm-text-muted);
    border: none;
    padding: 4px 14px;
    font-family: var(--fm-font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
}

.flavor-subnav-btn:hover {
    color: var(--fm-heading);
    background: var(--fm-accent-soft);
}

.flavor-subnav-btn.is-active {
    color: var(--fm-accent);
    font-weight: 500;
    background: var(--fm-accent-soft);
}

/* ---------- Section Headers (subcategory separators) ---------- */

.flavor-menu__sections {
    /* Container for sectioned view */
}

.flavor-menu__section {
    margin-bottom: 40px;
}

.flavor-menu__section:last-child {
    margin-bottom: 0;
}

.flavor-menu__section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.flavor-menu__section-title {
    font-family: var(--fm-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fm-heading);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.flavor-menu__section-line {
    flex: 1;
    height: 1px;
    background: var(--fm-border);
}

/* ---------- Content area ---------- */

.flavor-menu__content {
    /* Wrapper for flat grid + sectioned views */
}

/* ---------- Grid ---------- */

.flavor-menu__grid {
    display: grid;
    gap: 28px;
}

.flavor-cols-2 .flavor-menu__grid { grid-template-columns: repeat(2, 1fr); }
.flavor-cols-3 .flavor-menu__grid { grid-template-columns: repeat(3, 1fr); }
.flavor-cols-4 .flavor-menu__grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .flavor-cols-4 .flavor-menu__grid,
    .flavor-cols-3 .flavor-menu__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .flavor-menu__grid { grid-template-columns: 1fr !important; }
    .flavor-menu { padding: 40px 0; }
    .flavor-menu__header { margin-bottom: 32px; }
}

/* ---------- Card ---------- */

.flavor-menu__card {
    background: var(--fm-surface);
    border-radius: var(--fm-radius);
    overflow: hidden;
    box-shadow: var(--fm-card-shadow);
    border: 1px solid var(--fm-border);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
}

.flavor-menu__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-card-shadow-hover);
    background: var(--fm-surface-hover);
}

/* Filter animation — card-grid */
.flavor-menu__card.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.flavor-menu__card.is-visible {
    opacity: 1;
    position: relative;
    visibility: visible;
}

/* Filter animation — horizontal card */
.flavor-hcard.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.flavor-hcard.is-visible {
    opacity: 1;
    position: relative;
    visibility: visible;
}

/* ---------- Card Image ---------- */

.flavor-menu__card-image {
    position: relative;
    overflow: hidden;
}

.flavor-menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flavor-menu__card:hover .flavor-menu__card-image img {
    transform: scale(1.06);
}

/* Image Ratios */
.flavor-ratio-4-3  { aspect-ratio: 4/3; }
.flavor-ratio-1-1  { aspect-ratio: 1/1; }
.flavor-ratio-16-9 { aspect-ratio: 16/9; }

/* Placeholder */
.flavor-menu__card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fm-placeholder-bg);
    color: var(--fm-text-muted);
}

.flavor-menu__card-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: 0.3;
}

/* ---------- Badges ---------- */

.flavor-menu__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.flavor-menu__badge {
    font-family: var(--fm-font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    line-height: 1.3;
}

/* ---------- Card Body ---------- */

.flavor-menu__card-body {
    padding: 22px 24px 26px;
}

.flavor-menu__card-title {
    font-family: var(--fm-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fm-heading);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.flavor-menu__card-subtitle {
    font-size: 0.88rem;
    color: var(--fm-accent);
    font-style: italic;
    font-family: var(--fm-font-heading);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.flavor-menu__card-desc {
    font-size: 0.88rem;
    color: var(--fm-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 400;
}

.flavor-menu__card-desc p {
    margin: 0;
}

/* ---------- Price Rows ---------- */

.flavor-menu__card-prices {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fm-border);
}

.flavor-menu__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.flavor-menu__price-row:last-child {
    margin-bottom: 0;
}

.flavor-menu__price-label {
    font-size: 0.82rem;
    color: var(--fm-text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.flavor-menu__price-dots {
    flex: 1;
    border-bottom: 1px dotted var(--fm-dots-color);
    margin-bottom: 4px;
    min-width: 20px;
}

.flavor-menu__price-value {
    font-family: var(--fm-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fm-accent);
    white-space: nowrap;
}

/* ---------- Empty State ---------- */

.flavor-menu__empty {
    text-align: center;
    color: var(--fm-text-muted);
    font-style: italic;
    padding: 60px 20px;
}

/* ---------- Entrance Animations ---------- */

@keyframes flavorFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flavor-menu__card {
    animation: flavorFadeUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Once filter has been used, disable entrance animation to prevent zoom glitch */
.flavor-menu__card.is-visible,
.flavor-menu__card.is-hidden {
    animation: none;
}

.flavor-menu__card:nth-child(1)  { animation-delay: 0.05s; }
.flavor-menu__card:nth-child(2)  { animation-delay: 0.10s; }
.flavor-menu__card:nth-child(3)  { animation-delay: 0.15s; }
.flavor-menu__card:nth-child(4)  { animation-delay: 0.20s; }
.flavor-menu__card:nth-child(5)  { animation-delay: 0.25s; }
.flavor-menu__card:nth-child(6)  { animation-delay: 0.30s; }
.flavor-menu__card:nth-child(7)  { animation-delay: 0.35s; }
.flavor-menu__card:nth-child(8)  { animation-delay: 0.40s; }
.flavor-menu__card:nth-child(9)  { animation-delay: 0.45s; }
.flavor-menu__card:nth-child(10) { animation-delay: 0.50s; }
.flavor-menu__card:nth-child(11) { animation-delay: 0.55s; }
.flavor-menu__card:nth-child(12) { animation-delay: 0.60s; }

/* ---------- Inline Badge (list layouts) ---------- */

.flavor-menu__badge-inline {
    display: inline-block;
    font-family: var(--fm-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
    line-height: 1.4;
}

/* ==========================================================================
   Layout 2 – Price List
   ========================================================================== */

.flavor-pricelist {
    display: flex;
    flex-direction: column;
}

.flavor-pricelist__category {
    font-family: var(--fm-font-heading);
    font-size: 1.1rem;
    color: var(--fm-accent);
    padding: 28px 0 12px;
    border-bottom: 1px solid var(--fm-accent);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.flavor-pricelist__subcategory {
    font-family: var(--fm-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-text-muted);
    padding: 18px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 0;
}

.flavor-theme-light .flavor-pricelist__subcategory {
    border-bottom-color: rgba(0,0,0,0.04);
}

.flavor-pricelist__item {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--fm-border);
}

.flavor-pricelist__item:last-child { border-bottom: none; }

.flavor-pricelist__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.flavor-pricelist__name {
    font-weight: 600;
    color: var(--fm-heading);
    font-size: 0.95rem;
}

.flavor-pricelist__desc {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.flavor-pricelist__dots {
    flex: 1;
    border-bottom: 2px dotted var(--fm-dots-color);
    margin-bottom: 4px;
    min-width: 24px;
}

.flavor-pricelist__single-price {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Multi-price rows inside price list */
.flavor-pricelist__prices {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flavor-pricelist__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.flavor-pricelist__price-label {
    font-size: 0.72rem;
    color: var(--fm-text-muted);
    min-width: 52px;
    white-space: nowrap;
}

.flavor-pricelist__price-dots {
    flex: 1;
    border-bottom: 2px dotted var(--fm-dots-color);
    margin-bottom: 3px;
    min-width: 16px;
}

.flavor-pricelist__price-value {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ==========================================================================
   Layout 3 – Table
   ========================================================================== */

.flavor-menu .flavor-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: none !important;
    box-shadow: none !important;
}

.flavor-menu .flavor-table {
    width: 100%;
    border-collapse: collapse !important;
    border: none !important;
    box-shadow: none !important;
}

.flavor-menu .flavor-table td,
.flavor-menu .flavor-table th {
    padding: 16px;
    border: none !important;
    border-bottom: 1px solid var(--fm-border) !important;
    vertical-align: top;
    text-align: left;
    box-shadow: none !important;
}

.flavor-menu .flavor-table tbody tr:last-child td { border-bottom: none !important; }

.flavor-menu .flavor-table__row:hover td {
    background: var(--fm-accent-soft);
}

.flavor-menu .flavor-table__subcat-row td {
    background: rgba(255,255,255,0.02);
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.flavor-theme-light .flavor-menu .flavor-table__subcat-row td {
    background: rgba(0,0,0,0.02);
    border-bottom-color: rgba(0,0,0,0.04) !important;
}

.flavor-table__subcat-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-text-muted);
}

.flavor-menu .flavor-table__cat-row td {
    padding: 20px 16px 6px;
    border-bottom: none !important;
}

.flavor-table__cat-label {
    font-family: var(--fm-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fm-accent);
    letter-spacing: 0.02em;
}

.flavor-table__cat-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fm-accent);
    padding: 3px 8px;
    background: var(--fm-accent-soft);
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

.flavor-table__name {
    font-weight: 600;
    color: var(--fm-heading);
    font-size: 0.95rem;
}

.flavor-table__desc {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
    margin-top: 3px;
}

.flavor-table__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.flavor-table__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.flavor-table__price-label {
    font-size: 0.72rem;
    color: var(--fm-text-muted);
}

.flavor-table__price-value {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.92rem;
    white-space: nowrap;
}

/* ==========================================================================
   Layout 4 – Horizontal Card
   ========================================================================== */

.flavor-hcard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flavor-hcard {
    display: grid;
    grid-template-columns: 160px 1fr;
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flavor-hcard:hover {
    transform: translateX(4px);
    box-shadow: var(--fm-card-shadow-hover);
}

.flavor-hcard__img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--fm-placeholder-bg);
    flex-shrink: 0;
}

.flavor-hcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flavor-hcard:hover .flavor-hcard__img img {
    transform: scale(1.05);
}

.flavor-hcard__placeholder {
    width: 100%;
    height: 100%;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-text-muted);
}

.flavor-hcard__placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.3;
}

.flavor-hcard__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flavor-hcard__title {
    font-family: var(--fm-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fm-heading);
    margin-bottom: 6px;
}

.flavor-hcard__desc {
    font-size: 0.83rem;
    color: var(--fm-text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

/* Multi-price rows in horizontal card */
.flavor-hcard__prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.flavor-hcard__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.flavor-hcard__price-label {
    font-size: 0.75rem;
    color: var(--fm-text-muted);
    min-width: 44px;
}

.flavor-hcard__price-dots {
    flex: 1;
    border-bottom: 1px dotted var(--fm-dots-color);
    margin-bottom: 3px;
    min-width: 16px;
    max-width: 80px;
}

.flavor-hcard__price-value {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .flavor-hcard { grid-template-columns: 100px 1fr; }
}

/* ==========================================================================
   Layout 5 – Featured
   ========================================================================== */

.flavor-featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flavor-featured__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    overflow: hidden;
    min-height: 320px;
}

.flavor-featured__hero-img {
    overflow: hidden;
    background: var(--fm-placeholder-bg);
}

.flavor-featured__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.flavor-featured__hero:hover .flavor-featured__hero-img img {
    transform: scale(1.04);
}

.flavor-featured__hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-text-muted);
}

.flavor-featured__hero-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.2;
}

.flavor-featured__hero-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flavor-featured__hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fm-accent);
    margin-bottom: 12px;
}

.flavor-featured__hero-title {
    font-family: var(--fm-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600;
    color: var(--fm-heading);
    margin: 0 0 12px;
    line-height: 1.25;
}

.flavor-featured__hero-desc {
    font-size: 0.9rem;
    color: var(--fm-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.flavor-featured__hero-badges {
    margin-bottom: 16px;
}

.flavor-featured__hero-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fm-accent);
    margin-top: 8px;
}

.flavor-featured__hero-price-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--fm-text-muted);
    margin-right: 4px;
}

.flavor-featured__hero-price-alt {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    margin-top: 4px;
}

/* Mini grid below hero */
.flavor-featured__grid {
    display: grid;
    gap: 16px;
}

.flavor-cols-2 .flavor-featured__grid,
.flavor-cols-3 .flavor-featured__grid { grid-template-columns: repeat(3, 1fr); }
.flavor-cols-4 .flavor-featured__grid { grid-template-columns: repeat(4, 1fr); }

.flavor-featured__mini {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flavor-featured__mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--fm-card-shadow-hover);
}

.flavor-featured__mini-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--fm-placeholder-bg);
}

.flavor-featured__mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flavor-featured__mini:hover .flavor-featured__mini-img img {
    transform: scale(1.06);
}

.flavor-featured__mini-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-text-muted);
}

.flavor-featured__mini-placeholder svg {
    width: 24px;
    height: 24px;
    opacity: 0.25;
}

.flavor-featured__mini-body { padding: 14px; }

.flavor-featured__mini-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fm-heading);
    margin-bottom: 4px;
}

.flavor-featured__mini-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fm-accent);
}

@media (max-width: 768px) {
    .flavor-featured__hero { grid-template-columns: 1fr; }
    .flavor-featured__hero-img { min-height: 220px; }
    .flavor-featured__hero-body { padding: 24px; }
    .flavor-cols-2 .flavor-featured__grid,
    .flavor-cols-3 .flavor-featured__grid,
    .flavor-cols-4 .flavor-featured__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Layout 6 – Compact List
   ========================================================================== */

.flavor-compact {
    display: flex;
    flex-direction: column;
}

.flavor-compact__divider {
    font-family: var(--fm-font-heading);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--fm-accent);
    padding: 22px 16px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flavor-compact__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fm-border);
}

.flavor-compact__divider--sub {
    font-family: var(--fm-font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--fm-text-muted);
    padding: 16px 16px 6px;
}

.flavor-compact__divider--sub::after {
    background: rgba(255,255,255,0.04);
}

.flavor-theme-light .flavor-compact__divider--sub::after {
    background: rgba(0,0,0,0.04);
}

.flavor-compact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.15s;
    flex-wrap: wrap;
}

.flavor-compact__item:hover {
    background: var(--fm-surface);
}

.flavor-compact__num {
    font-size: 0.68rem;
    color: var(--fm-text-muted);
    font-weight: 600;
    width: 22px;
    text-align: right;
    flex-shrink: 0;
}

.flavor-compact__name {
    font-weight: 600;
    color: var(--fm-heading);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.flavor-compact__sep {
    color: var(--fm-border);
    flex-shrink: 0;
}

.flavor-compact__desc {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
    flex: 1;
    min-width: 100px;
}

.flavor-compact__price {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Price chips for multiple prices */
.flavor-compact__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.flavor-compact__chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fm-accent);
    background: var(--fm-accent-soft);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}

.flavor-compact__chip-label {
    font-weight: 400;
    color: var(--fm-text-muted);
    margin-right: 3px;
}

@media (max-width: 600px) {
    .flavor-compact__item {
        align-items: flex-start;
    }
    .flavor-compact__sep {
        display: none;
    }
    .flavor-compact__desc {
        width: 100%;
        padding-left: 34px;
        margin-top: 2px;
        order: 10;
        min-width: unset;
        flex: none;
    }
    .flavor-compact__chips,
    .flavor-compact__price {
        margin-left: auto;
    }
}

/* ==========================================================================
   Layout 7 – Sectioned List
   ========================================================================== */

.flavor-sectioned {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.flavor-sectioned__block {
    /* One parent category block */
}

.flavor-sectioned__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 4px;
}

.flavor-sectioned__title {
    font-family: var(--fm-font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fm-heading);
    white-space: nowrap;
    margin: 0;
}

.flavor-sectioned__line {
    flex: 1;
    height: 1px;
    background: var(--fm-border);
}

.flavor-sectioned__accent {
    width: 40px;
    height: 2px;
    background: var(--fm-accent);
    margin-bottom: 24px;
}

/* Subcategory section */
.flavor-sectioned__sub {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.flavor-theme-light .flavor-sectioned__sub {
    border-top-color: rgba(0,0,0,0.04);
}

.flavor-sectioned__sub-title {
    font-family: var(--fm-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-text-muted);
    margin-bottom: 0;
}

/* Item row */
.flavor-sectioned__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--fm-border);
}

.flavor-sectioned__item:last-child { border-bottom: none; }

.flavor-sectioned__item-left {
    flex: 1;
    min-width: 0;
}

.flavor-sectioned__item-name {
    font-weight: 600;
    color: var(--fm-heading);
    font-size: 0.95rem;
}

.flavor-sectioned__item-desc {
    font-size: 0.8rem;
    color: var(--fm-text-muted);
    margin-top: 2px;
}

.flavor-sectioned__item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    padding-top: 2px;
}

.flavor-sectioned__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.flavor-sectioned__price-label {
    font-size: 0.7rem;
    color: var(--fm-text-muted);
}

.flavor-sectioned__price-value {
    font-weight: 700;
    color: var(--fm-accent);
    font-size: 0.92rem;
    white-space: nowrap;
}

/* ---------- Print Styles ---------- */

@media print {
    .flavor-menu__filters { display: none; }
    .flavor-menu__card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
    .flavor-menu__card:hover { transform: none; }
    .flavor-hcard { break-inside: avoid; }
    .flavor-pricelist__item,
    .flavor-sectioned__item,
    .flavor-compact__item { break-inside: avoid; }
}

/* ==========================================================================
   Color hardening — Flavor's own colors always win over theme overrides

   Some themes color bare tags inside their layout wrappers with higher
   specificity than the plugin's class selectors (e.g. `.vc_row h3`), which
   would override the menu's heading/text colors. These rules re-assert the
   Flavor palette with the `.flavor-menu` scope + !important so the plugin
   always wins. Colors are read from CSS variables, so the Custom Themes
   feature still fully controls them — this only blocks the surrounding
   theme from overriding, not the user's own Flavor theme settings.
   Interactive controls (filter / subnav buttons + their hover/active states)
   are intentionally excluded so those keep working.
   ========================================================================== */

.flavor-menu.flavor-menu {
    color: var(--fm-text) !important;
}

/* Headings / dish names */
.flavor-menu .flavor-menu__title,
.flavor-menu .flavor-menu__section-title,
.flavor-menu .flavor-menu__card-title,
.flavor-menu .flavor-pricelist__name,
.flavor-menu .flavor-table__name,
.flavor-menu .flavor-hcard__title,
.flavor-menu .flavor-featured__hero-title,
.flavor-menu .flavor-featured__mini-title,
.flavor-menu .flavor-compact__name,
.flavor-menu .flavor-sectioned__title,
.flavor-menu .flavor-sectioned__item-name {
    color: var(--fm-heading) !important;
}

/* Accent text — subtitles, prices, category labels */
.flavor-menu .flavor-menu__card-subtitle,
.flavor-menu .flavor-menu__price-value,
.flavor-menu .flavor-pricelist__category,
.flavor-menu .flavor-pricelist__single-price,
.flavor-menu .flavor-pricelist__price-value,
.flavor-menu .flavor-table__cat-label,
.flavor-menu .flavor-table__cat-tag,
.flavor-menu .flavor-table__price-value,
.flavor-menu .flavor-hcard__price-value,
.flavor-menu .flavor-featured__hero-eyebrow,
.flavor-menu .flavor-featured__hero-price,
.flavor-menu .flavor-featured__mini-price,
.flavor-menu .flavor-compact__divider,
.flavor-menu .flavor-compact__price,
.flavor-menu .flavor-compact__chip,
.flavor-menu .flavor-sectioned__price-value {
    color: var(--fm-accent) !important;
}

/* Muted / secondary text — descriptions, labels */
.flavor-menu .flavor-menu__desc,
.flavor-menu .flavor-menu__card-desc,
.flavor-menu .flavor-menu__card-desc p,
.flavor-menu .flavor-menu__price-label,
.flavor-menu .flavor-pricelist__subcategory,
.flavor-menu .flavor-pricelist__desc,
.flavor-menu .flavor-pricelist__price-label,
.flavor-menu .flavor-table__subcat-label,
.flavor-menu .flavor-table__desc,
.flavor-menu .flavor-table__price-label,
.flavor-menu .flavor-hcard__desc,
.flavor-menu .flavor-hcard__price-label,
.flavor-menu .flavor-featured__hero-desc,
.flavor-menu .flavor-featured__hero-price-label,
.flavor-menu .flavor-featured__hero-price-alt,
.flavor-menu .flavor-compact__num,
.flavor-menu .flavor-compact__desc,
.flavor-menu .flavor-compact__divider--sub,
.flavor-menu .flavor-compact__chip-label,
.flavor-menu .flavor-sectioned__sub-title,
.flavor-menu .flavor-sectioned__item-desc,
.flavor-menu .flavor-sectioned__price-label {
    color: var(--fm-text-muted) !important;
}
