/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');

:root {
    --primary-color: #e91e63; /* صورتی تیره برای لباس زیر */
    --secondary-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons a {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Hero & Categories --- */
/* --- Hero Slider Styles --- */


/* --- Hero Slider Styles --- */
.hero-slider {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 500px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* تغییر: نمایش محتوا در سمت راست و تراز به بالا */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-right: 40px; /* فاصله از سمت راست */
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* تغییر: حذف لایه تاریک (روتوش) */
.hero-slide::before {
    content: none; /* لایه تاریک حذف شد */
}

/* محتوای متنی */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: right; /* تراز متن به راست */
    color: var(--white);
    /* تغییر: حذف پدینگ زیاد و تنظیم جهت */
    padding: 0;
    max-width: 100%;
    animation: fadeInUp 1s ease-out;
    margin-top: 60px; /* فاصله از بالای اسلایدر */
}

.hero-content h1 {
    /* تغییر: کوچک شدن فونت */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: none; /* حذف سایه متن برای خوانایی بهتر بدون پس‌زمینه تیره */
    line-height: 1.4;
}

.hero-content p {
    /* تغییر: کوچک شدن فونت توضیحات */
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9; /* کمی شفافیت برای زیبایی */
}

/* دکمه داخل اسلایدر */
.btn-hero {
    display: inline-block;
    padding: 8px 20px; /* دکمه کمی کوچک‌تر */
    background: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* دکمه‌های چپ و راست (بزرگتر برای دسترسی راحت‌تر چون دکمه‌ها کمتر شده‌اند) */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover, .hero-next:hover {
    background: var(--primary-color);
}

/* نقاط نشانگر (نشانگرها را کمی به پایین‌تر منتقل می‌کنیم تا با متن تداخل نداشته باشند) */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active-dot {
    background: var(--primary-color);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-slider {
        width: 95%;
        height: 300px; /* ارتفاع کمتر در موبایل */
        margin: 1rem auto;
    }

    .hero-slide {
        padding-right: 20px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 1.4rem; /* در موبایل هم کوچک نگه داشته شود */
    }

    .hero-content p {
        font-size: 0.8rem;
    }
}


/* --- Categories Section (طراحی جدید و جذاب) --- */
/* --- Categories Section (طراحی دایره‌ای کوچک و فشرده) --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* تنظیم خودکار ستون‌ها بر اساس عرض */
    gap: 15px; /* فاصله کم بین کارت‌ها */
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* وسط چین کردن دایره‌ها در هر سلول */
}

.category-card {
    width: 120px; /* عرض ثابت 120 پیکسل */
    height: 120px; /* ارتفاع ثابت 120 پیکسل */
    background: var(--white);
    border-radius: 50%; /* کاملا دایره‌ای */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* سایه ملایم */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid #f0f0f0; /* حاشیه نازک */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0; /* حذف مارجین‌های اضافی */
}

.category-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
    border-color: var(--primary-color);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کامل دایره بدون دفرمه شدن */
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.2); /* زوم ملایم تصویر هنگام هاور */
}

/* استایل متن روی دایره */
.category-card h3 {
    position: absolute;
    bottom: 8px; /* فاصله کم از پایین دایره */
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px; /* پدینگ کم برای کوچک شدن کپسول */
    border-radius: 10px; /* گردی کپسول متن */
    margin: 0;
    font-size: 0.75rem; /* فونت کوچک‌تر */
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* جلوگیری از شکستن متن */
    z-index: 10;
    max-width: 90%; /* جلوگیری از بیرون زدگی متن از دایره */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* خط تزئینی زیر متن */
.category-card h3::after {
    content: '';
    display: block;
    width: 10px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px auto 0;
    border-radius: 3px;
}


/* --- ریسپانسیو --- */

/* تبلت */
@media (max-width: 992px) {
    .categories-grid {
        /* در تبلت هم 120px باقی می‌ماند اما تعداد ستون‌ها خودکار تنظیم می‌شود */
        gap: 10px;
    }

    .category-card {
        width: 120px;
        height: 120px;
    }
}

/* موبایل */
@media (max-width: 676px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 3 ستون در موبایل برای جا شدن دایره‌های کوچک */
        gap: 8px; /* فاصله خیلی کم */
        padding: 1rem 2%;
    }

    .category-card {
        width: 150px; /* در موبایل کمی کوچک‌تر */
        height: 150px;
    }

    .category-card h3 {
        font-size: 0.65rem;
        padding: 1px 5px;
        bottom: 5px;
    }
}

