/*
Theme Name: 润华润滑
Theme URI: https://runhuatech.com
Author: 润华科技
Author URI: https://runhuatech.com
Description: 润华科技润滑油官方WordPress主题 - 专业工业风，简洁大气
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lubricant-theme
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, block-patterns
*/

/* =Reset
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff6600;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* =Layout
-------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 50px 0;
}

.bg-light {
    background: #f8f9fa;
}

.bg-dark {
    background: linear-gradient(135deg, #004499 0%, #0066cc 100%);
    color: #fff;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.site-logo span {
    color: #ff6600;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #0066cc;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* =Hero Section
-------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.85;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6600;
    color: #fff !important;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,102,0,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #fff;
    color: #0066cc !important;
}

/* =Section Titles
-------------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

.bg-dark .section-title h2,
.bg-dark .section-title p {
    color: #fff;
}

/* =Service Cards
-------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.service-card ul {
    text-align: left;
    color: #666;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.service-card li:last-child {
    border-bottom: none;
}

/* =Product Grid
-------------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #0066cc;
    background: #f0f7ff;
    transform: translateY(-5px);
}

.product-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
    font-size: 14px;
}

/* =Stats Counter
-------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* =Contact Section
-------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    color: #0066cc;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.contact-item p {
    color: #666;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =Page Header
-------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.page-header .breadcrumb a {
    color: #fff;
}

/* =Content Area
-------------------------------------------------------------- */
.content-area {
    padding: 60px 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: #333;
}

.entry-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #333;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

/* =Sidebar
-------------------------------------------------------------- */
.sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar ul li a {
    color: #333;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-about span {
    color: #ff6600;
}

.footer-about p {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-contact p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.site-info {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* =Blog Cards
-------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .entry-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 50px;
}

.blog-card .entry-content {
    padding: 25px;
}

.blog-card .entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: #333;
}

.blog-card .read-more {
    color: #0066cc;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

/* =Pagination
-------------------------------------------------------------- */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
}

.pagination a:hover,
.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* =404 Page
-------------------------------------------------------------- */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 120px;
    color: #0066cc;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-404 p {
    color: #666;
    margin-bottom: 30px;
}

/* =Widget Styles
-------------------------------------------------------------- */
.widget {
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* =Responsive Design
-------------------------------------------------------------- */
@media (max-width: 992px) {
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        text-align: center;
    }
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }
    
    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #1a1a2e !important;
        padding: 70px 0 30px !important;
        overflow-y: auto !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
        box-shadow: 5px 0 20px rgba(0,0,0,0.3) !important;
    }
    
    .main-nav.active {
        left: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 25px;
        color: #fff !important;
        font-size: 16px;
        text-decoration: none;
    }
    
    .main-nav ul li a:hover {
        color: #4fc3f7 !important;
        background: rgba(255,255,255,0.05);
    }
}

/* Desktop Navigation (992px and above) */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: auto !important;
        box-shadow: none !important;
        left: auto !important;
    }
    
    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-nav ul li {
        border-bottom: none !important;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0 !important;
        color: #333 !important;
        font-size: 15px !important;
        text-decoration: none !important;
    }
    
    .main-nav ul li a:hover {
        color: #0066cc !important;
        background: transparent !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 40px;
    }
}

/* =WordPress Required
-------------------------------------------------------------- */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

/* =Products Extended
-------------------------------------------------------------- */
.products-full-grid .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-full-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-full-card:hover {
    border-color: #0066cc;
    box-shadow: 0 10px 30px rgba(0,102,204,0.15);
    transform: translateY(-5px);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    font-size: 60px;
    color: #ccc;
}

.product-info {
    padding: 25px;
}

