/* ============================================================
   FTK Farm Products — Redesigned product sections
   Species tabs, cut_category sub-headers, mobile cards.
   Add this to the END of directory.css or load separately.
   ============================================================ */

/* ============================================================
   PRICES CHECKED / GUIDE LINK
   ============================================================ */

.ftk-prices-checked {
    font-size: 0.78rem;
    color: var(--ftk-gray-500);
    margin: 0 0 1rem;
    font-style: italic;
}

.ftk-section__guide-link {
    margin: 0 0 1.25rem;
}
.ftk-section__guide-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #244c38;
    text-decoration: none;
    background: #f1f8f3;
    border: 1px solid #cfe9d6;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    transition: background 0.15s, border-color 0.15s;
}
.ftk-section__guide-link a:hover {
    background: #e8f3ec;
    border-color: #bfe0c9;
    text-decoration: none;
}

/* ============================================================
   SPECIES TABS
   ============================================================ */

.ftk-species-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ftk-species-tab {
    -webkit-appearance: none;
    appearance: none;
    padding: 0.5rem 1.1rem;
    font-family: var(--ftk-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ftk-gray-700);
    background-color: var(--ftk-gray-100);
    background-image: none;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.ftk-species-tab:hover {
    background-color: var(--ftk-gray-200);
    color: var(--ftk-gray-900);
}
.ftk-species-tab:focus { outline: none; }
.ftk-species-tab:focus-visible {
    outline: 2px solid var(--ftk-green);
    outline-offset: 2px;
}
.ftk-species-tab.is-active,
.ftk-species-tab.is-active:hover {
    color: #fff;
    background-color: var(--ftk-green);
    border-color: var(--ftk-green);
}

/* Panels */
.ftk-species-panel { display: none; }
.ftk-species-panel.is-active { display: block; }

/* ============================================================
   PRODUCTS TABLE (desktop)
   ============================================================ */

.ftk-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ftk-products-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ftk-gray-500);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ftk-gray-200);
}

.ftk-products-table__price-col { width: 110px; }

.ftk-products-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ftk-gray-100);
    vertical-align: top;
}
.ftk-products-table tr:last-child td { border-bottom: none; }

.ftk-products-table__price-cell {
    white-space: nowrap;
    font-weight: 600;
    color: var(--ftk-gray-900);
}

/* Category sub-headers */
.ftk-products-table__cat-header td {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ftk-gray-500);
    padding: 1rem 0 0.35rem;
    border-bottom: 1px solid var(--ftk-gray-200);
    background: none;
}

/* Compact variant for deposits */
.ftk-products-table--compact { font-size: 0.85rem; }
.ftk-products-table--compact td { padding: 0.4rem 0; }

/* ============================================================
   PRODUCT NAME + DESCRIPTION
   ============================================================ */

.ftk-product-name {
    display: block;
    font-weight: 500;
    color: var(--ftk-gray-900);
    line-height: 1.35;
}

.ftk-product-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--ftk-gray-500);
    line-height: 1.45;
    margin: 0.15rem 0 0;
}

/* ============================================================
   PRICE FORMATTING
   ============================================================ */

.ftk-price {
    white-space: nowrap;
    font-weight: 600;
    color: var(--ftk-gray-900);
}

.ftk-price__unit {
    font-weight: 400;
    color: var(--ftk-gray-500);
    font-size: 0.82em;
    margin-left: 0.2rem;
}

/* ============================================================
   SECTION SUBTITLE
   ============================================================ */

.ftk-section__sub {
    font-size: 0.9rem;
    color: var(--ftk-gray-500);
    line-height: 1.5;
    margin: -0.25rem 0 1rem;
}

/* ============================================================
   PRODUCT CARDS (cuts, pantry, shares) — two-column grid
   ============================================================ */

.ftk-menu-group { margin-bottom: 0; }

.ftk-menu-group__heading {
    font-family: var(--ftk-font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ftk-gray-900);
    margin: 2.5rem 0 0.2rem;
}
.ftk-menu-group:first-child .ftk-menu-group__heading { margin-top: 0; }

