.sp-catering-theme {

    --sp-brand-color: #111111;
    --sp-accent-color: #bb924f;

    --sp-text-color: var(--sp-brand-color);

    --sp-border-color: rgba(0,0,0,.12);
    --sp-border-strong: rgba(0,0,0,.22);

    --sp-surface-color: #ffffff;
    --sp-surface-alt: #f7f7f7;

    --sp-text-light: rgba(0,0,0,.68);
    --sp-text-muted: rgba(0,0,0,.52);

    --sp-shadow-soft: 0 10px 30px rgba(0,0,0,.06);
}

.sp-catering {
    display: grid;
    gap: 2rem;
}

.sp-catering-parent-tabs,
.sp-catering-child-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.sp-catering-parent-tab,
.sp-catering-child-tab {
    border: 1px solid var(--sp-accent-color);
    background: transparent;
    color: var(--sp-accent-color);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: all .2s ease;
}

.sp-catering-parent-tab {
    min-width: 150px;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sp-catering-category-description {
    margin: 0 auto 20px;
    max-width: 720px;
    text-align: center;
    line-height: 1.6;
}

.sp-catering-child-tabs {
    margin-top: -.75rem;
}

.sp-catering-child-tab {
    padding: .65rem 1rem;
    border-radius: 999px;
    font-weight: 400;
    text-transform:uppercase;
}

.sp-catering-parent-tab.is-active,
.sp-catering-child-tab.is-active{
    background: var(--sp-brand-color);
    border-color: var(--sp-brand-color);
    color: #fff;
}

.sp-catering-parent-tab:hover,
.sp-catering-child-tab:hover {
    background: var(--sp-accent-color);
    border-color: var(--sp-accent-color);
    color: #fff;
}

.sp-catering-parent-panel {
    display: none;
}

.sp-catering-parent-panel.is-active {
    display: grid;
    gap: 1.5rem;
}

.sp-catering-category-items {
    display: grid;
    gap: 1.5rem;
}

.sp-catering-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid var(--sp-border-color);
    border-radius: 14px;
    background: var(--sp-surface-color);
    transition: opacity .2s ease, transform .2s ease;
}

.sp-catering-item.is-featured {
    border-color: var(--sp-accent-color);
    box-shadow: 0 0 0 1px var(--sp-accent-color);
}

.sp-catering-item[hidden] {
    display: none !important;
}

.sp-catering-item-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sp-surface-alt);
}

.sp-catering-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Badges */
.sp-catering-item-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    z-index: 2;
}

.sp-catering-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: var(--sp-brand-color);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.sp-catering-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.sp-catering-item-title {
    margin: 0;
}

.sp-catering-item-price {
    font-weight: 500;
    white-space: nowrap;
    color: var(--sp-accent-color);
}

/* Multi Price Rows */
.sp-catering-theme .sp-catering-item-price-list {
    display: contents !important;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    color: var(--sp-accent-color);
}

.sp-catering-theme .sp-catering-item-price-row {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
}

.sp-catering-theme .sp-catering-item-price-label {
    color: inherit;
    opacity: .75;
    font-size: .9rem;
    font-weight: 600;
}

.sp-catering-theme .sp-catering-item-price-value {
    color: inherit;
    font-weight: 700;
}

.sp-catering-item-description {
    margin: .5rem 0 0;
    line-height: 1.6;
    color: var(--sp-text-light);
}

/* Dietary Badges */
.sp-catering-dietary-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.sp-catering-dietary-badge {
    border: 1px solid var(--sp-border-color);
    background: var(--sp-accent-color);
    color: #fff;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.sp-catering-dietary-badge:hover {
    background: var(--sp-accent-color);
    border-color: var(--sp-accent-color);
    color: #fff;
}

/* ==========================================================
   Modern Cards Layout
========================================================== */

.sp-catering-modern-cards .sp-catering-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.sp-catering-modern-cards .sp-catering-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--sp-surface-color);
    height: 100%;
    box-shadow: var(--sp-shadow-soft);
}

