:root {
    --primary-color: rgb(0, 92, 152);    /* mrosupply主蓝色 */
    --primary-light: #2b86cc;
    --primary-dark: #004B7A;
    --secondary-color: #F0F4F8;
    --accent-color: #F8A93D;           /* mrosupply橙色 */
    --accent-light: #FDB462;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --top-bar-bg: rgb(247, 247, 247);  /* 顶部小条背景 */
    --search-bg: rgb(239, 242, 246);   /* 搜索框背景 */
    --shadow-light: 0 2px 8px rgba(0, 92, 152, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 92, 152, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 92, 152, 0.16);
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #F0F4F8; 
    line-height: 1.6;
}

main {
    background-color: white;
}

.container {
    max-width: 1200px;
}

/* ===================================
   HEADER & NAVIGATION STYLES
   =================================== */

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    display: flex;
    align-items: center;
}
.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-item i {
    font-size: 14px;
}
.wechat-contact {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.wechat-contact:hover {
    background: rgba(255,255,255,0.1);
}
.desktop-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav .nav-link {
    display: block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.desktop-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}
.header-main {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
}
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1;
}
.logo-text:hover {
    color: var(--primary-color);
}
.logo-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.search-section {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}
.search-form {
    display: flex;
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
}
.search-form:focus-within {
    border-color: var(--primary-color);
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    height: 100%;
}
.search-input::placeholder {
    color: #999;
}
.category-btn {
    background: var(--search-bg);
    border: 1px solid #E5E5E5;
    border-radius: 5px 0 0 5px;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}
.category-btn:hover {
    background: #E5E5E5;
}
.search-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-width: 90px;
    justify-content: center;
}
.search-btn:hover {
    background: #E89525;
}
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-medium);
    width: 250px;
    z-index: 1010;
    padding: 10px 0;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-dropdown .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.category-dropdown .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.category-dropdown .dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: var(--border-color);
    border: 0;
}
.category-dropdown .more-categories {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-dropdown .more-categories:hover {
    color: var(--accent-color);
}
.mobile-top-bar-container, .mobile-search-toggler {
    display: none;
}
.mobile-search-toggler {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
}
.mobile-search-toggler i {
    vertical-align: middle;
}
.navbar-toggler {
    border: none;
    padding: 0;
    background-color: transparent;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.8em;
    height: 1.8em;
}
.mobile-search-bar {
    display: none;
    padding: 15px;
    background-color: #fff;
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid var(--border-color);
}
.mobile-search-bar .search-form {
    display: flex;
}
.mobile-search-bar .search-input {
     border-radius: 5px 0 0 5px;
}
.mobile-search-bar .search-btn {
    border-radius: 0 5px 5px 0;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.section-title { /* Keep section-title centered */
    text-align: center;
    margin-bottom: 40px;
}
.section-header { /* Align section-header to the left */
    text-align: left;
    margin-bottom: 40px;
}
.section-title h2, .section-header h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}
.section-title h2::after, .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}
.section-header h2 {
    text-transform: uppercase;
}
.section-header h2::after {
    left: 0;
    transform: translateX(0);
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
}
.section-more {
    text-align: center;
    margin-top: 40px;
}
.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 92, 152, 0.3);
}
.more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.more-btn:hover i {
    transform: translateX(3px);
}

/* Brands Section */
.brands-section, .related-brands-section {
    background: #ffffff;
    padding: 60px 0;
}
.related-brands-section {
    background: var(--secondary-color);
}
.brands-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}
.brand-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}
.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}
.brand-logo {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.brand-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}
.brand-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
}
.brand-item .brand-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent for consistency */
    display: flex; /* Make the whole area clickable and center content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Brands Grid (Related) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.brand-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}
.brand-card img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}
.brand-card span {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}


/* Categories Section */
.categories-section {
    background: var(--secondary-color);
    padding: 60px 0;
}
.categories-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}
.category-item {
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 200px;
}
.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,92,152,0.12);
    border-color: var(--primary-color);
}
.category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 18px 10px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.2;
    flex-shrink: 0;
}
.category-item:hover .category-title {
    color: var(--primary-color);
}
.category-image {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}
.category-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.category-item:hover .category-image img {
    transform: scale(1.05);
}

