/* ==========================================================================
   Article Enhancements: UI/UX, Commercial Elements & CTR Boost
   Promtovari.com.ua Blog Article Enhancement Styles
   ========================================================================== */

/* Smooth Anchor Scrolling */
html {
    scroll-behavior: smooth;
}

.us-blog-post-text {
    color: #2b2b2b;
    font-size: 16px;
    line-height: 1.75;
}

.us-blog-post-text h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 36px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid #ff9d00;
    line-height: 1.35;
    scroll-margin-top: 80px;
}

.us-blog-post-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
    scroll-margin-top: 80px;
}

.us-blog-post-text p {
    margin-bottom: 16px;
}

/* Image Wrappers */
.art-img-wrap {
    margin: 22px 0;
    text-align: center;
}

.art-img-wrap img {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    max-width: 100%;
    height: auto;
}

.art-img-wrap img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Table of Contents (Зміст статті)
   -------------------------------------------------------------------------- */
.art-toc {
    background: #fdfdfd;
    border: 1px solid #e5e9ec;
    border-left: 4px solid #ff9d00;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 26px 0 32px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.art-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.art-toc-header i {
    color: #ff9d00;
    font-size: 1.2rem;
}

.art-toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.art-toc-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.96rem;
    line-height: 1.5;
}

.art-toc-list li::before {
    content: "→";
    position: absolute;
    left: 4px;
    top: 5px;
    color: #ff9d00;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.art-toc-list li:hover::before {
    transform: translateX(3px);
}

