/* =============================================================
   Taxonomy Archive — fkfl-tax-*
   Enqueued on is_tax() pages via functions.php
   ============================================================= */

/* Wrapper */
.fkfl-tax-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ----- Breadcrumb ----- */
.fkfl-tax-bc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}
.fkfl-tax-bc a {
    color: #2563eb;
    text-decoration: none;
}
.fkfl-tax-bc a:hover {
    text-decoration: underline;
}
.fkfl-tax-bc span + span::before {
    content: ' \00BB '; /* » */
    color: #94a3b8;
}

/* ----- Archive Header ----- */
.fkfl-tax-header {
    margin-bottom: 28px;
}
.fkfl-tax-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}
.fkfl-tax-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}
.fkfl-tax-count-badge {
    background: #e2e8f0;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.fkfl-tax-description {
    font-size: 14px;
    color: #64748b;
    margin: 10px 0 0;
    line-height: 1.6;
}

/* ----- Product Grid ----- */
.fkfl-tax-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ----- Card ----- */
.fkfl-tax-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fkfl-tax-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Poster */
.fkfl-tax-poster {
    position: relative;
    display: block;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #fff;
}
.fkfl-tax-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fkfl-tax-poster-top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.fkfl-tax-poster-bottom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.fkfl-tax-chip {
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
    line-height: 1.3;
}

/* Card Body */
.fkfl-tax-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fkfl-tax-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-decoration: none;
}
.fkfl-tax-title:hover {
    color: #2563eb;
}
.fkfl-tax-rating {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}
.fkfl-tax-hdr-text {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.fkfl-tax-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.fkfl-tax-tech .badge {
    font-size: 9px;
    padding: 2px 6px;
}
.fkfl-tax-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    margin: 4px 0 0;
}
.fkfl-tax-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}
.fkfl-tax-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: block;
}
.fkfl-tax-btn--buy {
    background: #16a34a;
    color: #fff;
}
.fkfl-tax-btn--buy:hover {
    background: #15803d;
    color: #fff;
}
.fkfl-tax-btn--details {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.fkfl-tax-btn--details:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* ----- Empty State ----- */
.fkfl-tax-empty {
    padding: 48px 20px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

/* ----- Pagination ----- */
.fkfl-tax-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fkfl-tax-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    background: #fff;
}
.fkfl-tax-pagination .page-numbers:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.fkfl-tax-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.fkfl-tax-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .fkfl-tax-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .fkfl-tax-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .fkfl-tax-wrap {
        padding: 16px 12px 32px;
    }
    .fkfl-tax-header h1 {
        font-size: 22px;
    }
}
