/* متغیرهای رنگی */
:root {
    --primary-color: #8B5CF6;      /* بنفش اصلی */
    --primary-dark: #7C3AED;       /* بنفش تیره */
    --primary-light: #A78BFA;      /* بنفش روشن */
    --secondary-color: #EC4899;    /* صورتی */
    --text-color: #1F2937;         /* خاکستری تیره */
    --text-light: #6B7280;         /* خاکستری روشن */
    --bg-color: #F9FAFB;           /* سفید کمرنگ */
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--white);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    position: relative;
    transition: var(--transition);
}

.header-actions a:hover {
    color: var(--primary-light);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* بخش هیرو */
.hero-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9)), url('https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* سکشن خدمات */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* سکشن پرفروش‌ها */
.best-sellers-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all .btn {
    padding: 12px 30px;
    font-size: 16px;
}

/* سکشن دسته‌بندی‌ها */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-count {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* سکشن درباره ما */
.about-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features li i {
    color: var(--primary-color);
    font-size: 18px;
}

/* سکشن تماس با ما */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* بخش محصولات */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.categories-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.best-seller {
    background: var(--secondary-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    margin: 15px 0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* صفحه جزئیات محصول */
.product-detail-section {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    position: relative;
}

.main-image {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.stock {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.in-stock {
    background: #D1FAE5;
    color: #065F46;
}

.out-of-stock {
    background: #FEE2E2;
    color: #991B1B;
}

.sales-count {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--white);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header {
    margin-bottom: 20px;
}

.product-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #F59E0B;
    font-size: 18px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 14px;
    margin-right: 5px;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
}

.price-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 25px;
    border-radius: 12px;
    color: var(--white);
}

.original-price {
    font-size: 20px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 10px;
}

.final-price {
    font-size: 32px;
    font-weight: 700;
}

.product-options h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-dark);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    outline: none;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-actions .btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
}

.product-info-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
}

.info-item span {
    color: var(--text-light);
    font-size: 14px;
}

/* بخش نظرات */
.comments-section {
    padding: 60px 0;
    background: var(--white);
}

.comments-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.comment-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.comment-user i {
    font-size: 24px;
    color: var(--primary-light);
}

.comment-rating {
    color: #F59E0B;
    font-size: 16px;
}

.comment-body p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-footer small {
    color: var(--text-light);
    font-size: 12px;
}

.empty-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-comments i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.add-comment {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.add-comment h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.rating-input {
    display: flex;
    gap: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #E5E7EB;
    font-size: 24px;
    transition: var(--transition);
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #F59E0B;
}

.rating-input input[type="radio"]:checked + label {
    color: #F59E0B;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--primary-color);
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    margin-left: 10px;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* استایل پیام‌ها */
.messages-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    direction: ltr;
}

.alert {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.5s 2.5s ease forwards;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #10B981;
    color: #065F46;
}

.alert-error {
    border-left-color: #EF4444;
    color: #991B1B;
}

.alert-info {
    border-left-color: #3B82F6;
    color: #1E40AF;
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* استایل منوی کاربر */
.user-menu {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-toggle span {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    background: #F9FAFB;
    color: #8B5CF6;
    padding-right: 25px;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
}

/* شبکه‌های اجتماعی در فوتر */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* لینک‌های پایین فوتر */
.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* =============== رفع قطعی مشکل دکمه ثبت‌نام در هدر =============== */
/* قانون نهایی با بالاترین اولویت - فقط برای دکمه ثبت‌نام در هدر */
a.btn.btn-sm.btn-primary[href*="signup"],
.header-actions a.btn.btn-sm.btn-primary[href*="signup"] {
    background: linear-gradient(135deg, #A78BFA, #9370DB) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    font-weight: 700 !important;
    padding: 6px 18px !important;
    border-radius: 12px !important;
    margin-left: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

a.btn.btn-sm.btn-primary[href*="signup"]:hover,
.header-actions a.btn.btn-sm.btn-primary[href*="signup"]:hover {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 7px 20px rgba(139, 92, 246, 0.55) !important;
    color: white !important;
}

a.btn.btn-sm.btn-primary[href*="signup"]:active,
.header-actions a.btn.btn-sm.btn-primary[href*="signup"]:active {
    transform: translateY(-1px) !important;
}

/* دکمه ورود - برای تکمیل ظاهر */
a.btn.btn-sm.btn-outline[href*="login"],
.header-actions a.btn.btn-sm.btn-outline[href*="login"] {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 6px 18px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    transition: all 0.3s !important;
}

a.btn.btn-sm.btn-outline[href*="login"]:hover,
.header-actions a.btn.btn-sm.btn-outline[href*="login"]:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4) !important;
}
/* =============== پایان رفع قطعی مشکل =============== */

/* ریسپانسیو */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 350px;
    }
    
    .header-actions .btn-sm {
        padding: 5px 12px !important;
        font-size: 12px !important;
        margin-left: 5px !important;
    }
    
    .header-actions .cart-btn,
    .header-actions .search-btn {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-filter {
        flex-direction: column;
    }

    .category-btn {
        width: 100%;
        text-align: center;
    }

    .product-actions {
        flex-direction: column;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* ریسپانسیو دکمه‌های هدر */
    a.btn.btn-sm.btn-primary[href*="signup"],
    .header-actions a.btn.btn-sm.btn-primary[href*="signup"] {
        padding: 8px 20px !important;
        font-size: 14px !important;
        margin-left: 6px !important;
    }
    
    a.btn.btn-sm.btn-outline[href*="login"],
    .header-actions a.btn.btn-sm.btn-outline[href*="login"] {
        padding: 8px 20px !important;
        font-size: 14px !important;
        margin-left: 6px !important;
    }
}
/* =============== رفع مشکل دکمه‌های هیرو صفحه خانه =============== */
/* استایل‌های اختصاصی برای دکمه‌های هیرو */
.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important; /* حذف خط زیر */
    border: none !important; /* حذف هر گونه مرز */
    box-shadow: none !important; /* حذف سایه */
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important; /* سبز جذاب */
    color: white !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 7px 20px rgba(16, 185, 129, 0.4) !important;
}

.hero-buttons .btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2) !important;
}

.hero-buttons .btn-outline:hover {
    background: white !important;
    color: #10B981 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 7px 15px rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
}

/* ریسپانسیو دکمه‌های هیرو */
@media (max-width: 768px) {
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        margin-bottom: 12px;
    }
}
/* =============== پایان رفع مشکل =============== */
/* =============== رفع مشکل دکمه‌های هیرو صفحه خانه =============== */
/* استایل‌های اختصاصی برای دکمه‌های هیرو */
.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6D28D9);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(139, 92, 246, 0.55);
    color: white;
}