.sp-catering-modern-cards .sp-catering-item-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.sp-catering-modern-cards .sp-catering-item-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    flex: 1;
}

.sp-catering-modern-cards .sp-catering-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.sp-catering-modern-cards .sp-catering-item-title {
    font-size: 1.25rem;
    line-height: 1.2;
}

.sp-catering-modern-cards .sp-catering-item-description {
    margin: 0;
    line-height: 1.6;
}

.sp-catering-modern-cards .sp-catering-dietary-badges {
    margin-top: auto;
}

/* Tablet */
@media (max-width: 991px) {

    .sp-catering-modern-cards .sp-catering-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575px) {

    .sp-catering-modern-cards .sp-catering-modern-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Global Button Styles
========================================================== */

.sp-catering-button-pill .sp-catering-parent-tab,
.sp-catering-button-pill .sp-catering-child-tab,
.sp-catering-button-pill .sp-catering-dietary-badge {
    border-radius: 999px;
}

.sp-catering-button-rounded .sp-catering-parent-tab,
.sp-catering-button-rounded .sp-catering-child-tab,
.sp-catering-button-rounded .sp-catering-dietary-badge {
    border-radius: 14px;
}

.sp-catering-button-square .sp-catering-parent-tab,
.sp-catering-button-square .sp-catering-child-tab,
.sp-catering-button-square .sp-catering-dietary-badge {
    border-radius: 0;
}

/* Underline */
.sp-catering-button-underline .sp-catering-parent-tab,
.sp-catering-button-underline .sp-catering-child-tab,
.sp-catering-button-underline .sp-catering-dietary-badge {
    border-radius: 0 !important;
    border-width: 0 0 2px !important;
    background: transparent !important;
    color: inherit !important;
}

.sp-catering-button-underline .sp-catering-parent-tab.is-active,
.sp-catering-button-underline .sp-catering-child-tab.is-active {
    background: transparent !important;
    border-color: currentColor !important;
    color: var(--sp-brand-color) !important;
}

/* Minimal */
.sp-catering-button-minimal .sp-catering-parent-tab,
.sp-catering-button-minimal .sp-catering-child-tab,
.sp-catering-button-minimal .sp-catering-dietary-badge {
    border-radius: 0;
    border-color: transparent;
    background: transparent !important;
    color: inherit !important;
    padding-inline: .25rem;
}

.sp-catering-button-minimal .sp-catering-parent-tab.is-active,
.sp-catering-button-minimal .sp-catering-child-tab.is-active {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--sp-brand-color) !important;
    opacity: 1;
}

.sp-catering-button-minimal .sp-catering-parent-tab,
.sp-catering-button-minimal .sp-catering-child-tab {
    opacity: .65;
}

/* =========================================================
   DEFAULT
========================================================= */

.sp-catering-style-default{
    --sp-brand-color:#111111;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#ffffff;
    --sp-surface-alt:#f7f7f7;
    --sp-text-color:#111111;
    --sp-border-color:rgba(0,0,0,.12);
    --sp-shadow-soft:0 10px 30px rgba(0,0,0,.06);
}

/* =========================================================
   DARK
========================================================= */

.sp-catering-style-dark{
    --sp-brand-color:#ffffff;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#111111;
    --sp-surface-alt:#1a1a1a;
    --sp-text-color:#ffffff;
    --sp-text-light:rgba(255,255,255,.72);
    --sp-text-muted:rgba(255,255,255,.54);
    --sp-border-color:rgba(255,255,255,.12);
    --sp-border-strong:rgba(255,255,255,.22);
    --sp-shadow-soft:0 14px 40px rgba(0,0,0,.35);
}

.sp-catering-style-dark .sp-catering-item{
    background:var(--sp-surface-alt);
    border-color:var(--sp-border-color);
}

