/* TVF Flavor Category Page */

/* Page layout */
.tvf-flavor-page {
    min-height: 60vh;
}
.tvf-flavor-hero {
    background: #FDF6EC;
    border-bottom: 2px solid #f0e6d8;
    padding: 28px 0 24px;
}
.tvf-flavor-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.tvf-breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.tvf-breadcrumb a {
    color: #8B2252;
    text-decoration: none;
}
.tvf-breadcrumb a:hover {
    text-decoration: underline;
}
.tvf-breadcrumb-sep {
    margin: 0 5px;
    color: #bbb;
}
.tvf-breadcrumb-current {
    color: #2C1810;
    font-weight: 600;
}
.tvf-flavor-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #2C1810 !important;
}
.tvf-flavor-desc {
    display: none;
}
.tvf-flavor-count {
    font-size: 0.85rem;
    color: #8B2252;
    font-weight: 600;
    margin: 0;
}
.tvf-cat-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 0 28px;
    padding: 20px 0 0;
}
.tvf-cat-intro--has-img {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 100%;
}
.tvf-cat-intro__text {
    flex: 1;
    min-width: 0;
}
.tvf-cat-intro__img {
    flex-shrink: 0;
    width: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f4f0;
}
.tvf-cat-intro__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Filter bar */
.tvf-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 14px 20px;
    background: #f8f4f0;
    border-radius: 10px;
    flex-wrap: wrap;
}
.tvf-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tvf-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2C1810;
}
.tvf-filter-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #2C1810;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232C1810'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}
.tvf-filter-select:focus {
    outline: none;
    border-color: #8B2252;
}
.tvf-filter-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: #888;
    font-weight: 600;
}
.tvf-flavor-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* Subcategory grid */
.tvf-subcat-section {
    margin-bottom: 40px;
}
.tvf-subcat-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}
.tvf-subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.tvf-subcat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f4f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
}
.tvf-subcat-card:hover {
    background: #efe8e0;
    transform: translateY(-1px);
}
.tvf-subcat-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.tvf-subcat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tvf-subcat-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}
.tvf-subcat-count {
    font-size: 0.78rem;
    color: #888;
}
.tvf-no-products {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 1rem;
}

/* Variation product grid */
.tvf-varcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tvf-varcat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.tvf-varcat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.tvf-varcat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}
.tvf-varcat-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}
.tvf-varcat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.tvf-varcat-card:hover .tvf-varcat-img img {
    transform: scale(1.05);
}
.tvf-varcat-info {
    padding: 14px 16px 8px;
}
.tvf-varcat-flavor {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.3;
}
.tvf-varcat-device {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tvf-varcat-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B2252;
}
.tvf-varcat-atc {
    display: block;
    text-align: center;
    margin: 0 16px 14px;
    padding: 10px;
    background: #8B2252;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.tvf-varcat-atc:hover {
    background: #6b1a40;
}
.tvf-varcat-oos {
    display: block;
    text-align: center;
    margin: 0 16px 14px;
    padding: 10px;
    background: #f5f5f5;
    color: #999;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Pagination */
.tvf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0 8px;
    flex-wrap: wrap;
}
.tvf-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #2C1810;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tvf-pagination button:hover {
    background: #FDF6EC;
    border-color: #8B2252;
    color: #8B2252;
}
.tvf-pagination button.active {
    background: #8B2252;
    border-color: #8B2252;
    color: #fff;
    cursor: default;
}
.tvf-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.tvf-pagination .tvf-page-info {
    font-size: 0.85rem;
    color: #888;
    margin: 0 8px;
}

/* SEO bottom sections */
.fl-cat-seo {
    margin-top: 48px;
    border-top: 1px solid #eee;
    padding-top: 32px;
}
.fl-cat-seo__block {
    margin-bottom: 32px;
}
.fl-cat-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C1810;
    margin: 0 0 12px;
}
.fl-cat-seo__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}
.fl-cat-seo__text p {
    margin: 0 0 12px;
}
.fl-cat-faq {
    margin-top: 48px;
    border-top: 1px solid #eee;
    padding-top: 32px;
}
.fl-cat-faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fl-faq-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.fl-faq-item[open] {
    border-color: #8B2252;
}
.fl-faq-item__q {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2C1810;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fl-faq-item__q::-webkit-details-marker {
    display: none;
}
.fl-faq-icon {
    color: #8B2252;
    font-size: 1.1rem;
}
.fl-faq-item__a {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .tvf-varcat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .tvf-flavor-title {
        font-size: 1.6rem;
    }
}
@media (max-width: 768px) {
    .tvf-cat-intro--has-img {
        flex-direction: column;
    }
    .tvf-cat-intro__img {
        width: 100%;
        max-width: 280px;
    }
    .tvf-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .tvf-filter-count {
        margin-left: 0;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .tvf-flavor-hero {
        padding: 20px 0 16px;
    }
    .tvf-flavor-title {
        font-size: 1.4rem;
    }
    .tvf-flavor-content {
        padding: 20px 16px 40px;
    }
    .tvf-varcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tvf-varcat-info {
        padding: 10px 12px 6px;
    }
    .tvf-varcat-flavor {
        font-size: 0.95rem;
    }
    .tvf-varcat-atc {
        margin: 0 12px 10px;
        padding: 8px;
        font-size: 0.85rem;
    }
    .tvf-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* --- Flavor name: span instead of h2 --- */
.tvf-varcat-flavor{display:block;font-family:'Playfair Display',serif;font-size:1rem;font-weight:700;color:#2C1810;margin:0 0 .2rem;line-height:1.3}

/* --- Inter-category navigation --- */
.tvf-cat-nav{margin:2.5rem 0 1rem;padding:2rem 0 0;border-top:2px solid #E8DFD0}
.tvf-cat-nav .fl-cat-section-title{text-align:center;margin-bottom:1.5rem}
.tvf-cat-nav__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tvf-cat-nav__card{display:flex;align-items:flex-start;gap:.85rem;padding:1.15rem 1.35rem;background:#fff;border:1px solid #E8DFD0;border-radius:12px;text-decoration:none;color:#2C1810;transition:box-shadow .25s,transform .2s,border-color .25s}
.tvf-cat-nav__card:hover{box-shadow:0 6px 24px rgba(139,34,82,.12);transform:translateY(-3px);border-color:#C4547A;text-decoration:none;color:#2C1810}
.tvf-cat-nav__card--current{border-color:#8B2252;background:#FDF6EC;pointer-events:none}
.tvf-cat-nav__emoji{font-size:1.6rem;line-height:1;flex-shrink:0;margin-top:2px}
.tvf-cat-nav__body{flex:1;min-width:0}
.tvf-cat-nav__name{display:block;font-family:'Playfair Display',Georgia,serif;font-size:1.05rem;font-weight:700;margin-bottom:2px}
.tvf-cat-nav__count{display:block;font-size:.78rem;font-weight:600;color:#8B2252;margin-bottom:4px}
.tvf-cat-nav__desc{display:block;font-size:.82rem;color:#9C8E7E;line-height:1.5}
@media(max-width:768px){.tvf-cat-nav__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.tvf-cat-nav__grid{grid-template-columns:1fr}}