/* Extended Category Header */
.extended-category-header {
    padding: 30px 0;
    background: #E8EDF5;
}
.extended-category-header h1 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}
.extended-category-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}
.extended-category-header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Category Details Section */
.category-details {
    padding: 60px 0;
    background: white;
}
.details-content {
    max-width: 800px;
    margin: 0 auto;
}
.details-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.details-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Subcategory Section */
.subcategory-section {
    padding: 60px 0;
    background: white;
}
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.subcategory-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
.subcategory-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.subcategory-image {
    width: 120px;
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-right: 1px solid #f0f0f0;
}
.subcategory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.subcategory-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.subcategory-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.subcategory-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}
.view-more {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.subcategory-card:hover .view-more {
    color: var(--accent-color);
}

/* Products Section */
.products-section {
    background: #ffffff;
    padding: 60px 0;
}
#hot-products .products-container,
.products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-item {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,92,152,0.15);
    border-color: var(--primary-color);
}
.product-image {
    width: 100%;
    height: 160px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative; /* Set as positioning context */
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    position: absolute;   /* Position relative to the parent */
    top: 50%;             /* Center vertically */
    left: 50%;            /* Center horizontally */
    transform: translate(-50%, -50%); /* Fine-tune the centering */
}
.product-item:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.03);
}
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.product-title a:hover {
    color: var(--primary-color);
}
.product-meta {
    margin-top: auto;
    padding-top: 10px;
}
.product-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}
.product-meta-label {
    color: var(--text-light);
}
.product-meta-value {
    color: var(--text-dark);
    font-weight: 600;
}
.product-item .product-btn {
    background: #2B86CC;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 15px;
}
.product-item .product-btn:hover {
    background: #1E6BAD;
    color: white;
}
.product-btn i {
    margin-left: 4px;
}

/* About Us Section */
.about-section {
    background: var(--secondary-color);
    padding: 80px 0;
}
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}
.about-content p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* News Section */
.news-section {
    background: #ffffff;
    padding: 60px 0;
}
.news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.news-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}
.news-image {
    width: 100%;
    height: 160px;
    background: var(--secondary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}
.news-image i {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.4;
}
.news-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}
.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}
.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.news-link:hover {
    color: var(--accent-color);
}
.news-link i {
    font-size: 12px;
}
.news-category {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 80px 0;
    text-align: center;
    color: white;
}
.cta-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.cta-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cta-btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}
.cta-btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 169, 61, 0.4);
    color: white;
}

/* ===================================
   PAGE-SPECIFIC COMPONENTS
   =================================== */

/* Breadcrumb */
.breadcrumb-section {
    padding: 15px 0;
    background: var(--secondary-color);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    font-size: 14px;
    background: transparent;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #6c757d;
}

/* Sub-category Intro */
.subcategory-intro-section {
    padding: 20px 0;
    background: #fff;
}
.subcategory-intro-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.subcategory-intro-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* List Controls (View Switcher, Pagination) */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.view-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.view-switcher-title {
    font-size: 14px;
    color: var(--text-light);
}
.view-switcher-list {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.view-switch-btn {
    padding: 6px 12px;
    color: var(--text-light);
    background: white;
    text-decoration: none;
    border-left: 1px solid var(--border-color);
}
.view-switch-btn:first-child {
    border-left: none;
}
.view-switch-btn:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}
.view-switch-btn.active {
    background: var(--primary-color);
    color: white;
}
.pagination {
    margin: 0;
}
.pagination .page-item .page-link {
    color: var(--primary-color);
}
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* List View Styles */
.products-container.list-view {
    display: block; /* Override grid */
    gap: 0;
}
.products-container.list-view .product-item {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
}
.products-container.list-view .product-image {
    width: 180px;
    height: 180px;
    margin-bottom: 0;
    margin-right: 25px;
    flex-shrink: 0;
}
.products-container.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
}
.products-container.list-view .product-title {
    height: auto;
    font-size: 18px;
    margin-bottom: 15px;
    -webkit-line-clamp: unset;
}
.products-container.list-view .product-meta {
    padding-top: 0;
    margin-bottom: 15px;
    align-self: flex-start;
}
.products-container.list-view .product-meta-row {
    justify-content: flex-start;
    gap: 8px;
}
.products-container.list-view .product-btn {
    margin-top: auto;
    align-self: flex-start;
}


