/**
 * KS Menu Frontend Styles - Kingdom Sushi Style
 */

/* Root and Layout */
.ks-menu-archive {
    font-family: inherit;
    line-height: 1.6;
    color: #111;
    background-color: #fff;
}

.ks-menu-archive p,
.ks-menu-archive ul,
.ks-menu-archive li,
.ks-menu-archive label,
.ks-menu-archive select,
.ks-menu-archive h2,
.ks-menu-archive h3,
.ks-menu-archive h4,
.ks-menu-archive h5,
.ks-menu-archive h6,
.ks-menu-archive .ks-category-title,
.ks-menu-archive .ks-item-title,
.ks-menu-archive .ks-cat-popup-header h3 {
    font-family: 'Poppins', sans-serif !important;
    text-transform: none !important;
}

.ks-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ks-menu-single .ks-menu-container {
    max-width: 950px;
}

.center-text {
    text-align: center;
}

/* Hero Section (Matching Specials) */
.ks-menu-hero.specials-hero {
    background-color: #111;
    position: relative;
    height: 35vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.ks-menu-hero .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ks-menu-hero .opacity-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ks-menu-hero .ks-menu-hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3rem;
    font-family: "Libre Bodoni", serif;
    margin: 0;
    text-transform: capitalize;
    font-weight: normal;
}

@media (max-width: 767px) {
    .ks-menu-hero.specials-hero {
        height: 25vh;
        min-height: 160px;
    }

    .ks-menu-hero .ks-menu-hero-title {
        font-size: 2.2rem;
    }
}

/* --- ARCHIVE GRID LAYOUT --- */

/* Intro Section */
.ks-menu-intro-section {
    padding: 60px 0 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ks-menu-intro-section p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Menus Grid */
.ks-menu-grid-section {
    padding: 30px 0 60px;
}

.ks-menu-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 30px;
}

@media (max-width: 991px) {
    .ks-menu-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }
}

@media (max-width: 600px) {
    .ks-menu-simple-grid {
        grid-template-columns: 1fr;
    }
}

.ks-menu-simple-card {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.ks-menu-simple-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ks-menu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ks-menu-simple-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.ks-menu-simple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.5s ease;
}

/* .ks-menu-simple-card:hover .ks-menu-simple-image img {
    opacity: 1;
    transform: scale(1.05);
} */

.ks-menu-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px 10px;
    text-align: center;
    z-index: 2;
}

.ks-menu-simple-title {
    font-family: "Libre Bodoni", serif;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Section Title Generic */
.ks-section-title {
    font-family: "Libre Bodoni", serif;
    font-size: 2rem;
    color: #111;
    margin-bottom: 20px;
    font-weight: 700;
}

.ks-section-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Quality Section */
.ks-menu-quality-section {
    padding: 60px 0 60px;
}

/* Featured Section */
.ks-menu-featured-section {
    padding: 20px 0 80px;
}

.ks-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .ks-featured-grid {
        grid-template-columns: 1fr;
    }
}

.ks-featured-card {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.ks-featured-img {
    height: 280px;
}

.ks-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.ks-featured-content {
    background: #000;
    padding: 40px;
    text-align: center;
    flex: 1;
}

.ks-featured-content h3 {
    font-family: "Libre Bodoni", serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}

.ks-featured-content p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ks-btn-featured {
    display: inline-block;
    background: #e6231e;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ks-btn-featured:hover {
    background: #fff;
    color: #000;
}

/* CTA Section */
.ks-menu-cta-section {
    position: relative;
    padding: 140px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.ks-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ks-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ks-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.ks-cta-content h2 {
    font-family: "Libre Bodoni", serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}

.ks-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: #eee;
}

.ks-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 500px) {
    .ks-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.ks-btn-white {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    min-width: 240px;
}

.ks-btn-white:hover {
    background: transparent;
    color: #fff;
}


/* --- INDIVIDUAL MENU DETAILS LAYOUT --- */

.ks-menu-layout.full-width {
    display: block;
    padding-bottom: 80px;
    padding-top: 20px;
}

/* Category Navigation Wrapper */
.ks-category-nav-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 100;
    transition: all 0.3s ease;
}

