/* استایل‌های اصلی سایت */
:root {
    --primary-color: #4e73df;
    --secondary-color: #6f42c1;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Font applied to text elements only - see fonts.css for icon exceptions */
body {
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif !important;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fc;
}

.page-hero-section.gradient-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}
.page-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
}
.page-hero-section .breadcrumb a {
    color: rgba(255,255,255,0.85);
}
.hero-stats-card {
    background: rgba(15,23,42,0.35);
    border-radius: 18px;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(90px,1fr));
    gap: 1rem;
}
.hero-stats-card .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    display: block;
}
.hero-stats-card strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.hero-slider {
    background: transparent;
    color: white;
    padding: 0;
    text-align: center;
    margin-bottom: 0;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.product-image {
    max-height: 300px;
    object-fit: cover;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

/* استایل‌های پنل مدیریت */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--light-color);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* استایل‌های صفحه لاگین */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* استایل‌های واکنش‌گرا - به responsive.css منتقل شد */
/* این استایل‌ها در responsive.css به صورت کامل و حرفه‌ای پیاده‌سازی شده‌اند */

/* استایل‌های فرم */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a59c7;
    border-color: #3a59c7;
}

/* استایل‌های جدول */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

/* استایل‌های کارت */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

/* استایل‌های ناوبری */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-main {
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.header-main .container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.header-logo .logo-img {
    height: 50px;
    object-fit: contain;
}

.search-form .form-control {
    border-radius: 12px;
}

.search-form .btn {
    border-radius: 12px;
    min-width: 60px;
}

.header-actions .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 0.85rem;
    gap: 6px;
    transition: all 0.2s ease;
}

.header-actions .icon-btn i {
    font-size: 1.2rem;
}

.header-actions .icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.header-nav {
    position: relative;
    background: #fff;
}

.category-dropdown {
    position: relative;
}

.category-toggle {
    background: transparent;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #111;
}

.category-menu {
    position: absolute;
    top: 105%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.category-dropdown.open .category-menu {
    display: block;
}

.category-item {
    padding: 10px 18px;
    position: relative;
}

.category-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

.category-item:hover {
    background: #f5f7fb;
}

.category-submenu {
    position: absolute;
    top: 0;
    right: 100%;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
    padding: 15px;
    display: none;
    z-index: 1000;
}

.category-item:hover .category-submenu {
    display: grid;
    gap: 8px;
}

.category-submenu a {
    text-decoration: none;
    color: #111;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.category-submenu a:hover {
    background: #f1f5f9;
}

.header-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.header-links a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.header-links a:hover::after,
.header-links a.active::after {
    width: 100%;
}

.cart-count {
    font-size: 0.65rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

/* استایل‌های صفحه محصول */
.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-meta {
    border-top: 1px solid #e3e6f0;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 0;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.product-share {
    border-top: 1px solid #e3e6f0;
    padding-top: 1rem;
}

.product-description {
    background: white;
    padding: 2rem;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.description-content {
    line-height: 1.8;
    color: #5a5c69;
}