/*
Theme Name: Tech Parts Pro
Theme URI: https://yoursite.com
Author: Your Name
Version: 1.0
Text Domain: techpartspro
Description: Современная тема для каталога радиодеталей и скупки. Светлый дизайн.
*/

:root {
    --bg-body: #f4f6f8;
    --bg-white: #ffffff;
    --bg-light: #e9ecef;
    --text-main: #212529;
    --text-muted: #6c757d;
    --primary: #0056b3; /* Синий */
    --primary-hover: #004494;
    --accent: #ff9900; /* Оранжевый */
    --success: #28a745;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary); }

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

/* === HEADER === */
.site-header {
    background: var(--bg-white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo { font-size: 24px; font-weight: 800; color: var(--primary); text-transform: uppercase; }
.site-logo img { max-height: 40px; }

.main-navigation ul { list-style: none; display: flex; gap: 20px; }
.main-navigation a { color: var(--text-main); font-weight: 500; font-size: 14px; }
.main-navigation a:hover { color: var(--primary); }

/* Кнопки в шапке */
.header-contact-buttons { display: flex; gap: 10px; }
.btn-contact {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 4px;
    font-weight: 600; font-size: 13px;
}
.btn-phone { background: var(--primary); color: #fff; }
.btn-phone:hover { background: var(--primary-hover); }
.btn-whatsapp { background: var(--success); color: #fff; }
.btn-whatsapp:hover { opacity: 0.9; }

/* Мобильное меню */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--text-main); }

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .main-navigation {
        position: fixed; top: 70px; right: -100%;
        width: 300px; height: 100vh;
        background: var(--bg-white);
        padding: 20px; transition: 0.3s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; }
    .header-contact-buttons { flex-direction: column; margin-top: 20px; }
}

/* === HERO BANNER === */
.hero-banner {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #003d80 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-content h1 { font-size: 42px; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 4px;
    font-weight: 600; cursor: pointer; border: none;
    transition: 0.3s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-whatsapp { background: var(--success); color: #fff; }

/* === CARDS & GRID === */
.archive-grid, .search-results { padding: 40px 0; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.card-excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.card-price { color: var(--success); font-weight: 700; font-size: 18px; }

/* === FILTERS === */
.advanced-filter, .modern-filter-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    border: 1px solid var(--border);
}
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.filter-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 600; }
.filter-group input, .filter-group select {
    width: 100%; padding: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 4px; color: var(--text-main);
}
.filter-submit { grid-column: 1 / -1; text-align: center; margin-top: 15px; }

/* === SINGLE PAGE DETAILS === */
.detail-hero {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.detail-poster { flex: 0 0 300px; }
.detail-poster img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.detail-meta { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.detail-price { font-size: 28px; color: var(--success); font-weight: 700; margin: 20px 0; }

/* === TABLES === */
.metal-table, .price-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-white);
    margin: 20px 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}
.metal-table th, .price-table th {
    background: var(--primary);
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}
.metal-table td, .price-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}
.metal-table tr:hover, .price-table tr:hover { background: var(--bg-light); }

/* === FOOTER === */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #ccc; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 13px; }

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { color: var(--text-main); font-weight: 600; }

/* === EXTRA INFO BLOCKS === */
.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.extra-block {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-top: 4px solid var(--accent);
}
.extra-block:hover { transform: translateY(-3px); }
.extra-block h3 { font-size: 18px; margin-bottom: 15px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.extra-block-content { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 40px 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-main);
}
.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}