.ks-category-nav-wrapper.sticky-nav {
    position: sticky;
    top: 72px;
    /* Desktop Header Height */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* WP Admin Bar Offset - Desktop */
.admin-bar .ks-category-nav-wrapper.sticky-nav {
    top: 71px;
    /* 72px + 32px */
}

@media screen and (max-width: 991px) {
    .ks-category-nav-wrapper.sticky-nav {
        top: 55px;
        /* Mobile Header Height confirmed by User */
    }

    .admin-bar .ks-category-nav-wrapper.sticky-nav {
        top: 87px;
        /* 55px + 32px (Admin bar remains 32px until 782px) */
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .ks-category-nav-wrapper.sticky-nav {
        top: 54px;
        /* 55px + 46px (Admin bar height changes to 46px) */
    }
}

/* Restoration of Menu Info Bar */
.ks-menu-info-bar {
    background: #fdfdfd;
    padding: 15px 0;
    border-bottom: 2px solid #f9fafb;
}

.ks-info-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ks-info-items {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ks-info-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact Select Menu */
.ks-menu-select-wrapper {
    margin-left: 20px;
}

.ks-menu-compact-select {
    padding: 6px 30px 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23111' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ks-menu-compact-select:hover {
    border-color: #111;
}

.ks-info-additional {
    margin-top: 10px;
    text-align: center;
}

.ks-info-text-small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ks-menu-info-bar {
        padding: 15px 0;
    }

    .ks-info-bar-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ks-info-items {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        order: 2;
    }

    .ks-menu-select-wrapper {
        margin-left: 0;
        order: 1;
    }

    .ks-menu-compact-select {
        width: 100%;
        min-width: 200px;
        max-width: 280px;
    }

    .ks-info-text {
        font-size: 0.85rem;
    }

    .ks-info-text-small {
        font-size: 0.7rem;
    }
}

.ks-category-nav-inner {
    display: flex;
    align-items: center;
    height: 40px;
    /* Super compact height */
    position: relative;
}

/* All Categories Button */
.ks-all-categories-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 15px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-right: 1px solid #eee;
    height: 100%;
}

.ks-all-categories-trigger:hover {
    color: #e6231e;
}

/* Category Links List */
.ks-category-list-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    display: flex;
    align-items: center;
    height: 100%;
}

.ks-category-list-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.ks-category-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
}

.ks-cat-item {
    display: flex;
    align-items: center;
}

.ks-cat-link {
    text-decoration: none;
    color: #555;
    font-size: 12.5px;
    /* Smaller font like DoorDash */
    font-weight: 600;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.ks-cat-link:hover {
    color: #111;
}

.ks-cat-link.active {
    color: #111;
    border-color: #111;
}

/* Scroll Controls */
.ks-nav-scroll-controls {
    display: flex;
    align-items: center;
    padding-left: 15px;
    background: linear-gradient(to left, #fff 70%, rgba(255, 255, 255, 0));
    height: 100%;
    position: absolute;
    right: 0;
    z-index: 2;
}

.ks-nav-prev-controls {
    display: flex;
    align-items: center;
    padding-right: 15px;
    background: linear-gradient(to right, #fff 70%, rgba(255, 255, 255, 0));
    height: 100%;
    position: absolute;
    left: 54px;
    /* Burger button width adjustment */
    z-index: 2;
    visibility: hidden;
    /* Hidden by default, shown via JS if scrolled */
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.ks-nav-prev-controls.visible {
    visibility: visible;
    opacity: 1;
}


.ks-nav-next,
.ks-nav-prev {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ks-nav-next:hover,
.ks-nav-prev:hover {
    color: #DD5942;
}


/* Categories Popup */
.ks-cat-popup {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.ks-cat-popup.active {
    visibility: visible;
    opacity: 1;
}

.ks-cat-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.ks-cat-popup-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.ks-cat-popup.active .ks-cat-popup-content {
    transform: translateY(0);
}

.ks-cat-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ks-cat-popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.ks-cat-popup-close {
    background: #f3f4f6;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.ks-cat-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.ks-cat-popup-list li {
    margin-bottom: 5px;
}

.ks-popup-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}

.ks-popup-link:hover {
    color: #111;
}

.ks-cat-count {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Category Sections */
.ks-menu-category-section {
    padding-top: 10px;
    margin-bottom: 50px;
}

/* Category Sections */
.ks-menu-category-section {
    margin-bottom: 25px;
}

.ks-category-title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    border: none;
    padding: 0;
}

/* Item Card Grid */
.ks-menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .ks-menu-items-grid {
        grid-template-columns: 1fr;
    }
}

/* Item Card Compact */
.ks-item-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: visible;
    display: flex;
    transition: all 0.2s ease;
    height: 150px;
    /* overflow: visible so absolutely-positioned tooltips can escape the card */
}

.ks-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.ks-item-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ks-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
    line-height: 1.3;
}

.ks-item-note-sep {
    color: #9ca3af;
    margin: 0 5px;
}

.ks-item-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.ks-item-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.ks-item-description p {
    margin-bottom: 0;
}

.ks-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.ks-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #DD5942 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Configuration Icons in Card */
.ks-item-config {
    display: flex;
    gap: 8px;
}

.ks-config-icon svg,
.ks-config-icon img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Item Image Compact */
.ks-item-media {
    width: 150px;
    min-width: 150px;
    cursor: pointer;
    position: relative;
    padding: 0;
    align-self: stretch;
    overflow: hidden;
    border-radius: 0 9px 9px 0;
    /* clipa a imagem nos cantos direitos do card */
}

.ks-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

/* .ks-item-media:hover .ks-item-img {
    transform: scale(1.05);
} */

/* Hint / Tooltip */
.ks-config-icon {
    position: relative;
    cursor: pointer;
}

.ks-hint {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    top: auto;
    transform: none;
    background: #111;
    color: #fff;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 10.5px;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    text-align: left;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

.ks-config-icon:hover .ks-hint {
    opacity: 1;
    visibility: visible;
}

/* Arrow apontando para baixo (em direção ao badge) */
.ks-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

/* Modal for Video/Image */
.ks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-modal.active {
    visibility: visible;
    opacity: 1;
}

.ks-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.ks-modal-container {
    position: relative;
    width: 90%;
    max-width: max-content;
    background: #000;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease;
}

.ks-modal-video .ks-modal-container {
    width: auto;
    max-width: 95vw;
}

.ks-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
}

#ks-modal-content {
    line-height: 0;
}

#ks-modal-content img,
#ks-modal-content video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Modal Caption & Gradient Overlay */
.ks-modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: #fff;
    pointer-events: none;
    z-index: 5;
}

