/*
Theme Name: a2-pc Theme
Theme URI: https://a2-pc.shop
Author: a2-pc
Author URI: https://a2-pc.shop
Description: قالب اختصاصی فروشگاه قطعات کامپیوتر a2-pc
Version: 1.0.0
License: GPL v2 or later
Text Domain: a2pc
*/

/* ===== کدهای CSS سایت فعلی ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f1;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e2;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #e01a4f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 28px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    display: flex;
    background: #f0f0f1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e2;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background: #e01a4f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background: #c41744;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.header-actions a:hover {
    color: #e01a4f;
}

.header-actions .cart-icon {
    position: relative;
}

.header-actions .cart-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e01a4f;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 11px;
}

/* Navigation */
.nav {
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e2;
}

.nav ul {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav ul li a {
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav ul li a:hover {
    background: #f0f0f1;
}

.nav ul li a i {
    font-size: 14px;
    color: #888;
}

.nav ul li a.active {
    background: #e01a4f;
    color: #fff;
}

.nav ul li a.active i {
    color: #fff;
}

/* Main Banner */
.banner {
    margin: 20px 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.banner h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.banner p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.banner .btn {
    background: #e01a4f;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}

.banner .btn:hover {
    background: #c41744;
}

.banner .banner-img {
    font-size: 80px;
    opacity: 0.6;
}

/* Category section */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title a {
    font-size: 14px;
    color: #e01a4f;
    font-weight: 400;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.category-item {
    background: #fff;
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.category-item i {
    font-size: 32px;
    color: #e01a4f;
    margin-bottom: 8px;
}

.category-item span {
    font-size: 13px;
    display: block;
}

/* Page content */
.page-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 20px 0 30px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-height: 250px;
}

.page-content h1 {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content h1 i {
    color: #e01a4f;
}

.page-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e2;
    padding: 30px 0;
    margin-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer .footer-links a {
    color: #555;
    transition: color 0.2s;
}

.footer .footer-links a:hover {
    color: #e01a4f;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    .search-bar {
        max-width: 100%;
        margin: 0;
    }
    .header-actions {
        width: 100%;
        justify-content: space-around;
    }
    .banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .banner .banner-img {
        margin-top: 16px;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .page-content h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav ul {
        justify-content: center;
    }
    .nav ul li a {
        font-size: 12px;
        padding: 6px 10px;
    }
}