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

    body, button, input, select, textarea {
      font-family: "Vazirmatn", sans-serif;
    }

    /* ── BODY ── */
    body {
      background-color: #070F2B;
      color: #fff;
      display: flex;
      flex-direction: column;
    }

    .containers {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }


    /* ─── Header ─────────────────────────────────────────── */
    header {
      background: #070F2B;
      padding: 1rem 0;
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      
    }

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden; /* مهم */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* اگر می‌خواهی کل لوگو دیده شود */
    /* اگر می‌خواهی تمام دایره پر شود از cover استفاده کن */
    display: block;
}



    .search-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: #AFAFC4;
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      background: #1B1A55;
      border: none;
      border-radius: 9999px;
      padding: 0.6rem 1rem 0.5rem 2.5rem;
      color: white;
      font-size: 0.875rem;
    }

    .search-input::placeholder { color: #AFAFC4; }
    .search-input:focus {
      outline: none;
      border-color: #3b82f6;
    }

    nav {
      display: flex;
      gap: 2rem;
    }

    nav a {
      color: #9ca3af;
      text-decoration: none;
      transition: color 0.2s;
      font-size: 0.95rem;
    }

    nav a:hover,
    nav a.active { color: white; }

    .header-icons {
      display: flex;
      gap: 0.75rem;
      margin-left: 1rem;
    }

    .icon-btn {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      padding: 0.4rem;
      transition: color 0.2s;
      display: flex;
      align-items: center;
    }


    .icon-btn:hover { color: #d1d5db; }

    

    /* ─── Section Headers ────────────────────────────────── */
    .section-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 2rem;
    }

    .section-header h2 {
      font-size: 1.875rem;
      font-weight: bold;
    }

    section + section { margin-top: 3rem; }

    .search-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #070F2B;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
        border: 1px solid rgba(255,255,255,0.1);
     
    }
    
    .search-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        cursor: pointer;
        transition: all 0.2s;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-decoration: none;
        color: inherit;
        gap: 15px; 
    }
    
    .search-item:last-child {
        border-bottom: none;
    }
    
    .search-item:hover, .search-item.active {
        background: rgba(255,255,255,0.1);
    }
    
    .search-item-image {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
        /* margin-left حذف شد و به جای آن gap در parent استفاده شد */
        background: #404040;
        flex-shrink: 0;
    }
    
    .search-item-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column; /* برای چیدمان عمودی اسم و قیمت */
        gap: 6px; /* فاصله بین اسم و قیمت */
    }
    
    .search-item-name {
        color: #fff;
        font-size: 0.9rem;
        /* margin-bottom حذف شد و به جای آن gap در parent استفاده شد */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-item-price {
        color: #71779d;
        font-size: 0.8rem;
        font-weight: bold;
    }
    
    .search-loading, .search-no-result, .search-error {
        padding: 20px;
        text-align: center;
        color: #888;
        font-size: 0.9rem;
    }
    
    .search-error {
        color: #ff6b6b;
    }
    
    .mark {
        color: #71779d;
        font-weight: bold;
        background: none;
    }

body, button, input, select, textarea {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* ── Sticky Navbar on Scroll ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

/* حالت اول: وقتی بالای صفحه‌ایم navbar عادی نشون بده */
header.at-top {
    position: relative;
    transform: translateY(0);
}

/* وقتی اسکرول میکنیم به پایین: navbar مخفی میشه */
header.nav-hidden {
    transform: translateY(-100%);
}

/* وقتی اسکرول میکنیم به بالا: navbar نرم میاد پایین */
header.nav-visible {
    transform: translateY(0);
    background: #070F2B;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
body[data-path*="/my/"] .search-wrapper,
body[data-path*="/checkout/"] .search-wrapper {
    display: none;
}

body[data-path*="/my/"] .logo-area,
body[data-path*="/checkout/"] .logo-area {
    display: flex;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/css/fonts/Vazirmatn/webfonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('/static/css/fonts/Vazirmatn/webfonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/* ── Mobile Bottom Navigation ── */
@media (max-width: 768px) {
    /* مخفی کردن navbar و آیکون‌های دسکتاپ */
    header nav,
    header .header-icons {
        display: none;
    }
    .logo-area{
        display: none;
    }
    .logo-circle{
        display: none;
    }
    /* تنظیم header برای موبایل */
    header {
        position: fixed;
        top: 0;
        transform: translateY(0) !important;
        background: #070F2B;
        backdrop-filter: blur(14px);
        padding: 0.4rem 0;
    }

    header.at-top,
    header.nav-hidden,
    header.nav-visible {
        position: fixed;
        transform: translateY(0) !important;
    }

    .header-content {
        justify-content: center;
    }

    .logo-area {
        display: none;
    }

    .search-containers {
        max-width: 100%;
        flex: 1;
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #070F2B;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.2rem;    /* مثلا از 0.5 به 0.25 کم کن */
        z-index: 1000;
        box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.4);
    }

    .bottom-nav-content {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        gap: 3.3rem;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        color: #9ca3af;
        text-decoration: none;
        transition: color 0.2s;
        flex: 1;
        padding: 0.5rem;
    }

    .bottom-nav-item svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .bottom-nav-item span {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: rgb(255, 255, 255);

    }


}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    /* اطمینان از نمایش عناصر دسکتاپ */
    header nav,
    header .header-icons {
        display: flex;
    }

    .logo-area {
        display: flex;
    }

    /* حذف padding اضافی در دسکتاپ */
    body {
        padding-bottom: 0;
    }
}