.sp-catering-style-dark .sp-catering-item-title,
.sp-catering-style-dark .sp-catering-section-title,
.sp-catering-style-dark .sp-catering-subcategory-title{
    color:#ffffff;
}

.sp-catering-style-dark .sp-catering-item-description{
    color:var(--sp-text-light);
}

/* =========================================================
   COASTAL
========================================================= */

.sp-catering-style-coastal{
    --sp-brand-color:#022532;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#faf3eb;
    --sp-surface-alt:#f2e6d7;
    --sp-text-color:#022532;
    --sp-text-light:rgba(2,37,50,.72);
    --sp-text-muted:rgba(2,37,50,.54);
    --sp-border-color:rgba(2,37,50,.10);
    --sp-border-strong:rgba(2,37,50,.18);
    --sp-shadow-soft:0 12px 35px rgba(2,37,50,.08);
}

.sp-catering-style-coastal .sp-catering-item{
    background:#ffffff;
    border-radius:18px;
}

.sp-catering-style-coastal .sp-catering-item-price,
.sp-catering-style-coastal .sp-catering-item-price-value{
    color:var(--sp-accent-color);
}

/* =========================================================
   MINIMAL
========================================================= */

.sp-catering-style-minimal{
    --sp-brand-color:#111111;
    --sp-accent-color:#111111;
    --sp-surface-color:#ffffff;
    --sp-surface-alt:#ffffff;
    --sp-text-color:#111111;
    --sp-border-color:rgba(0,0,0,.08);
    --sp-border-strong:rgba(0,0,0,.12);
    --sp-shadow-soft:none;
}

.sp-catering-style-minimal .sp-catering-item{
    border-bottom:1px solid var(--sp-border-color);
    border-radius:0;
    box-shadow:none;
    padding-left:0;
    padding-right:0;
}

.sp-catering-style-minimal .sp-catering-item-image-wrap{
    border-radius:0;
}

.sp-catering-style-minimal .sp-catering-item-title{
    letter-spacing:.02em;
}

/* =========================================================
   PUB
========================================================= */

.sp-catering-style-pub{
    --sp-brand-color:#ecdbc4;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#1b140f;
    --sp-surface-alt:#241b15;
    --sp-text-color:#ecdbc4;
    --sp-text-light:rgba(236,219,196,.74);
    --sp-text-muted:rgba(236,219,196,.56);
    --sp-border-color:rgba(236,219,196,.10);
    --sp-border-strong:rgba(236,219,196,.18);
    --sp-shadow-soft:0 16px 45px rgba(0,0,0,.35);
}

.sp-catering-style-pub .sp-catering-item{
    background:var(--sp-surface-alt);
    border:1px solid var(--sp-border-color);
    border-radius:18px;
}

.sp-catering-style-pub .sp-catering-item-title,
.sp-catering-style-pub .sp-catering-section-title{
    color:#ffffff;
}

.sp-catering-style-pub .sp-catering-item-description{
    color:var(--sp-text-light);
}

/* =========================================================
   FINE DINING
========================================================= */

.sp-catering-style-fine-dining{
    --sp-brand-color:#1b1b1b;
    --sp-accent-color:#8c6a3d;
    --sp-surface-color:#fdfbf7;
    --sp-surface-alt:#f7f2ea;
    --sp-text-color:#1b1b1b;
    --sp-border-color:rgba(0,0,0,.08);
    --sp-border-strong:rgba(0,0,0,.14);
    --sp-shadow-soft:0 20px 50px rgba(0,0,0,.08);
}

.sp-catering-style-fine-dining .sp-catering-item{
    background:#ffffff;
    border-radius:22px;
    border:1px solid rgba(0,0,0,.06);
}

.sp-catering-style-fine-dining .sp-catering-section-title{
    letter-spacing:.18em;
    text-transform:uppercase;
}

.sp-catering-style-fine-dining .sp-catering-item-price{
    font-style:italic;
}

/* =========================================================
   DINER
========================================================= */

