/* =================================================================
   NAVBAR - استایل‌های Navigation و Header
   ================================================================= */

/* =================================================================
   1. TOP NAVIGATION CONTAINER
   ================================================================= */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 100%;
    margin: 0 auto;
    background: var(--gradient-primary-custom);
    padding-left: 10%;
    padding-right: 10%;
}
/* =================================================================
   2. LOGO
   ================================================================= */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 0.625rem rgba(99, 102, 241, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================================================
   3. SEARCH CONTAINER
   ================================================================= */
.search-results-container {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    border: 0.0625rem solid #E8E8E8;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    max-height: 28.125rem;
    overflow-y: auto;
    width: 100%;
}

.search-box {
    position: relative !important;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    border: 0.0625rem solid var(--gray-200);
    background: rgba(184, 184, 184, 0.16);
    backdrop-filter: blur(0.625rem);
    transition: all var(--transition-base);
    outline: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1875rem rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-btn {
    position: absolute;
    left: 0;
    background: var(--base-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.0625rem solid var(--base-color);
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.68rem 1.25rem;
    transition: all 0.3s ease;
}

.search-btn-category {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    background: var(--base-color);
    border: 0.0625rem solid var(--base-color);
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 8.75rem;
    height: 3rem;
    padding: 0.5rem;
    min-width: 8.75rem;
}

#searchBtnCategoryImgRotate, #btnCategoryImgRotate, .profile-btn {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

#searchBtnCategoryImgRotate.rotated,#btnCategoryImgRotate.rotated ,.profile-btn.rotated{
    transform: rotate(180deg);
}
.category-btn:has(.profile-btn.rotated) {
    border-radius: 0.5rem 0.5rem 0 0;
}
.search-btn-category:has(.profile-btn.rotated) {
    border-radius: 0 0.5rem 0 0;
}
.search-btn-category span {
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    line-height: 1.875rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-results-header {
    background: #f8fafc;
    border-bottom: 0.0625rem solid #e2e8f0;
}

.search-results-header h6 {
    color: #4a5568;
    font-weight: 600;
}

.search-result-item {
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f7fafc;
}

.search-results-footer {
    background: #f8fafc;
    border-top: 0.0625rem solid #e9ecef;
}

.search-categories-section .search-category-item,
.all-products-section .all-products-items {
    padding: 0.5rem 0;
}

.search-term-badge {
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.search-categories-section a,
.all-products-section a {
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.search-categories-section a:hover,
.all-products-section a:hover {
    color: #5C4DFF !important;
}

.all-products-section img {
    filter: brightness(0.8);
    transition: filter 0.2s ease;
}

.all-products-section a:hover img {
    filter: brightness(1);
}

.search-results-footer {
    border-top: 0.0625rem solid #e9ecef;
}

.search-results-container hr {
    border: none;
    border-top: 0.0625rem solid #e9ecef;
    margin: 0;
}

.searchContentHeaderTitle {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: 0.625rem;
    line-height: 0.9375rem;
    text-align: right;
    color: var(--gray-800);
}

.searchContentHeaderTitleCategory {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: 0.625rem;
    line-height: 0.9375rem;
    text-align: right;
    color: #999999;
}

.search-category-item {
    display: flex;
    gap: 1rem;
}

.search-categories-section ,.all-products-section{
    padding: 0.5rem 1rem;
}

.all-products-item {
    text-decoration: none;
    display: flex;
    justify-content: start;
    gap: 1rem;
    align-items: center;
}

.all-products-item span {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: 0.625rem;
    line-height: 0.9375rem;
    text-align: right;
    color: var(--gray-800);
}

.searchContentHr {
    height: 0.0625rem;
    color: #B8B8B8;
}

.showAllProductsOnSearchContent {
    display: flex;
    justify-content: end;
    text-decoration: none;
    font-size: 0.75rem;
    color: #6456f3;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.productTitleRowMode {
    margin:0;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.originalPriceRowMode {
    font-size: 0.625rem;
    font-weight: 300;
    text-decoration: line-through;
    margin-bottom: 0;
    color: var(--error);
}

.currentPriceRowMode {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0;
}

.productImageRowModeImage {
    object-fit: cover;
    border-radius: 0.375rem;
}
.noResultForSearch{
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: 0.75rem;
    line-height: 1.125rem;
    text-align: right;
    padding: 1rem;
    align-items: center;
    color: #F44336;
}
.search-history-section,
.popular-searches-section {
    padding: 1rem;
}

.search-history-header,
.popular-searches-header {
    margin-bottom: 0.75rem;
}

.search-history-title,
.popular-searches-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: var(--gray-800);
}

.no-history-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: 0.6875rem;
    line-height: 1rem;
    color: var(--gray-600);
}

.popular-searches-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popular-search-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid #e9ecef;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: 0.6875rem;
    line-height: 1rem;
    color: var(--gray-700);
}

.popular-search-item:hover {
    background: #f8f9fa;
    border-color: var(--primary);
}

.popular-search-item span {
    flex: 1;
}

.mobile-search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 109999;
    transition: top 0.4s ease;
    overflow: hidden;
}

.mobile-search-overlay.active {
    top: 0;
}

.mobile-search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    overflow-y: scroll;
    position: fixed;
    width: 100%;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 2.5rem;
}

.mobile-search-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-category-dropdown-btn {
    background: var(--base-color);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 20.438rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    text-align: right;
}


.mobile-search-input {
    flex: 1;
    border: 0.0625rem solid #ddd;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: white;
}

.mobile-search-submit-btn {
    background: var(--base-color);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
}
.mobileSearchInputWithButton {
    position: relative;
    width: 100%;
}

.mobileSearchInputWithButton input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: rgba(184, 184, 184, 0.16);
    height: 3rem;
    color: #676767;
}

