/*
Theme Name: پردیس نت
Theme URI: https://example.com
Author: Pardis Net
Author URI: https://example.com
Description: پوسته روشن و مدرن برای فروشگاه تخصصی تجهیزات شبکه و الکترونیک پردیس نت (MikroTik, Cisco, Ubiquiti). با بنر اصلی و لوگوی اختصاصی.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pardis-net
Tags: e-commerce, rtl-language-support, custom-menu, light
*/

/* =====================================================
   CSS اصلی پوسته - پردیس نت (نسخه روشن)
   ===================================================== */

:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --accent: #0077cc;
    --bg-body: #f4f8fc;
    --bg-card: #ffffff;
    --text: #1a2b3c;
    --text-muted: #5a6f82;
    --glass-border: rgba(0, 86, 179, 0.12);
    --success: #10b981;
    --shadow: 0 8px 30px rgba(0, 60, 120, 0.07);
}

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

body {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    background: var(--bg-body) !important;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: linear-gradient(90deg, #003d82, #0056b3);
    color: #fff;
    padding: 9px 0;
    font-size: 13px;
    position: relative;
    z-index: 100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-right, .top-bar-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .highlight {
    color: #90e0ef;
    font-weight: 500;
}

/* ========== HEADER / NAV ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #ffffff !important;
    border-bottom: 1px solid #e2eaf2;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 60, 120, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(0, 86, 179, 0.08);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 86, 179, 0.4);
    color: white !important;
}

.btn-ghost {
    background: rgba(0, 86, 179, 0.06);
    color: var(--primary) !important;
    border: 1px solid rgba(0, 86, 179, 0.2);
}

.btn-ghost:hover {
    background: rgba(0, 86, 179, 0.12);
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 86, 179, 0.06);
    border: 1px solid rgba(0, 86, 179, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.25s;
}

.cart-btn:hover {
    background: rgba(0, 86, 179, 0.12);
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO / BANNER اصلی ========== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #003d82 0%, #0056b3 40%, #0077cc 100%);
    overflow: hidden;
    z-index: 1;
    min-height: 420px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 55%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

.hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 65px 20px 60px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,0.2);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: #ffffff !important;
    color: #003d82 !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.18);
}

.hero-buttons .btn-primary:hover {
    background: #f0f7ff !important;
    transform: translateY(-2px);
}

.hero-buttons .btn-ghost {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.55);
}

.hero-buttons .btn-ghost:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 24px;
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

.brands-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.hero-card > p {
    text-align: center;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-box {
    text-align: center;
    padding: 14px 6px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
}

.stat-box strong {
    display: block;
    font-size: 1.35rem;
    color: #90e0ef;
    font-weight: 700;
}

.stat-box span {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

/* ========== SECTIONS ========== */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

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

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid #e5eef6;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 86, 179, 0.25);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.1);
    color: var(--text);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 119, 204, 0.12), rgba(0, 86, 179, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid #e5eef6;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 86, 179, 0.2);
    box-shadow: 0 18px 45px rgba(0, 60, 120, 0.1);
    color: var(--text);
}

.product-img {
    height: 180px;
    background: linear-gradient(145deg, #eaf4fc, #d6eaf8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 48px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.product-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Trust Bar */
.trust-bar {
    background: #ffffff;
    border-top: 1px solid #e5eef6;
    border-bottom: 1px solid #e5eef6;
    padding: 28px 0;
    box-shadow: 0 4px 20px rgba(0, 60, 120, 0.03);
}

.trust-items {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 86, 179, 0.07);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.trust-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.trust-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0a1f35;
    color: #c8d6e5;
    padding: 50px 0 25px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: #a0b4c8;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #90e0ef;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #a0b4c8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #48cae4;
}

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

/* ========== CONTENT AREA ========== */
.site-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.entry-content {
    background: #fff;
    border: 1px solid #e5eef6;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 20px 45px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-features, .hero-buttons {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .trust-items {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .site-logo-img {
        height: 42px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-items {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* WordPress defaults */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
