/* ============================================
   RESET & BASE
   ============================================ */
.seohft-wrap {
    --seohft-icon-color: #111;
    --seohft-icon-bg: transparent;
    --seohft-text: #111;
    --seohft-muted: #707070;
    --seohft-line: #e9e9e9;
    position: relative;
    width: 100%;
    direction: rtl;
    color: var(--seohft-text);
    font-family: inherit;
    z-index: 1;
}

.seohft-wrap * {
    box-sizing: border-box;
}

/* ============================================
   STICKY WRAPPER
   ============================================ */
.seohft-sticky-wrapper {
    position: relative;
    width: 100%;
    z-index: 999;
}

/* ============================================
   HEADER
   ============================================ */
.seohft-header {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #fff;
    color: var(--seohft-text);
    z-index: 20;
    isolation: isolate;
}

.seohft-header-inner {
    position: relative;
    min-height: inherit;
    width: 100%;
    max-width: var(--seohft-container-width, 1200px);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ============================================
   BRAND & NAV
   ============================================ */
.seohft-brand-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

/* ============================================
   LOGO
   ============================================ */
.seohft-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
}

.seohft-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.seohft-logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #111;
    white-space: nowrap;
}

/* ============================================
   DESKTOP MENU
   ============================================ */
.seohft-menu {
    min-width: 0;
}

.seohft-menu-list,
.seohft-mobile-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seohft-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seohft-menu-list > li {
    position: relative;
}

.seohft-menu-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.seohft-menu-list ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--seohft-line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    list-style: none;
}

.seohft-menu-list li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.seohft-menu-list ul ul {
    top: 0;
    right: 100%;
    margin-right: 8px;
}

.seohft-menu-list ul a {
    white-space: nowrap;
    width: 100%;
}

/* ============================================
   ACTIONS (Desktop Icons)
   ============================================ */
.seohft-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    z-index: 6;
}

.seohft-action {
    position: relative;
    display: flex;
    align-items: center;
}

.seohft-action:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 22px;
    background: #111;
    margin-right: 10px;
    opacity: 0.18;
}

/* ============================================
   ICON BUTTONS (General)
   ============================================ */
.seohft-icon-btn,
.seohft-panel-close,
.seohft-modal-close,
.seohft-search-close {
    border: 0 !important;
    background: var(--seohft-icon-bg) !important;
    box-shadow: none !important;
    padding: 6px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    color: var(--seohft-icon-color) !important;
    appearance: none;
    -webkit-appearance: none;
    outline: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

.seohft-icon-btn:hover,
.seohft-icon-btn:focus,
.seohft-panel-close:hover,
.seohft-panel-close:focus,
.seohft-modal-close:hover,
.seohft-modal-close:focus,
.seohft-search-close:hover,
.seohft-search-close:focus {
    background: var(--seohft-icon-bg) !important;
    color: var(--seohft-icon-color) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ============================================
   ICON SVG
   ============================================ */
.seohft-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: inherit;
}

.seohft-icon svg,
.seohft-panel-close svg,
.seohft-modal-close svg,
.seohft-search-close svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   SEARCH
   ============================================ */
.seohft-search-submit {
    border: 0 !important;
    background: transparent !important;
    color: var(--seohft-icon-color) !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit !important;
    font-size: inherit !important;
}

.seohft-search-submit svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   CART BADGE
   ============================================ */
.seohft-cart-badge {
    position: absolute;
    top: -4px !important;
    right: -4px !important;
    left: auto !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 50% !important;
    background: #e74c3c !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    text-align: center !important;
    font-family: inherit !important;
    pointer-events: none !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4) !important;
    transform: scale(1) !important;
    transition: transform 0.2s ease !important;
    z-index: 5 !important;
}

.seohft-cart-badge.bump {
    animation: seohftBadgeBump 0.3s ease !important;
}

@keyframes seohftBadgeBump {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   SEARCH LIVE
   ============================================ */
.seohft-search-live-wrap {
    position: relative;
}

.seohft-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: visible;
    background: #fff;
    box-shadow: none;
    font-family: inherit !important;
}