.mobileSearchInputWithButton button {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-search-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-category-menu {
    position: absolute;
    top: 0;
    left: 100%;
    right: 0;
    bottom: 0;
    background: white;
    transition: left 0.3s ease;
    z-index: 10000;
}

.mobile-category-menu.active {
    left: 0;
}

.mobile-category-menu-header {
    background: var(--base-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
}

.mobile-category-back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-category-list {
    padding: 1rem;
}

.mobile-category-item {
    padding: 1rem;
    border-bottom: 0.0625rem solid #f1f1f1;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.mobile-category-item:hover {
    background: #f8f9fa;
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-search-content .search-results-body,
.mobile-search-content .search-categories-section,
.mobile-search-content .all-products-section,
.mobile-search-content .products-section,
.mobile-search-content .search-history-section,
.mobile-search-content .popular-searches-section {
    padding: 0.5rem 0;
}

.mobile-search-content .search-category-item,
.mobile-search-content .all-products-items,
.mobile-search-content .search-result-item {
    padding: 0.75rem 0;
}

.mobile-search-content {
    padding: 2rem 1rem;
    justify-content: center;
}

.mobile-search-content {
    padding: 1.5rem 0;
    justify-content: center;
    font-size: 0.875rem;
}
.adForMobileSearchContent {
    width: 100%;
    min-width: 20.438rem;
    height: 5.5rem;
    background-color: #F3F3F3;
    border-radius: 0.5rem;
    margin: 0 auto;
    align-self: end;
}

/* =================================================================
   4. USER ACTIONS
   ================================================================= */
.user-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.action-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 0.0625rem solid var(--gray-200);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-700);
    backdrop-filter: blur(0.625rem);
}

.action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-lg);
}

.cart-count,
.favorites-count {
    position: absolute;
    top: -1rem;
    right: 0.2rem;
    background: var(--error);
    color: white;
    border-radius: var(--radius-full);
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    padding: 0;
    padding-top: 0.2rem;
    margin: 0;
    text-align: center;
    transform: translateY(1px);
}
.sms-count {
    position: absolute;
    left: 1rem;
    background: var(--error);
    color: white;
    border-radius: var(--radius-full);
    width: 0.875rem;
    height: 0.875rem;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    padding: 0;
    padding-top: 0.2rem;
    margin: 0;
    text-align: center;
    transform: translateY(1px);
}

/* =================================================================
   5. MAIN NAVBAR
   ================================================================= */
.navbar-custom {
    background: white;
    border-bottom: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    border-radius: 0;
}

.navbar-custom.scrolled {
    background: white;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 82.063rem;
    width: 100%;
    margin: 1rem auto;
    padding: 0;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--base-color) !important;
    text-decoration: none;
}

/* =================================================================
   6. DESKTOP NAVIGATION
   ================================================================= */
.desktop-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
    gap: 1rem;
}

