/* Mobile Specific Styles - V3 */

/* Tab Button Active State */
.tab-btn.active {
    border-bottom-color: #000;
    color: #000;
}

/* CMS Rich Content Styling */
.cms-rich-content h2,
.cms-rich-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.cms-rich-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.cms-rich-content b,
.cms-rich-content strong {
    font-weight: 700;
    color: #1e293b;
}

.cms-rich-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.cms-rich-content li {
    margin-bottom: 0.25rem;
}

.cms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.cms-rich-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
}

.cms-rich-content td,
.cms-rich-content th {
    padding: 12px 14px;
    border: 1px solid #F1F5F9;
    background: #ffffff;
    color: #475569;
    text-align: left;
}

/* Header row for tables */
.cms-rich-content table>tr:first-child td,
.cms-rich-content table>tr:first-child th,
.cms-rich-content thead tr:first-child td,
.cms-rich-content thead tr:first-child th {
    background: #F8FAFC !important;
    font-weight: 700;
    color: #1e293b;
}

/* Ensure tbody rows stay white */
.cms-rich-content tbody tr:first-child td,
.cms-rich-content tbody tr:first-child th {
    background: #ffffff !important;
}

.cms-rich-content tr td:first-child {
    font-weight: 700;
    color: #1e293b;
    width: 38%;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Overview content font size enhancement */
.overview-rich-content,
.overview-rich-content p,
.overview-rich-content span,
.overview-rich-content div,
.overview-rich-content li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

.overview-rich-content h2 {
    font-size: 1.25rem !important;
    margin-top: 1.5rem !important;
}

.overview-rich-content h3 {
    font-size: 1.1rem !important;
    margin-top: 1.25rem !important;
}

/* Product List Styles */
.pagination-container a,
.pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: white;
    border: 1px solid #F9FAFB;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    color: #111418;
    transition: all 0.3s;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.02);
}

.pagination-container .active {
    background: #111;
    color: white;
    border-color: #111;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

.product-card {
    box-shadow: 0 4px 25px -10px rgba(0, 0, 0, 0.08);
}

.swiper-pagination-bullet-active {
    background: #000 !important;
}

/* --- News Article Styles --- */
article.neirong {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    line-height: 1.7;
}

article.neirong h2,
article.neirong h3 {
    display: block !important;
    color: #111418 !important;
    font-weight: 800 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

article.neirong h2 {
    font-size: 1.5rem !important;
}

article.neirong h3 {
    font-size: 1.25rem !important;
}

article.neirong table {
    min-width: 500px;
    width: 100% !important;
    border-collapse: collapse !important;
}

article.neirong td,
article.neirong th {
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
}

article.neirong img {
    border-radius: 4px !important;
    margin: 1.5rem auto !important;
    height: auto !important;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}
