/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4757;
    --primary-dark: #e84118;
    --secondary-color: #3742fa;
    --accent-color: #ff9f1a;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --gray-color: #747d8c;
    --success-color: #2ed573;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --info-color: #1e90ff;
    
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* تایپوگرافی */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2c34c8;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* هدر */
.header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-contact a {
    color: white;
    font-weight: 600;
}

.support-contact i {
    margin-left: 8px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-register {
    color: white;
    font-size: 14px;
}

.btn-login:hover, .btn-register:hover {
    color: var(--accent-color);
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-size: 24px;
    font-weight: 800;
}

.logo img {
    max-height: 50px;
}

.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 18px;
    width: 40px;
    height: 100%;
}

.cart-wrapper {
    position: relative;
}

.cart-icon {
    position: relative;
    display: inline-block;
    color: var(--dark-color);
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-preview {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    display: none;
    z-index: 100;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-left: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-remove {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
    border-top: 2px solid var(--light-color);
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 15px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn-view-cart, .btn-checkout {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ناوبری اصلی */
.main-nav {
    background-color: var(--dark-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.nav-list > li > a i {
    margin-left: 8px;
}

.nav-list > li.dropdown > a i.fa-chevron-down {
    font-size: 12px;
}

.nav-list > li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-list > li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list > li.dropdown .dropdown-menu a {
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-color);
}

.nav-list > li.dropdown .dropdown-menu a:hover {
    background-color: var(--light-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

/* منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--dark-color);
    color: white;
}

.mobile-logo img {
    max-height: 40px;
}

.mobile-logo h2 {
    color: white;
    margin: 0;
    font-size: 20px;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-color);
    font-weight: 600;
}

.mobile-nav li a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.mobile-nav li a i.fa-chevron-down {
    margin-right: auto;
    margin-left: 0;
    transition: var(--transition);
}

.mobile-nav li a.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background-color: #f8f9fa;
}

.mobile-submenu a {
    padding-right: 40px !important;
    font-size: 14px;
    font-weight: 500 !important;
}

.mobile-contact {
    padding: 20px;
    border-top: 1px solid var(--light-color);
}

.mobile-contact h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.support-phone {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
}

.support-phone i {
    margin-left: 10px;
}

/* محتوای اصلی */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 30px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 60px;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: left;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* بخش دسته‌بندی‌ها */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.category-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
}

.category-link i {
    margin-right: 8px;
    transition: var(--transition);
}

.category-link:hover i {
    transform: translateX(-5px);
}

/* محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.discount-badge {
    background-color: var(--danger-color);
    color: white;
}

.product-image {
    height: 200px;
    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);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.product-name a {
    color: var(--dark-color);
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-category {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-color);
    margin-left: 10px;
    font-size: 14px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-rating {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.product-rating .filled {
    color: var(--accent-color);
}

.rating-count {
    color: var(--gray-color);
    font-size: 14px;
    margin-right: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-to-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
}

.btn-view-details {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-view-details:hover {
    background-color: var(--dark-color);
    color: white;
}

/* بخش طراحی سفارشی */
.custom-design-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 80px 0;
    margin: 60px 0;
    border-radius: var(--border-radius);
}

.custom-design-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.custom-design-info {
    flex: 1;
}

.custom-design-info .section-title {
    color: white;
}

.custom-design-info .section-title::after {
    background-color: white;
}

.section-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.design-features {
    list-style: none;
    margin-bottom: 30px;
}

.design-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.design-features li i {
    margin-left: 10px;
    color: var(--accent-color);
}

.custom-design-image {
    flex: 1;
    text-align: left;
}

.custom-design-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* نظرات مشتریان */
.testimonials-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin: 60px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    color: var(--light-color);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--gray-color);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-role {
    color: var(--gray-color);
    font-size: 14px;
}

/* بخش مزایا */
.benefits-section {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.benefit-description {
    color: var(--gray-color);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a i {
    margin-right: 8px;
    font-size: 12px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-left: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods h5 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.payment-icons {
    display: flex;
    gap: 20px;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.trust-badges {
    display: flex;
    gap: 30px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* پیام‌های فلش */
.flash-message {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-message.success {
    background-color: var(--success-color);
    color: white;
}

.flash-message.error {
    background-color: var(--danger-color);
    color: white;
}

.close-flash {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* دکمه اسکرول به بالا */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    transition: var(--transition);
}

#scrollToTop:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* وضعیت‌های سفارش */
.order-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-processing {
    background-color: var(--info-color);
    color: white;
}

.status-shipped {
    background-color: var(--primary-color);
    color: white;
}

.status-delivered {
    background-color: var(--success-color);
    color: white;
}

.status-cancelled {
    background-color: var(--danger-color);
    color: white;
}

/* آپلود عکس */
.upload-area {
    border: 2px dashed var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 71, 87, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.upload-preview {
    display: none;
    margin-top: 20px;
}

.upload-preview img {
    max-width: 200px;
    border-radius: var(--border-radius);
}

/* گزینه‌های انتخاب */
.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.option-item {
    position: relative;
}

.option-input {
    display: none;
}

.option-label {
    display: block;
    padding: 10px 20px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 100px;
}

.option-input:checked + .option-label {
    border-color: var(--primary-color);
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* مودال سفارش */
.order-options {
    margin: 20px 0;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.size-options, .color-options, .flasher-options, .power-options {
    margin-bottom: 25px;
}

/* قیمت نهایی */
.final-price {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.final-price h4 {
    margin: 0;
    color: var(--dark-color);
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

/* مودال باز */
body.modal-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}