/* ============================================================
   MAX FITNESS — CARDIO CATEGORY SECTIONS  (Plugin frontend.css)
   v1.0.0
   ============================================================ */


/* ── Wrapper ────────────────────────────────────────────── */

.mf-cardio-sections-wrapper {
    width: 100%;
    padding: 0 0 60px;
}


/* ── Section Block ──────────────────────────────────────── */

.mf-cs-section {
    padding: 32px 0 48px;            /* reduced from 56/64 */
    border-bottom: 1px solid #ebebeb;
    scroll-margin-top: 160px;        /* sticky header offset */
}

/* Tighten the FIRST section so the gap with the breadcrumb closes */
.mf-cs-section:first-child {
    padding-top: 8px;
}

.mf-cs-section:last-child {
    border-bottom: none;
}


/* ── Heading Row ─────────────────────────────────────────── */

.mf-cs-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.mf-cs-heading-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* 01, 02 … counter */
.mf-cs-num {
    font-family: 'Barlow', 'Oswald', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #f6c515;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
    margin-top: 4px;
}

/* Category heading — slightly smaller per your request */
.mf-cs-title {
    font-family: 'Barlow', 'Oswald', Arial, sans-serif !important;
    font-size: clamp(22px, 2.6vw, 36px) !important;   /* was 28–48 */
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: #0d0d0d !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Desktop "View All" link */
.mf-cs-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none !important;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    padding: 9px 18px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mf-cs-viewall svg {
    width: 14px;
    height: 14px;
    transition: transform 0.22s ease;
}

.mf-cs-viewall:hover {
    background: #1a1a1a;
    color: #f6c515 !important;
    border-color: #1a1a1a;
}

.mf-cs-viewall:hover svg {
    transform: translateX(4px);
}


/* ── Divider ─────────────────────────────────────────────── */

.mf-cs-divider {
    height: 2px;
    background: linear-gradient(to right, #f6c515 0%, #f6c515 40px, #ebebeb 40px);
    margin: 16px 0 28px;
    border-radius: 2px;
}


/* ── Products Grid ───────────────────────────────────────── */

.mf-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card — pure white bg + sleek grey border */
.mf-cs-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;             /* was #f8f8f6 → now white */
    border: 1px solid #e5e5e5;       /* sleek grey border */
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: #1a1a1a;
}

/* HOVER → only the image zooms. Card itself does NOT move. */
.mf-cs-card:hover {
    background: #ffffff;
    border-color: #e5e5e5;           /* keep same border */
    box-shadow: none;                /* no shadow */
    transform: none;                 /* no lift */
    text-decoration: none !important;
    color: #1a1a1a;
}

/* Card image container */
.mf-cs-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #ffffff;
}

.mf-cs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

/* The ONLY hover effect → image zoom */
.mf-cs-card:hover .mf-cs-card-img img {
    transform: scale(1.08);
}

/* Card info */
.mf-cs-card-info {
    padding: 14px 18px 18px;
    border-top: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mf-cs-card-title {
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

.mf-cs-card-cta {
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
}


/* ── Mobile "View All" button ───────────────────────────── */

.mf-cs-mobile-viewall {
    display: none;
    margin-top: 24px;
    text-align: center;
}

.mf-cs-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none !important;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    padding: 11px 22px;
    transition: background 0.22s ease, color 0.22s ease;
}

.mf-cs-viewall-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.22s ease;
}

.mf-cs-viewall-btn:hover {
    background: #1a1a1a;
    color: #f6c515 !important;
}

.mf-cs-viewall-btn:hover svg {
    transform: translateX(4px);
}


/* ── Hide default WooCommerce loop on Cardio page ────────── */

body.term-cardio .products.elements-grid.woodmart-products-holder,
body.term-cardio .woocommerce-pagination,
body.term-cardio .products-footer {
    display: none !important;
}


/* ── Responsive ─────────────────────────────────────────── */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
    .mf-cs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mf-cs-title {
        font-size: clamp(20px, 3.4vw, 30px) !important;
    }
}

/* Small tablet & mobile */
@media (max-width: 767px) {
    .mf-cs-section {
        padding: 28px 0 40px;
    }
    .mf-cs-section:first-child {
        padding-top: 6px;
    }
    .mf-cs-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .mf-cs-viewall {
        display: none;
    }
    .mf-cs-mobile-viewall {
        display: block;
    }
    .mf-cs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .mf-cs-card-info {
        padding: 10px 12px 14px;
    }
    .mf-cs-card-title {
        font-size: 12px !important;
    }
}

/* Phone */
@media (max-width: 480px) {
    .mf-cs-title {
        font-size: 20px !important;
    }
    .mf-cs-card-img {
        padding: 14px;
    }
}
