/*
Theme Name: SanTeXing B2B Trade
Theme URI: https://bestswitch-stx.com
Author: SanTeXing Team
Author URI: https://bestswitch-stx.com
Description: Professional B2B foreign trade theme for SanTeXing Xiamen Co., Ltd. - Membrane switch, touch screen, FPC manufacturer since 1998. Orange-black color scheme with full hero slider, features, products, news sections.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: santexing
Tags: B2B, foreign-trade, manufacturing, membrane-switch, industrial, one-column, flexible-header, custom-logo, custom-menu, custom-colors, featured-images, theme-options, threaded-comments, translation-ready

============================================================
SanTeXing B2B Trade - The B2B Foreign Trade Theme
Copyright (C) 2024 SanTeXing Xiamen Co., Ltd.
============================================================

Table of Contents:
1. CSS Variables & Theme Colors
2. Reset & Base Styles
3. Typography
4. Top Bar
5. Header & Navigation
6. Hero Slider
7. Search Bar
8. Features Section
9. About Section
10. Products Section
11. Product Cards
12. News Section
13. Contact CTA
14. Footer
15. Newsletter
16. Page Templates (About, Contact, Products)
17. Single Post & Blog
18. Sidebar
19. Forms & Buttons
20. Responsive
21. Print Styles
*/

/* ============================================================
   1. CSS Variables & Theme Colors
   ============================================================ */
:root {
    --stx-primary: #fd6101;
    --stx-primary-dark: #e05500;
    --stx-primary-light: #ff8a3c;
    --stx-accent: #febf01;
    --stx-accent-light: #fab933;
    --stx-accent-dark: #e5a800;
    --stx-dark: #1a1a1a;
    --stx-dark-2: #222222;
    --stx-dark-3: #2a2a2a;
    --stx-gray-900: #333;
    --stx-gray-800: #444;
    --stx-gray-700: #555;
    --stx-gray-600: #666;
    --stx-gray-500: #888;
    --stx-gray-400: #999;
    --stx-gray-300: #bbb;
    --stx-gray-200: #ddd;
    --stx-gray-100: #f5f5f5;
    --stx-gray-50: #fafafa;
    --stx-white: #ffffff;
    --stx-bg: #ffffff;
    --stx-text: #333333;
    --stx-link: #fd6101;
    --stx-link-hover: #e05500;
    --stx-border: #e0e0e0;
    --stx-container: 1200px;
    --stx-header-height: 80px;
    --stx-topbar-height: 38px;
    --stx-border-radius: 4px;
    --stx-border-radius-lg: 8px;
    --stx-transition: all 0.3s ease;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem; line-height: 1.7; color: var(--stx-text); background: var(--stx-bg); overflow-x: hidden;
}
.container { width: 100%; max-width: var(--stx-container); margin: 0 auto; padding: 0 20px; }
a { color: var(--stx-link); text-decoration: none; transition: var(--stx-transition); }
a:hover { color: var(--stx-link-hover); }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* 3. Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--stx-dark); margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }
p { margin-bottom: 1em; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: var(--stx-dark); text-transform: uppercase; font-weight: 700; margin-bottom: 15px; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--stx-primary); margin: 12px auto 0; }
.section-title p { color: var(--stx-gray-500); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* 4. Top Bar */
.top-bar { background: var(--stx-dark); color: var(--stx-gray-400); font-size: 0.82rem; height: var(--stx-topbar-height); line-height: var(--stx-topbar-height); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.top-bar .social-links { display: flex; gap: 12px; align-items: center; }
.top-bar .social-links a { color: var(--stx-gray-400); transition: var(--stx-transition); }
.top-bar .social-links a:hover { color: var(--stx-primary); }

/* 5. Header & Navigation (Dark) */
.site-header { background: var(--stx-dark-2); border-bottom: 3px solid var(--stx-primary); position: relative; z-index: 1000; }
.header-inner { max-width: var(--stx-container); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: var(--stx-header-height); }
.site-branding { flex-shrink: 0; }
.site-branding img { max-height: 48px; width: auto; }
.main-navigation { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu li { position: relative; }
.nav-menu li a { display: block; padding: 10px 18px; color: var(--stx-white); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--stx-transition); }
.nav-menu li a:hover, .nav-menu li.current-menu-item a, .nav-menu li.current_page_item a { color: var(--stx-accent-light); background: rgba(255,255,255,0.05); }
.nav-menu li.menu-item-has-children > a::after { content: '\\25BC'; font-size: 0.6em; margin-left: 6px; vertical-align: middle; }
.nav-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--stx-dark-3); min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 999; }
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-menu .sub-menu a { padding: 10px 20px; font-size: 0.85rem; text-transform: none; }
.nav-menu .sub-menu a:hover { background: rgba(253, 97, 1, 0.15); padding-left: 25px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--stx-white); margin: 5px 0; transition: var(--stx-transition); }
.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--stx-accent-light); font-weight: 700; font-size: 1rem; white-space: nowrap; }

