:root {
    --primary-color: #2E8B57; /* Sea Green */
    --primary-light: #3CB371; /* Medium Sea Green */
    --primary-dark: #006400; /* Dark Green */
    --secondary-color: #F5F5F5; /* White Smoke */
    --text-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(46, 139, 87, 0.1);
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #ffffff;
    --body-color: #212529;
    --font-family-sans-serif: 'Vazirmatn', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Global Styles */
body {
    font-family: var(--font-family-sans-serif);
    color: var(--body-color);
    background-color: var(--body-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color) 100%);
    padding: 5rem 0;
    color: var(--dark-color);
}

.hero h1 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Features Section */
.feature-box {
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background-color: var(--light-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
}

footer a {
    color: var(--light-color);
}

footer a:hover {
    color: var(--primary-color-light);
}

/* Language Switcher */
.language-switcher .dropdown-item.active {
    background-color: var(--primary-color);
}

/* RTL Specific Styles */
html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Vazirmatn Font for Persian/Arabic */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Custom styles for product cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.15);
}

.discount-badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.current-price {
    color: var(--primary-dark);
    font-weight: bold;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
}

/* RTL specific adjustments */
.dropdown-menu {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
} 