/* css/style.css */
/* اضافه کردن فونت وزیرمتن از CDN */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.8;
    color: #2d3436;
    background: #f8f9fa;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - مدرن و شیک */
header {
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5c 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    letter-spacing: -0.2px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.15);
}

.nav-menu a:hover::after {
    width: 60%;
}

/* Hero Section - جذاب‌تر */
.hero {
    background: linear-gradient(135deg, rgba(10,25,41,0.95) 0%, rgba(26,58,92,0.9) 100%), 
                url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?w=1920') center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102,126,234,0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    letter-spacing: -0.2px;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: #0a1929;
    font-weight: 900;
    letter-spacing: -0.8px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1.2rem auto;
    border-radius: 3px;
}

/* Products Grid - کارت‌های مدرن */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-image {
    height: 280px; /* ارتفاع ثابت */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* این شبه‌عنصر را حذف کنید یا شفاف‌تر کنید تا روی تصویر را نپوشاند */
.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%; /* کاهش ارتفاع overlay */
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
    pointer-events: none; /* جلوگیری از تداخل کلیک */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصویر کل کادر را پر کند بدون کشیدگی */
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    color: #bdc3c7;
    font-size: 1.2rem;
    font-weight: 500;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    color: #0a1929;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.product-info p {
    color: #636e72;
    line-height: 1.9;
    font-weight: 400;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    line-height: 2.2;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2d3436;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: #0a1929;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card p {
    color: #636e72;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5c 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Admin Styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease;
}

.login-box h2 {
    text-align: center;
    color: #0a1929;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 900;
}

.login-box h3 {
    text-align: center;
    color: #636e72;
    margin-bottom: 2.5rem;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Admin Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0a1929 0%, #1a3a5c 100%);
    color: white;
    padding: 2.5rem 0;
    position: fixed;
    height: 100vh;
    right: 0;
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    margin-bottom: 2rem;
}

.sidebar-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-weight: 300;
    opacity: 0.9;
    font-size: 0.95rem;
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav ul li {
    margin-bottom: 0.3rem;
}

.admin-sidebar nav ul li a {
    display: block;
    padding: 1rem 2rem;
    color: #e0e7ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-right: 3px solid transparent;
}

.admin-sidebar nav ul li a:hover,
.admin-sidebar nav ul li a.active {
    background: rgba(102, 126, 234, 0.15);
    border-right: 3px solid #667eea;
    color: white;
    padding-right: 2.5rem;
}

.logout-link {
    color: #ff6b6b !important;
    margin-top: 2.5rem;
    font-weight: 600 !important;
}

/* Main Admin Area */
.admin-main {
    flex: 1;
    margin-right: 280px;
    padding: 2.5rem;
    background: #f8f9fa;
}

.admin-main h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0a1929;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-card h3 {
    color: #636e72;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    color: #667eea;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Forms */
.admin-form, .login-form {
    max-width: 650px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #0a1929;
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

.form-group small {
    display: block;
    color: #636e72;
    margin-top: 0.8rem;
    font-weight: 400;
}

/* Buttons */
.btn-submit, .btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    letter-spacing: -0.2px;
}

.btn-submit:hover, .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-edit {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-edit:hover, .btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Table */
.products-list {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.products-list h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a1929;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th, td {
    padding: 1.2rem 1rem;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #0a1929;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: #f8f9fa;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Alerts */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b8daff;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
}

.no-data, .no-products {
    text-align: center;
    padding: 4rem;
    color: #bdc3c7;
    font-size: 1.2rem;
    font-weight: 500;
}

.current-image {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.current-image label {
    display: block;
    margin-bottom: 1rem;
    color: #0a1929;
    font-weight: 600;
}

.current-image img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* استایل صفحه جزئیات محصول */
.product-detail-main {
    padding: 3rem 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image.no-image {
    flex-direction: column;
    color: #999;
    font-size: 1.1rem;
}

.main-image.no-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.thumbnail.active {
    border-color: #667eea;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a1929;
}

.product-description-full {
    line-height: 2;
    color: #444;
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #5a6fd6;
}

/* استایل کارت محصول برای لینک */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    color: inherit;
}

/* استایل مدیریت تصاویر در ادمین */
.current-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.image-item {
    position: relative;
    width: 120px;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.image-item label {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    cursor: pointer;
}

/* همبرگر منو */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* دکمه سایدبار ادمین */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Overlay سایدبار */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    /* همبرگر منو */
    .menu-toggle {
        display: block;
    }

    nav .container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo p {
        font-size: 0.8rem;
    }

    /* هیرو */
    .hero {
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* سکشن‌ها */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    /* محصولات */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    /* تماس */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    /* درباره ما */
    .about-content {
        font-size: 1rem;
        line-height: 2;
    }

    /* لاگین */
    .login-box {
        padding: 1.5rem 1.2rem;
    }

    .login-box h2 {
        font-size: 1.4rem;
    }

    /* صفحه محصول */
    .product-detail-main {
        padding: 1.5rem 0;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.2rem;
    }

    .product-gallery {
        position: static;
    }

    .product-info-detail h1 {
        font-size: 1.4rem;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    /* ادمین - سایدبار */
    .sidebar-toggle {
        display: block;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        right: -280px;
        top: 0;
        padding: 2.5rem 0;
        transition: right 0.3s ease;
        z-index: 1050;
    }

    .admin-sidebar.active {
        right: 0;
    }

    .sidebar-header {
        padding: 0 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .admin-sidebar nav ul li a {
        padding: 0.7rem 1.5rem;
    }

    .admin-main {
        margin-right: 0;
        padding: 1.5rem;
    }

    .admin-main h1 {
        font-size: 1.5rem;
    }

    /* جدول ادمین */
    .products-list {
        padding: 1rem;
        overflow-x: auto;
    }

    .products-list table {
        min-width: 600px;
    }

    th, td {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }

    .product-thumb {
        width: 45px;
        height: 45px;
    }

    .btn-edit, .btn-delete {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* استات‌ها */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* فرم‌ها */
    .admin-form {
        margin: 1rem 0;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* فوتر */
    footer {
        padding: 1.5rem 0;
    }

    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1.2rem;
    }

    .product-detail {
        padding: 1rem;
    }

    .product-info-detail h1 {
        font-size: 1.2rem;
    }

    .thumbnail {
        width: 50px;
        height: 40px;
    }
}