/* shop.css - فروشگاه */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
    --bg-cream: #FFF9F0;
    --honey-light: #FDE2B5;
    --honey: #F5B841;
    --saffron: #E8A317;
    --brown-warm: #8B5E3C;
    --brown-dark: #5D3A1A;
    --gold-glow: #FFD700;
    --shadow-sm: 0 4px 12px rgba(139, 94, 60, 0.08);
    --shadow-md: 0 8px 24px rgba(139, 94, 60, 0.12);
    --shadow-lg: 0 16px 40px rgba(139, 94, 60, 0.15);
    --shadow-gold: 0 0 20px rgba(245, 184, 65, 0.3);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-cream);
    color: var(--brown-dark);
    line-height: 1.6;
}

/* هدر */
.navbar {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-cream) 100%);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 2px solid var(--honey-light);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brown-warm) 0%, var(--honey) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--honey);
    font-size: 1.8rem;
}

.nav-link {
    color: var(--brown-warm);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--saffron);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--honey);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 80%;
    right: 10%;
}

.nav-link.active {
    color: var(--saffron);
}

.nav-link.active::after {
    width: 80%;
    right: 10%;
    background: var(--saffron);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--saffron);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
}

/* فیلترها */
.filter-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
    border: 1px solid rgba(245, 184, 65, 0.2);
}

.filter-card h5 {
    color: var(--brown-warm);
    margin-bottom: 1rem;
}

.form-select,
.form-control {
    border-radius: 12px;
    border: 2px solid var(--honey-light);
    padding: 10px 14px;
    transition: var(--transition);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.2);
    outline: none;
}

/* محصولات */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(245, 184, 65, 0.2);
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--honey), var(--saffron), var(--gold-glow));
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--brown-warm);
}

.product-price {
    color: var(--saffron);
    font-weight: bold;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--brown-warm) 0%, var(--saffron) 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.btn-outline-secondary {
    border: 1px solid var(--honey);
    color: var(--brown-warm);
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background: var(--honey-light);
    border-color: var(--saffron);
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, var(--brown-dark) 0%, #3E2723 100%);
    color: #FDE2B5;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--honey), var(--saffron), var(--gold-glow));
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--honey);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .filter-card {
        position: static;
        margin-bottom: 1rem;
    }

    .product-card img {
        height: 160px;
    }
}

/* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-4 {
    animation: fadeIn 0.5s ease;
}