/*
Theme Name: isogamshop
Author: فروشگاه
Description: قالب اختصاصی
Version: 1.0
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.0.0/dist/font-face.css');

:root {
    --primary: #4a90d9;
    --secondary: #ffffff;
    --dark: #1a1a2e;
    --light-blue: #e8f0fe;
    --shadow: 0 4px 20px rgba(74, 144, 217, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}
a:hover {
    opacity: 0.7;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(74, 144, 217, 0.1);
    border-bottom: 2px solid rgba(74, 144, 217, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}
.logo a span {
    color: var(--dark);
}

/* ===== منو ===== */
.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: 0.3s;
}
.nav-menu li a:hover {
    background: var(--primary);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-actions a {
    color: var(--dark);
    font-size: 20px;
}

/* ===== دکمه همبرگر ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    border-radius: 3px;
}

/* ===== اسلایدر ===== */
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 650px;
    overflow: hidden;
    margin-top: 70px;
}

.slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 700px;
}

.slide-text h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}
.slide-text h2 span {
    color: #f5a623;
}
.slide-text p {
    font-size: 18px;
    opacity: 0.9;
}
.slide-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #f5a623;
    color: #1a1a2e;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
    font-size: 16px;
}
.slide-btn:hover {
    transform: scale(1.05);
}

/* ===== درباره ما ===== */
.about-section {
    padding: 70px 0;
    background: white;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}
.about-text p {
    color: #555;
    margin-bottom: 15px;
}
.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
/* ===== ویژگی‌ها ===== */
.features-section {
    padding: 60px 0;
    background: var(--light-blue);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(74,144,217,0.2);
}
.feature-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.feature-item h3 {
    color: var(--primary);
    font-size: 18px;
}
.feature-item p {
    color: #666;
    font-size: 14px;
}

/* ===== محصولات ===== */
.products-section {
    padding: 60px 0;
    background: white;
}
.products-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 40px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: var(--light-blue);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.product-card img {
    width: 100%;
    border-radius: 12px;
}
.product-card h3 {
    font-size: 16px;
    color: var(--dark);
    margin: 12px 0 8px;
}
.product-card .price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}
.product-card .btn {
    display: inline-block;
    padding: 8px 25px;
    background: var(--primary);
    color: white;
    border-radius: 25px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.product-card .btn:hover {
    background: #3a7bc8;
}

/* ===== فوتر ===== */
.site-footer {
    background: linear-gradient(to bottom, #ffffff, #4a90d9);
    color: var(--dark);
    padding: 50px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 {
    color: var(--primary);
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(74,144,217,0.2);
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

/* ===== زیرگزینه‌های سبد خرید ===== */
.menu-item-has-children .sub-menu {
    display: none !important;
}
.menu-item-has-children:hover .sub-menu {
    display: block !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .slider-container {
        height: 50vh;
        min-height: 320px;
        max-height: 450px;
        margin-top: 60px;
    }
    .slide-text h2 {
        font-size: 24px;
    }
    .slide-text p {
        font-size: 14px;
    }
    .slide-btn {
        padding: 8px 22px;
        font-size: 14px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}