/* ===================================
   PAGE-SPECIFIC COMPONENTS
   =================================== */

/* Product Detail Page */
.product-detail-section {
    padding: 40px 0;
    background: #fff;
}
.product-main-info {
    display: flex;
    gap: 40px;
}
.product-gallery-wrapper {
    width: 300px; /* Adjusted size */
    flex-shrink: 0;
}
.product-gallery {
    width: 100%;
    height: 300px; /* Adjusted size */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}
.product-gallery img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.product-image-caption {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}
.product-details {
    flex: 1;
}
.product-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.product-sku {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.details-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 15px;
    border-top: 1px solid #f0f0f0;
}
.details-list li {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.details-list li strong {
    width: 120px;
    color: var(--text-light);
    flex-shrink: 0;
}
.details-list .phone-number {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 18px;
}
.details-list .wechat-qr-small {
    max-width: 120px;
    height: auto;
    border: 1px solid var(--border-color);
}
.product-sub-section {
    padding: 40px 0;
}
.product-sub-section.bg-light {
    background: var(--secondary-color);
}
.product-sub-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    /* border-bottom and padding-bottom moved to .underline-h2 */
}

.underline-h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background-color: white;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}
.spec-item {
    display: flex;
    background-color: white;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.spec-item .spec-key {
    width: 350px;
    font-weight: 500;
    color: var(--text-light);
    flex-shrink: 0;
    background-color: #f9f9f9;
    padding: 12px;
}
.spec-item .spec-value {
    color: var(--text-dark);
    padding: 12px;
    overflow-wrap: break-word; /* Force break long strings */
}
.product-content {
    line-height: 1.8;
}
.document-list {
    list-style: none;
    padding: 0;
}
.document-list li {
    margin-bottom: 10px;
}
.document-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}
.document-list a:hover {
    text-decoration: underline;
}
.document-list i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Mobile-Only Product Inquiry Button & Modal */
.product-quote-mobile {
    margin: 20px 0;
}

.product-inquiry-desktop {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.product-inquiry-desktop .btn-inquiry-custom {
    max-width: 200px;
    width: 100%;
}

.btn-inquiry-custom {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: white;
    background-color: var(--primary-light);
    border: 1px solid var(--primary-light);
    text-align: center;
}
.btn-inquiry-custom:hover {
    background-color: var(--primary-dark);
    color: white;
}
.btn-inquiry-custom i {
    margin-right: 8px;
}

.inquiry-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.inquiry-modal.show {
    display: flex;
}
.inquiry-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}
.inquiry-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    max-width: 360px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out forwards;
}
.inquiry-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.inquiry-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.inquiry-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
}
.inquiry-modal-body {
    padding: 20px 25px 25px;
    text-align: center;
}
.inquiry-modal-body > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.contact-link {
    display: block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.contact-link:hover {
    background: #e0e6ec;
    color: var(--primary-color);
}
.contact-link i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}
.contact-wechat {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.contact-wechat p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.contact-wechat .wechat-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

/* ===================================
   FOOTER STYLES
   =================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-section h4 {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 14px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
}
.footer-section li {
    margin-bottom: 8px;
}
.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: var(--accent-color);
}
.footer hr {
    border-top: 1px solid rgba(255,255,255,.25);
}
.copyright {
    padding-top: 20px;
    color: #999;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright p {
    margin: 0;
}

/* ===================================
   WECHAT MODAL STYLES
   =================================== */

.wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.wechat-modal.show {
    display: flex;
}
.wechat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.wechat-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 320px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.wechat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.wechat-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}
.wechat-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.wechat-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}
.wechat-modal-body {
    padding: 20px;
    text-align: center;
}
.wechat-qr {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.wechat-modal-body p {
    margin: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
}
.wechat-tip {
    color: var(--text-light) !important;
    font-size: 12px !important;
}


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

/* --- Desktop View (993px and up) --- */
@media (min-width: 993px) {
    .top-bar {
        padding: 6px 0;
    }
    .navbar-toggler, #mainNav, .mobile-search-toggler, .mobile-top-bar-container {
        display: none !important;
    }
    .desktop-search {
        display: block;
    }
}

