/* ==========================================================================
   ARTICLE VIEW PAGE (FIGMA SPEC)
   ========================================================================== */

.post-view-section {
    color: var(--fk-black);
}

.post-main-title {
    font-size: clamp(26px, 2.5vw, 32px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--fk-black);
    margin: 0;
}

.post-media-column {
    position: relative;
}

.post-sticky-image-box {
    position: sticky;
    top: 120px;
    width: 100%;
}

.post-featured-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 40px;
    display: block;
}

/* Зміст статті (TOC) */
.article-toc-block {
    display: flex;
    flex-direction: column;
    gap: var(--fk-sp-24);
    width: 100%;
    max-width: 706px;
}

.article-toc-heading {
    font-size: var(--fk-fs-24);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fk-black);
    margin: 0;
}

.article-toc-chips-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--fk-sp-16);
    width: 100%;
}

.article-toc-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--fk-sp-16) var(--fk-sp-24);
    border-radius: 20px;
    outline: 1px solid var(--fk-border-grey);
    outline-offset: -1px;
    color: var(--fk-black);
    text-decoration: none;
    font-size: var(--fk-fs-20);
    font-weight: 600;
    line-height: 1.35;
    background-color: var(--fk-white);
    transition: var(--fk-transition-base);
}

.article-toc-chip:hover {
    outline-color: var(--fk-black);
    transform: translateX(4px);
    background: var(--fk-grey-bg);
}

/* Текст статті */
.post-article-text {
    font-size: var(--fk-fs-16);
    line-height: 22.4px;
    font-weight: 400;
    color: var(--fk-black);
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: var(--fk-sp-24);
    margin-top: var(--fk-sp-24);
}

.post-article-text > p:first-child {
    font-size: var(--fk-fs-20);
    line-height: 28px;
    font-weight: 400;
    color: var(--fk-black);
    margin: 0;
}

.post-article-text h2 {
    font-size: var(--fk-fs-24);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fk-black);
    margin: var(--fk-sp-16) 0 0;
}

.post-article-text h3 {
    font-size: var(--fk-fs-16);
    font-weight: 600;
    color: var(--fk-black);
    margin: 0;
}

.post-article-text p {
    margin: 0;
    font-size: var(--fk-fs-16);
    line-height: 22.4px;
}

.post-article-text a {
    color: var(--fk-orange);
}

@media (max-width: 576px) {
    .post-media-column {
        order: 1;
    }

    .post-content-column {
        order: 2;
    }
}

/* ==========================================================================
   ARTICLE BOTTOM SECTION (SLIDERS & CTA FLOW)
   ========================================================================== */

.article-bottom-flow {
    background-color: #e2e2e2;
    border-radius: 40px;
    margin-top: var(--fk-sp-40);
    overflow: hidden;
    margin-bottom: 60px;
}

.section-block-title {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fk-black);
}

/* Круглі кнопки слайдерів 60x60 */
.slider-round-arrow {
    all: unset;
    width: 60px;
    height: 60px;
    border-radius: var(--fk-radius-circle);
    border: 1px solid var(--fk-black);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fk-black);
    cursor: pointer;
    box-sizing: border-box;
    transition: var(--fk-transition-base);
}

.slider-round-arrow:hover {
    background-color: var(--fk-black);
    color: var(--fk-white);
}

.slider-round-arrow.slick-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(20, 19, 19, 0.3);
}

/* ==========================================================================
   RECOMMENDED POSTS WIDGET (_article_posts_block.php)
   ========================================================================== */

.article-posts-widget {
    width: 100%;
    margin: var(--fk-sp-40) 0;
}

.article-posts-slider .slider-item {
    outline: none;
}

/* Картка статті у слайдері за Figma (370x500px, bg: rgba(255,255,255,0.6)) */
.blog-card {
    position: relative;
    width: 100%;
    height: 500px;
    padding-bottom: var(--fk-sp-16);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    outline: 1px solid #e2e2e2;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: var(--fk-transition-base);
    margin: 0 8px;
}

.blog-card:hover {
    outline-color: var(--fk-black);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    gap: var(--fk-sp-8);
}

.blog-card-image-wrap {
    width: 100%;
    height: 320px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    background-color: #1a1a1a;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 var(--fk-sp-16);
    flex-grow: 1;
}