.ks-modal-caption h3 {
    margin: 0 0 8px;
    font-size: 1.35rem !important;
    font-weight: 700;
    color: #fff !important;
    text-transform: none !important;
}

.ks-modal-caption p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f1f1;
    max-width: 850px;
}

/* ---- Dietary Filter Bar ---- */
.ks-dietary-filter-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.ks-dietary-filter-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ks-filter-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-right: 2px;
}

.ks-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 100px;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    position: relative;
}

.ks-filter-pill:hover {
    border-color: #374151;
    color: #111;
}

.ks-filter-pill.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ks-filter-pill img {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

.ks-filter-pill.active img {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4));
}

.ks-filter-pill.active .ks-icon-raw {
    filter: brightness(0) invert(1);
}

/* Badge dentro do filter pill — leve elevação no estado ativo */
.ks-filter-pill.active .ks-filter-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* Badge "!" do MC — fonte um pouco maior para equilíbrio visual */
.ks-legend-badge--mc {
    font-size: 11px;
}

/* Filter pill tooltip */
.ks-filter-hint {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 10.5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
    pointer-events: none;
}

.ks-filter-pill:hover .ks-filter-hint {
    opacity: 1;
    visibility: visible;
}

.ks-filter-hint::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #111 transparent;
}

/* No-results message inside category section */
.ks-filter-no-results {
    display: none;
    padding: 16px 0 8px;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

/* Global no-results when all sections hidden */
.ks-no-filter-results-global {
    padding: 40px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

.ks-legend-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px 5px 7px;
    border-radius: 20px;
    font: 700 11px/1 Arial, sans-serif;
    white-space: nowrap;
    letter-spacing: .2px;
    filter: none;
}

.ks-legend-badge--gf {
    background: rgba(10, 38, 12, .90);
    border: 1px solid rgba(76, 175, 80, .55);
    color: #C8E6C9;
}

.ks-legend-badge--gf-request {
    background: rgba(55, 30, 0, .90);
    border: 1px solid rgba(255, 160, 0, .55);
    color: #FFCC80;
}

.ks-legend-badge--mc {
    background: rgba(55, 8, 8, .90);
    border: 1px solid rgba(229, 57, 53, .55);
    color: #FFCDD2;
    font-size: 11px;
}

/* Item card hide animation */
.ks-item-card.ks-filtered-out {
    display: none;
}

@media (max-width: 600px) {
    .ks-dietary-filter-bar {
        padding: 10px 0;
    }

    .ks-filter-pill {
        font-size: 11px;
        padding: 5px 11px;
    }

    .ks-filter-label {
        display: none;
    }

}