/* --- Tablet View (768px to 992px) --- */
@media (max-width: 992px) {
    /* Layout */
    .desktop-nav, .top-bar-right, .desktop-search { display: none; }
    .top-bar { padding: 10px 0; position: relative; }
    .mobile-top-bar-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 15px; }
    .navbar-toggler, .mobile-search-toggler { display: block; }
    .header-main { padding: 15px 0; }
    .header-content { justify-content: center; }

    /* Mobile Nav Panel */
    #mainNav.navbar-collapse.show, #mainNav.navbar-collapse.collapsing {
        position: absolute;
        top: 100%;
        left: 0; 
        right: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
        padding: 10px 15px;
        z-index: 999;
    }
    #mainNav .navbar-nav { width: 100%; }
    #mainNav .nav-item { border-bottom: 1px solid var(--border-color); }
    #mainNav .nav-item:last-child { border-bottom: none; }
    #mainNav .nav-link { color: var(--text-dark); padding: 12px 5px; width: 100%; text-align: center; }
    #mainNav .nav-link:hover { background-color: var(--secondary-color); color: var(--primary-color); }

    /* Content Sections */
    .brands-container { grid-template-columns: repeat(4, 1fr); }
    .categories-container { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    #hot-products .products-container, .products-container, .news-container { grid-template-columns: repeat(2, 1fr); }
    
    /* Footer */
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile View (up to 767px) --- */
@media (max-width: 767px) {
    .section-title h2, .about-content h2, .section-header h2, .extended-category-header h1, .details-content h3 { font-size: 24px; }
    .section-title p, .about-content p, .extended-category-header p, .details-content p { font-size: 15px; }

    .subcategory-intro-section h2 {
        text-align: center;
    }

    .view-switcher {
        display: none;
    }

    .extended-category-header h1, .section-header h2 {
        text-align: center;
    }
    .extended-category-header h1::after, .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* USER REQUEST: Override grids for mobile */
    .brands-container, .brands-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .categories-container { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    #hot-products .products-container, .products-container, .news-container { 
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Product Detail Page Mobile */
    .product-main-info {
        flex-direction: column;
    }
    .product-gallery-wrapper {
        width: 100%;
    }
    .product-gallery {
        width: 100%;
        height: 280px;
    }
    .product-details h1 {
        font-size: 22px;
        text-align: center; /* Center product title */
    }
    .product-details .product-sku {
        text-align: center; /* Center SKU */
    }
    .details-list {
        text-align: left; /* Ensure list text aligns left */
        padding: 0 15px; /* Add some padding so it's not edge-to-edge */
    }
    .details-list li {
        flex-direction: column;
        align-items: center; /* Center list items in column */
    }
    .details-list li strong {
        width: auto;
        margin-bottom: 5px;
        margin-top: 0;
    }
    .product-specs-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive Product Specs */
    .spec-item {
        flex-direction: column;
        align-items: stretch; /* Make items full width */
    }
    .spec-item .spec-key {
        width: auto; /* Reset fixed width */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        font-weight: 600; /* Make key bolder on mobile for clarity */
    }
    .spec-item .spec-value {
        padding-left: 12px; /* Maintain padding */
    }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .copyright { flex-direction: column; gap: 8px; text-align: center; }
}



.brand-search-box {
    margin-bottom: 40px;
    padding: 20px 0;
    text-align: center;
}
.brand-search-box .search-instruction-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.brand-search-box .search-bar-container {
    position: relative;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.search-bar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}
.brand-search-box .brand-search-input {
    flex-grow: 1;
    padding: 10px 15px 10px 45px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
}
.brand-search-box .brand-search-input::placeholder {
    color: var(--text-light);
}
.brand-search-box .brand-search-go-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.brand-search-box .brand-search-go-button:hover {
    background-color: var(--primary-dark);
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 columns for desktop */
    gap: 20px;
}
.brand-grid.collapsed > .brand-card:nth-child(n+25) { /* Collapsed rule for desktop (8 cols * 3 rows = 24 items) */
    display: none;
}
.brand-grid .brand-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
}
.brand-grid .brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}
.brand-grid .brand-card a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.brand-grid .brand-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}
.brand-grid .brand-card span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-all;
}
.brand-grid.collapsed > .brand-card:nth-child(n+51) {
    display: none;
}