.blog-card-meta {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--fk-sp-8);
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fk-sp-8) 10px;
    border-radius: 40px;
    outline: 1px solid var(--fk-black);
    outline-offset: -1px;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: var(--fk-black);
    text-transform: uppercase;
    background: transparent;
}

.blog-date {
    font-size: var(--fk-fs-16);
    font-weight: 400;
    line-height: 22.4px;
    color: var(--fk-black);
}

.blog-card-title {
    font-size: var(--fk-fs-20);
    font-weight: 600;
    line-height: 1.35;
    color: var(--fk-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   TOP 10 COFFEE SHOPS WIDGET (_article_products_block.php)
   ========================================================================== */

.article-top-products-widget {
    width: 100%;
    margin: var(--fk-sp-40) 0;
}

.article-top-products-widget .slick-track {
    display: flex;
    align-items: stretch;
}

.article-top-products-widget .slider-item {
    outline: none;
    height: auto;
    display: flex;
}

.top-product-static-card {
    padding: 16px;
    gap: 16px;
    background: #e2e2e2;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline-color 0.25s ease, background-color 0.25s ease;
}

.top-product-static-card:hover {
    outline-color: #141313;
}

.top-product-static-card:hover .top-product-img {
    transform: scale(1.05);
}

.top-product-static-card:hover .top-product-title {
    color: #eb682c;
}

.card-head-media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.card-img-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 332px;
}

.top-product-img {
    width: 240px;
    height: 332px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.top-product-title-link {
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.top-product-title {
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #141313;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-badge-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-stars-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-stars {
    display: flex;
    gap: 8px;
}

.reviews-count {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #141313;
}

.chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.figma-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    border-radius: 40px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
}

.chip-brown {
    background: #8a847c;
}

.chip-blue {
    background: #5f8fb8;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #eb682c;
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.price-old {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #141313;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-decoration: line-through;
}

@media (max-width: 991.98px) {
    .top-product-static-card {
        width: 100%;
        height: auto;
        min-height: 520px;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .post-sticky-image-box {
        position: static;
    }

    .post-featured-img {
        border-radius: var(--fk-radius-lg);
        max-height: 420px;
    }

    .article-toc-chip {
        font-size: var(--fk-fs-16);
        padding: 12px var(--fk-sp-16);
        width: 100%;
    }

    .article-bottom-flow {
        border-radius: var(--fk-radius-lg) var(--fk-radius-lg) 0 0;
    }

    .blog-card {
        height: 440px;
    }

    .blog-card-image-wrap {
        height: 260px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .top-product-static-card {
        min-height: 500px;
    }

    .top-product-img {
        width: 100%;
        height: 260px;
    }

    .top-products-slider-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--fk-sp-20);
    }

    .top-products-slider-footer .slider-arrows-group {
        justify-content: center;
    }
}

/* ==========================================================================
   ARTICLE TABLES (DESIGN SYSTEM COMPLIANT)
   ========================================================================== */

.table-responsive {
    width: 100%;
    margin: var(--fk-sp-32) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid #e2e2e2;
    background-color: #f7f7f8;
}

.table-responsive table.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-family: var(--fk-font-family);
    background-color: transparent !important;
}

.table-responsive table.table-dark,
.table-responsive table.table-striped {
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-striped-color: #141313 !important;
    --bs-table-color: #141313 !important;
    color: #141313 !important;
    border-color: #e2e2e2 !important;
}

.table-responsive table tbody tr:first-child {
    background-color: #f7f7f8;
}

.table-responsive table tbody tr:first-child td {
    font-size: 16px;
    font-weight: 700;
    color: #141313;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e2e2;
    white-space: nowrap;
}

.table-responsive table td {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #141313 !important;
    border-bottom: 1px solid #e2e2e2;
    vertical-align: middle;
    background-color: transparent !important;
}

.table-responsive table td p {
    margin: 0;
    padding: 0;
    color: #141313 !important;
    font-size: inherit;
    line-height: inherit;
}

.table-responsive table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-responsive table tbody tr:nth-child(odd):not(:first-child) {
    background-color: #f7f7f8;
}

.table-responsive table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive table tbody tr:not(:first-child) td:first-child {
    font-weight: 600;
    color: #141313 !important;
}

@media (max-width: 767.98px) {
    .table-responsive table td,
    .table-responsive table tbody tr:first-child td {
        padding: 14px 16px;
        font-size: 14px;
    }
}