/* ============================================================
   Boao Intelligence - English Site Main Stylesheet
   Independent B2B E-commerce Design
   ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy: #1a237e;
    --navy-light: #283593;
    --navy-dark: #0d1452;
    --accent: #ffc107;
    --accent-dark: #ffa000;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-light: #f5f7fa;
    --bg-card: #ffffff;
    --border: #e0e4e8;
    --success: #2e7d32;
    --danger: #c62828;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 40px rgba(26,35,126,0.15);
    --container: 1200px;
    --transition: all 0.3s ease;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
}
.logo-text { line-height: 1.1; }
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding: 8px 0;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-lang {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}
.btn-lang:hover { border-color: var(--navy); color: var(--navy); }

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}
.cart-link:hover { background: var(--bg-light); color: var(--navy); }
.cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--navy-dark);
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    padding: 0 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--navy);
    color: #fff;
}
.btn-primary:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,35,126,0.3); }
.btn-accent {
    background: var(--accent);
    color: var(--navy-dark);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,193,7,0.4); }
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(40,53,147,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-bg { background: var(--bg-light); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-header h2 .accent { color: var(--navy); }
.section-header p { font-size: 16px; color: var(--text-light); line-height: 1.7; }

/* ===== Category Cards ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(40,53,147,0.12));
    border-radius: 16px;
    font-size: 28px;
}
.category-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.category-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.category-card .count { font-size: 12px; color: var(--navy); font-weight: 600; }

/* ===== Product Cards ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}
.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.product-sku { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 20px; font-weight: 800; color: var(--navy); }
.product-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.product-price .from { font-size: 11px; color: var(--text-muted); font-weight: 500; display: block; line-height: 1; margin-bottom: 2px; }
.btn-cart {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.btn-cart:hover { background: var(--navy-light); transform: scale(1.1); }
.btn-cart:disabled { background: var(--border); cursor: not-allowed; transform: none; }

/* ===== About Preview ===== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.about-text p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.about-feature { display: flex; align-items: flex-start; gap: 12px; }
.about-feature .icon {
    width: 40px;
    height: 40px;
    background: rgba(26,35,126,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.about-feature .text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.about-feature .text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 120px;
}

/* ===== Why Choose Us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
 why-card { text-align: center; }
.why-card { text-align: center; padding: 24px; }
.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(26,35,126,0.2);
}
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    border-radius: var(--radius-lg);
    padding: 56px 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 2; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; z-index: 2; }
.cta-banner .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ===== Footer ===== */
.site-footer {
    background: #0d1126;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-contact { font-size: 14px; line-height: 2; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--accent); }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-payments { display: flex; align-items: center; gap: 12px; }
.footer-payments .pay-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}
.footer-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    transition: var(--transition);
}
.footer-lang-switch:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    justify-content: center;
    margin-top: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ===== Content Page ===== */
.content-page { padding: 64px 0; }
.content-body { max-width: 800px; margin: 0 auto; }
.content-body h2 { font-size: 28px; font-weight: 700; margin: 32px 0 16px; color: var(--navy); }
.content-body h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.content-body p { font-size: 16px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }
.content-body ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-body ul li { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 8px; }
.content-body strong { color: var(--text); }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon {
    width: 44px; height: 44px;
    background: rgba(26,35,126,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-info-item .text h4 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item .text p { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .category-grid, .product-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-preview { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header-inner { height: 60px; }
    .main-nav { display: none; }
    .hero { padding: 48px 0 64px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-stat .num { font-size: 24px; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 26px; }
    .category-grid, .product-grid, .why-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .cta-banner { padding: 36px 24px; }
    .cta-banner h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .page-hero h1 { font-size: 28px; }
    .content-body h2 { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}