.top-nav,
.bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* =================================================================
   7. CATEGORY BUTTON
   ================================================================= */
.category-btn {
    background: var(--base-color);
    color: white;
    border: none;
    padding: 0.6875rem 1.25rem;
    font-size: 0.8rem;
    font-weight: Var(--font-weight-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    justify-content: space-around;
    border-radius: 0.5rem;
}
/* =================================================================
   8. NAVIGATION ICONS
   ================================================================= */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem;
    border: 1px solid #3A3A3A33;
    border-radius: 0.5rem;
}

.nav-icon:hover {
    color: var(--base-color);
}
.nav-icon:focus {
    background-color: #3A3A3A14;
    border-radius: 0.5rem 0.5rem 0 0;
}
.nav-icon i {
    font-size: 1.25rem;
    margin-bottom: 0.3125rem;
    position: relative;
}

.nav-icon .badge {
    position: absolute;
    top: -1.5rem;
    right: 0.1rem;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 1.225rem;
    height: 1.225rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    margin: 0;
    text-align: center;
    transform: translateY(1px);
}

.nav-icon span {
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    color: #3A3A3A;
}
.loginOrProfileBtn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* =================================================================
   9. NAVIGATION MENU
   ================================================================= */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    width: 100%;
}

.nav-menu a {
    color: #3A3A3A;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--base-color);
    font-weight: 500;
}

/* =================================================================
   10. PROFILE DROPDOWN
   ================================================================= */
.navProfileBtnCustom {
    position: relative;
    display: inline-block;
}

.navMenuDropdownCustom {
    display: none;
    position: absolute;
    top: 102%;
    left: 0;
    background: white;
    border: 0.125rem solid #E8E8E8;
    border-radius: 0 0 0.5rem 0.5rem;
    min-width: 9.375rem;
    z-index: 1000;
    width: 13.375rem;
    padding: 0.875rem 0.5rem;
}

