/* ============================================
   تم کلي سايت بيوتي‌سرچ
   ============================================ */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary: #9c27b0;
    --accent: #ff9800;
    --success: #4caf50;
    --danger: #f44336;

    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #fff5f8;

    --text: #212121;
    --text-light: #757575;
    --text-muted: #9e9e9e;

    --border: #eeeeee;
    --border-strong: #e0e0e0;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(233,30,99,0.15);

    --font: 'Vazirmatn', 'Tahoma', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ هدر ============ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}

.main-nav { display: flex; gap: 24px; }
.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    transition: color .2s;
}
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: all .25s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 14px rgba(233,30,99,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,30,99,0.4); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============ هيرو و موتور جستجو ============ */
.hero {
    background: linear-gradient(135deg, #fff5f8 0%, #f3e5f5 100%);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(233,30,99,0.15), transparent 70%);
    top: -200px; left: -100px;
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(156,39,176,0.12), transparent 70%);
    bottom: -180px; right: -100px;
    border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.3;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 36px;
}

/* ============ باکس جستجو ============ */
.search-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.search-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    transition: box-shadow .2s;
}
.search-field:focus-within {
    box-shadow: 0 0 0 3px var(--primary-light);
    background: #fff;
}
.search-field svg { color: var(--primary); flex-shrink: 0; }
.search-field input,
.search-field select {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text);
}
.search-field select { cursor: pointer; }
.search-field select:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}
.search-field select:disabled + * {
    pointer-events: none;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 36px;
    font-weight: 700;
    font-size: 15px;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,30,99,0.4); }

/* ============ چيپ‌هاي دسته‌بندي ============ */
.categories-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}
.cat-chip {
    background: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-chip:hover,
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ بخش اصلي ============ */
.section { padding: 60px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.section-head h2 {
    font-size: 24px;
    font-weight: 800;
    position: relative;
    padding-right: 16px;
}
.section-head h2::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}
.section-head .view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ============ کارت سالن ============ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.salon-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.salon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.salon-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light), #e1bee7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
}
.salon-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.salon-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.salon-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.salon-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.salon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.rating .star { color: var(--accent); }
.rating small { color: var(--text-muted); font-weight: 400; font-size: 12px; }

.price-from {
    font-size: 12px;
    color: var(--text-muted);
}
.price-from strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
}

/* ============ کارت محصول ============ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    border: 1px solid var(--border);
    display: flex;
    gap: 14px;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.product-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), #f3e5f5);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}
.product-info { flex: 1; }
.product-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.product-salon { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
}
.price-new {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}
.discount-badge {
    background: var(--danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

/* ============ حالت خالي ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }

/* ============ فوتر ============ */
.site-footer {
    background: #1a1a2e;
    color: #b8b8c8;
    padding: 50px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 15px;
}
.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-about p { font-size: 13px; line-height: 1.9; }
.footer-bottom {
    border-top: 1px solid #2a2a3e;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ============ ريسپانسيو ============ */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: none; }
    .hero { padding: 40px 0 60px; }
    .search-box { flex-direction: column; }
    .search-btn { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 40px 0; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}