.seohft-search-input {
    border: 0 !important;
    outline: 0 !important;
    background: #fff !important;
    padding: 9px 12px;
    min-width: 0;
    font: inherit !important;
    color: #111 !important;
    box-shadow: none !important;
    appearance: none;
    font-family: inherit !important;
    font-size: inherit !important;
}

.seohft-search-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
    font-family: inherit;
}

.seohft-search-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.seohft-search-submit {
    padding: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.seohft-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--seohft-line);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 9999;
    max-height: 390px;
    overflow: auto;
}

.seohft-search-results.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.seohft-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #111 !important;
    background: #fff;
    transition: background 0.15s ease;
    font-family: inherit;
}

.seohft-search-result:hover {
    background: #f7f7f7;
}

.seohft-search-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 7px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seohft-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seohft-search-no-thumb {
    width: 18px;
    height: 18px;
    border: 1px solid #bbb;
    border-radius: 4px;
    display: block;
}

.seohft-search-result-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: inherit;
}

.seohft-search-result-info strong {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #111;
    font-family: inherit;
}

.seohft-search-result-info small {
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    font-family: inherit;
}

.seohft-search-result-info .amount {
    font-size: 11px;
    color: #444;
    font-family: inherit;
}

.seohft-search-loading,
.seohft-search-empty {
    padding: 16px 10px;
    text-align: center;
    color: #777;
    font-size: 12px;
    font-family: inherit;
}

/* ============================================
   SEARCH OVERLAY (Modal)
   ============================================ */
.seohft-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.34);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 99990;
}

.seohft-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.seohft-search-box {
    position: relative;
    width: min(620px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px 10px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    direction: rtl;
    font-family: inherit !important;
    z-index: 99991;
}

.seohft-search-box .seohft-search-form {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
}

.seohft-search-box .seohft-search-input {
    width: 100%;
    font-size: 17px;
    padding: 12px 44px 12px 12px;
}

.seohft-search-box .seohft-search-results {
    top: calc(100% + 9px);
    min-width: 100%;
}

/* دکمه Close در سمت راست باکس سرچ */
.seohft-search-close {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 100000 !important;
}

/* ============================================
   PANELS (Mobile Menu & Cart)
   ============================================ */
.seohft-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: var(--seohft-mobile-canvas-width, 340px);
    max-width: 92vw;
    background: #fff !important;
    color: #111 !important;
    z-index: 99999;
    transform: translateX(110%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
    isolation: isolate;
    font-family: inherit !important;
}

.seohft-cart-panel {
    right: auto;
    left: 0;
    transform: translateX(-110%);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.12);
}

.seohft-panel.is-open {
    transform: translateX(0);
}

.seohft-panel-head {
    height: 68px;
    flex: 0 0 68px;
    padding: 0 20px;
    border-bottom: 1px solid var(--seohft-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff !important;
    font-family: inherit !important;
}

.seohft-panel-head strong {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111 !important;
    font-family: inherit !important;
}

.seohft-panel-body {
    flex: 1;
    overflow: auto;
    padding: 18px 20px;
    background: #fff !important;
    color: #111 !important;
    font-family: inherit !important;
}

/* ============================================
   MOBILE MENU - RTL & Clean
   ============================================ */
.seohft-mobile-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.seohft-mobile-menu-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seohft-mobile-menu-list > li:last-child {
    border-bottom: none;
}

.seohft-mobile-menu-list a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 50px;
    padding: 11px 0 !important;
    text-decoration: none !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 500;
    font-family: inherit !important;
    background: transparent !important;
    text-align: right !important;
}

/* آیتم‌هایی که زیرمنو دارند - علامت + در سمت چپ */
.seohft-mobile-menu-list .menu-item-has-children > a {
    position: relative;
}

.seohft-mobile-menu-list .menu-item-has-children > a::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    margin-right: auto;
    margin-left: 5px;
    color: #111;
    line-height: 1;
    transition: transform 0.25s ease;
}

.seohft-mobile-menu-list .menu-item-has-children > a.active::after {
    content: "−";
}