.profileDropDownCustomUl {
    list-style: none;
    margin: 0;
    font-size: 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profileDropDownCustomLi{
    display: flex;
    justify-content: start;
    gap: 0.5rem;
    align-items: center;
    font-weight: var(--font-weight-normal);
    font-size: 0.75rem;
    line-height: 1.125rem;
    text-align: right;
    height: 1.625rem;
    padding: 0 0.5rem;
}
.profileDropDownCustomLi:hover:not(:first-child) {
    background: #3A3A3A14;
    border-radius: 0.25rem;
}
.profileDropDownCustomLi a {
    display: block;
    text-decoration: none;
    color: black;
}
.profileDropDownCustomLiWithPen {
    justify-content: space-between;

}
/* =================================================================
   11. MOBILE HAMBURGER
   ================================================================= */
.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 0;
    color: var(--base-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =================================================================
   12. MOBILE OVERLAY
   ================================================================= */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =================================================================
   13. MOBILE MENU
   ================================================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 20rem;
    height: 100vh;
    background: white;
    z-index: 9999999;
    transition: all 0.4s ease;
    box-shadow: -0.3125rem 0 0.9375rem rgba(0, 0, 0, 0.1);
    border-radius: 2rem 0 0 0;
    padding: 1.5rem 1.5rem 0 1.5rem;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar {
    display: none;
}
.mobile-menu.active {
    right: 0;
}

.mobileContentHeader {
    color: var(--base-color);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
}
.mobileMenuHeaderIcons{
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.mobileMenuHeaderIcons a{
    padding: 0.3125rem;
}

.mobile-menu-header h3 {
    margin: 0;
    font-weight: 600;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
    padding: 0.3125rem;
}

.mobile-search {
    margin-bottom: 1.5625rem;
}

.mobile-category {
    margin-bottom: 1.5625rem;
}

.mobile-category .category-btn {
    width: 100%;
    justify-content: center;
}

.mobile-icons {
    margin-bottom: 1.5625rem;
}

.mobile-icon {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    padding: 0.9375rem;
    margin-bottom: 0.625rem;
    text-decoration: none;
    color: #666;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-icon:hover {
    background: #f8f9fa;
    color: var(--base-color);
}

.mobile-icon i {
    font-size: 1.25rem;
    width: 1.875rem;
    text-align: center;
    position: relative;
}

.mobile-icon .badge {
    position: absolute;
    top: -0.3125rem;
    right: -0.3125rem;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    font-size: 0.5625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    padding-top: 0.2rem;
    margin: 0;
    text-align: center;
    transform: translateY(1px);
}

.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-links li:not(:last-child) {
    margin-bottom: 0.5rem;
    border-bottom: 0.063rem solid #B8B8B8;
}

.mobile-links a {
    display: block;
    padding: 0.5rem;
    color: var(--gray-800);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: var(--font-weight-normal);
    font-size: 0.875rem;
    line-height: 1.625rem;
}

.mobile-links a:hover,
.mobile-links a.active {
    color: var(--base-color);
    font-weight: 500;
}

.mobile-user .user-menu a {
    display: block;
    padding: 0.625rem;
    text-decoration: none;
    color: black;
}

.mobile-user .user-menu {
    background: #f9f9f9;
    border-radius: 0.5rem;
    margin-top: 0.3125rem;
}

.mobile-user .arrow {
    margin-right: 0.3125rem;
    transition: transform 0.3s;
}

.mobile-user .user-menu[style*="block"] + .arrow {
    transform: rotate(180deg);
}
.mobileContentFooter {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mobileContentFooterPoly {
    position: relative;
    z-index: 1;
    right: 4rem;
    top: 1.1rem;
}

.mobileContentFooterPoly img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(5000%) hue-rotate(245deg) brightness(0.9) contrast(1.1);
    mix-blend-mode: multiply;
}

.mobile-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70%;
}
.mobileContentFooterLogo {
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.mobileContentFooterVersion {
    color: #3A3A3A;
    font-size: 0.6rem;
}
/* =================================================================
   14. FAVORITES BUTTON
   ================================================================= */
.favorites-btn {
    position: relative;
}

.favorites-btn:hover svg path {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.favorites-btn[data-favorites-count]:not([data-favorites-count="0"]) svg path {
    fill: #e74c3c;
}

.mobile-nav-icons {
    display: none;
}


/* =================================================================
   15. SEARCH DROPDOWN
   ================================================================= */
.searchDropdownMenuCustom {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    background: white;
    border: 0.0625rem solid #E8E8E8;
    border-radius: 0 0 0.5rem 0.5rem;
    min-width: 8.75rem;
    max-width: 100%;
    z-index: 1000;
    padding: 0.781rem 1rem;
}

.searchDropdownMenuCustomUl {
    list-style: none;
    margin: 0;
    font-size: 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.searchDropdownMenuCustomLi{
    display: flex;
    justify-content: start;
    gap: 0.5rem;
    align-items: center;
    font-weight: var(--font-weight-normal);
    font-size: 0.75rem;
    line-height: 1.125rem;
    text-align: right;
    height: 1.625rem;
    cursor: pointer;
}
.searchDropdownMenuCustomLi:hover {
    color: var(--base-color);
}
.searchDropdownMenuCustomLi a {
    display: block;
    text-decoration: none;
    color: black;
}
/* =================================================================
   16. category DROPDOWN
   ================================================================= */
.categoryDropdownMenuCustom {
    display: none;
    position: absolute;
    background: white;
    border: 0.125rem solid #E8E8E8;
    border-radius: 0 0 0.5rem 0.5rem;
    min-width: 7.75rem;
    z-index: 1000;
    width: 17.5rem;
    padding: 0.781rem 1rem;
    max-height: 31rem;
    overflow-y: auto;
}

.categoryDropdownMenuCustomUl {
    list-style: none;
    margin: 0;
    font-size: 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.categoryDropdownMenuCustomLi {
    position: static;
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: var(--font-weight-normal);
    font-size: 0.8rem;
    line-height: 1.125rem;
    text-align: right;
    height: 1.625rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.parent-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.parentWithOutChildren {
    text-decoration: none;
    color: inherit;
}
.submenu-arrow {
    font-size: 0.6rem;
    color: #64748b;
}

.categoryDropdownMenuCustomLi:hover {
    background: #3A3A3A14;
    border-radius: 0.25rem;
}

.children-dropdown-menu {
    position: fixed;
    background: white;
    border: 0.125rem solid #E8E8E8;
    border-radius: 0.5rem 0 0 0.5rem;
    width: 25rem;
    padding: 0.781rem 1rem;
    max-height: 31rem;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10000;
}

.child-menu-item {
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: var(--font-weight-normal);
    font-size: 0.8rem;
    line-height: 1.125rem;
    text-align: right;
    height: 1.625rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.child-menu-item:hover {
    background: #3A3A3A14;
    border-radius: 0.25rem;
}

.category-dropdown ,.mobile-category-dropdown{
    text-decoration: none;
}
.subCategoryChildText {
    color: var(--base-color);
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    line-height: 1.375rem;
    text-align: right;
}
.children-dropdown-menu a{
    color: var(--gray-800);
    text-decoration: none;
}
.children-dropdown-menu a:hover{
    color: var(--base-color);
}

/* =================================================================
   18. CART DROPDOWN MENU
   ================================================================= */
.cart-dropdown-menu {
    position: absolute;
    top: 102%;
    left: 0;
    width: 21.875rem;
    max-height: 37.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1.25rem);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
    display: none;
    flex-direction: column;
    border: 0.125rem solid #E8E8E8;
}

.cart-dropdown-menu.show {
    display: flex;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 0.0625rem solid #f0f0f0;
    background: white;
}

.cart-dropdown-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.cart-dropdown-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    width: 1.875rem;
    height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cart-dropdown-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.cart-dropdown-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.625rem;
}

.cart-dropdown-items {
    min-height: 100%;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 0.0625rem solid #f5f5f5;
    gap: 0.75rem;
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-dropdown-item-image {
    width: 7rem;
    height: 7rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #b8b8b8;
    padding: 0.5rem;
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-around;
    gap: 0.4rem;
}

.cart-dropdown-item-title {
    width: 100%;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    text-align: right;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    min-height: 1.4em;
    white-space: normal;
    word-wrap: break-word;
}

.cart-dropdown-item-price {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.5rem;

}

.cart-dropdown-item-quantity {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.cart-dropdown-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-dropdown-item-remove:hover {
    background: var(--danger-color);
    color: white;
}

.cart-empty-message {
    text-align: center;
    color: var(--gray-500);
    padding: 3.125rem 1.25rem;
    font-size: 0.875rem;
}

.cart-dropdown-footer {
    padding: 0.5rem;
    border-top: 0.0625rem solid #f0f0f0;
    background: #F3F3F3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown-total {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.cartDropDownTotalDiscountPrice {
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    line-height: 1.875rem;
    vertical-align: middle;
    text-decoration: line-through;
    color: var(--danger-color);
}
.cartDropDownTotalPrice {
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
    line-height: 1.875rem;
    color: var(--success-color);
}
.cart-checkout-btn {
    display: block;
    max-width: 7.688rem;
    padding: 0 1.25rem;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: var(--font-weight-normal);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--success-color);
    align-content: center;
    height: 3rem;
    font-size: 1rem;
}


.cart-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}

.cart-dropdown-overlay.show {
    display: block;
}
.counterOfQuantityControls {
    width: 30px;
}

/* =================================================================
   19. Favorites DROPDOWN MENU
   ================================================================= */
.favorites-dropdown-menu {
    position: absolute;
    top: 102%;
    left: 0;
    width: 21.875rem;
    max-height: 37.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1.25rem);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
    display: none;
    flex-direction: column;
    border: 0.125rem solid #E8E8E8;
}

.favorites-dropdown-menu.show {
    display: flex;
}

.favorites-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 0.0625rem solid #f0f0f0;
    background: white;
}

.favorites-dropdown-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.favorites-dropdown-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    width: 1.875rem;
    height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.favorites-dropdown-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.favorites-dropdown-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.625rem;
}

.favorites-dropdown-items {
    min-height: 100%;
}

.favorites-dropdown-item a{
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 0.0625rem solid #f5f5f5;
    gap: 0.75rem;
}

.favorites-dropdown-item a:last-child {
    border-bottom: none;
}

.favorites-dropdown-item-image {
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #b8b8b8;
    padding: 0.5rem;
}

.favorites-dropdown-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    gap: 0.4rem;
}

.favorites-dropdown-item-title {
    width: 100%;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    text-align: right;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    min-height: 1.4em;
    white-space: normal;
    word-wrap: break-word;
}

.favorites-dropdown-item-price {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.5rem;
}

.favorites-dropdown-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.favorites-dropdown-item-remove:hover {
    background: var(--danger-color);
    color: white;
}

.favorites-empty-message {
    text-align: center;
    color: var(--gray-500);
    padding: 3.125rem 1.25rem;
    font-size: 0.875rem;
    display: none;
}

.favorites-empty-message.active {
    display: block;
}

.favorites-loading {
    text-align: center;
    color: var(--gray-500);
    padding: 3.125rem 1.25rem;
    font-size: 0.875rem;
    display: none;
}

.favorites-loading.active {
    display: block;
}

.favorites-dropdown-footer {
    padding: 1rem;
    border-top: 0.0625rem solid #f0f0f0;
    background: #F3F3F3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-dropdown-total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.favorites-dropdown-total span:first-child {
    color: var(--gray-600);
}

.favorites-dropdown-total span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

.favorites-view-all-btn {
    display: block;
    width: 7.688rem;
    padding: 0.75rem 1.25rem;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--success-color);
}


.favorites-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}

