/* ==========================
   تنظیمات پایه
=========================== */
@import url('fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.محفظه {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================
   نوار بالایی
=========================== */
.نوار-بالایی {
    background-color: #1a1a2e;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.نوار-بالایی .محفظه {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.سمت-راست span,
.سمت-چپ span {
    display: inline-block;
}

/* ==========================
   هدر اصلی
=========================== */
.هدر-اصلی {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.هدر-اصلی .محفظه {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.لوگو a {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.لوگو-پینا {
    background: linear-gradient(45deg, #e94560, #c73652);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.لوگو a:hover {
    opacity: 0.8;
}

/* ==========================
   جعبه جستجو - نسخه نهایی
=========================== */
.جعبه-جستجو {
    display: flex;
    flex: 1;
    max-width: 450px;
    min-width: 200px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: #fff;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.جعبه-جستجو:focus-within {
    border-color: #e94560;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.08);
}

.جعبه-جستجو input {
    flex: 1;
    padding: 11px 18px;
    border: none;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: transparent;
    color: #1a1a2e;
}

.جعبه-جستجو input::placeholder {
    color: #adb5bd;
}

.جعبه-جستجو button {
    padding: 11px 28px;
    background: linear-gradient(135deg, #e94560, #c73652);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.جعبه-جستجو button:hover {
    background: linear-gradient(135deg, #c73652, #a82845);
    transform: scale(1.03);
}

.جعبه-جستجو button:active {
    transform: scale(0.95);
}

/* ==========================
   واکنش‌گرا برای جستجو
=========================== */
@media (max-width: 768px) {
    .جعبه-جستجو {
        max-width: 180px;
        min-width: 120px;
    }
    
    .جعبه-جستجو input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .جعبه-جستجو button {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .جعبه-جستجو {
        max-width: 140px;
        min-width: 100px;
    }
    
    .جعبه-جستجو input {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .جعبه-جستجو button {
        padding: 6px 10px;
        font-size: 11px;
    }
}

.عملیات-هدر {
    display: flex;
    gap: 18px;
    align-items: center;
}

.عملیات-هدر a {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.عملیات-هدر a:hover {
    color: #e94560;
    border-bottom-color: #e94560;
}

/* ==========================
   منوی ناوبری
=========================== */
.ناوبری {
    background-color: #1a1a2e;
    padding: 0;
    position: sticky;
    top: 78px;
    z-index: 999;
}

.ناوبری ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.ناوبری ul li a {
    display: block;
    padding: 14px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}

.ناوبری ul li a:hover {
    background-color: #e94560;
    color: #fff;
}

/* ==========================
   بنر اصلی
=========================== */
.بنر-اصلی {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 30px;
}

.محتوای-بنر {
    flex: 1;
    min-width: 280px;
}

.محتوای-بنر h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.محتوای-بنر p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
}

.دکمه-محصولات {
    display: inline-block;
    padding: 14px 40px;
    background-color: #e94560;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.دکمه-محصولات:hover {
    background-color: #c73652;
    transform: scale(1.05);
}

.تصویر-بنر {
    flex: 1;
    min-width: 280px;
    text-align: center;
}


.تصویر-بنر img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ==========================
   عنوان بخش
=========================== */
.عنوان-بخش {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
    position: relative;
}

.عنوان-بخش::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #e94560;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================
   دسته‌بندی‌ها
=========================== */
.دسته‌بندی‌ها {
    padding: 40px 0 60px;
}

.محفظه-دسته‌بندی {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.کارت-دسته {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 20px;
}

.کارت-دسته:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.کارت-دسته img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.کارت-دسته h3 {
    margin: 15px 0 8px;
    font-size: 20px;
}

.کارت-دسته a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a1a2e;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.کارت-دسته a:hover {
    background-color: #e94560;
}

/* ==========================
   کارت‌های محصولات (مشترک)
=========================== */
.محفظه-محصولات,
.محفظه-جدید,
.محفظه-پرفروش {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.کارت-محصول,
.کارت-جدید,
.کارت-پرفروش {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 20px;
    position: relative;
}

.کارت-محصول:hover,
.کارت-جدید:hover,
.کارت-پرفروش:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.کارت-محصول img,
.کارت-جدید img,
.کارت-پرفروش img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.کارت-محصول h3,
.کارت-جدید h3,
.کارت-پرفروش h3 {
    margin: 12px 0 4px;
    font-size: 18px;
}

.قیمت {
    font-size: 20px;
    font-weight: 700;
    color: #e94560;
    margin: 6px 0 12px;
}

/* دکمه‌ها */
.دکمه-جزئیات {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a1a2e;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    transition: background-color 0.3s;
    margin-bottom: 8px;
}

.دکمه-جزئیات:hover {
    background-color: #e94560;
}

.دکمه-سبد {
    display: inline-block;
    padding: 10px 28px;
    background-color: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 4px;
}

.دکمه-سبد:hover {
    background-color: #c73652;
    transform: scale(1.05);
}

/* نشان جدید */
.نشان-جدید {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #e94560;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================
   بخش‌های محصولات
=========================== */
.محصولات-ویژه,
.محصولات-جدید,
.پرفروش‌ها {
    padding: 40px 0 60px;
}

.محصولات-جدید {
    background-color: #f1f3f5;
}

/* ==========================
   فوتر
=========================== */
.فوتر {
    background-color: #1a1a2e;
    color: #ddd;
    padding: 50px 0 20px;
    margin-top: 40px;
}

.محتوای-فوتر {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.بخش-فوتر h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}


.بخش-فوتر h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #e94560;
    margin-top: 8px;
}

.بخش-فوتر p,
.بخش-فوتر li {
    margin-bottom: 8px;
    font-size: 14px;
}

.بخش-فوتر ul li a {
    transition: color 0.3s, padding-right 0.3s;
}

.بخش-فوتر ul li a:hover {
    color: #e94560;
    padding-right: 6px;
}

.فوتر hr {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

.پایین-فوتر {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================
   واکنش‌گرا (Responsive)
=========================== */
@media (max-width: 768px) {
    .هدر-اصلی .محفظه {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .جعبه-جستجو {
        max-width: 100%;
    }

    .عملیات-هدر {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ناوبری ul {
        gap: 2px;
    }

    .ناوبری ul li a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .بنر-اصلی {
        padding: 30px 20px;
        text-align: center;
    }

    .محتوای-بنر h2 {
        font-size: 28px;
    }

    .محتوای-بنر p {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .عنوان-بخش {
        font-size: 26px;
    }

    .محفظه-محصولات,
    .محفظه-جدید,
    .محفظه-پرفروش,
    .محفظه-دسته‌بندی {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .نوار-بالایی .محفظه {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .محتوای-فوتر {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .بخش-فوتر h3::after {
        margin: 8px auto 0;
    }
}

@media (max-width: 480px) {
    .محتوای-بنر h2 {
        font-size: 22px;
    }

    .کارت-محصول img,
    .کارت-جدید img,
    .کارت-پرفروش img {
        height: 180px;
    }

    .عملیات-هدر a {
        font-size: 12px;
    }
}

/* ==========================
   دکمه همبرگر
=========================== */
.دکمه-همبرگر {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.دکمه-همبرگر span {
    display: block;
    width: 30px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.دکمه-همبرگر.فعال span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.دکمه-همبرگر.فعال span:nth-child(2) {
    opacity: 0;
}

.دکمه-همبرگر.فعال span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================
   منوی موبایل (Overlay)
=========================== */
.منوی-موبایل {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.منوی-موبایل.باز {
    right: 0;
}

.منوی-موبایل .بستن-منو {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a2e;
    background: none;
    border: none;
    font-family: inherit;
}

.منوی-موبایل ul {
    list-style: none;
    padding: 0;
}

.منوی-موبایل ul li {
    border-bottom: 1px solid #f1f3f5;
}

.منوی-موبایل ul li a {
    display: block;
    padding: 14px 0;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.منوی-موبایل ul li a:hover {
    color: #e94560;
}

.منوی-موبایل .منو-موبایل-پایین {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f5;
}

.منوی-موبایل .منو-موبایل-پایین a {
    display: block;
    padding: 10px 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.منوی-موبایل .منو-موبایل-پایین a:hover {
    color: #e94560;
}

/* ==========================
   اوری‌لی (پشت زمینه)
=========================== */
.اوری‌لی-منو {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.اوری‌لی-منو.نمایش {
    display: block;
}

/* ==========================
   واکنش‌گرا برای همبرگر
=========================== */
@media (max-width: 992px) {
    .دکمه-همبرگر {
        display: flex;
    }
    
    .ناوبری ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .منوی-موبایل {
        width: 85%;
        max-width: 300px;
        padding: 70px 20px 20px;
    }
}

@media (max-width: 480px) {
    .منوی-موبایل {
        width: 90%;
        max-width: 280px;
        padding: 60px 15px 15px;
    }
    
    .منوی-موبایل ul li a {
        font-size: 14px;
        padding: 12px 0;
    }
}