/* assets/css/style.css */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #F3214D;
    --secondary: #FF5C7D;
    --bg-color: #F5F5F7;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-light: #777777;
    --border-color: #E8E8E8;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 90px; /* فضا برای نوار پایین */
}

/* هدر */
.header {
    background: var(--primary);
    height: 95px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(243, 33, 77, 0.3);
}

.header .logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    color: white;
}

.search-box {
    background: #fff;
    height: 52px;
    border-radius: 18px;
    border: none;
    width: 100%;
    max-width: 400px;
    padding: 0 15px;
    font-family: inherit;
    margin: 0 15px;
}

/* کارت محصول */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.product-body {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

/* دکمه خرید دایره‌ای */
.btn-add-cart {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: fixed;
    bottom: 90px; /* بالای نوار ناوبری */
    left: 20px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(243, 33, 77, 0.4);
    cursor: pointer;
}

/* نوار ناوبری پایین */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: #fff;
    box-shadow: 0 -2px 15px rgba(0,0,0,.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* دکمه وسط شناور */
.nav-fab {
    width: 75px;
    height: 75px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: -30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(243, 33, 77, 0.4);
    border: 4px solid var(--bg-color); /* برای ایجاد فاصله از پس‌زمینه سفید */
}