.hero-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* ریسپانسیو دکمه‌های هیرو */
@media (max-width: 768px) {
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        margin-bottom: 12px;
    }
}
/* =============== پایان رفع مشکل =============== */

/* =============== رفع مشکل دکمه‌های سفارش‌های پرفروش =============== */
/* استایل‌های اختصاصی برای دکمه‌های سفارش‌های پرفروش */
.product-actions .btn {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.product-actions .btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.product-actions .btn-outline:hover {
    background: white !important;
    color: #10B981 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3) !important;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
}

.product-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4) !important;
}

/* ریسپانسیو برای دکمه‌های سفارش‌های پرفروش */
@media (max-width: 768px) {
    .product-actions .btn {
        padding: 10px 12px;
        font-size: 13px;
        width: 100%;
    }
    
    .product-actions .btn-outline,
    .product-actions .btn-primary {
        margin-bottom: 8px;
    }
}
/* =============== پایان رفع مشکل =============== */

/* =============== رفع کامل مشکل دکمه‌های ورود و ثبت‌نام در هدر =============== */
/* استایل‌های اختصاصی برای دکمه‌های ورود و ثبت‌نام در هدر */
.header-actions a.btn {
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 15px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}

/* دکمه ورود (آبی روشن / سفید با حاشیه) */
.header-actions a.btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.header-actions a.btn-outline:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3) !important;
}

/* دکمه ثبت‌نام (سبز جذاب - توصیه شده برای CTA اصلی) */
.header-actions a.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.header-actions a.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
    color: white !important;
}