/* 6. Hero Slider */
.hero-slider { position: relative; overflow: hidden; background: var(--stx-dark); }
.hero-slide { position: relative; min-height: 500px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide .slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.4) 100%); }
.hero-slide .slide-content { position: relative; z-index: 2; max-width: 700px; padding: 60px 20px; }
.hero-slide .slide-content h2 { font-size: 2.8rem; font-weight: 800; color: var(--stx-white); margin-bottom: 15px; line-height: 1.2; text-transform: uppercase; }
.hero-slide .slide-content h2 span { color: var(--stx-primary); }
.hero-slide .slide-content p { font-size: 1.1rem; color: var(--stx-gray-300); margin-bottom: 25px; }
.hero-slide .slide-content .btn { display: inline-block; padding: 12px 32px; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--stx-border-radius); transition: var(--stx-transition); }
.btn-primary { background: var(--stx-primary); color: var(--stx-white); border: 2px solid var(--stx-primary); }
.btn-primary:hover { background: var(--stx-primary-dark); border-color: var(--stx-primary-dark); }
.btn-outline { background: transparent; color: var(--stx-white); border: 2px solid var(--stx-white); }
.btn-outline:hover { background: var(--stx-white); color: var(--stx-dark); }

/* 8. Features Section */
.features-section { padding: 70px 0; background: var(--stx-white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-item { text-align: center; padding: 30px 20px; border: 1px solid var(--stx-border); border-radius: var(--stx-border-radius-lg); transition: var(--stx-transition); background: var(--stx-white); }
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(253,97,1,0.1); border-color: var(--stx-primary); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--stx-primary), var(--stx-accent)); color: var(--stx-white); font-size: 1.5rem; }
.feature-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--stx-dark); }
.feature-item p { font-size: 0.88rem; color: var(--stx-gray-500); }

/* 9. About Section */
.about-section { padding: 70px 0; background: var(--stx-gray-50); }
.about-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { border-radius: var(--stx-border-radius-lg); overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.about-image img { width: 100%; display: block; }
.about-content h2 { font-size: 1.8rem; }
.about-content h2 span { color: var(--stx-primary); }
.about-content .about-subtitle { color: var(--stx-primary); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 15px; }
.about-content p { color: var(--stx-gray-600); margin-bottom: 20px; font-size: 0.95rem; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 25px 0; }
.about-stat { text-align: center; }
.about-stat .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--stx-primary); display: block; }
.about-stat .stat-label { font-size: 0.8rem; color: var(--stx-gray-500); }

/* 10. Products Section */
.products-section { padding: 70px 0; background: var(--stx-white); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { border: 1px solid var(--stx-border); border-radius: var(--stx-border-radius); overflow: hidden; transition: var(--stx-transition); background: var(--stx-white); }
.product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: var(--stx-primary); }
.product-thumb { position: relative; height: 200px; overflow: hidden; background: var(--stx-gray-100); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--stx-transition); }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 18px; }
.product-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.product-info h3 a { color: var(--stx-dark); }
.product-info h3 a:hover { color: var(--stx-primary); }
.product-info p { font-size: 0.85rem; color: var(--stx-gray-500); margin-bottom: 12px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.product-category { font-size: 0.78rem; color: var(--stx-primary); font-weight: 500; text-transform: uppercase; }
.product-meta .btn { padding: 6px 16px; font-size: 0.8rem; background: var(--stx-primary); color: var(--stx-white); border: none; border-radius: var(--stx-border-radius); cursor: pointer; font-weight: 500; }

/* 11. News Section */
.news-section { padding: 70px 0; background: var(--stx-white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card { border: 1px solid var(--stx-border); border-radius: var(--stx-border-radius); overflow: hidden; transition: var(--stx-transition); background: var(--stx-white); }
.news-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); }
.news-thumb { height: 180px; overflow: hidden; background: var(--stx-gray-100); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--stx-transition); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 20px; }
.news-body .news-date { font-size: 0.8rem; color: var(--stx-gray-500); margin-bottom: 8px; }
.news-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.news-body h3 a { color: var(--stx-dark); }
.news-body h3 a:hover { color: var(--stx-primary); }
.news-body p { font-size: 0.88rem; color: var(--stx-gray-600); margin-bottom: 12px; }
.news-body .read-more { color: var(--stx-primary); font-weight: 600; font-size: 0.85rem; }

/* 12. Contact CTA */
.contact-cta { padding: 80px 0; background: linear-gradient(135deg, var(--stx-dark) 0%, var(--stx-dark-2) 100%); text-align: center; }
.contact-cta .cta-content h2 { color: var(--stx-white); font-size: 2rem; margin-bottom: 15px; }
.contact-cta .cta-content p { color: var(--stx-gray-400); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; }
.cta-buttons .btn { padding: 14px 35px; font-size: 1rem; font-weight: 600; border-radius: var(--stx-border-radius); text-transform: uppercase; }