/* زیرمنوها - راست‌چین با تورفتگی */
.seohft-mobile-menu-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 15px 8px 0 !important;
    display: none;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.seohft-mobile-menu-list ul.is-open {
    display: block;
}

.seohft-mobile-menu-list ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.seohft-mobile-menu-list ul li:last-child {
    border-bottom: none;
}

.seohft-mobile-menu-list ul a {
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 5px !important;
    min-height: 44px !important;
    color: #333 !important;
}

.seohft-mobile-menu-list ul ul a {
    font-size: 13px !important;
    padding-right: 15px !important;
    color: #555 !important;
}

/* علامت + برای زیرمنوهای سطح دوم */
.seohft-mobile-menu-list ul .menu-item-has-children > a::after {
    font-size: 20px;
    color: #555;
}

.seohft-panel-empty {
    color: #777;
    font-size: 13px;
    font-family: inherit;
}

/* ============================================
   OVERLAY
   ============================================ */
.seohft-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.seohft-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   CART
   ============================================ */
.seohft-cart-items {
    padding: 12px 16px;
    font-family: inherit !important;
}

.seohft-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--seohft-line);
    font-family: inherit !important;
}

.seohft-cart-thumb img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.seohft-cart-info {
    min-width: 0;
    position: relative;
    padding-left: 22px;
    font-family: inherit !important;
}

.seohft-cart-name {
    display: block !important;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.6;
    margin-bottom: 8px;
    font-family: inherit !important;
}

.seohft-cart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: inherit !important;
}

.seohft-cart-price {
    font-size: 12px !important;
    color: #555 !important;
    font-family: inherit !important;
}

.seohft-qty {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2px 5px;
    font-family: inherit !important;
}

.seohft-qty-btn {
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    cursor: pointer;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 1;
    box-shadow: none !important;
    font-family: inherit !important;
}

.seohft-qty-value {
    min-width: 14px;
    text-align: center;
    font-size: 12px;
    color: #111;
    font-family: inherit !important;
}

.seohft-remove {
    position: absolute;
    top: -4px;
    left: 0;
    border: 0 !important;
    background: transparent !important;
    color: #777 !important;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    box-shadow: none !important;
    font-family: inherit !important;
}

.seohft-cart-empty {
    padding: 35px 5px;
    text-align: center;
    color: #777;
    font-size: 14px;
    font-family: inherit !important;
}

.seohft-cart-footer {
    padding: 16px;
    border-top: 1px solid var(--seohft-line);
    background: #fff !important;
    font-family: inherit !important;
}

.seohft-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #111;
    font-family: inherit !important;
}

.seohft-cart-total strong {
    color: #111 !important;
    font-weight: 700 !important;
    font-family: inherit !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.seohft-cart-button,
.seohft-checkout-button,
.seohft-login-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 9px;
    text-decoration: none !important;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.18s ease;
    font-family: inherit !important;
}

.seohft-cart-button {
    border: 1px solid #111 !important;
    color: #111 !important;
    background: #fff !important;
}

.seohft-checkout-button,
.seohft-login-button {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
}

.seohft-cart-button:hover,
.seohft-cart-button:focus {
    background: #f5f5f5 !important;
    color: #111 !important;
}

.seohft-checkout-button:hover,
.seohft-checkout-button:focus,
.seohft-login-button:hover,
.seohft-login-button:focus {
    background: #2a2a2a !important;
    color: #fff !important;
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.seohft-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    direction: rtl;
    font-family: inherit !important;
}

.seohft-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.seohft-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(8, 8, 8, 0.5) !important;
}

.seohft-login-box {
    position: relative !important;
    width: min(430px, 100%) !important;
    max-height: 90vh !important;
    overflow: auto !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2) !important;
    font-family: inherit !important;
    isolation: isolate;
}

.seohft-login-box * {
    font-family: inherit !important;
}

.seohft-modal-close {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    z-index: 100000 !important;
}

.seohft-login-content h3 {
    margin: 0 0 8px !important;
    font-size: 21px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: #111 !important;
    font-family: inherit !important;
}

.seohft-login-content > p {
    margin: 0 0 20px !important;
    color: #666 !important;
    font-size: 13px !important;
    font-family: inherit !important;
}