/* --- ریسپانسیو دسته‌بندی‌ها --- */


/* --- Products Section --- */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--secondary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 5% 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-info {
    padding: 10px 0;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin: 5px 0;
}

.btn-add {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: var(--primary-color);
}

/* --- Forms (Login/Register) --- */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 5%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* --- Shoghtag Angiz Slider Styles --- */
.shokhmangiz-section {
    background: linear-gradient(45deg, #ff0055, #ff4081);
    padding: 3rem 0;
    color: white;
    overflow: hidden; /* مخفی کردن اسکرول افقی اضافه */
}

.shokhmangiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 20px;
}

.shokhmangiz-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-badge {
    background: white;
    color: #ff0055;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: white;
    color: #ff0055;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth; /* حرکت نرم */
    padding-bottom: 20px;
    /* مخفی کردن نوار اسکرول در مرورگرهای مدرن */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-container {
    display: flex;
    gap: 20px;
    padding: 0 5%;
    width: max-content; /* عرض محتوا بر اساس محتوا تنظیم شود */
}

/* استایل کارت محصول داخل اسلایدر */
.shokhmangiz-card {
    background: white;
    color: #333;
    min-width: 250px;
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.shokhmangiz-card:hover {
    transform: scale(1.02);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.shokhmangiz-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shokhmangiz-info {
    padding: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.new-price {
    color: #ff0055;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-view-offer {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-view-offer:hover {
    background: #555;
}

@media (max-width: 768px) {
    /* تغییر: در موبایل دقیقاً ۲ ستون داشته باشیم */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* فاصله خیلی کم برای جا شدن */
        padding: 1rem 2%; /* حاشیه کمتر برای استفاده از فضای بیشتر */
    }

    .category-card img {
        height: 120px; /* ارتفاع عکس در موبایل کمتر */
    }

    .category-card h3 {
        font-size: 0.8rem; /* فونت بسیار کوچک در موبایل */
        padding: 8px;
    }
}

/* --- استایل‌های جدید برای هدر و آیکون‌ها --- */

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* فاصله بین آیکون سبد و دکمه‌های ورود */
}

.icon-link {
    font-size: 1.2rem;
    color: var(--secondary-color);
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.icon-link:hover {
    color: var(--primary-color);
}

/* نشانگر تعداد سبد خرید (دایره قرمز روی آیکون) */
.cart-count {
    position: absolute;
    top: -8px;
    left: -8px; /* در حالت RTL سمت چپ آیکون قرار می‌گیرد */
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* استایل دکمه‌های ورود و ثبت نام با آیکون */
.btn-login i {
    margin-left: 5px;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 10px;
    }
}

/* --- استایل‌های فوتر و نمادها --- */

.footer-section.trust-badges {
    text-align: center; /* در دسکتاپ وسط چین */
}

.badges-container {
    display: flex;
    justify-content: center; /* وسط چین کردن آیکون‌ها */
    gap: 15px;
    flex-wrap: wrap;
}

.badges-container a img {
    transition: transform 0.3s ease;
    filter: grayscale(20%); /* کمی خاکستری برای زیبایی */
}

.badges-container a img:hover {
    transform: scale(1.1); /* بزرگ شدن هنگام هاور */
    filter: grayscale(0%); /* بازگشت به رنگ اصلی */
}

/* تنظیمات ریسپانسیو برای فوتر */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .badges-container {
        justify-content: center;
    }
}

/* --- استایل‌های صفحه آرشیو (Archive Page) --- */

.archive-layout {
    display: flex;
    gap: 10px;
    padding: 0 5% 3rem;
    max-width: 1200px;
    margin: 5px auto;
}

/* سایدبار */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-widget h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.filter-widget ul {
    list-style: none;
}

.filter-widget ul li {
    margin-bottom: 10px;
}

.filter-widget ul li a {
    color: var(--text-color);
    transition: color 0.3s;
}

.filter-widget ul li a:hover {
    color: var(--primary-color);
}

/* استایل اسلایدر قیمت */
.price-range input {
    width: 100%;
    accent-color: var(--primary-color);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
    color: #666;
}

/* استایل چک‌باکس سایز */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* محتوای اصلی آرشیو */
.archive-content {
    flex-grow: 1;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sort-options select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Vazirmatn', sans-serif;
    margin-right: 10px;
}

/* صفحه‌بندی (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ریسپانسیو برای آرشیو */
@media (max-width: 992px) {
    .archive-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 98%;
    }

    .filter-widget {
        margin-bottom: 15px;
    }
}

/* --- استایل نوار جستجو (Search Bar) --- */

.search-box {
    position: relative;
    width: 300px; /* عرض نوار جستجو */
    margin-left: 20px; /* فاصله از لوگو */
}

.search-box form {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px; /* گوشه‌های کاملاً گرد */
    padding: 5px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* وقتی روی نوار کلیک می‌شود، حاشیه رنگی شود */
.search-box form:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 10px 5px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 1.1rem;
    padding: 8px;
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--primary-color);
}

