/* ========================================
   طراحی شیشه‌ای و مینیمال - ریسپانسیو کامل
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', Tahoma, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(20px);
    --white-glass: rgba(255, 255, 255, 0.85);
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text-light: rgba(255, 255, 255, 0.95);
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: bgMove 30s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   کانتینر
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px;
}

/* ========================================
   نوار بالا
   ======================================== */

.top-bar {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 10px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-bar .site-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    margin-right: 12px;
    font-size: 12px;
}

.top-bar a:hover { color: white; }

/* ========================================
   هدر اصلی
   ======================================== */

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 16px;
    color: white;
    font-weight: 700;
}

.logo-text p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* جستجو */
.search-box {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    font-size: 13px;
    color: white;
    outline: none;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search-box input:focus { background: rgba(255, 255, 255, 0.25); }

.search-box button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 35px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* دکمه‌های هدر */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    position: relative;
    font-size: 13px;
}

.header-btn:hover { background: rgba(255, 255, 255, 0.25); }

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* منوی همبرگری */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

/* ========================================
   منوی ناوبری
   ======================================== */

/* ========================================
   منوی ناوبری - اسکرول شیشه‌ای
   ======================================== */

nav {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 12px 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* اسکرول‌بار شیشه‌ای */
.nav-menu::-webkit-scrollbar {
    height: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 10px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.2));
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.6), 
        rgba(255, 255, 255, 0.3));
}

.nav-menu a {
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-menu a:active {
    transform: translateY(0);
}

/* افکت fade در لبه‌های اسکرول */
nav {
    position: relative;
}

nav::before,
nav::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

nav::before {
    right: 0;
    background: linear-gradient(to left, rgba(102, 126, 234, 0.3), transparent);
}

nav::after {
    left: 0;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.3), transparent);
}

/* ========================================
   بخش‌ها
   ======================================== */

.section { margin-bottom: 40px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.view-all {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* ========================================
   ویژگی‌ها
   ======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 15px;
    border-radius: 18px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.feature-card h3 { font-size: 14px; margin-bottom: 5px; font-weight: 600; }
.feature-card p { font-size: 11px; opacity: 0.85; }

/* ========================================
   دسته‌بندی‌ها
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.category-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 10px;
    border-radius: 18px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
}

.category-card i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.category-card h4 { font-size: 12px; font-weight: 500; }

/* ========================================
   محصولات
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.product-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding: 15px; }

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.out-of-stock {
    background: #d1d5db !important;
    cursor: not-allowed !important;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success), #059669);
}

/* ========================================
   پست‌ها
   ======================================== */

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

.post-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    transition: all 0.3s;
}

.post-card:hover { transform: translateY(-3px); }

.post-image { height: 180px; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 18px; }
.post-date { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.post-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.post-excerpt { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.post-link { color: var(--primary); font-size: 12px; font-weight: 600; }

/* ========================================
   فوتر
   ======================================== */

footer {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-col h4 { font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.75); font-size: 12px; }
.footer-col ul li a:hover { color: white; }
.footer-col p { color: rgba(255, 255, 255, 0.75); font-size: 12px; margin-bottom: 8px; }

.social-links { display: flex; gap: 8px; margin-top: 12px; }
.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ========================================
   فرم‌ها و کارت‌ها
   ======================================== */

.form-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2);
    max-width: 420px;
    margin: 30px auto;
}

.form-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 20px;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-dark); font-size: 13px; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(249, 250, 251, 0.8);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: white;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover { transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); }

.error {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
}

.success {
    background: rgba(209, 250, 229, 0.9);
    color: #047857;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    margin-bottom: 15px;
}

.card h3 { margin-bottom: 15px; color: var(--text-dark); font-weight: 600; font-size: 16px; }

/* ========================================
   ========================================
   MEDIA QUERIES - ریسپانسیو
   ========================================
   ======================================== */

/* تبلت */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .hero h2 { font-size: 32px; }
    .hero p { font-size: 15px; }
}

/* موبایل */
@media (max-width: 768px) {
    .container { padding: 12px; }
    
    /* Top Bar */
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .top-bar .container {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .top-bar .site-name {
        order: 1;
        width: 100%;
        text-align: center;
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .top-bar > .container > div:first-child {
        order: 2;
        flex: 1;
    }
    
    .top-bar > .container > div:last-child {
        order: 3;
        flex: 1;
        text-align: left;
    }
    
    .top-bar a {
        margin-right: 8px;
        font-size: 11px;
    }
    
    /* Header */
    .header-main {
        padding: 10px 0;
        gap: 10px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .logo-text h1 { font-size: 14px; }
    .logo-text p { font-size: 9px; }
    
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .search-box input {
        padding: 9px 40px 9px 12px;
        font-size: 12px;
    }
    
    .header-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .header-btn span:not(.cart-badge) {
        display: none;
    }
    
    /* Menu Toggle */
    .menu-toggle {
        display: flex;
    }
    
    /* Navigation */
    nav {
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 3px;
        padding: 10px;
    }
    
    .nav-menu a {
        padding: 10px 14px;
        font-size: 13px;
        width: 100%;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    /* Sections */
    .section { margin-bottom: 30px; }
    
    .section-title {
        font-size: 17px;
    }
    
    .view-all {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    /* Features */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-card {
        padding: 18px 10px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .feature-card h3 { font-size: 12px; }
    .feature-card p { font-size: 10px; }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 15px 8px;
    }
    
    .category-card i {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .category-card h4 { font-size: 11px; }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 34px;
        margin-bottom: 5px;
    }
    
    .price {
        font-size: 13px;
    }
    
    .btn-add-cart {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .post-image { height: 160px; }
    .post-content { padding: 15px; }
    .post-title { font-size: 14px; }
    
    /* Footer */
    footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-col h4 { font-size: 13px; }
    .footer-col p, .footer-col ul li a { font-size: 11px; }
    
    /* Forms */
    .form-box {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .form-box h2 { font-size: 18px; }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 11px;
        font-size: 13px;
    }
    
    /* Cards */
    .card {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 15px;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    table th, table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .container { padding: 10px; }
    
    .top-bar .site-name { font-size: 12px; }
    .top-bar a { font-size: 10px; margin-right: 6px; }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .logo-text h1 { font-size: 13px; }
    
    .header-btn {
        padding: 6px 8px;
    }
    
    .hero h2 { font-size: 22px; }
    .hero p { font-size: 13px; }
    
    .section-title { font-size: 15px; }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-image { height: 120px; }
    .product-info { padding: 8px; }
    .product-title { font-size: 11px; height: 30px; }
    .price { font-size: 12px; }
    .btn-add-cart { padding: 7px; font-size: 10px; }
    
    .form-box {
        padding: 20px 15px;
        margin: 15px 5px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image { height: 180px; }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 30px 0; }
    .hero h2 { font-size: 24px; }
}

/* ========================================
   انیمیشن‌ها
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card,
.category-card,
.feature-card,
.post-card {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================
   اسکرول‌بار سفارشی
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}