.sp-catering-style-diner{
    --sp-brand-color:#0d2a45;
    --sp-accent-color:#d62828;
    --sp-surface-color:#f8fbff;
    --sp-surface-alt:#ffffff;
    --sp-text-color:#0d2a45;
    --sp-border-color:rgba(13,42,69,.10);
    --sp-shadow-soft:0 10px 24px rgba(13,42,69,.08);
}

.sp-catering-style-diner .sp-catering-item{
    background:#ffffff;
    border-radius:14px;
    border:2px solid rgba(13,42,69,.06);
}

.sp-catering-style-diner .sp-catering-item-price{
    color:#d62828;
    font-weight:700;
}

.sp-catering-style-diner .sp-catering-item-title{
    text-transform:uppercase;
}

/* =========================================================
   TACO TRUCK
========================================================= */

.sp-catering-style-taco-truck{
    --sp-brand-color:#3c1f0f;
    --sp-accent-color:#f08c00;
    --sp-surface-color:#fff7eb;
    --sp-surface-alt:#fff0db;
    --sp-text-color:#3c1f0f;
    --sp-border-color:rgba(60,31,15,.10);
    --sp-shadow-soft:0 12px 30px rgba(240,140,0,.12);
}

.sp-catering-style-taco-truck .sp-catering-item{
    background:#ffffff;
    border-radius:20px;
    border:1px dashed rgba(240,140,0,.34);
}

.sp-catering-style-taco-truck .sp-catering-item-price{
    color:#f08c00;
}

.sp-catering-style-taco-truck .sp-catering-item-badge{
    background:#f08c00;
    color:#ffffff;
}

/* Animations */
.sp-catering-parent-panel,
.sp-catering-child-section {
    animation: spCateringFadeUp .28s ease both;
}

@keyframes spCateringFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .sp-catering-parent-panel,
    .sp-catering-child-section {
        animation: none;
    }

    .sp-catering-item {
        transition: none;
    }
}

@media (max-width: 575px) {

    .sp-catering-parent-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: .5rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        padding-bottom: .35rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sp-catering-parent-tabs::-webkit-scrollbar {
        display: none;
    }

    .sp-catering-parent-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        padding: .9rem 1.15rem;
        font-size: .95rem;
        letter-spacing: .04em;
    }

    .sp-catering-child-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        scrollbar-width: none;
    }

    .sp-catering-child-tabs::-webkit-scrollbar {
        display: none;
    }

    .sp-catering-child-tab {
        flex: 0 0 auto;
    }

    .sp-catering-item {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 18px;
    }

    .sp-catering-item-image-wrap {
        border-radius: 16px;
    }

    .sp-catering-item-header {
        flex-direction: column;
        gap: .35rem;
    }

    .sp-catering-item-title {
        font-size: 1.15rem;
    }

    .sp-catering-item-description {
        font-size: .95rem;
        line-height: 1.55;
    }

    .sp-catering-dietary-badges {
        gap: .35rem;
    }

    .sp-catering-dietary-badge {
        font-size: .72rem;
        padding: .4rem .6rem;
    }

    .sp-catering-item-badge {
        font-size: .62rem;
        padding: .32rem .5rem;
    }
}

.sp-catering-elegant-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sp-catering-elegant-item-title {
    margin: 0;
    flex: 1;
}

.sp-catering-price,
.sp-catering-item-price,
.sp-catering-elegant-item-price {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.sp-catering-elegant-item-description {
    margin: .35rem 0 0;
    max-width: 75%;
}

.sp-catering-elegant-item {
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid rgba(188,131,60,.3);
}

.sp-catering-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
    font-size: .875rem;
}

.sp-catering-item-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .55rem;
    border: 1px solid var(--sp-border-color, rgba(0,0,0,.12));
    border-radius: 999px;
    color: var(--sp-text-light, rgba(0,0,0,.68));
    background: var(--sp-surface-alt, #f7f7f7);
}