.favorites-dropdown-overlay.show {
    display: block;
}
.favorites-dropdown-trigger {
    cursor: pointer;
}

.favorites-loading,
.favorites-list,
.favorites-empty {
    display: none;
}

.favorites-loading.active,
.favorites-list.active,
.favorites-empty.active {
    display: block;
}
.topNav {
    background-color: #3A3A3A14;
    width: 100%;
    height: 4rem;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
/* =================================================================
   20. RESPONSIVE DESIGN
   ================================================================= */

/* Tablets - 991px */
@media (max-width: 61.9375rem) {

    .navbar-custom {
        margin: 0;
        padding: 0;
    }

    .desktop-nav, .topNav {
        display: none;
    }

    .mobileCustom {
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .navbar-content {
        padding: 0.625rem;
        margin: 0 0 6.4rem 0;
    }

    .customMobileDesignForNav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.625rem;
        width: 100%;
    }



    .customMobileDesignForNav .logo img {
        width: 8.313rem;
        max-width: 8.313rem;
        height: 1.565rem;
    }

    .logo {
        position: absolute;
        right: 4.188rem;
        top: 0;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        color: var(--gray-800);
        display: block;
        position: absolute;
        top: 1.5rem;
        font-size: 0;
    }

    .category-btn {
        position: absolute;
        top: 4.5rem;
        right: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0.6875rem var(--spacing-md);
        font-size: 0.8rem;
        font-weight: var(--font-weight-medium);
        border-radius: 0;
    }

    .mobile-nav-icons {
        display: flex;
        position: absolute;
        left: 1.5rem;
        top: 1.15rem;
        gap: 1.5rem;
    }
    .desktopMainNavbar {
        margin-bottom: 7.4rem;
    }
    .category-dropdown {
        display: none !important;
    }

    .categoryDropdownMenuCustom {
        display: none !important;
    }
    .mobile-category-dropdown,.mobile-dropdown-content {
        display: block !important;
    }

    .mobile-dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-btn.active .mobile-dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-dropdown-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile-dropdown-content {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        padding: 0;
        overflow-y: auto;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
    }

    .mobile-dropdown-content.show {
        transform: translateY(0);
    }

    .mobile-dropdown-header {
        background: var(--base-color);
        color: white;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        font-size: 1.125rem;
        position: sticky;
        top: 0;
        z-index: 10;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    .mobile-dropdown-header-right-section {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 1rem;
    }
    .mobile-dropdown-back {
        background: none;
        border: none;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .mobile-dropdown-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 1.875rem;
        height: 1.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-dropdown-list {
        padding: 1.5rem;
        margin: 0;
        list-style: none;
    }
    .mobile-dropdown-list a {
        text-decoration: none;
    }
    .mobile-dropdown-item {
        border-bottom: 0.063rem solid #f1f1f1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.2s ease;
        color: #333;
        text-decoration: none;
        background: white;
        cursor: pointer;
        padding: 0.9rem 0;
    }

    .menu-level[data-level="0"] .mobile-dropdown-list > .mobile-dropdown-item:last-child {
        border-bottom: none !important;
    }

    .mobile-dropdown-list > a:last-child .mobile-dropdown-item {
        border-bottom: none !important;
    }

    .mobile-dropdown-item:hover {
        background-color: #f8f9fa;
    }


    .mobile-dropdown-submenu {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .mobile-dropdown-submenu.show {
        transform: translateX(0);
    }


    body.menu-open {
        overflow: hidden;
    }

    .menu-level {
        display: none;
    }

    .menu-level.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }
    .adForSubMenu {
        width: 80%;
        min-width: 20.438rem;
        height: 5.5rem;
        background-color: #F3F3F3;
        border-radius: 0.5rem;
        margin: auto auto 3rem auto;
        align-self: end;
    }
    .searchContentHeaderTitle {
        font-family: var(--font-primary);
        font-weight: var(--font-weight-normal);
        font-size: 0.875rem;
        line-height: 0.9375rem;
        text-align: right;
        color: var(--gray-800);
    }

    .searchContentHeaderTitleCategory {
        font-family: var(--font-primary);
        font-weight: var(--font-weight-normal);
        font-size: 0.75rem;
        line-height: 0.9375rem;
        text-align: right;
        color: #999999;
    }
    .all-products-item span {
        font-family: var(--font-primary);
        font-weight: var(--font-weight-normal);
        font-size: 0.75rem;
        line-height: 0.9375rem;
        text-align: right;
        color: var(--gray-800);
    }
    .productTitleRowMode {
        font-size: 0.875rem;
    }
    .originalPriceRowMode {
        font-size: 0.75rem;
    }
    .currentPriceRowMode {
        font-size: 1rem;
    }
    .noResultForSearch {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        font-size: 1rem;
        text-align: right;
    }
    .shoppingCartNavTabsCustomStyle {
        height: 3.5rem !important;
    }
    .shoppingCartNavTabsCustomStyle li .nav-link {
        padding: 0.8rem 0 !important;
    }
}

/* Mobile - 768px */
@media (max-width: 48rem) {

    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .search-container {
        order: 3;
        margin: 0;
        max-width: none;
    }

    .navbar-custom {
        margin: 0;
        padding: 1.225rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .mobile-menu {
        width: 18.75rem;
    }

    .mobileCustom {
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .navbar-content {
        padding: 0.625rem;
        margin: 0 0 4.4rem 0;
    }

    .customMobileDesignForNav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.625rem;
        width: 100%;
    }


    .customMobileDesignForNav .logo img {
        width: 8.313rem;
        max-width: 8.313rem;
        height: 1.565rem;
    }

    .logo {
        position: absolute;
        right: 4.188rem;
        top: 0;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        color: var(--gray-800);
        display: block;
        position: absolute;
        top: 1.5rem;
        font-size: 0;
    }

    .category-btn {
        position: absolute;
        top: 3rem;
        right: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0.6875rem var(--spacing-md);
        font-size: 0.8rem;
        font-weight: var(--font-weight-medium);
        border-radius: 0;
        margin-top: 1rem !important;
    }

    .mobile-nav-icons {
        display: flex;
        position: absolute;
        left: 1.5rem;
        top: 1.15rem;
        gap: 1.5rem;
    }
    .mobile-search-input {
        font-size: 1rem;
    }

    .mobile-search-content .productTitleRowMode {
        font-size: 0.875rem;
    }

    .mobile-search-content .currentPriceRowMode {
        font-size: 0.875rem;
    }

    .mobile-search-content .originalPriceRowMode {
        font-size: 0.75rem;
    }
}

/* Small Mobile - 480px */
@media (max-width: 30rem) {

    .navbar-custom {
        margin: 0;
        padding: 1.225rem 0;
    }

    .navbar-content {
        padding: 0.625rem;
        margin: 0 0 4.4rem 0;
    }

    .mobile-menu {
        width: 17.5rem;
    }

    .mobileCustom {
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .customMobileDesignForNav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.625rem;
        width: 100%;
    }


    .customMobileDesignForNav .logo img {
        width: 8.313rem;
        max-width: 8.313rem;
        height: 1.565rem;
    }

    .logo {
        position: absolute;
        right: 4.188rem;
        top: 0.7rem;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        color: var(--gray-800);
        display: block;
        position: absolute;
        top: 1.5rem;
        font-size: 0;
    }

    .category-btn {
        position: absolute;
        top: 3rem;
        right: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0.6875rem var(--spacing-md);
        font-size: 0.8rem;
        font-weight: var(--font-weight-medium);
        border-radius: 0;
        margin-top: 1rem !important;
    }

    .mobile-nav-icons {
        display: flex;
        position: absolute;
        left: 1.5rem;
        top: 1.15rem;
        gap: 1.5rem;
    }
}

/* Large Screens */
@media (max-width: 82.063rem) {
    .navbar-content {
        padding: 0 var(--spacing-md);
    }

}
