/* ============================================
   استایل‌های عمومی و مدرن
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --dark: #1f2937;
    --light: #f9fafb;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    direction: rtl;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark);
    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;
    color: var(--muted);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Utilities
   ============================================ */

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border: 1px solid #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-light {
    background-color: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background-color: #f3f4f6;
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ============================================
   Top Bar
   ============================================ */

.top-bar {
    font-size: 13px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.top-bar a:hover {
    color: white;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
}

.dropdown-item {
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 50%;
    top: -8px !important;
    left: -8px !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Feature Box
   ============================================ */

.feature-box {
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Category Card
   ============================================ */

.category-card {
    text-decoration: none;
}

.category-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.category-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.category-box:hover::before {
    transform: scale(1.2);
}

.category-box h6 {
    color: white;
    position: relative;
    z-index: 1;
}

/* ============================================
   Product Card
   ============================================ */

.product-card {
    border: none;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl) !important;
    transform: translateY(-8px);
}

.product-card img {
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card-modern .card-body {
    padding: 15px;
}

.product-card-modern .card-footer {
    padding: 10px 15px;
}

/* ============================================
   Forms
   ============================================ */

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 15px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 1px solid var(--border);
    border-radius: 0 !important;
    padding: 15px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    border-top: 1px solid var(--border);
    background-color: transparent;
    padding: 15px;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border: none;
    border-radius: var(--radius);
    padding: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #cffafe;
    color: #0c4a6e;
    border-left: 4px solid var(--info);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-section h5 {
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-right: 5px;
}

.footer-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial-card {
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ============================================
   Sticky Elements
   ============================================ */

.sticky-top {
    top: 100px;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    margin: 30px 0;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

/* ============================================
   List Group
   ============================================ */

.list-group-item {
    border: 1px solid var(--border);
    padding: 12px 15px;
    transition: var(--transition);
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }

    .hero-section {
        min-height: 300px;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .hero-section i {
        font-size: 100px !important;
    }

    .sticky-top {
        position: relative;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-section {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ============================================
   Animation Effects
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.cursor-pointer {
    cursor: pointer;
}

/* ============================================
   Hover Effects
   ============================================ */

.hover-shadow:hover {
    box-shadow: var(--shadow-xl) !important;
}

.hover-text-primary:hover {
    color: var(--primary) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background-color: white;
    }

    .navbar,
    .footer,
    .btn {
        display: none;
    }
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2d6b;
    border-left: 4px solid var(--primary-color);
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.navbar-brand {
    flex: 1;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex: 2;
    justify-content: flex-start;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   Products Grid
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ============================================
   Products Page
   ============================================ */

.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.sidebar {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    height: fit-content;
    box-shadow: var(--shadow);
}

.filter-box {
    margin-bottom: 30px;
}

.filter-box h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px;
    color: #333;
    border-right: 3px solid transparent;
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    border-right-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--light-color);
}

.products-main h2 {
    margin-bottom: 20px;
    color: #333;
}

.no-products,
.no-orders,
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: var(--radius);
    color: #666;
}

.no-products p,
.no-orders p,
.empty-cart p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.product-image-large {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: #f0f0f0;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-large h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #fbbf24;
}

.stars i {
    margin-left: 3px;
}

.product-description-large {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-price-large {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-quantity input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.in-stock {
    color: var(--secondary-color);
    margin-top: 10px;
}

/* ============================================
   Cart Page
   ============================================ */

.cart-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table thead {
    background-color: var(--light-color);
}

.cart-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cart-summary {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================
   Checkout Page
   ============================================ */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.checkout-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    margin-bottom: 20px;
}

.checkout-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.checkout-summary ul {
    list-style: none;
}

.checkout-summary li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================
   Login & Register Pages
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    margin: 40px 0;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-login {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer a {
    font-weight: 600;
}

/* ============================================
   Reviews Section
   ============================================ */

.reviews-section {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.review-form {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.review-form h3 {
    margin-bottom: 15px;
}

.reviews-list {
    margin-top: 30px;
}

.review-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-stars {
    color: #fbbf24;
}

.review-item p {
    margin: 10px 0;
}

.review-item small {
    color: #999;
}

/* ============================================
   Admin Panel
   ============================================ */

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.admin-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-card h3 {
    color: #666;
    margin-bottom: 10px;
}

.admin-card .stat {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #d1d5db;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-page {
    margin: 40px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #333;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-page {
    max-width: 600px;
    margin: 40px auto;
}

.profile-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================
   Orders Page
   ============================================ */

.orders-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orders-table thead {
    background-color: var(--light-color);
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    font-weight: 600;
    color: #333;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #7f1d1d;
}

/* ============================================
   واکنش‌گرایی - Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }

    .nav-menu {
        width: 100%;
        margin-top: 10px;
        flex-direction: column;
        gap: 5px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--light-color);
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .products-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-column: 1;
        height: auto;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-image-large {
        height: 300px;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .product-info-large h1 {
        font-size: 24px;
    }

    .cart-table {
        font-size: 14px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item img {
        width: 100%;
    }

    .cart-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar-brand {
        flex: 0;
    }

    .logo {
        font-size: 18px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-link {
        padding: 8px 10px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 20px;
    }

    .login-box {
        padding: 20px;
    }

    .checkout-summary {
        margin: 15px 0;
        padding: 15px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item i {
        font-size: 20px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Background Image Enhancements
   ============================================ */

section[style*="background"] {
    background-attachment: fixed;
    background-size: cover !important;
    position: relative;
}

section[style*="background"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 0;
}

/* ============================================
   Animations
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section with Background */
.hero-section {
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(102,126,234,0.1));
    pointer-events: none;
}

.hero-section .row > div {
    position: relative;
    z-index: 2;
}

/* Animate Hero Text */
.hero-section h1 {
    animation: slideInLeft 0.8s ease-out;
}

.hero-section .lead {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInScale 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Feature Boxes Enhancement */
.feature-box {
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15) !important;
}

.feature-box div:first-child {
    animation: float 3s ease-in-out infinite;
}

/* Category Cards Enhancement */
.category-box {
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out;
}

.category-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2) !important;
}

.category-card:hover .category-box {
    border-color: #667eea !important;
}

/* Product Card Improvements */
.product-card-modern {
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out;
    overflow: hidden;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.product-card-modern .position-relative::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(-45deg);
}

/* Testimonial Cards */
.testimonial-card {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-card::before {
    content: '💬';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
}

/* Button Enhancements */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.btn-light:hover {
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Smooth Transitions */
.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Glassmorphism Effect */
.glass-effect {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Background Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Fade In on Scroll */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
