/* SiteChrome Header — clean */

.hdbuy-site-header {
    --hdbuy-h-color-primary: #e11d48;
    --hdbuy-h-color-border: #e5e7eb;
    --hdbuy-h-radius: 8px;
    background: #fff;
    color: #1f2937;
    border-bottom: 1px solid var(--hdbuy-h-color-border);
    position: relative;
    z-index: 100;
}

/* ── rows & cols ── */
.hdbuy-site-header__rows {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    padding: 8px 0;
}

.hdbuy-site-header__row { width: 100%; }

.hdbuy-site-header__container {
    display: flex !important;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.hdbuy-site-header__col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 0 auto;
}

/* موقعیت‌ها */
.hdbuy-site-header__col--start  { justify-content: flex-start;  margin-right: auto; }
.hdbuy-site-header__col--middle { justify-content: center; }
.hdbuy-site-header__col--end    { justify-content: flex-end;    margin-left: auto; }

/* تنها یک ستون در سطر → کل عرض */
.hdbuy-site-header__col:only-child {
    flex: 1 1 100%;
    justify-content: flex-start;
}

/* ── لوگو ── */
.hdbuy-site-header__logo img,
.hdbuy-header-logo img { display: block; height: 40px; width: auto; }

/* ── ناوبری ── */
.hdbuy-site-header__nav { width: 100%; }
.hdbuy-site-header__nav-list {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
    flex-wrap: wrap;
}
.hdbuy-site-header__nav-item a {
    display: inline-block;
    padding: 8px 12px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.hdbuy-site-header__nav-item a:hover {
    color: var(--hdbuy-h-color-primary);
    border-bottom-color: var(--hdbuy-h-color-primary);
}

/* ── موبایل ── */
@media (max-width: 768px) {
    .hdbuy-site-header__container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .hdbuy-site-header__col--start,
    .hdbuy-site-header__col--middle,
    .hdbuy-site-header__col--end {
        justify-content: center;
        flex: 0 0 auto;
        margin: 0;
    }
    .hdbuy-site-header__col:only-child {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ── align ستون‌ها ── */
.hdbuy-site-header__col--start  { justify-content: flex-start; }
.hdbuy-site-header__col--middle { justify-content: center; }
.hdbuy-site-header__col--end    { justify-content: flex-end; margin-left: auto; }
.hdbuy-site-header__col[style*="flex: 0 0 10%"]  { }
.hdbuy-site-header__col { transition: flex-basis .2s; }