.product-code {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.product-full-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-full-card h3 a {
    color: #333;
}

.product-full-card h3 a:hover {
    color: #0066cc;
}

.product-spec {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-spec span {
    margin-right: 15px;
}

.product-pack {
    font-size: 14px;
    color: #ff6600;
    margin-bottom: 10px;
}

.product-feature {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-image {
    position: sticky;
    top: 100px;
}

.product-main-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-placeholder {
    font-size: 100px;
    color: #ccc;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-detail-info h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #333;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.meta-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-pack-info {
    background: #fff7ed;
    border: 1px solid #ffddcc;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #ff6600;
}

.product-features-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.product-features-box h4 {
    color: #0066cc;
    margin-bottom: 10px;
}

.product-features-box p {
    color: #666;
    line-height: 1.8;
}

.product-terms {
    margin-bottom: 25px;
}

.term-item {
    margin-bottom: 10px;
}

.term-label {
    color: #666;
    font-size: 14px;
}

.term-tag {
    display: inline-block;
    background: #e6f0ff;
    color: #0066cc;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-left: 5px;
}

.term-tag-secondary {
    background: #f0f0f0;
    color: #666;
}

.product-cta {
    display: flex;
    gap: 15px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: #0066cc;
    background: #f0f7ff;
    transform: translateY(-3px);
}

.cat-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.cat-count {
    font-size: 12px;
    color: #0066cc;
    font-weight: 500;
}

/* =Button Variations
-------------------------------------------------------------- */
.btn-sm {
    padding: 10px 25px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 50px;
    font-size: 18px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* =Product Responsive
-------------------------------------------------------------- */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-info h2 {
        font-size: 24px;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .products-full-grid .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .product-filter {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .product-filter .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* =Print Styles
-------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .btn,
    nav,
    .sidebar,
    .product-actions,
    .contact-form,
    .product-cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }
    
    .content-area,
    .entry-content {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20pt 0;
    }
    
    .page-header h1 {
        font-size: 18pt;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* =Accessibility
-------------------------------------------------------------- */
.screen-reader-text:focus {
    background: #fff;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    color: #0066cc;
    display: block;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =Loading Animation
-------------------------------------------------------------- */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #0066cc;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =Form Validation Styles
-------------------------------------------------------------- */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:valid,
textarea:valid {
    border-color: #10b981;
}

input[type="checkbox"]:checked {
    accent-color: #0066cc;
}

input[type="radio"]:checked {
    accent-color: #0066cc;
}

/* =Focus Styles
-------------------------------------------------------------- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* =Product Quick View
-------------------------------------------------------------- */
.product-quick-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.product-quick-view.active {
    opacity: 1;
    visibility: visible;
}

.product-quick-view-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 40px;
    position: relative;
}

.product-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* =Comparison Table
-------------------------------------------------------------- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.comparison-table th {
    background: #0066cc;
    color: #fff;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e6f0ff;
}

/* =Cookie Notice
-------------------------------------------------------------- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 20px;
    z-index: 9999;
    text-align: center;
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-notice a {
    color: #ff6600;
}

/* =Search Results
-------------------------------------------------------------- */
.search-section {
    margin-bottom: 60px;
}

.search-section-title {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* =Header Enhancements
-------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.header-search-toggle:hover {
    color: #0066cc;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
}

.header-phone i {
    color: #ff6600;
}

@media (min-width: 992px) {
    .header-phone {
        display: flex;
    }
    
    .header-search-toggle {
        display: none;
    }
}

/* Menu Toggle Animation */
.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-toggle-icon span {
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Overlay */
.header-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
}

.search-overlay-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

/* Sticky Header */
.site-header {
    transition: all 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header.scrolled .header-inner {
    padding: 10px 0;
}

/* =Admin Styles
-------------------------------------------------------------- */
.lubricant-unread {
    background: #fff3cd !important;
}

/* =Dark Mode Support
-------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    body.dark-mode-auto {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    body.dark-mode-auto .site-header {
        background: #222;
    }
    
    body.dark-mode-auto .service-card,
    body.dark-mode-auto .product-card,
    body.dark-mode-auto .blog-card,
    body.dark-mode-auto .contact-form {
        background: #2a2a2a;
        border-color: #333;
    }
    
    body.dark-mode-auto .section-title h2,
    body.dark-mode-auto .service-card h3,
    body.dark-mode-auto .product-card h3,
    body.dark-mode-auto h1,
    body.dark-mode-auto h2,
    body.dark-mode-auto h3,
    body.dark-mode-auto h4 {
        color: #e0e0e0;
    }
}

/* =Reduced Motion
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =High Contrast
-------------------------------------------------------------- */
@media (prefers-contrast: high) {
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    input,
    select,
    textarea {
        border: 2px solid currentColor;
    }
}