/* Responsive adjustments for brand grid */
@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 columns for tablet */
    }
    .brand-grid.collapsed > .brand-card:nth-child(n+19) { /* Collapsed rule for tablet (6 cols * 3 rows = 18 items) */
        display: none;
    }
}
@media (max-width: 767px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    }
    .brand-grid.collapsed > .brand-card:nth-child(n+7) { /* Collapsed rule for mobile (2 cols * 3 rows = 6 items) */
        display: none;
    }
}


/* ===================================
   BRAND DETAIL PAGE
   =================================== */
.brand-header-section {
    padding: 40px 0;
    background-color: #fff;
}
.brand-info-container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.brand-logo-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-description h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}
.brand-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.category-filter-section {
    padding-top: 20px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}
.category-filter-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-filter-list li {
    margin-right: 5px;
}
.category-filter-list a {
    white-space: nowrap;
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-light);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: all .2s ease;
    font-weight: 500;
}
.category-filter-list a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}
.category-filter-list a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.category-filter-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox scrollbar style */
    scrollbar-color: var(--border-color) transparent;
}
.category-filter-wrapper::-webkit-scrollbar {
    height: 6px;
}
.category-filter-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.category-filter-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}


/* Mobile adaptations for Brand Detail page */
@media (max-width: 767px) {
    .brand-info-container {
        flex-direction: column;
        text-align: center;
    }
    .brand-logo-wrapper {
        width: 150px;
        height: 150px;
    }
    .brand-description h1 {
        font-size: 28px;
    }
}

.category-filter-section + .products-section {
    padding-top: 20px;
}



.search-header {
    margin-bottom: 30px;
}
.search-header h2 {
    font-size: 24px;
    font-weight: 700;
}
.search-header h2 .keyword {
    color: var(--primary-color);
}
.search-summary {
    font-size: 16px;
    color: var(--text-light);
}
.no-results-section {
    padding: 60px 0;
    text-align: center;
    background: #fff; /* Match other sections */
}
.no-results-icon {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}
.no-results-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}
.no-results-section p {
    color: var(--text-light);
    max-width: 450px;
    margin: 0 auto 20px auto;
}
.divider {
    margin: 60px 0;
    border-top: 1px solid var(--border-color);
}
.highlight {
    color: var(--primary-color);
    font-weight: bold;
    background-color: transparent;
}


/* ===================================
   NEWS PAGE
   =================================== */
.news-list-section .news-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop news page */
}

.news-item .news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin: 10px 0;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.5;
}

