/*
Theme Name:   Astra Child
Template:     astra
Version:      1.2.1
Description:  Optimas-inspired Industrial B2B Theme - Refined Spacing & Typography
Author:       Architect-X
*/

:root {
    --op-green: #8dc63f;
    --op-orange: #f26c23;
    --op-blue: #005a8b; /* Deepened for more industrial feel */
    --op-dark: #1a1a1a;
    --op-gray-light: #f8f9fa;
    --op-gray-mid: #e9ecef;
    --op-text: #333333;
    --op-font: 'Inter', system-ui, -apple-system, sans-serif;

body { 
    font-family: var(--op-font); 
    color: var(--op-text); 
    line-height: 1.7; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased;

.op-wrapper { width: 100%; overflow-x: hidden; }
.op-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.op-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { color: var(--op-dark); font-weight: 700; line-height: 1.2; margin-top: 0; }
p { margin-bottom: 1.5rem; }

/* 按钮系统 */
.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px; /* Sharper corners for industrial feel */
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
.op-btn--orange { background: var(--op-orange); color: #fff !important; border: none; }
.op-btn--orange:hover { background: #e05b1a; transform: translateY(-2px); }
.op-btn--outline { background: transparent; color: #fff !important; border: 2px solid #fff; }
.op-btn--outline:hover { background: #fff; color: var(--op-dark) !important; }

.op-link-arrow { 
    color: var(--op-green); 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center;
    font-size: 16px;
    transition: gap 0.2s;
.op-link-arrow:hover { gap: 8px; text-decoration: none; }

.op-product-line { padding: 100px 0; background: #fff; }
.op-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.op-cat-item { 
    text-align: left; 
    padding: 30px; 
    border-top: 1px solid var(--op-gray-mid);
    transition: border-color 0.3s;
.op-cat-item:hover { border-top-color: var(--op-green); }
.op-cat-item__icon { font-size: 40px; margin-bottom: 25px; color: var(--op-green); }
.op-cat-item__link { color: var(--op-dark); font-weight: 700; font-size: 18px; text-decoration: none; }

/* Split Sections */
.op-split { padding: 140px 0; }
.op-bg-light { background: var(--op-gray-light); }
.op-split__inner { display: flex; align-items: center; gap: 80px; }
.op-split--reverse .op-split__inner { flex-direction: row-reverse; }
.op-split__content { flex: 1.2; }
.op-split__content h2 { font-size: 42px; margin-bottom: 30px; }
.op-split__image { flex: 1; position: relative; }
.op-image-placeholder { 
    width: 100%; 
    aspect-ratio: 16/10; 
    background: #222; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 20px 20px 0 var(--op-gray-mid);

/* Features (Card style) */
.op-features { padding: 120px 0; background: #fff; }
.op-feature-box { 
    padding: 40px; 
    background: var(--op-gray-light);
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
.op-feature-box:hover { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom-color: var(--op-green); }
.op-feature-box__icon { height: 50px; margin-bottom: 30px; fill: var(--op-blue); }
.op-feature-box__title { font-size: 22px; margin-bottom: 15px; }
.op-feature-box__desc { font-size: 16px; color: #666; }

/* Blue Testimonial Bar */
.op-blue-bar { background: var(--op-blue); color: #fff; padding: 100px 0; text-align: center; }
.op-testimonial blockquote { font-size: 32px; font-weight: 300; margin-bottom: 30px; font-style: italic; }
.op-testimonial cite { font-size: 18px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }


/* Responsive */
@media (max-width: 1024px) {
    .op-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .op-split__inner { flex-direction: column; gap: 40px; }
    .op-hero__title { font-size: 40px; }

/* WooCommerce List View (Technical) */
.op-product-list-container { margin: 60px 0; overflow-x: auto; }
.op-product-table { width: 100%; border-collapse: collapse; background: #fff; }
.op-product-table th { background: var(--op-dark); color: #fff; padding: 20px; text-align: left; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.op-product-table td { padding: 15px 20px; border-bottom: 1px solid var(--op-gray-mid); vertical-align: middle; }
.op-product-table tr:hover { background: var(--op-gray-light); }
.op-product-table td code { background: #eee; padding: 4px 8px; border-radius: 3px; font-weight: 600; color: var(--op-blue); }

.op-btn-mini { 
    display: inline-block; 
    padding: 8px 16px; 
    background: var(--op-green); 
    color: #fff !important; 
    text-decoration: none; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase;
}
.op-btn-mini:hover { background: var(--op-dark); }

/* ====== HEADER OVERRIDES (Optimas Style) ====== */
/* Header Background and Layout */
.ast-primary-header-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 10px 0 !important;
}

/* Logo Alignment */
.site-logo-img img {
    max-height: 45px !important;
    width: auto;
}

/* Navigation Links */
.ast-builder-menu-1 .menu-item > .menu-link {
    color: #555555 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    padding: 0 18px !important;
}

/* Navigation Hover / Active State */
.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
    color: var(--op-green) !important;
}

/* Search Icon */
.ast-header-search .ast-search-icon {
    color: #555555 !important;
}
.ast-header-search .ast-search-icon:hover {
    color: var(--op-green) !important;
}

/* ====== HERO SECTION (Optimas Style) ====== */
.op-hero {
    background: #ffffff;
    color: #555555;
    padding: 80px 0 0 0;
    text-align: left;
}

.op-hero__inner {
    max-width: 600px;
    padding-bottom: 60px;
}

.op-hero__title { 
    color: var(--op-green);
    font-size: 46px; 
    margin-bottom: 24px; 
    letter-spacing: -1px; 
    line-height: 1.2;
}

.op-hero__subtitle { 
    color: #555555;
    font-size: 18px; 
    margin-bottom: 30px; 
    opacity: 0.9; 
    max-width: 500px;
}

.op-hero__actions { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 40px; 
}

.op-hero__map-wrapper {
    background: var(--op-green);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
    text-align: center;
}

.op-hero__map-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.op-hero__map-inner h3 { 
    color: #fff; 
    font-size: 32px; 
    margin-bottom: 15px; 
    font-weight: 700;
}

.op-hero__map-inner p {
    color: #fff;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ====== FORCE OPTIMAS HEADER ====== */
#masthead, 
.ast-main-header-wrap, 
.ast-primary-header-bar,
.site-header {
    background-color: #ffffff !important;
}

#masthead .ast-primary-header-bar {
    border-bottom: 1px solid #e0e0e0 !important;
}

.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link {
    color: #555555 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.ast-builder-menu-1 .main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-item > .menu-link {
    color: var(--op-green) !important;
}

/* CRITICAL ASTRA OVERRIDES */
body.ast-theme-transparent-header #masthead {
    position: relative !important;
    background: #ffffff !important;
}

body.ast-theme-transparent-header .main-header-bar,
body.ast-theme-transparent-header.ast-header-break-point .main-header-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

body.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item > .menu-link {
    color: #555555 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

body.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item:hover > .menu-link,
body.ast-theme-transparent-header .ast-builder-menu .main-header-menu .current-menu-item > .menu-link {
    color: #8dc63f !important;
}

.ast-theme-transparent-header #masthead .site-logo-img .transparent-custom-logo img {
    max-height: 45px !important;
    width: auto !important;
}

/* Fix missing <br> in map text layout */
.op-hero__map-inner h3 {
    line-height: 1.3;
}
