/* Popup overlay */
#ctf-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
.show-cooking:hover path{
    stroke:var(--theme-color);
}
#ctf-popup.ctf-active {
    pointer-events: auto;
}

.ctf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(51, 22, 18, 0.72);
    opacity: 0;
    transition: opacity 0.32s ease;
}

#ctf-popup.ctf-active .ctf-overlay {
    opacity: 1;
}

.ctf-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: 100%;
    max-width: 75rem;
    background: #f8efe8;
    box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#ctf-popup.ctf-active .ctf-panel {
    transform: translateX(0);
}

.ctf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 2.25rem 2.5rem;
}

.ctf-title {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 800;
    color: #331612;
    margin: 0 0 0.5rem;
}

.ctf-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a352f;
    margin: 0;
    max-width: 50rem;
}

.ctf-close {
    border: 0.0625rem solid #d8c8bd;
    border-radius: 999rem;
    background: #fff;
    color: #331612;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ctf-close:hover {
    background: #331612;
    color: #fff;
    border-color: #331612;
}

.ctf-filters {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1rem;
    padding: 0 2.25rem 1.5rem;
}

.ctf-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #331612;
    margin-bottom: 0.5rem;
    display: block;
}

.ctf-search-wrap {
    position: relative;
}

.ctf-input {
    width: 100%;
    border: 0.0625rem solid #c7b7aa;
    border-radius: 0.65rem;
    background: #f8efe8;
    color: #331612;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ctf-input:focus {
    border-color: #331612;
    box-shadow: 0 0 0 0.125rem rgba(51, 22, 18, 0.12);
}

.ctf-search-icon {
    position: absolute;
    inset: 50% 1rem auto auto;
    transform: translateY(-50%);
    color: #7a645b;
}

.ctf-select {
    width: 100%;
    border: 0.0625rem solid #c7b7aa;
    border-radius: 0.65rem;
    background: #f8efe8;
    color: #331612;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ctf-select:focus {
    border-color: #331612;
    box-shadow: 0 0 0 0.125rem rgba(51, 22, 18, 0.12);
}

.ctf-table-wrap {
    flex: 1;
    padding: 0 2.25rem 2rem;
}

.ctf-list {
    width: 100%;
    border: 1px solid #331612bf;
    border-bottom: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.ctf-list-head {
    display: flex;
    gap: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #331612;
}
.ctf-list-head .ctf-col{
    flex: 1;
    padding: 1rem 0.75rem;
    border-right: 1px solid #331612bf;
    border-bottom: 1px solid #331612bf;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
    
.ctf-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ctf-row {
    display: flex;
    gap: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2f211d;
}
.ctf-row .ctf-label{
    display:none
}
.ctf-row .ctf-cell{
    flex: 1;
    padding: 1rem 0.75rem;
    border-right: 1px solid #331612bf;
    border-bottom: 1px solid #331612bf;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.ctf-row .ctf-cell:last-child,
.ctf-list-head .ctf-col:last-child{
    border-right:0;
    min-width: 14.375rem;
}
.ctf-empty {
    padding: 1.5rem;
    text-align: center;
    color: #6c5248;
    font-size: 0.95rem;
}

.ctf-loading {
    position: absolute;
    inset: 0;
    background: rgba(248, 239, 232, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.ctf-loading.ctf-show {
    opacity: 1;
    pointer-events: auto;
}

.ctf-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999rem;
    border: 0.25rem solid #e3d7cc;
    border-top-color: #331612;
    animation: ctf-spin 0.8s linear infinite;
}

@keyframes ctf-spin {
    to {
        transform: rotate(360deg);
    }
}

body.ctf-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .ctf-panel {
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .ctf-filters {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .ctf-header {
        padding: 1.5rem 1rem 1rem;
    }

    .ctf-table-wrap {
        padding: 0 1.5rem 1.5rem;
    }
    .ctf-title{
        font-size: 1.5rem;
    }
    .ctf-close{
        position:absolute;
        width: 1.8rem;
        height: 1.8rem;
        right: 1rem;
    }
    .ctf-list-head{
        display:none
    }
    .ctf-row{
        flex-direction:column;
        padding: 1rem 0.75rem;
        border-bottom: 1px solid #331612bf;
    }
    .ctf-row .ctf-cell{
        border:0;
        padding: 0;
        /* flex-direction: column; */
        align-items: flex-start;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
        gap: 0 0.5rem;
    }
    .ctf-list{
        border-radius:0
    }
    .ctf-row .ctf-label{
        display: block;
        margin-bottom: 0;
    }
    .ctf-row .ctf-value{
        display: inline;
    }
}