/* Responsive adjustments for news list page */
@media (max-width: 992px) {
    .news-list-section .news-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    }
}
@media (max-width: 767px) {
    .news-list-section .news-container {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}


/* ===================================
   NEWS DETAIL PAGE
   =================================== */

.news-detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}
.news-meta {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 14px;
}
.news-meta-item {
    margin-right: 20px;
}
.news-meta-item i {
    margin-right: 5px;
    color: var(--primary-color);
}
.news-meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.news-meta-item a:hover {
    text-decoration: underline;
}
.news-content-body {
    font-size: 16px;
    line-height: 1.8;
}
.news-content-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}
.news-content-image {
    text-align: center;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}
.article-navigation a, .article-navigation span {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}
.article-navigation .nav-link-prev:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive for News Detail */







.contact-info-box {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    height: 100%; /* Make box height consistent */
}
.contact-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info-box p {
    margin-bottom: 15px;
    font-size: 16px;
}
.contact-info-box i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* On mobile, add space between the two columns */
@media (max-width: 991px) {
    .contact-info-box {
        margin-bottom: 40px;
    }
}

/* ===================================
   PAGE SECTIONS
   =================================== */
.about-page-section,
.contact-page-section,
.news-detail-page,
.brands-page-section,
.search-results-section {
    background-color: #fff;
}

.about-page-section,
.contact-page-section {
    padding: 60px 0;
}

.news-detail-page,
.brands-page-section,
.search-results-section {
    padding: 40px 0;
}

.about-page-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}
.about-page-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: none;
    margin: 0 auto 20px auto;
}

/* ===================================
   ORDERING GUIDE PAGE
   =================================== */
.guide-step {
    margin-bottom: 40px;
}
.guide-step h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}
.guide-step p, .guide-step ul {
    font-size: 16px;
    line-height: 1.8;
}
.guide-step ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 15px;
}
.guide-step p {
    max-width: none;
    margin: 0 0 20px 0;
}

/* Custom styles for horizontally scrollable tabs */
.category-filter-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}

/* Optional: Customize scrollbar for a cleaner look */
.category-filter-wrapper::-webkit-scrollbar {
    height: 5px;
}

.category-filter-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-filter-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.category-filter-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.category-filter-wrapper {
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 #f1f1f1; /* thumb and track color for Firefox */
}

.category-filter-wrapper .category-filter-list {
    display: inline-flex; /* Use inline-flex to keep items in a single line */
    padding-bottom: 1px; /* Prevent box-shadow clipping on active tab */
    margin-bottom: 0; /* Override default ul margin */
}


/* Add margin to the bottom pagination on product list pages */
.products-container + nav {
    margin-top: 30px;
}

/* Forcefully expand news detail content width */
.news-detail-content {
    max-width: none !important;
    width: 100% !important;
}

/* ===================================
   RICH TEXT CONTENT STYLING (.product-content)
   =================================== */
.product-content {
    line-height: 1.8;
    color: var(--text-dark);
}

/* --- Headings --- */
.product-content h1,
.product-content h2,
.product-content h3,
.product-content h4,
.product-content h5,
.product-content h6 {
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Override the global .product-sub-section h2 style */
.product-content h2 {
    font-size: 22px;
    border-bottom: none; /* Remove underline */
    padding-bottom: 0;   /* Remove padding */
}

.product-content h1 { font-size: 26px; }
.product-content h3 { font-size: 20px; }
.product-content h4 { font-size: 18px; }

/* --- Paragraphs & Links --- */
.product-content p {
    margin-bottom: 16px;
}

.product-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.product-content a:hover {
    color: var(--primary-dark);
}

/* --- Lists --- */
.product-content ul,
.product-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.product-content li {
    margin-bottom: 8px;
}

/* --- Tables --- */
.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.product-content th,
.product-content td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

.product-content th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

/* --- Other Elements --- */
.product-content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
}

.product-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

.product-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px; /* Optional: slight rounding for images */
}

/* Search Result Highlighting */
.products-container .product-item em {
    color: #D32F2F; /* A shade of red */
    font-weight: bold;
    font-style: normal; /* Override the default italic style of <em> */
}