.ftk-menu-group__helper {
    font-size: 0.84rem;
    color: var(--ftk-gray-500);
    line-height: 1.45;
    margin: 0 0 0.9rem;
}

.ftk-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}
/* Even-height variant for cards without an expander (boxes): stretch to the row
   height but keep content pinned to the top so nothing floats to the middle. */
.ftk-menu-grid--even { align-items: stretch; }
.ftk-menu-grid--even .ftk-menu-row { align-items: flex-start; }
@media (max-width: 600px) {
    .ftk-menu-grid { grid-template-columns: 1fr; }
}

.ftk-menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    background: #fff;
    border: 1px solid var(--ftk-gray-200);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ftk-menu-row:hover {
    border-color: #cfe9d6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ftk-menu-row__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f8f3;
    color: var(--ftk-green);
    border-radius: 10px;
    overflow: hidden;
}
.ftk-menu-row__thumb svg { width: 30px; height: 30px; }
.ftk-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ftk-menu-row__main { flex: 1 1 auto; min-width: 0; }

.ftk-menu-row__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}
.ftk-menu-row__head .ftk-menu-row__name { flex: 1 1 auto; min-width: 0; }

.ftk-menu-row__name {
    display: block;
    font-weight: 600;
    color: var(--ftk-gray-900);
    font-size: 0.96rem;
    line-height: 1.35;
}

.ftk-menu-row__desc {
    display: block;
    font-size: 0.78rem;
    color: var(--ftk-gray-400);
    line-height: 1.4;
    margin-top: 0.3rem;
}

.ftk-menu-row__price {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: var(--ftk-gray-900);
    font-size: 0.96rem;
}

/* ============================================================
   MOBILE PRODUCT CARDS
   ============================================================ */

.ftk-products-mobile { display: none; }
.ftk-products-mobile--always { display: flex; flex-direction: column; gap: 0.5rem; }

@media (max-width: 680px) {
    .ftk-products-table--desktop { display: none; }
    .ftk-products-mobile { display: flex; flex-direction: column; gap: 0.5rem; }
}

.ftk-products-mobile__cat-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ftk-gray-500);
    margin: 0.75rem 0 0.15rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ftk-gray-200);
}
.ftk-products-mobile__cat-header:first-child { border-top: none; padding-top: 0; }

.ftk-product-card {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--ftk-gray-100);
}
.ftk-product-card:last-child { border-bottom: none; }

.ftk-product-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.ftk-product-card__price {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   DEPOSIT BLOCK
   ============================================================ */

.ftk-deposit-block {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ftk-gray-100);
}
.ftk-deposit-block th {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
}

/* Share/box card: keep the price number on one line, but let the basis cue wrap
   so it can't force the price column wide and squeeze the title into a mid-word break. */
.ftk-menu-row__name { overflow-wrap: normal; word-break: normal; }
.ftk-menu-row__price .ftk-price { white-space: nowrap; }
.ftk-menu-row__price { max-width: 46%; }

/* === SHARE CARD FIELD ROWS (v89) ===
   Was inline styles with no wrap protection: "300–350 lbs" orphaned its unit.
   Now tokens + classes, value held on one line. */
.ftk-share-fields { margin-top: 8px; }
.ftk-share-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
    border-top: 1px solid var(--ftk-gray-100);
}
.ftk-share-field__label {
    font-size: 0.88rem;
    color: var(--ftk-gray-500);
    flex: 1 1 auto;
}
.ftk-share-field__value {
    font-size: 0.88rem;
    text-align: right;
    flex: 0 0 auto;
    white-space: nowrap; /* keeps "300–350 lbs" and "$2,075–$2,425" intact */
}
.ftk-share-field__sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ftk-gray-500);
    white-space: normal;
}

/* Price column: the AMOUNT stays on one line, the basis label may wrap.
   Previously nowrap on the container clipped "Priced by hanging weight". */
.ftk-menu-row__price { white-space: normal; }
.ftk-menu-row__price .ftk-price { white-space: nowrap; }
