/* ==================== متغیرها ==================== */
:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #0f3460;
    --light: #f1f2f6;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gray: #a4b0be;
    --success: #2ed573;
    --warning: #ffa502;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* ==================== پایه ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.5s ease forwards;
}

@keyframes pageLoad {
    to { opacity: 1; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { loading: lazy; will-change: transform; }
html { scroll-behavior: smooth; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== هدر ==================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* لوگو */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
}

.logo i {
    color: var(--secondary);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* منو */
nav ul {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--secondary);
    color: var(--white);
}

/* دکمه‌های سمت راست */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* دکمه مدیریت */
.admin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.admin-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    border-color: var(--secondary);
}

.admin-btn i { font-size: 1rem; }

/* سبد خرید - wrapper */
.cart-wrapper {
    position: relative;
    display: inline-flex;
}

/* دکمه سبد خرید */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--secondary), #d63050);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    white-space: nowrap;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.cart-btn i { font-size: 1rem; }

/* متن "سبد خرید" - همیشه نمایش */
.cart-label {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* نشانگر تعداد */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== ریسپانسیو تبلت ==================== */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
    }
    
    nav ul {
        justify-content: flex-start;
        padding-bottom: 5px;
    }
}

/* ==================== ریسپانسیو موبایل ==================== */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .logo span {
        display: none;
    }
    
    /* منو */
    nav {
        margin-top: 8px;
    }
    
    nav ul {
        gap: 3px;
    }
    
    nav ul li a {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    /* دکمه‌ها */
    .header-left {
        gap: 6px;
    }
    
    .admin-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        border-radius: 8px;
        gap: 4px;
    }
    
    .admin-btn i {
        font-size: 0.9rem;
    }
    
    .cart-wrapper {
        position: relative;
    }
    
    .cart-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        border-radius: 8px;
        gap: 4px;
    }
    
    .cart-btn i {
        font-size: 0.9rem;
    }
    
    .cart-badge {
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

/* ==================== ریسپانسیو خیلی کوچک ==================== */
@media (max-width: 400px) {
    .header-container {
        gap: 5px;
    }
    
    .logo span {
        display: none;
    }
    
    nav ul li a {
        padding: 5px 7px;
        font-size: 0.7rem;
    }
    
    .header-left {
        gap: 4px;
    }
    
    .admin-btn,
    .cart-btn {
        padding: 7px 9px;
        font-size: 0.65rem;
        border-radius: 7px;
        gap: 3px;
    }
    
    .admin-btn i,
    .cart-btn i {
        font-size: 0.85rem;
    }
    
    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* بقیه استایل‌های سایت... */
/* صفحه لاگین */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-box input:focus {
    outline: none;
    border-color: #0f3460;
}

.login-box button {
    width: 100%;
    padding: 15px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: #d63050;
}

.login-error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.back-home {
    display: inline-block;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-home:hover {
    color: #e94560;
}

/* ریسپانسیو لاگین */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-box h2 {
        font-size: 1.4rem;
    }
}
/* متغیرهای رنگی - رنگبندی مدرن */
:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #0f3460;
    --light: #f1f2f6;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gray: #a4b0be;
    --success: #2ed573;
    --warning: #ffa502;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== هدر ==================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}

.logo i {
    color: var(--secondary);
    font-size: 1.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

nav ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 25px;
    transition: var(--transition);
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 12px;
    transition: var(--transition);
}

.cart-icon:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.cart-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--success);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== اسلایدر ==================== */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.slide {
    position: relative;
    height: 450px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26,26,46,0.7) 0%, rgba(15,52,96,0.5) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn:hover {
    background: #d63050;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233,69,96,0.4);
}

/* ==================== عناوین ==================== */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 40px;
    color: var(--primary);
    position: relative;
    font-weight: 800;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 3px;
}

/* ==================== محصولات ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: var(--transition);
}

.product-image:hover .product-overlay {
    opacity: 1;
}

.view-details {
    padding: 10px 25px;
    background: var(--white);
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-image:hover .view-details {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
}

.product-price {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--secondary);
    transform: scale(1.02);
}

/* ==================== دسته‌بندی ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.category-card {
    background: var(--white);
    padding: 25px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    background: linear-gradient(to bottom, var(--white), #fff5f6);
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--accent);
    transition: var(--transition);
}

.category-card:hover i {
    color: var(--secondary);
    transform: scale(1.2);
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== نظرات ==================== */
.testimonials {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card .stars {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.testimonial-card h4 {
    color: var(--secondary);
    font-weight: 700;
}

/* ==================== فوتر ==================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 18px;
    color: var(--secondary);
    font-weight: 700;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.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: 0.9rem;
}

/* ==================== سبد خرید ==================== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: flex-end;
}

.cart-content {
    background: var(--white);
    width: 420px;
    max-width: 100%;
    height: 100%;
    padding: 25px;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light);
    margin-bottom: 20px;
}

.cart-header h2 {
    color: var(--primary);
    font-weight: 800;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.cart-items {
    min-height: 250px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--light);
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.cart-item-info .price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* دکمه‌های تعداد */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--accent);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--secondary);
}

.quantity-value {
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.cart-item-remove {
    color: var(--secondary);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 8px;
    display: inline-block;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
    text-decoration: underline;
}

.cart-footer {
    border-top: 2px solid var(--light);
    padding-top: 20px;
    margin-top: 20px;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.total-price span:last-child {
    color: var(--secondary);
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--success) 0%, #26de81 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(46,213,115,0.3);
}

/* ==================== فرم ثبت ==================== */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.checkout-content {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-checkout {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-checkout:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.checkout-content h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 800;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light);
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,52,96,0.1);
}

.form-group textarea {
    height: 90px;
    resize: none;
}

.order-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 22px;
}

.order-summary h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px dashed #ddd;
}

.order-total span:last-child {
    color: var(--secondary);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary) 0%, #d63050 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(233,69,96,0.3);
}

/* ==================== مدال محصول ==================== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2500;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 750px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--white);
    z-index: 10;
    background: rgba(0,0,0,0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.product-modal-body {
    display: flex;
}

.product-modal-body img {
    width: 50%;
    height: 420px;
    object-fit: cover;
}

.product-modal-info {
    padding: 35px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-modal-info h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.5rem;
}

.modal-product-price {
    font-size: 1.6rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 20px;
}

.modal-product-desc {
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ==================== صفحه هدر ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.85;
}

/* ==================== نوتیفیکیشن ==================== */
.notification {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--success) 0%, #26de81 100%);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(46,213,115,0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: linear-gradient(135deg, var(--secondary) 0%, #d63050 100%);
    box-shadow: 0 10px 30px rgba(233,69,96,0.3);
}

/* ==================== خالی ==================== */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-cart i {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-cart p {
    font-size: 1.1rem;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav ul {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-modal-body {
        flex-direction: column;
    }
    
    .product-modal-body img {
        width: 100%;
        height: 280px;
    }
    
    .product-modal-info {
        width: 100%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 5px;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .hero {
        height: 350px;
    }
    
    .slide {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 18px 10px;
    }
    
    .category-card i {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 0.85rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        width: 100%;
        padding: 20px;
    }
    
    .checkout-content {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info h3 {
        font-size: 0.8rem;
    }
    
    .btn-add-cart {
        padding: 10px;
        font-size: 0.8rem;
    }
}