/* حذف خط زیر (underlined) برای تمام لینک‌های دکمه در هدر */
.header-actions a.btn,
.header-actions a.btn:link,
.header-actions a.btn:visited {
    text-decoration: none !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .header-actions a.btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
        margin-left: 5px !important;
    }
    
    .header-actions a.btn-outline,
    .header-actions a.btn-primary {
        width: auto !important;
    }
}
/* =============== پایان رفع مشکل =============== */

/* =============== رفع کامل مشکل دکمه‌های ورود و ثبت‌نام در هدر =============== */
/* استایل‌های اختصاصی برای دکمه‌های ورود و ثبت‌نام در هدر */
.header-actions a.btn {
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 15px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}

/* دکمه ورود (آبی روشن / سفید با حاشیه) */
.header-actions a.btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.header-actions a.btn-outline:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3) !important;
}

/* دکمه ثبت‌نام (سبز جذاب - توصیه شده برای CTA اصلی) */
.header-actions a.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.header-actions a.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
    color: white !important;
}

/* حذف خط زیر (underlined) برای تمام لینک‌های دکمه در هدر */
.header-actions a.btn,
.header-actions a.btn:link,
.header-actions a.btn:visited {
    text-decoration: none !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .header-actions a.btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
        margin-left: 5px !important;
    }
    
    .header-actions a.btn-outline,
    .header-actions a.btn-primary {
        width: auto !important;
    }
}
/* =============== پایان رفع مشکل =============== */

/* =============== رفع مشکل فاصله و نوشته‌های زیر دکمه‌های محصولات =============== */
/* استایل‌های بهینه‌شده برای دکمه‌های محصولات */
.product-actions .btn {
    padding: 12px 24px; /* فضای بیشتر از دو طرف */
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important; /* ⭐ فاصله بزرگ‌تر بین آیکون و متن */
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* دکمه "مشاهده جزئیات" — بدون نوشته زیر، فقط آیکون + متن */
.product-actions .btn-outline {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: white !important;
}

.product-actions .btn-outline:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3) !important;
}

/* دکمه "افزودن به سبد خرید" — بدون نوشته زیر، فقط آیکون + متن */
.product-actions .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.product-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}

/* حذف هر گونه متن زیر دکمه (مثل "مشاهده جزئیات") — فقط آیکون + متن اصلی باقی بماند */
.product-actions .btn span {
    display: none !important; /* ⭐ حذف تمام متن‌های داخل <span> */
}

/* اگر متن مستقیماً بعد از آیکون هست (بدون span)، این را اضافه کن */
.product-actions .btn i + * {
    display: none !important;
}

/* ریسپانسیو — در موبایل فاصله کمی کمتر ولی همچنان مناسب */
@media (max-width: 768px) {
    .product-actions .btn {
        padding: 10px 20px;
        gap: 10px !important;
    }
}
/* =============== پایان رفع مشکل =============== */
/* =============== رفع مشکل دکمه‌های محصولات (btn-action) =============== */
/* استایل‌های بهینه‌شده برای دکمه‌های محصولات */
.product-actions .btn-action {
    padding: 12px 24px !important; /* فضای بیشتر از دو طرف */
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important; /* ⭐ فاصله بزرگ‌تر بین آیکون و متن */
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* دکمه "مشاهده جزئیات" — بدون نوشته زیر، فقط آیکون + متن */
.product-actions .btn-action.view-detail {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: white !important;
}

.product-actions .btn-action.view-detail:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3) !important;
}

/* دکمه "افزودن به سبد خرید" — بدون نوشته زیر، فقط آیکون + متن */
.product-actions .btn-action.add-to-cart:not(.disabled) {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.product-actions .btn-action.add-to-cart:not(.disabled):hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}


/* =============== استایل دکمه سبد خرید در صفحه جزئیات =============== */
/* دکمه اصلی سبد خرید در صفحه جزئیات */
.product-options .btn.btn-lg.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.product-options .btn.btn-lg.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
    color: white !important;
}

