/*new header css*/

.haghani-nav-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex: 0 0 auto;
    text-align: center;
}

.navbar-brand img {
    max-width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 991px) {
    .haghani-nav-container .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .haghani-nav-container .menu-button {
        padding: 7px !important;
        border-radius: 6px !important;
        border-color: rgba(145, 26, 86, 0.2) !important;
        height: 34px;
        width: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .haghani-nav-container .nav-right svg,
    .haghani-nav-container .nav-right img {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (min-width: 1200px) {
    .haghani-nav-container .navbar-brand img {
        max-width: 75px;
    }
}

#MiniCartModalBotton {
    padding: 0;
}

.join-plus-cta {
    margin-left: 12px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #b12ba4;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.join-plus-cta svg {
    color: #b12ba4;
    transition: stroke 0.3s ease;
}

.join-plus-cta .join-cta {
    color: #b12ba4;
    font-size: 13px;
    transition: color 0.3s ease;
}

.join-plus-cta:hover {
    background-color: #b12ba4;
}

.join-plus-cta:hover .join-cta {
    color: #fff;
}

.join-plus-cta:hover svg {
    color: #fff;
}


:root {
    --h-panel-width-desktop: 60vw;
    --h-panel-width-mobile: 92vw;
    --h-sidebar-width: 260px;
    --h-primary: var(--bs-primary);
    --h-transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.h-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--h-transition);
}

.h-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.h-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--h-panel-width-mobile);
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: var(--h-transition);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px 0 0 20px !important;
    backface-visibility: hidden;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .h-menu-panel {
        width: var(--h-panel-width-desktop);
    }
}

.h-menu-panel.is-open {
    transform: translateX(0);
}

.h-geometric-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='1440' height='560' preserveAspectRatio='none' viewBox='0 0 1440 560'%3e%3cg fill='none'%3e%3cpath d='M1440 0L976.28 0L1440 71.05z' fill='rgba(145%2c 26%2c 86%2c .08)'%3e%3c/path%3e%3cpath d='M976.28 0L1440 71.05L1440 180.17L552.65 0z' fill='rgba(145%2c 26%2c 86%2c .05)'%3e%3c/path%3e%3cpath d='M552.65 0L1440 180.17L1440 264.35L323.64 0z' fill='rgba(145%2c 26%2c 86%2c .04)'%3e%3c/path%3e%3cpath d='M0 560L713.16 560L0 339.32z' fill='rgba(145%2c 26%2c 86%2c .1)'%3e%3c/path%3e%3cpath d='M0 339.32L713.16 560L756.87 560L0 177.57z' fill='rgba(145%2c 26%2c 86%2c .07)'%3e%3c/path%3e%3cpath d='M0 177.57L756.87 560L855.89 560L0 134.44z' fill='rgba(145%2c 26%2c 86%2c .04)'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: 150% 150%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.h-menu-panel.is-open .h-geometric-bg {
    opacity: 0.9;
    animation: h-geo-float 12s ease-in-out infinite alternate;
}

@keyframes h-geo-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -15px) scale(1.03);
    }
    100% {
        transform: translate(-10px, 10px) scale(1);
    }
}

.h-menu-header, .h-menu-body, .h-menu-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.h-menu-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.h-menu-header-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-menu-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
}

.h-menu-close-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}

.h-menu-close-btn span {
    margin-top: 4px !important;
}

.h-menu-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.h-menu-sidebar {
    width: var(--h-sidebar-width);
    background: #fbfbfc;
    border-left: 1px solid #eee;
    overflow-y: auto;
}

.h-sidebar-item {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.2s;
    user-select: none;
}

.h-sidebar-item.is-active {
    background: #fff;
    color: var(--h-primary);
    border-right: 5px solid var(--h-primary);
    font-weight: 700;
}

.h-sidebar-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.h-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.h-tab-pane {
    display: none;
}

.h-tab-pane.is-active {
    display: block;
    animation: hFadeIn 0.3s ease;
}

.h-mobile-group {
    border-bottom: 1px solid #f0f0f0;
}

.h-mobile-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.h-parent-link {
    font-weight: 700;
    color: #222;
    text-decoration: none;
    font-size: 1.05rem;
}

.h-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 10px;
    padding: 15px 0;
}

@media (min-width: 992px) {
    .h-image-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.h-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.h-item-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    position: relative;
}

@media (min-width: 992px) {
    .h-item-img {
        width: 85px;
        height: 85px;
    }
}

.h-item-img.no-img {
    background-color: #f0f0f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.h-item-img.no-img img {
    opacity: 0;
}

.h-item-img.has-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-grid-label {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.h-show-all {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--h-primary);
    color: var(--h-primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
}

.h-custom-collapse {
    display: none;
}

.h-custom-collapse.show {
    display: block !important;
    animation: hFadeIn 0.3s ease;
}

.h-arrow svg {
    transition: transform 0.3s;
}

[aria-expanded="true"] .h-arrow svg {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    :root {
        --h-sidebar-width: 85px;
    }

    .h-sidebar-item {
        flex-direction: column;
        padding: 15px 5px;
        text-align: center;
        gap: 5px;
        font-size: 12px !important;
    }

    .h-item-img {
        width: 58px;
        height: 58px;
    }
}

@keyframes hFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.h-sidebar-ul {
    list-style: none;
    padding: 0;
}

/* استایل دکمه هدر */
/*.h-menu-trigger {*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*    color: var(--h-primary);*/
/*    transition: opacity 0.2s ease;*/
/*}*/
.h-menu-trigger {
    cursor: pointer;
    display: flex;
    margin-left: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--h-primary);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    color:var(--h-primary);
    font-size:14px;
}

.h-menu-trigger:hover {
    color:#fff;
    background-color:var(--h-primary);
    transition:0.5s all ease;
}

.h-burger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.h-burger-icon span {
    height: 2px;
    background: currentColor;
    display: block;
}

/* تنظیم عرض خطوط همبرگری */
.h-burger-icon span:nth-child(1),
.h-burger-icon span:nth-child(3) {
    width: 20px;
}

.h-burger-icon span:nth-child(2) {
    width: 15px;
}

/* استایل دکمه فوتر */
.h-footer-trigger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000; /* یا هر رنگی که برای فوتر مد نظرت است */
}

/*.h-trigger-text {*/
/*    font-size: 9pt;*/
/*    font-weight: 700;*/
/*}*/