/*
Theme Name: Electro Deals
Theme URI: https://electrodeals.com
Author: Electro Deals Team
Author URI: https://electrodeals.com
Description: Professional B2B electronic components marketplace theme with competitive pricing features and vendor lead generation.
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: electro-deals
Tags: e-commerce, business, professional, b2b, marketplace
*/

:root {
    --primary-navy: #0B1F3D;
    --primary-blue: #1E4A7A;
    --accent-green: #00856F;
    --accent-light: #00A884;
    --text-primary: #1A1F36;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Utility Bar */
.utility-bar {
    background: var(--primary-navy);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-bar-left {
    display: flex;
    gap: 32px;
    align-items: center;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.price-guarantee {
    background: var(--accent-green);
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 40px;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-tagline {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.search-container {
    max-width: 600px;
}

.search-bar {
    display: flex;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-bar:focus-within {
    background: var(--bg-white);
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 133, 111, 0.08);
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    font-weight: 400;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 12px 28px;
    background: var(--accent-green);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #006d5c;
}

.header-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.header-link:hover {
    background: var(--bg-light);
    color: var(--accent-green);
}

.header-link-icon {
    font-size: 22px;
    line-height: 1;
}

.header-link-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--error);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Navigation */
.main-navigation {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
}

.nav-link {
    padding: 16px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a3a5c 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: radial-gradient(circle at center, rgba(0, 168, 132, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -1px;
}

.hero-text .accent {
    color: var(--accent-light);
}

.hero-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    padding: 15px 32px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #006d5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 111, 0.3);
}

.btn-secondary {
    padding: 15px 32px;
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.hero-feature-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.hero-feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Value Banner */
.value-banner {
    background: var(--accent-green);
    padding: 20px 40px;
    color: white;
    text-align: center;
}

.value-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.value-banner-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.value-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 40px;
}

.stats-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trust Indicators */
.trust-bar {
    background: var(--bg-light);
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-color);
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.trust-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Products Section */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}

.section-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.select-control {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.select-control:hover {
    border-color: var(--accent-green);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.product-image-placeholder {
    font-size: 80px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: -2px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--primary-navy);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--accent-green);
}

.product-badge.sale {
    background: var(--error);
}

.product-badge.featured {
    background: var(--warning);
}

.product-content {
    padding: 24px;
}

.product-category {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.4;
    margin-bottom: 14px;
    min-height: 44px;
}

.product-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin-bottom: 14px;
    font-size: 12px;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.rating-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.product-pricing {
    margin-bottom: 14px;
}

.pricing-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pricing-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.5px;
}

.pricing-range {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

.volume-pricing-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.volume-pricing-title {
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.volume-pricing-tiers {
    font-size: 12px;
    color: #78350f;
    font-weight: 600;
    line-height: 1.5;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-indicator.in-stock .stock-dot {
    background: var(--success);
}

.stock-indicator.in-stock {
    color: var(--success);
}

.stock-indicator.low-stock .stock-dot {
    background: var(--warning);
}

.stock-indicator.low-stock {
    color: var(--warning);
}

.product-actions {
    display: grid;
    gap: 10px;
}

.btn-request-quote {
    padding: 13px 20px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-request-quote:hover {
    background: #006d5c;
    box-shadow: 0 4px 12px rgba(0, 133, 111, 0.25);
}

.btn-add-to-cart {
    padding: 13px 20px;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: white;
    padding: 64px 40px 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 14px;
}

.footer-section h3 {
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-light);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    font-weight: 400;
}

.footer-section ul li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--accent-light);
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-light);
    padding: 80px 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.testimonials-header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 80px 40px;
    background: var(--bg-white);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

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

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a3a5c 100%);
    padding: 80px 40px;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 17px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
    font-weight: 400;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-form button {
    padding: 15px 32px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s;
}

.cta-form button:hover {
    background: #006d5c;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .stats-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .stats-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }
}