/* دکمه غیرفعال (ناموجود) */
.product-options .btn.btn-lg.btn-secondary {
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* حذف خط زیر برای تمام دکمه‌های سبد خرید */
.product-options .btn,
.product-options .btn:link,
.product-options .btn:visited {
    text-decoration: none !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .product-options .btn.btn-lg.btn-primary {
        padding: 12px 24px !important;
        font-size: 15px !important;
        width: 100% !important;
    }
}
/* =============== پایان استایل =============== */
/* =============== افزودن فاصله بالای دکمه سبد خرید در صفحه جزئیات =============== */
.product-options .btn.btn-lg.btn-primary {
    margin-top: 20px !important; /* ⭐ فاصله 20px از بالا */
}

/* برای دکمه غیرفعال هم همین فاصله */
.product-options .btn.btn-lg.btn-secondary {
    margin-top: 20px !important;
}

/* ریسپانسیو - در موبایل فاصله کمی بیشتر */
@media (max-width: 768px) {
    .product-options .btn.btn-lg.btn-primary,
    .product-options .btn.btn-lg.btn-secondary {
        margin-top: 25px !important;
    }
}
/* =============== پایان فاصله =============== */

/* دکمه تکمیل سفارش */
.btn-complete {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-complete:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-complete:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}
/* گالری تصاویر */
.product-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* =============== استایل دکمه مشاهده تمام محصولات در صفحه اصلی =============== */
.view-all .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

.view-all .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6D28D9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 7px 20px rgba(139, 92, 246, 0.45) !important;
    color: white !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .view-all .btn {
        padding: 12px 28px !important;
        font-size: 15px !important;
        width: 100% !important;
    }
}
/* =============== پایان استایل =============== */

/* =============== استایل دکمه‌های سبد خرید (بر اساس ساختار فعلی HTML) =============== */
/* دکمه "ادامه خرید" در بالا */
.cart-header .btn-secondary {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: white !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.cart-header .btn-secondary:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* دکمه‌های پایین سبد خرید */
.cart-actions .btn {
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* دکمه "ادامه فرایند پرداخت" */
.cart-actions .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.cart-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}

/* دکمه "ادامه خرید" در پایین */
.cart-actions .btn-secondary {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.cart-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.45) !important;
}

/* دکمه "مشاهده محصولات" وقتی سبد خالی است */
.empty-cart .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    width: auto !important;
}

.empty-cart .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6D28D9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45) !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cart-header .btn-secondary,
    .cart-actions .btn,
    .empty-cart .btn-primary {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
}
/* =============== پایان استایل سبد خرید =============== */


/* =============== استایل دکمه ارسال پیام در صفحه تماس با ما =============== */
.contact-form .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    width: 100% !important;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
    color: white !important;
}

.contact-form .btn-primary:disabled {
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =============== استایل دکمه ثبت تغییرات در پروفایل شخصی =============== */
.profile-form .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    width: auto !important;
}

.profile-form .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
    color: white !important;
}

.profile-form .btn-primary:disabled {
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =============== استایل جدید برای فیلد تعداد در سبد خرید =============== */
.cart-quantity input[type="number"] {
    /* حذف استایل پیش‌فرض مرورگر */
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    
    /* استایل دلخواه */
    width: 60px !important;
    padding: 8px !important;
    text-align: center !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: white !important;
    color: #1F2937 !important;
    transition: all 0.3s !important;
}

.cart-quantity input[type="number"]:focus {
    border-color: #8B5CF6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

/* حذف فلش‌های داخلی مرورگر */
.cart-quantity input[type="number"]::-webkit-inner-spin-button,
.cart-quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.cart-quantity input[type="number"]::-moz-inner-spin-button,
.cart-quantity input[type="number"]::-moz-outer-spin-button {
    -moz-appearance: none !important;
    margin: 0 !important;
}
/* =============== پایان استایل تعداد =============== */

/* =============== استایل دکمه مشاهده محصولات در صفحه سفارشات =============== */
.empty-state .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    width: auto !important;
}

.empty-state .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6D28D9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45) !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .empty-state .btn-primary {
        padding: 12px 28px !important;
        font-size: 15px !important;
        width: 100% !important;
    }
}
/* =============== پایان استایل سفارشات =============== */

/* =============== استایل دکمه ثبت نظر =============== */
.add-comment .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
    color: white !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    width: auto !important;
}

.add-comment .btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45) !important;
}

