/* ========================================
   Project: Armin Besharat Sabz Fardad (ABSF)
   Description: Main Stylesheet - RTL Ready
   ======================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ====== NAVBAR ====== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.navbar-brand img {
    height: 45px;
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 8px;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ====== CATEGORY CARDS ====== */
.category-card {
    transition: var(--transition);
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ====== PRODUCT CARDS ====== */
.product-card {
    background: var(--white);
    border-radius: 15px;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

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

/* ====== FEATURE BOXES ====== */
.feature-box {
    padding: 20px 15px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-3px);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ====== FILTER SIDEBAR ====== */
.filter-sidebar .form-check {
    margin-bottom: 8px;
}

.filter-sidebar .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====== FOOTER ====== */
footer {
    background-color: var(--dark-color);
    color: #adb5bd;
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
}

footer .btn-outline-light {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
    .product-card img {
        height: 140px;
    }
    .carousel-caption h2 {
        font-size: 1.5rem !important;
    }
}

/* ====== UTILITIES ====== */
.transition {
    transition: var(--transition);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.6s ease forwards;
}