/* ====== تنظیمات کلی ====== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Tahoma, sans-serif; }
body { background-color: #f5f5f5; direction: rtl; padding-bottom: 80px; color: #333; }
a { text-decoration: none; color: inherit; }

/* ====== هدر بالای سایت ====== */
.header { background: #fff; padding: 12px 15px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.top-bar-icon { font-size: 24px; color: #333; cursor: pointer; }
.logo-text { font-size: 22px; font-weight: bold; color: #e63946; }
.logo-text span { color: #333; }
.header-actions { display: flex; gap: 15px; align-items: center; position: relative; }
.cart-badge { position: absolute; top: -5px; left: -5px; background: #e63946; color: #fff; font-size: 10px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* کادر جستجو */
.search-box { display: flex; background: #f0f0f1; border-radius: 20px; padding: 10px 15px; align-items: center; }
.search-box input { border: none; background: transparent; flex: 1; outline: none; font-size: 14px; color: #333; }
.search-icon { color: #777; font-size: 18px; }

/* ====== اسلایدر بنر ====== */
.banner-slider { position: relative; width: 95%; margin: 15px auto; height: 180px; overflow: hidden; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease-in-out; }
.banner-slide { min-width: 100%; height: 100%; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; top: 0; right: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 20px; background: linear-gradient(to left, rgba(0,0,0,0.7), transparent); color: #fff; }
.banner-text h2 { font-size: 20px; margin-bottom: 5px; }
.banner-text p { font-size: 13px; margin-bottom: 15px; }
.banner-btn { display: inline-block; background: #fff; color: #333; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; width: max-content; }

/* ====== دسته‌بندی‌ها ====== */
.categories-wrapper { display: flex; gap: 12px; overflow-x: auto; padding: 10px 15px 20px 15px; scrollbar-width: none; }
.categories-wrapper::-webkit-scrollbar { display: none; }
.category-item { display: flex; flex-direction: column; align-items: center; min-width: 75px; }
.category-img-box { width: 60px; height: 60px; background: #fff; border-radius: 15px; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 8px; border: 1px solid #f0f0f0; }
.category-img-box img { width: 40px; height: 40px; object-fit: contain; }
.category-img-box span { font-size: 30px; }
.category-name { font-size: 12px; color: #555; text-align: center; }

/* ====== تیتر بخش‌ها ====== */
.section-title { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; margin-bottom: 15px; }
.section-title h2 { font-size: 18px; color: #333; display: flex; align-items: center; gap: 8px; }
.section-title h2::before { content: ''; display: block; width: 4px; height: 20px; background: #e63946; border-radius: 2px; }
.section-title a { font-size: 13px; color: #e63946; font-weight: bold; }

/* ====== کارت محصولات (شبیه عکس) ====== */
.products-grid { display: flex; gap: 15px; overflow-x: auto; padding: 0 15px 20px 15px; scrollbar-width: none; }
.products-grid::-webkit-scrollbar { display: none; }
.product-card { min-width: 160px; max-width: 160px; background: #fff; border-radius: 15px; padding: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; display: flex; flex-direction: column; position: relative; }
.discount-badge { position: absolute; top: 10px; left: 10px; background: #e63946; color: #fff; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: bold; z-index: 2; }
.product-img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 10px; }
.product-title { font-size: 12px; color: #333; margin-bottom: 10px; height: 36px; overflow: hidden; line-height: 1.5; font-weight: bold; }
.product-prices { margin-bottom: 10px; }
.old-price { text-decoration: line-through; color: #aaa; font-size: 11px; display: block; margin-bottom: 3px; }
.new-price { font-weight: bold; color: #e63946; font-size: 14px; }
.stars { color: #ffc107; font-size: 10px; margin-bottom: 10px; display: flex; align-items: center; gap: 3px; }
.stars span { color: #777; font-size: 11px; }
.add-to-cart-btn { width: 100%; padding: 10px; background: #e63946; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-family: Tahoma; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: auto; }

/* ====== بنر وسط صفحه ====== */
.mid-banner { width: 95%; margin: 10px auto 20px auto; border-radius: 15px; overflow: hidden; }
.mid-banner img { width: 100%; height: auto; display: block; }

/* ====== نوار اعتماد (مشتریان) ====== */
.trust-badges { display: flex; justify-content: space-around; background: #fff; margin: 20px 15px; padding: 15px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.trust-item { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #555; gap: 5px; }
.trust-icon { font-size: 20px; color: #333; }

/* ====== منوی پایین (5 دکمه) ====== */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); display: flex; justify-content: space-around; align-items: center; padding: 8px 0; box-shadow: 0 -2px 15px rgba(0,0,0,0.05); z-index: 999; border-top: 1px solid #eee; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #777; font-size: 11px; flex: 1; position: relative; }
.nav-icon { font-size: 22px; margin-bottom: 4px; color: #555; }
.nav-item.active { color: #e63946; }
.nav-item.active .nav-icon { color: #e63946; }
.nav-badge { position: absolute; top: 0px; right: 25%; background: #e63946; color: #fff; font-size: 10px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* ====== فوتر ====== */
.footer { background: #111; color: #fff; padding: 30px 15px 20px 15px; margin-top: 30px; border-radius: 20px 20px 0 0; }
.footer-content { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin-bottom: 20px; }
.footer-box { flex: 1; min-width: 250px; }
.footer-box h3 { font-size: 16px; margin-bottom: 15px; color: #e63946; }
.footer-box p { font-size: 13px; color: #bbb; line-height: 1.8; margin-bottom: 5px; }
.footer-box a { display: block; font-size: 13px; color: #bbb; margin-bottom: 8px; transition: color 0.3s; }
.footer-box a:hover { color: #e63946; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 15px; font-size: 12px; color: #777; }