.add-comment .btn-primary:disabled {
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .add-comment .btn-primary {
        padding: 12px 24px !important;
        font-size: 15px !important;
        width: 100% !important;
    }
}
/* =============== پایان استایل ثبت نظر =============== */
/* ==================================================================
   ✅ FIX: بازگردانی آیکون‌های Font Awesome - فقط به انتهای فایل اضافه کن
   ================================================================== */

/* اطمینان از لود صحیح فونت آیکون‌ها */
.fas, .far, .fab, .fal {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* نمایش آیکون‌ها داخل لینک‌ها و دکمه‌ها */
.header-actions a i,
.product-actions .btn-action i,
.user-dropdown-list-inline li a i,
.dropdown-menu a i,
.nav-link i,
.cart-btn i,
.search-btn i,
.user-toggle-btn-inline i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    width: auto !important;
}

/* رنگ آیکون‌ها در هدر (سفید روی پس‌زمینه بنفش) */
.header-actions a i,
.cart-btn i,
.search-btn i,
.user-toggle-btn-inline i {
    color: white !important;
}

/* رنگ آیکون‌ها در منوی کشویی کاربر */
.user-dropdown-list-inline li a i {
    color: #9CA3AF !important;
    width: 16px !important;
    text-align: center !important;
}

.user-dropdown-list-inline li a:hover i {
    color: #8B5CF6 !important;
}

/* رنگ آیکون‌ها در دکمه‌های محصول */
.product-actions .btn-action i {
    color: white !important;
    font-size: 14px !important;
}

/* اطمینان از عدم مخفی‌شدن آیکون‌ها توسط قوانین قبلی */
.product-actions .btn span,
.product-actions .btn i + * {
    display: initial !important;
}

/* فاصله مناسب بین آیکون و متن */
.header-actions a i + span,
.user-toggle-btn-inline i + .usr-name,
.nav-link i + span {
    margin-right: 4px !important;
}
/* ==========================================================================
   ✅ سرچ باکس محصولات
   ========================================================================== */
.search-section {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-clear {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--danger);
}

.search-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6D28D9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* نتایج زنده جستجو */
.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-width: 700px;
    margin: 8px auto 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #F3F4F6;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.search-suggestion-item i {
    color: #9CA3AF;
    width: 16px;
    text-align: center;
}

.search-suggestion-item:hover i {
    color: var(--primary-color);
}

.search-suggestion-title {
    font-weight: 600;
    font-size: 14px;
}

.search-suggestion-category {
    font-size: 12px;
    color: var(--text-light);
    margin-right: auto;
}

/* پیام بدون نتیجه */
.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .search-suggestions {
        position: static;
        max-width: 100%;
        margin-top: 10px;
    }
}

/* === سایدبار === */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    color: white;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header .logo i {
    color: var(--primary-color, #8B5CF6);
    font-size: 24px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 10px 0;
}

.sidebar-nav .nav-title {
    padding: 15px 20px 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-right-color: var(--primary-color, #8B5CF6);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* === محتوای اصلی === */
.admin-content {
    margin-right: 260px;
    min-height: 100vh;
    background: var(--bg-color, #F9FAFB);
}

.admin-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.header-right .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.user-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.user-badge.superuser {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.user-badge.staff {
    background: #E0E7FF;
    color: #4338CA;
}

.admin-body {
    padding: 30px;
}

/* === پیام‌ها === */
.messages-container {
    margin-bottom: 25px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    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, #10B981, #059669);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-right: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* === اورلی سایدبار موبایل === */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* === ریسپانسیو === */
@media (max-width: 992px) {
    .sidebar-toggle { display: block; }
    
    .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-right: 0;
    }
    
    .admin-header {
        padding: 15px 20px;
    }
    
    .admin-body {
        padding: 20px;
    }
}

/* === هدر اقدامات === */
.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header-actions h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === جدول تصاویر === */
.table-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #F3F4F6;
    border-radius: 10px;
    color: #9CA3AF;
    font-size: 20px;
}

/* === فرم‌ها === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.full-width { grid-column: 1 / -1; }
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}
.help-text {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.current-image-preview {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
}

/* === حذف === */
.delete-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}
.delete-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 450px;
    width: 100%;
}
.delete-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}
.delete-preview img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

/* === ریسپانسیو === */
@media (max-width: 768px) {
    .admin-header-actions { flex-direction: column; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .delete-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