.seohft-login-content form {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.seohft-login-content form p {
    margin: 0 0 15px !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.seohft-login-content label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 0 7px !important;
    color: #222 !important;
    font-family: inherit !important;
}

.seohft-login-content input[type="text"],
.seohft-login-content input[type="password"] {
    width: 100% !important;
    height: 46px !important;
    border: 1px solid #dedede !important;
    border-radius: 9px !important;
    padding: 9px 12px !important;
    background: #fff !important;
    outline: 0 !important;
    color: #111 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-family: inherit !important;
}

.seohft-login-content input[type="text"]:focus,
.seohft-login-content input[type="password"]:focus {
    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.seohft-login-content .login-remember {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 8px 0 15px !important;
    font-family: inherit !important;
}

.seohft-login-content .login-remember input {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
}

.seohft-login-content .login-remember label {
    margin: 0 !important;
    font-weight: 400 !important;
    color: #666 !important;
    font-family: inherit !important;
}

.seohft-login-content input[type="submit"] {
    width: 100% !important;
    height: 46px !important;
    border: 1px solid #111 !important;
    border-radius: 9px !important;
    background: #111 !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.seohft-login-content input[type="submit"]:hover {
    background: #292929 !important;
}

.seohft-login-link {
    display: block !important;
    text-align: center !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    margin-top: 12px !important;
    font-family: inherit !important;
}

.seohft-login-link:hover {
    color: #111 !important;
    text-decoration: underline !important;
}

/* ============================================
   HIDE/SHOW CLASSES
   ============================================ */
.seohft-mobile-only {
    display: none !important;
}

.seohft-desktop-only {
    display: flex !important;
}

.seohft-wrap.seohft-locked {
    overflow: hidden;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.seohft-sticky-wrapper.seohft-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    animation: seohftSlideDown 0.4s ease forwards !important;
    background: #fff !important;
}

.seohft-sticky-wrapper.seohft-sticky .seohft-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
}

.seohft-sticky-wrapper.seohft-sticky .seohft-header-inner {
    border-bottom: inherit !important;
}

@keyframes seohftSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.seohft-wrap.seohft-has-sticky {
    padding-top: var(--seohft-header-height, 76px);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .seohft-header-inner {
        gap: 18px;
    }
    .seohft-menu-list a {
        padding-inline: 9px;
    }
    .seohft-brand-nav {
        gap: 18px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    .seohft-desktop-only {
        display: none !important;
    }
    
    .seohft-mobile-only {
        display: inline-flex !important;
    }

    .seohft-header-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px !important;
        min-height: auto;
    }

    .seohft-brand-nav {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 6px;
        width: 100%;
        min-height: 44px;
        order: 1;
        padding: 0;
    }

    .seohft-brand-nav .seohft-mobile-toggle {
        order: 1;
        justify-self: flex-start;
        background: transparent !important;
        color: #111 !important;
        padding: 8px !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .seohft-brand-nav .seohft-mobile-toggle .seohft-icon svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #111 !important;
    }

    .seohft-logo {
        order: 2;
        justify-self: center;
        max-width: 55%;
        margin: 0 auto;
    }
    
    .seohft-logo img {
        max-height: 36px;
        width: auto;
    }

    .seohft-brand-nav .seohft-actions-mobile {
        order: 3;
        justify-self: flex-end;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .seohft-brand-nav .seohft-cart-toggle {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .seohft-brand-nav .seohft-cart-toggle .seohft-icon {
        position: relative !important;
        display: inline-flex !important;
    }

    .seohft-brand-nav .seohft-icon svg {
        width: 22px !important;
        height: 22px !important;
        display: block !important;
    }

    .seohft-actions {
        order: 2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 4px 0 0 0 !important;
        min-height: auto;
        flex-wrap: nowrap;
        margin-top: 4px !important;
    }

    .seohft-action {
        min-width: auto;
        justify-content: center;
    }

    .seohft-action:not(:last-child)::after {
        display: none;
    }

    .seohft-search-action {
        width: 100%;
    }
    
    .seohft-search-action .seohft-search-live-wrap {
        width: 100%;
    }
    
    .seohft-search-action .seohft-search-form {
        width: 100% !important;
        height: 40px !important;
        border-radius: 10px !important;
        border: 1.5px solid #d1d5db !important;
        background: #fff !important;
        overflow: hidden !important;
        transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    }

    .seohft-search-action .seohft-search-form:focus-within {
        border-color: #f4741f !important;
        box-shadow: 0 0 0 3px rgba(244, 116, 31, 0.15) !important;
    }
    
    .seohft-search-action .seohft-search-input {
        width: 100% !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        height: 100% !important;
    }

    .seohft-search-action .seohft-search-input::placeholder {
        color: #9ca3af !important;
        font-size: 12.5px !important;
    }
    
    .seohft-search-action .seohft-search-submit {
        padding: 8px 14px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }
    
    .seohft-search-action .seohft-search-submit svg {
        width: 18px !important;
        height: 18px !important;
        color: #6b7280 !important;
        transition: color 0.3s ease !important;
    }

    .seohft-search-action .seohft-search-submit:hover svg {
        color: #f4741f !important;
    }

    .seohft-search-toggle {
        display: none !important;
    }

    .seohft-search-overlay {
        padding: 60px 12px 12px;
    }
    
    .seohft-search-box {
        border-radius: 11px;
        padding: 8px 8px 8px 42px;
    }
    
    .seohft-search-box .seohft-search-input {
        padding: 10px 38px 10px 10px;
        font-size: 14px;
    }
    
    .seohft-search-box .seohft-search-results {
        left: 0;
        right: 0;
        min-width: 0;
    }
    
    .seohft-search-close {
        right: 6px !important;
        top: 6px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .seohft-login-box {
        padding: 24px 16px !important;
        border-radius: 14px !important;
    }

    .seohft-panel {
        width: min(var(--seohft-mobile-canvas-width, 340px), 92vw);
    }

    .seohft-mobile-panel.is-open {
        transform: translateX(0);
    }

    .seohft-cart-badge {
        top: -6px !important;
        right: -6px !important;
        min-width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        line-height: 18px !important;
        padding: 0 4px !important;
    }

    .seohft-brand-nav .seohft-icon-btn {
        padding: 6px !important;
    }

    .seohft-wrap.seohft-has-sticky {
        --seohft-header-height: 90px;
    }
}

/* ============================================
   RESPONSIVE - VERY SMALL (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .seohft-header-inner {
        padding: 6px 7px;
        gap: 4px;
    }
    
    .seohft-brand-nav {
        min-height: 38px;
        gap: 4px;
    }
    
    .seohft-logo {
        max-width: 45%;
    }
    
    .seohft-brand-nav .seohft-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .seohft-brand-nav .seohft-mobile-toggle .seohft-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .seohft-search-action .seohft-search-form {
        height: 34px;
    }
    
    .seohft-search-action .seohft-search-input {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .seohft-search-overlay {
        padding-inline: 8px;
    }
    
    .seohft-login-box {
        padding-inline: 14px !important;
    }
    
    .seohft-wrap.seohft-has-sticky {
        --seohft-header-height: 80px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .seohft-mobile-panel {
        display: none !important;
    }
    .seohft-mobile-only {
        display: none !important;
    }
}

/* ============================================
   BODY LOCK
   ============================================ */
body.seohft-modal-open {
    overflow: hidden !important;
}
/* ============================================
   MENU ARROWS WITH SVG - DESKTOP
   ============================================ */

/* فلش رو به پایین برای آیتم‌های اصلی */
.seohft-menu-list .menu-item-has-children > a {
    position: relative;
    padding-left: 20px !important;
}

.seohft-menu-list .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.25s ease;
}

/* چرخش فلش هنگام هاور */
.seohft-menu-list .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* فلش رو به چپ برای زیرمنوها */
.seohft-menu-list ul .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateY(-50%) !important;
}

/* هاور زیرمنوها - فلش ثابت می‌ماند */
.seohft-menu-list ul .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) !important;
}