.art-toc-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.art-toc-list a:hover {
    color: #ff9d00;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Callout Blocks (Tips, Warnings, Expert Notes)
   -------------------------------------------------------------------------- */
.art-callout {
    position: relative;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: center; /* Выравнивание иконки и текста строго по одной горизонтальной оси */
}

.art-callout-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.art-callout-body {
    flex-grow: 1;
}

.art-callout-body p {
    margin: 0 !important;
    line-height: 1.55;
}

/* Tip / Rule */
.art-callout-tip {
    background-color: #f0f7ff;
    border: 1px solid #c8e1fb;
    border-left: 5px solid #0984e3;
    align-items: flex-start; /* Для длинного текста совета выравниваем по верху первой строки */
}

.art-callout-tip .art-callout-icon {
    color: #0984e3;
    margin-top: 3px;
}

/* Warning / Attention */
.art-callout-warning {
    background-color: #fffaf0;
    border: 1px solid #fee0b2;
    border-left: 5px solid #ff9d00;
    align-items: center; /* Для предупреждения в одну строку - строгий горизонтальный центр */
}

.art-callout-warning .art-callout-icon {
    color: #ff9d00;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Enhanced Responsive Tables
   -------------------------------------------------------------------------- */
.table-responsive {
    margin: 26px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-responsive table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-responsive table thead th,
.table-responsive table:not(:has(thead)) tr:first-child td {
    background: #2d3436;
    color: #ffffff;
    font-weight: 600;
    padding: 13px 16px;
    text-align: left;
    border: none;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}

.table-responsive table:not(:has(thead)) tr:first-child td p {
    color: #ffffff;
    margin: 0;
}

.table-responsive table:not(:has(thead)) tr:first-child td strong {
    color: #ffffff;
}

/* Таблиці без thead: стилізуємо всі рядки, крім першого (шапки) */
.table-responsive table:not(:has(thead)) tbody tr:not(:first-child) td,
.table-responsive table:not(:has(thead)) tr:not(:first-child) td {
    padding: 13px 16px;
    border-top: 1px solid #edf2f7;
    color: #333;
    vertical-align: middle;
}

.table-responsive table:not(:has(thead)) tbody tr:not(:first-child):nth-child(even),
.table-responsive table:not(:has(thead)) tr:not(:first-child):nth-child(even) {
    background-color: #f9fbfd;
}

.table-responsive table:not(:has(thead)) tbody tr:not(:first-child):hover,
.table-responsive table:not(:has(thead)) tr:not(:first-child):hover {
    background-color: #fff9ed;
}

/* Таблиці з thead: всі рядки tbody є даними (включаючи перший рядок tbody) */
.table-responsive table:has(thead) tbody td {
    padding: 13px 16px;
    border-top: 1px solid #edf2f7;
    color: #333;
    vertical-align: middle;
}

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

.table-responsive table:has(thead) tbody tr:hover {
    background-color: #fff9ed;
}

.badge-action {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #0b72b9;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-wear {
    display: inline-block;
    padding: 4px 10px;
    background: #fde8e8;
    color: #c81e1e;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.art-btn,
a.art-btn,
.us-blog-post-text a.art-btn,
.table-responsive table td a.art-btn,
.art-product-card a.art-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    border: none !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Default state for Buy Button: Rich brand orange */
.art-btn-buy,
a.art-btn-buy,
.us-blog-post-text a.art-btn-buy,
.table-responsive table td a.art-btn-buy,
.art-product-card a.art-btn-buy {
    background: #ff9d00 !important;
    background-color: #ff9d00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 157, 0, 0.35) !important;
}

.art-btn-buy i,
a.art-btn-buy i {
    color: #ffffff !important;
}

/* Hover, Focus, Active state for Buy Button: Dark graphite with glowing orange cart */
.art-btn-buy:hover,
.art-btn-buy:focus,
.art-btn-buy:active,
a.art-btn-buy:hover,
a.art-btn-buy:focus,
a.art-btn-buy:active,
.us-blog-post-text a.art-btn-buy:hover,
.us-blog-post-text a.art-btn-buy:focus,
.table-responsive table td a.art-btn-buy:hover,
.table-responsive table td a.art-btn-buy:focus,
.art-product-card a.art-btn-buy:hover,
.art-product-card a.art-btn-buy:focus {
    background: #1f2429 !important;
    background-color: #1f2429 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25) !important;
}

.art-btn-buy:hover i,
.art-btn-buy:focus i,
a.art-btn-buy:hover i,
a.art-btn-buy:focus i {
    color: #ff9d00 !important;
}

/* Small button in table */
.art-btn-sm,
a.art-btn-sm,
.table-responsive table td a.art-btn-sm {
    padding: 7px 15px !important;
    font-size: 0.84rem !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
}

/* Catalog Banner Button */
.art-btn-catalog,
a.art-btn-catalog,
.us-blog-post-text a.art-btn-catalog {
    background: #ff9d00 !important;
    background-color: #ff9d00 !important;
    color: #ffffff !important;
    font-size: 1.02rem !important;
    padding: 13px 26px !important;
    box-shadow: 0 4px 15px rgba(255, 157, 0, 0.4) !important;
}

.art-btn-catalog:hover,
.art-btn-catalog:focus,
a.art-btn-catalog:hover,
a.art-btn-catalog:focus,
.us-blog-post-text a.art-btn-catalog:hover,
.us-blog-post-text a.art-btn-catalog:focus {
    background: #1f2429 !important;
    background-color: #1f2429 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.art-btn-catalog:hover i,
.art-btn-catalog:focus i,
a.art-btn-catalog:hover i {
    color: #ff9d00 !important;
}

/* --------------------------------------------------------------------------
   Contextual Product Cards Grid
   -------------------------------------------------------------------------- */
.art-product-section {
    margin: 32px 0 36px 0;
}

.art-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff9d00;
    width: fit-content;
}

.art-section-label i {
    color: #ff9d00;
}

.art-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.art-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.art-product-card:hover {
    border-color: #ffb84d;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.art-badge-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff9d00;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 2;
}

.art-badge-ribbon.hit {
    background: #e74c3c;
}

.art-badge-ribbon.pro {
    background: #2ecc71;
}

.art-product-thumb {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: #fbfbfb;
    border-radius: 6px;
    overflow: hidden;
}

.art-product-thumb img {
    max-width: 90%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.art-product-card:hover .art-product-thumb img {
    transform: scale(1.06);
}

.art-stock-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.art-product-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
    min-height: 42px;
}

.art-product-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.art-product-title a:hover {
    color: #ff9d00;
}

.art-product-specs {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1;
    background: #f9fbfd;
    padding: 10px 12px;
    border-radius: 6px;
}

.art-product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed #e6ebf0;
}

.art-product-specs li:last-child {
    border-bottom: none;
}

.art-product-specs span:first-child {
    color: #777;
}

.art-product-specs span:last-child {
    font-weight: 600;
    color: #222;
}

.art-product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.art-product-footer .art-btn-buy {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Accessory / Clogging Solution Card
   -------------------------------------------------------------------------- */
.art-accessory-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fdfefe;
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 26px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.art-accessory-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.art-accessory-icon {
    width: 54px;
    height: 54px;
    background: #fff4e5;
    color: #ff9d00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.art-accessory-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.art-accessory-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.art-accessory-cta {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CTA Full Banner (Перед FAQ)
   -------------------------------------------------------------------------- */
.art-cta-banner {
    background: linear-gradient(135deg, #23272d 0%, #343a40 100%);
    border-radius: 12px;
    padding: 32px 36px;
    margin: 36px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.art-cta-content h3 {
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0 !important;
}

.art-cta-content p {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.art-cta-action {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FAQ Section Cards
   -------------------------------------------------------------------------- */
.art-faq-container {
    margin: 24px 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.art-faq-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.art-faq-card:hover {
    border-color: #ffb84d;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.art-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.art-faq-num {
    width: 26px;
    height: 26px;
    background: #ff9d00;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.art-faq-question h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.08rem !important;
    color: #222 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.art-faq-answer {
    padding-left: 38px;
    color: #4a5568;
    font-size: 0.96rem;
    line-height: 1.6;
}

.art-faq-answer p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   E-E-A-T Expert Verification Card (Футер статьи)
   -------------------------------------------------------------------------- */
.art-expert-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin: 34px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.art-expert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #27ae60;
    margin-bottom: 4px;
}

.art-expert-header i {
    font-size: 1.1rem;
}

.art-expert-body p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

.art-expert-body p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Post Meta Info Bar (Inside article section)
   -------------------------------------------------------------------------- */
.us-blog-post-info {
    margin: 26px 0 10px 0 !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
}

.us-blog-post-info-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    align-items: center !important;
}

.us-blog-post-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.88rem !important;
    color: #64748b !important;
}

.us-blog-post-info-item i {
    color: #ff9d00 !important;
    font-size: 0.95rem !important;
}

.us-blog-post-info-item a {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.us-blog-post-info-item a:hover {
    color: #ff9d00 !important;
}

/* --------------------------------------------------------------------------
   Inline Content Links (All text links that are not buttons or TOC/product titles)
   -------------------------------------------------------------------------- */
.us-blog-post-text a:not(.art-btn):not(.art-toc-list a):not(.art-product-title a),
.table-responsive table td a:not(.art-btn) {
    color: #d35400;
    font-weight: 600;
    border-bottom: 2px solid #ff9d00;
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.us-blog-post-text a:not(.art-btn):not(.art-toc-list a):not(.art-product-title a):hover,
.table-responsive table td a:not(.art-btn):hover {
    color: #ff9d00;
    background-color: #fff8e6;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .art-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .art-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .art-cta-action {
        width: 100%;
    }
    .art-cta-action .art-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .art-product-grid {
        grid-template-columns: 1fr;
    }
    .art-accessory-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .art-accessory-info {
        flex-direction: column;
    }
    .art-accessory-cta {
        width: 100%;
    }
    .art-accessory-cta .art-btn {
        width: 100%;
    }
    .art-faq-answer {
        padding-left: 0;
        margin-top: 8px;
    }
    .art-callout {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    .art-callout-tip {
        align-items: flex-start;
    }
    .art-callout-icon {
        font-size: 1.25rem;
    }
    #column-left {
        display: none !important;
    }
    .us-blog-category-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