/* --- تنظیمات ریسپانسیو برای هدر و جستجو --- */
@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-box {
        width: 100%; /* در تبلت تمام عرض را بگیرد */
        order: 1; /* زیر لوگو برود */
        margin: 0;
    }

    .logo {
        order: 0; /* لوگو بالا بماند */
    }

    .nav-links {
        order: 2;
    }

    .auth-buttons {
        order: 3;
    }
}

@media (max-width: 576px) {
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
}

/* --- استایل‌های صفحه جزئیات محصول (Product Details) --- */

.product-details-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-col img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-info-col {
    flex: 1;
}

.product-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

.product-short-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ویژگی‌های کلیدی */
.product-features {
    background: #fff0f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.feature-item i {
    color: var(--primary-color);
}

/* دکمه‌های اقدام */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-add {
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    border: none;
    transition: all 0.3s;
}

.btn-cart {
    background: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-cart:hover {
    background: #c2185b;
}

.btn-wishlist {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-wishlist:hover {
    background: var(--secondary-color);
    color: white;
}

.size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.size-selector select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Vazirmatn', sans-serif;
}

/* بخش اطلاعات اضافی و تب‌ها */
.info-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    color: #777;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

/* ریسپانسیو جزئیات محصول */
@media (max-width: 768px) {
    .product-details-grid {
        flex-direction: column;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add {
        width: 100%;
    }
}

/* --- استایل‌های صفحه تماس با ما --- */
.contact-page-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-layout {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* بخش اطلاعات تماس */
.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.1);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-card h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* لینک‌های شبکه اجتماعی */
.social-links {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-links h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon.instagram:hover {
    background: #e1306c;
    color: white;
}

.social-icon.telegram:hover {
    background: #0088cc;
    color: white;
}

.social-icon.whatsapp:hover {
    background: #25d366;
    color: white;
}

/* بخش فرم تماس */
.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* --- ریسپانسیو تماس با ما --- */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }

    .contact-info, .contact-form-wrapper {
        width: 100%;
    }
}

.product-colors {
    margin: 20px 0;
}

.color-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-item {

    border: 1px solid #ddd;

    background: #fff;

    padding: 10px 18px;

    border-radius: 8px;

    cursor: pointer;

    transition: .3s;
}

.color-item:hover {

    border-color: #ff4081;

    color: #ff4081;

}

.product-sizes {
    margin-top: 20px;
}

#sizeContainer {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}

.size-item {

    border: 1px solid #ccc;

    background: white;

    padding: 8px 18px;

    border-radius: 8px;

    cursor: pointer;

    transition: .3s;

}

.size-item:hover {

    border-color: #ff4081;

    color: #ff4081;

}


/* استایل‌های اختصاصی صفحه تایید کد */
.verify-container {
    max-width: 450px;
    margin: 80px auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.verify-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.verify-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.verify-desc {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* استایل ورودی‌های کد ۶ رقمی */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    direction: ltr; /* برای ترتیب صحیح اعداد */
}

.code-inputs input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.code-inputs input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.btn-verify {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-verify:hover {
    background: #c2185b;
}

.resend-link {
    display: block;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.resend-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.resend-link a:hover {
    text-decoration: underline;
}

.timer {
    font-weight: bold;
    color: var(--secondary-color);
}


@media (max-width: 576px) {
    .verify-container {
        margin: 40px 20px;
        padding: 1.5rem;
    }

    .code-inputs input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/*==========================
    Forgot Password
==========================*/

.custom-input {
    width: 100%;
    height: 55px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    padding: 0 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    transition: .3s;
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, .12);
}

.form-group {
    margin-bottom: 20px;
}

.text-danger {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #dc3545;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    transition: .3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, .15);
}

.text-danger {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: #dc3545;
}

.disabled-link {
    pointer-events: none;
    opacity: .5;
}

/* --- استایل‌های صفحه پروفایل --- */

.profile-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Vazirmatn', sans-serif;
}

/* --- سایدبار --- */
.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px; /* فاصله از بالای صفحه هنگام اسکرول */
}

.user-profile-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 3px;
    background: white;
}

.user-profile-header h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.user-profile-header p {
    font-size: 0.9rem;
    color: #888;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.profile-nav ul li a:hover {
    background-color: #fff0f5;
    color: var(--primary-color);
}

.profile-nav ul li a.active {
    background-color: #fff0f5;
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: bold;
}

.profile-nav ul li a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* --- محتوای اصلی --- */
.profile-content {
    flex-grow: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-form-container {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
    text-align: left; /* دکمه در سمت چپ */
}

.btn-save {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    background: #c2185b;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .user-profile-header {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: right;
        padding: 20px;
    }

    .profile-avatar {
        margin-bottom: 0;
        width: 80px;
        height: 80px;
    }

    .profile-nav ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 10px;
    }

    .profile-nav ul li a {
        padding: 15px;
        border-right: none;
        border-bottom: 3px solid transparent;
    }

    .profile-nav ul li a.active {
        border-right-color: transparent;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/*===============================
    User Dashboard
================================*/

.profile-sidebar,
.user-account-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    overflow: hidden;
    margin-bottom: 30px;
}

/*===============================
    Sidebar Header
================================*/

.user-profile-header {
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(135deg, #0d6efd, #4f8dfd);
    color: #fff;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .3);
    margin-bottom: 15px;
    transition: .3s;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.user-profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.user-profile-header p {
    margin: 0;
    font-size: 14px;
    opacity: .9;
}

/*===============================
    Sidebar Menu
================================*/

.profile-nav ul {
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.profile-nav li {
    margin: 0;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #444;
    text-decoration: none;
    transition: .3s;
    font-size: 15px;
    font-weight: 500;
    border-right: 4px solid transparent;
}

.profile-nav a i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.profile-nav a:hover {
    background: #f8f9fa;
    color: #0d6efd;
    border-right-color: #0d6efd;
}

.profile-nav a.active {
    background: #eef5ff;
    color: #0d6efd;
    border-right-color: #0d6efd;
    font-weight: 700;
}

/*===============================
    User Information
================================*/

.user-account-content header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.user-account-content header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.inner {
    padding: 25px;
}

.account-information h3 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #333;
}

.account-information ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-information li {
    display: flex;
    align-items: center;
    padding: 18px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: .3s;
}

.account-information li:hover {
    background: #eef5ff;
    transform: translateX(-4px);
}

.account-information li i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    margin-left: 15px;
    font-size: 18px;
}

/*===============================
    Responsive
================================*/

@media (max-width: 768px) {

    .profile-nav a {
        padding: 12px 18px;
        font-size: 14px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .user-profile-header h3 {
        font-size: 18px;
    }

    .account-information li {
        font-size: 14px;
        padding: 15px;
    }

}

.profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-sidebar-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.profile-content-wrapper {
    flex: 1;
}

@media (max-width: 992px) {

    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar-wrapper,
    .profile-content-wrapper {
        width: 100%;
    }


    /* --- استایل‌های گالری محصول --- */
    .product-gallery-container {
        margin-bottom: 30px;
    }

    .main-image-wrapper {
        position: relative;
        width: 100%;
        height: 500px; /* ارتفاع ثابت برای جلوگیری از پرش صفحه */
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .main-image {
        width: 100%;
        height: 100%;
        object-fit: contain; /* عکس کامل دیده شود */
        transition: transform 0.3s ease;
        cursor: zoom-in;
    }

    .main-image:hover {
        transform: scale(1.05); /* زوم جزئی هنگام هاور */
    }

    .discount-badge-large {
        position: absolute;
        top: 20px;
        left: 20px;
        background: #ff0000;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
        font-size: 1rem;
        z-index: 10;
    }

    .thumbnail-wrapper {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: thin; /* اسکرول بار نازک */
    }

    .thumbnail-item {
        min-width: 80px;
        height: 80px;
        border: 2px solid transparent;
        border-radius: 8px;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0.7;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnail-item:hover {
        opacity: 1;
        border-color: #ccc;
    }

    .thumbnail-item.active {
        border-color: var(--primary-color);
        opacity: 1;
        box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
    }

    /* ریسپانسیو برای موبایل */
    @media (max-width: 768px) {
        .main-image-wrapper {
            height: 350px;
        }

        .thumbnail-wrapper {
            justify-content: flex-start; /* اسکرول افقی در موبایل */
        }
    }

}
