
body {
    margin: 0;
    direction: rtl;
    background: #f5f6fa;
}

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1250px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
}

.nav a {
    margin: 0 18px;
    text-decoration: none;
    font-size: 15px;
    color: #444;
    font-weight: 500;
    transition: .3s;
    position: relative;
}

.nav a:hover {
    color: #4F46E5;
}

.nav a:hover::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100%;
    height: 2px;
    background: #4F46E5;
    border-radius: 4px;
}

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

.cart {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    transition: .3s;
}

.cart:hover {
    color: #4F46E5;
    transform: scale(1.1);
}

.login {
    background: linear-gradient(90deg, #6366F1, #4F46E5);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.login:hover {
    background: linear-gradient(90deg, #4F46E5, #4338CA);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.cart-icon {
    position: relative;
    font-size: 22px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.cart-icon:hover {
    color: #4F46E5;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #EF4444;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* پروفایل کاربر */
.profile-box {
    color: whitesmoke !important;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    background-color: #4F46E5;
    border-radius: 20px;
    text-decoration: none;
}

.profile-box:hover  {
    transform: scale(1.05);
    display: block;
    background-color:#4b57a2 ;
    color: whitesmoke;
}

.profile-menu a,
.profile-menu button {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: #444;
    text-align: right;
    text-decoration: none;
    border: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: #f4f4ff;
    color: #4F46E5;
}

.search-wrapper {
    position: relative;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 15px 8px 40px;
    font-size: 13px;
    width: 180px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "IRANSans", sans-serif;
    outline: none;
}

.search-input:focus {
    width: 250px;
    background: #fff;
    border-color: #4F46E5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}



input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