/* 13. Footer */
.site-footer { background: var(--stx-dark); color: var(--stx-gray-400); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: var(--stx-white); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--stx-primary); display: inline-block; }
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: var(--stx-gray-500); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--stx-gray-400); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--stx-primary); padding-left: 5px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-bottom p { color: var(--stx-gray-500); margin: 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: var(--stx-gray-500); }

/* 14. Newsletter */
.newsletter { padding: 50px 0; background: var(--stx-dark-2); text-align: center; }
.newsletter h2 { color: var(--stx-white); font-size: 1.5rem; margin-bottom: 8px; }
.newsletter p { color: var(--stx-gray-500); font-size: 0.9rem; margin-bottom: 20px; }
.newsletter-form { display: flex; max-width: 450px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; padding: 12px 18px; border: 2px solid var(--stx-dark-3); border-right: none; border-radius: var(--stx-border-radius) 0 0 var(--stx-border-radius); background: var(--stx-dark-3); color: var(--stx-white); outline: none; }
.newsletter-form input:focus { border-color: var(--stx-primary); }
.newsletter-form button { padding: 12px 24px; background: var(--stx-primary); color: var(--stx-white); border: 2px solid var(--stx-primary); border-radius: 0 var(--stx-border-radius) var(--stx-border-radius) 0; cursor: pointer; }

/* 15. Page Templates */
.page-header { background: var(--stx-dark); background-size: cover; background-position: center; padding: 60px 0; text-align: center; position: relative; }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.page-header h1 { position: relative; z-index: 1; color: var(--stx-white); font-size: 2rem; text-transform: uppercase; }
.page-header p { position: relative; z-index: 1; color: var(--stx-gray-300); font-size: 1rem; }
.content-area { padding: 60px 0; }
.content-area h2 { color: var(--stx-dark); margin: 20px 0 10px; }

/* Contact Form */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--stx-border); border-radius: var(--stx-border-radius); margin-bottom: 15px; font-size: 0.95rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--stx-primary); outline: none; }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form .submit-btn { background: var(--stx-primary); color: var(--stx-white); border: none; padding: 12px 30px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--stx-border-radius); cursor: pointer; }
.contact-form .submit-btn:hover { background: var(--stx-primary-dark); }
.contact-info h3 { margin-bottom: 15px; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-info .info-item strong { display: block; color: var(--stx-dark); }

/* 16. Single Product */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-gallery img { width: 100%; border-radius: var(--stx-border-radius); }
.single-product h1 { font-size: 1.8rem; margin-bottom: 15px; }
.product-params { margin: 20px 0; }
.product-params table { width: 100%; border-collapse: collapse; }
.product-params th, .product-params td { padding: 10px 12px; border: 1px solid var(--stx-border); font-size: 0.9rem; text-align: left; }
.product-params th { background: var(--stx-gray-100); font-weight: 600; color: var(--stx-dark); }
.product-params tr:nth-child(even) td { background: var(--stx-gray-50); }
.single-product .inquiry-btn { display: inline-block; padding: 14px 35px; background: var(--stx-primary); color: var(--stx-white); border: none; border-radius: var(--stx-border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }

/* 17. Blog/Post */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-card { border: 1px solid var(--stx-border); border-radius: var(--stx-border-radius); overflow: hidden; }
.blog-card .post-thumb { height: 200px; overflow: hidden; }
.blog-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .post-content { padding: 20px; }
.blog-card .post-meta { font-size: 0.8rem; color: var(--stx-gray-500); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--stx-dark); }
.blog-card h3 a:hover { color: var(--stx-primary); }

/* 18. Forms & Buttons */
button, input[type="submit"] { cursor: pointer; }

/* 19. WordPress Core */
.wp-block-image { margin: 20px 0; }
.wp-block-image img { border-radius: var(--stx-border-radius); }
.aligncenter { text-align: center; }
.wp-caption { max-width: 100%; }
.sticky { }
.bypostauthor { }
.wp-caption-text { font-size: 0.85rem; color: var(--stx-gray-500); text-align: center; }
.gallery-caption { font-size: 0.85rem; color: var(--stx-gray-500); }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }

/* 20. Responsive */
@media (max-width: 1024px) {
    .features-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--stx-dark-2); flex-direction: column; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-menu .sub-menu { position: static; box-shadow: none; }
    
    .hero-slide { min-height: 350px; }
    .hero-slide .slide-content h2 { font-size: 1.8rem; }
    .features-grid, .products-grid, .news-grid, .blog-grid { grid-template-columns: 1fr; }
    .about-section .container { grid-template-columns: 1fr; }
    .contact-grid, .product-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .header-actions { display: none; }
}

/* 21. Accessibility */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }

/* 22. Print Styles */
@media print {
    .site-header, .hero-slider, .newsletter, .cta-buttons, .footer-social { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
