
/* HastiGem Footer v1.1.26 — Full width flat footer, no glass card/no outer radius */
.hasti-premium-footer{
    --hfooter-bg:#f3f3ef;
    --hfooter-bg-2:#fafaf7;
    --hfooter-text:#17181b;
    --hfooter-muted:#6d7277;
    --hfooter-line:rgba(23,24,27,.085);
    --hfooter-line-soft:rgba(23,24,27,.05);
    --hfooter-primary:#17181b;
    --hfooter-primary-text:#ffffff;
    --hfooter-accent:#34c759;
    --hfooter-chip:rgba(255,255,255,.62);
    --hfooter-chip-2:rgba(255,255,255,.42);
    --hfooter-shadow:0 -10px 34px rgba(20,23,28,.035);
    width:100%;
    max-width:none;
    margin:42px 0 0;
    padding:0;
    position:relative;
    overflow:visible;
    border-radius:0!important;
    border:0;
    border-top:1px solid var(--hfooter-line);
    background:
        radial-gradient(circle at 82% 0%, rgba(100,116,139,.08), transparent 28%),
        linear-gradient(180deg,var(--hfooter-bg-2),var(--hfooter-bg));
    box-shadow:var(--hfooter-shadow);
    color:var(--hfooter-text);
    direction:rtl;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}

html[data-hg-theme="dark"] .hasti-premium-footer,
body.dark .hasti-premium-footer{
    --hfooter-bg:#0f1218;
    --hfooter-bg-2:#131822;
    --hfooter-text:#eef2f7;
    --hfooter-muted:#a2adba;
    --hfooter-line:rgba(255,255,255,.10);
    --hfooter-line-soft:rgba(255,255,255,.06);
    --hfooter-primary:#eef2f7;
    --hfooter-primary-text:#11161d;
    --hfooter-chip:rgba(255,255,255,.065);
    --hfooter-chip-2:rgba(255,255,255,.045);
    --hfooter-shadow:0 -14px 38px rgba(0,0,0,.20);
    background:
        radial-gradient(circle at 82% 0%, rgba(148,163,184,.10), transparent 30%),
        linear-gradient(180deg,var(--hfooter-bg-2),var(--hfooter-bg));
}

.hasti-premium-footer *,
.hasti-premium-footer *::before,
.hasti-premium-footer *::after{box-sizing:border-box}

.hasti-premium-footer a{color:inherit;text-decoration:none}
.hasti-premium-footer button{font-family:inherit}
.hasti-premium-footer svg{
    width:17px;
    height:17px;
    stroke:currentColor;
    stroke-width:2;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* neutralize previous decorative pseudo elements */
.hasti-premium-footer::before,
.hasti-premium-footer::after{display:none!important}

.hfooter-hero,
.hfooter-grid,
.hfooter-quiet-card,
.hfooter-bottom,
.hfooter-mobile-dock{
    width:min(1280px, calc(100% - 34px));
    margin-right:auto;
    margin-left:auto;
    position:relative;
    z-index:1;
}

.hfooter-hero{
    min-height:106px;
    padding:22px 0 18px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    border:0;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}

.hfooter-brand-line{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
}

.hfooter-brand-logo{
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:16px;
    display:grid;
    place-items:center;
    color:var(--hfooter-primary-text);
    background:linear-gradient(145deg,var(--hfooter-primary),rgba(75,85,99,.88));
    box-shadow:0 14px 26px rgba(0,0,0,.12);
    overflow:hidden;
}
html[data-hg-theme="dark"] .hfooter-brand-logo{
    background:linear-gradient(145deg,#eef2f7,#94a3b8);
}
.hfooter-brand-logo::after{display:none!important}
.hfooter-brand-logo svg{width:22px;height:22px}

.hfooter-brand-copy strong{
    display:block;
    font-size:18px;
    font-weight:1000;
    line-height:1.45;
    letter-spacing:-.2px;
}
.hfooter-brand-copy p{
    margin:5px 0 0;
    color:var(--hfooter-muted);
    font-size:11.5px;
    line-height:1.9;
    font-weight:760;
    max-width:720px;
}

.hfooter-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
}

.hfooter-trust-pill,
.hfooter-support-pill{
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:999px;
    border:1px solid var(--hfooter-line);
    background:var(--hfooter-chip);
    color:var(--hfooter-text);
    padding:8px 12px;
    font-size:10.5px;
    font-weight:930;
    white-space:nowrap;
    box-shadow:none;
}
.hfooter-trust-pill i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--hfooter-accent);
    box-shadow:0 0 0 6px rgba(52,199,89,.11);
    flex:0 0 7px;
}
.hfooter-support-pill{
    background:var(--hfooter-primary);
    color:var(--hfooter-primary-text);
    border-color:transparent;
}

.hfooter-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    padding:18px 0;
    border-top:1px solid var(--hfooter-line-soft);
    border-bottom:1px solid var(--hfooter-line-soft);
}

.hfooter-tile{
    min-height:auto;
    border:0;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:0;
    transition:none;
}
.hfooter-tile:hover{transform:none!important;box-shadow:none!important}

.hfooter-tile-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 10px;
}
.hfooter-tile-title strong{
    font-size:12.5px;
    font-weight:1000;
    color:var(--hfooter-text);
}
.hfooter-tile-title span{
    width:28px;
    height:28px;
    border-radius:10px;
    display:grid;
    place-items:center;
    color:var(--hfooter-muted);
    background:var(--hfooter-chip-2);
    border:1px solid var(--hfooter-line-soft);
}
.hfooter-links{
    display:flex;
    flex-direction:column;
    gap:0;
}
.hfooter-links a{
    display:block;
    padding:6px 0;
    color:var(--hfooter-muted);
    font-size:10.9px;
    line-height:1.55;
    font-weight:850;
    transition:color .15s ease, transform .15s ease;
}
.hfooter-links a:hover{
    color:var(--hfooter-text);
    transform:translateX(-2px);
}

.hfooter-mobile-dock{
    display:none;
}

.hfooter-quiet-card{
    margin-top:0;
    min-height:66px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:16px;
    align-items:center;
    padding:16px 0;
    border:0;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-bottom:1px solid var(--hfooter-line-soft);
}

.hfooter-quiet-text{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}
.hfooter-quiet-icon{
    width:36px;
    height:36px;
    border-radius:12px;
    display:grid;
    place-items:center;
    color:var(--hfooter-muted);
    background:var(--hfooter-chip-2);
    border:1px solid var(--hfooter-line-soft);
    flex:0 0 36px;
}
.hfooter-quiet-text strong{
    display:block;
    font-size:12px;
    font-weight:1000;
    color:var(--hfooter-text);
}
.hfooter-quiet-text span{
    display:block;
    margin-top:4px;
    color:var(--hfooter-muted);
    font-size:10.8px;
    line-height:1.7;
    font-weight:780;
}

.hfooter-social{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}
.hfooter-social a{
    width:34px;
    height:34px;
    border-radius:12px;
    display:grid;
    place-items:center;
    border:1px solid var(--hfooter-line);
    background:var(--hfooter-chip);
    color:var(--hfooter-muted);
}
.hfooter-social a:hover{
    color:var(--hfooter-text);
}

.hfooter-bottom{
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 0 16px;
    color:var(--hfooter-muted);
    font-size:10.8px;
    font-weight:820;
}
.hfooter-bottom strong{color:var(--hfooter-text)}
.hfooter-bottom-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
}
.hfooter-bottom-links a{
    color:var(--hfooter-muted);
    font-size:10.8px;
    font-weight:850;
}
.hfooter-bottom-links a:hover{color:var(--hfooter-text)}

/* Mobile: compact accordion footer, still flat */
@media(max-width:760px){
    .hasti-premium-footer{
        margin-top:30px;
        padding-bottom:calc(82px + env(safe-area-inset-bottom));
    }

    .hfooter-hero,
    .hfooter-grid,
    .hfooter-quiet-card,
    .hfooter-bottom,
    .hfooter-mobile-dock{
        width:min(100% - 18px, 100%);
    }

    .hfooter-hero{
        min-height:auto;
        grid-template-columns:1fr;
        gap:12px;
        padding:16px 0 12px;
    }
    .hfooter-brand-line{
        align-items:flex-start;
    }
    .hfooter-brand-logo{
        width:40px;
        height:40px;
        flex-basis:40px;
        border-radius:14px;
    }
    .hfooter-brand-copy strong{
        font-size:16px;
    }
    .hfooter-brand-copy p{
        font-size:10.5px;
        line-height:1.75;
        max-width:none;
    }
    .hfooter-actions{
        justify-content:flex-start;
        gap:6px;
    }
    .hfooter-trust-pill,
    .hfooter-support-pill{
        min-height:32px;
        font-size:9.7px;
        padding:6px 10px;
    }

    .hfooter-grid{
        display:none;
    }

    .hfooter-mobile-dock{
        display:block;
        padding:10px 0 12px;
        border-top:1px solid var(--hfooter-line-soft);
        border-bottom:1px solid var(--hfooter-line-soft);
    }

    .hfooter-accordion{
        display:flex;
        flex-direction:column;
        gap:7px;
    }
    .hfooter-acc-item{
        border:1px solid var(--hfooter-line-soft);
        border-radius:16px;
        background:var(--hfooter-chip-2);
        overflow:hidden;
    }
    .hfooter-acc-trigger{
        width:100%;
        min-height:42px;
        padding:0 12px;
        border:0;
        background:transparent;
        color:var(--hfooter-text);
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        cursor:pointer;
    }
    .hfooter-acc-trigger span{
        display:inline-flex;
        align-items:center;
        gap:8px;
        font-size:11px;
        font-weight:1000;
    }
    .hfooter-acc-trigger svg{
        width:15px;
        height:15px;
        color:var(--hfooter-muted);
    }
    .hfooter-acc-trigger i{
        font-style:normal;
        color:var(--hfooter-muted);
        transition:transform .18s ease;
    }
    .hfooter-acc-panel{
        max-height:0;
        overflow:hidden;
        transition:max-height .22s ease, padding .22s ease;
        padding:0 12px;
    }
    .hfooter-acc-item.is-open .hfooter-acc-panel{
        max-height:220px;
        padding:0 12px 10px;
    }
    .hfooter-acc-item.is-open .hfooter-acc-trigger i{
        transform:rotate(45deg);
    }
    .hfooter-acc-panel .hfooter-links{
        display:flex;
        flex-wrap:wrap;
        flex-direction:row;
        gap:6px;
    }
    .hfooter-acc-panel .hfooter-links a{
        display:inline-flex;
        padding:6px 9px;
        border-radius:999px;
        background:var(--hfooter-chip);
        border:1px solid var(--hfooter-line-soft);
        font-size:9.6px;
        line-height:1.4;
    }

    .hfooter-quiet-card{
        grid-template-columns:1fr;
        padding:12px 0;
        gap:10px;
    }
    .hfooter-quiet-text{
        align-items:flex-start;
    }
    .hfooter-quiet-icon{
        width:32px;
        height:32px;
        flex-basis:32px;
        border-radius:10px;
    }
    .hfooter-quiet-text strong{
        font-size:11.2px;
    }
    .hfooter-quiet-text span{
        font-size:10px;
    }
    .hfooter-social{
        justify-content:flex-start;
    }
    .hfooter-bottom{
        min-height:auto;
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        padding:12px 0 14px;
        font-size:10px;
    }
    .hfooter-bottom-links{
        justify-content:flex-start;
        gap:8px;
    }
}


/* ═══════════════════════════════════════
   FIX v53 — footer spacing + unified action pills
   فاصله کمتر، دکمه راهنمای خرید هماهنگ با بقیه چیپ‌ها
═══════════════════════════════════════ */

.hfooter-hero{
    min-height:86px!important;
    padding:16px 0 12px!important;
    gap:12px!important;
}
.hfooter-brand-logo{
    width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
    border-radius:14px!important;
}
.hfooter-brand-logo svg{
    width:19px!important;
    height:19px!important;
}
.hfooter-brand-copy strong{
    font-size:16px!important;
}
.hfooter-brand-copy p{
    font-size:10.8px!important;
    line-height:1.75!important;
    max-width:660px!important;
}

.hfooter-actions{
    gap:6px!important;
    align-items:center!important;
}

/* Make all action chips same visual language */
.hfooter-trust-pill,
.hfooter-support-pill{
    min-height:32px!important;
    padding:6px 10px!important;
    font-size:9.8px!important;
    border-radius:999px!important;
    border:1px solid var(--hfooter-line)!important;
    background:var(--hfooter-chip)!important;
    color:var(--hfooter-muted)!important;
    box-shadow:none!important;
    white-space:nowrap!important;
}
.hfooter-support-pill svg{
    width:14px!important;
    height:14px!important;
    color:var(--hfooter-muted)!important;
}
.hfooter-trust-pill:hover,
.hfooter-support-pill:hover{
    color:var(--hfooter-text)!important;
    background:var(--hfooter-chip-2)!important;
}
.hfooter-trust-pill i{
    width:6px!important;
    height:6px!important;
    flex-basis:6px!important;
    box-shadow:0 0 0 5px rgba(52,199,89,.10)!important;
}
.hfooter-grid{
    padding:14px 0!important;
    gap:14px!important;
}
.hfooter-quiet-card{
    min-height:56px!important;
    padding:12px 0!important;
}
.hfooter-bottom{
    min-height:46px!important;
    padding:11px 0 12px!important;
}

/* Mobile footer spacing */
@media(max-width:760px){
    .hasti-premium-footer{
        margin-top:24px!important;
    }
    .hfooter-hero{
        padding:13px 0 9px!important;
        gap:9px!important;
    }
    .hfooter-brand-logo{
        width:36px!important;
        height:36px!important;
        flex-basis:36px!important;
        border-radius:12px!important;
    }
    .hfooter-brand-copy strong{
        font-size:14.5px!important;
    }
    .hfooter-brand-copy p{
        font-size:9.8px!important;
        line-height:1.65!important;
    }
    .hfooter-actions{
        gap:5px!important;
    }
    .hfooter-trust-pill,
    .hfooter-support-pill{
        min-height:29px!important;
        padding:5px 8px!important;
        font-size:9px!important;
    }
    .hfooter-mobile-dock{
        padding:8px 0 10px!important;
    }
    .hfooter-acc-trigger{
        min-height:38px!important;
    }
    .hfooter-quiet-card{
        padding:10px 0!important;
    }
    .hfooter-bottom{
        padding:10px 0 12px!important;
    }
}


/* ═══════════════════════════════════════
   FIX v54 — mobile footer bottom gap + compact spacing
═══════════════════════════════════════ */
@media(max-width:760px){
    .hasti-premium-footer{
        margin-top:18px!important;
        padding-bottom:0!important;
    }

    .hfooter-hero,
    .hfooter-grid,
    .hfooter-quiet-card,
    .hfooter-bottom,
    .hfooter-mobile-dock{
        width:min(100% - 18px, 100%)!important;
    }

    .hfooter-hero{
        padding:10px 0 8px!important;
        gap:7px!important;
    }

    .hfooter-actions{
        gap:5px!important;
    }

    .hfooter-trust-pill,
    .hfooter-support-pill{
        min-height:28px!important;
        padding:5px 8px!important;
        font-size:8.9px!important;
    }

    .hfooter-mobile-dock{
        padding:7px 0 8px!important;
    }

    .hfooter-acc-item{
        border-radius:14px!important;
    }

    .hfooter-acc-trigger{
        min-height:36px!important;
        padding:0 10px!important;
    }

    .hfooter-acc-trigger span{
        font-size:10.5px!important;
    }

    .hfooter-acc-panel .hfooter-links a{
        font-size:9.3px!important;
        padding:5px 8px!important;
    }

    .hfooter-quiet-card{
        padding:8px 0!important;
        gap:7px!important;
    }

    .hfooter-quiet-icon{
        width:30px!important;
        height:30px!important;
        flex-basis:30px!important;
    }

    .hfooter-quiet-text strong{
        font-size:10.6px!important;
    }

    .hfooter-quiet-text span{
        font-size:9.5px!important;
        line-height:1.55!important;
    }

    .hfooter-bottom{
        padding:8px 0 10px!important;
        gap:6px!important;
        font-size:9.5px!important;
        min-height:0!important;
    }

    .hfooter-bottom-links{
        gap:7px!important;
    }

    .hfooter-bottom-links a{
        font-size:9.5px!important;
    }
}


/* FIX v55 — final mobile search dropdown/input + remove empty green mobile footer space */@media(max-width:640px){
/* remove any leftover reserved empty footer space */

  .hasti-premium-footer,
  .hfooter-hero,
  .hfooter-mobile-dock,
  .hfooter-quiet-card,
  .hfooter-bottom{
    margin-bottom:0!important;
  }

  .hasti-premium-footer{
    padding-bottom:0!important;
    min-height:0!important;
  }

  .hfooter-bottom{padding-bottom:8px!important}
/* smaller/lighter middle search while keeping 16px to stop iPhone zoom */
/* search suggestions: solid readable card, high z-index, no transparent glass */
/* smaller blog and reviews */

  .hg-blog-card{min-width:62%!important;flex-basis:62%!important}

  .hg-blog-cover{min-height:66px!important}

  .hg-blog-title{font-size:10.5px!important}

  .hg-blog-text{font-size:8.7px!important}

  .hg-testimonial-card{min-width:52%!important;flex-basis:52%!important;min-height:100px!important}

  .hg-testimonial-card p{font-size:8.2px!important}
}


/* ═══════════════════════════════════════
   FIX v69 — Footer dark-mode surface unification
   فقط رنگ/بوردر/سایه فوتر در دارک‌مود اصلاح می‌شود؛ layout دست نمی‌خورد.
═══════════════════════════════════════ */

html[data-hg-theme="dark"] body .hasti-premium-footer{
    background:#0f131a!important;
    background-image:
        radial-gradient(circle at 82% 0%, rgba(148,163,184,.045), transparent 30%),
        linear-gradient(180deg,#0f131a,#0f131a)!important;
    border-top:1px solid rgba(255,255,255,.055)!important;
    color:#edf2f7!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-hero,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-grid,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-mobile-dock,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-bottom{
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-tile{
    background:transparent!important;
    background-image:none!important;
    border-color:rgba(255,255,255,.055)!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-card{
    background:rgba(255,255,255,.025)!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.055)!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-acc-item{
    background:rgba(255,255,255,.025)!important;
    background-image:none!important;
    border-color:rgba(255,255,255,.055)!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-acc-trigger,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-acc-panel{
    background:transparent!important;
    color:#edf2f7!important;
    border-color:rgba(255,255,255,.055)!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer strong,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-tile-title strong,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-brand-copy strong,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-text strong{
    color:#edf2f7!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer p,
html[data-hg-theme="dark"] body .hasti-premium-footer span,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-brand-copy p,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-text span,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-bottom{
    color:#a3adba!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer a,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-links a,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-bottom-links a{
    color:#a3adba!important;
    background:transparent!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer a:hover,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-links a:hover,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-bottom-links a:hover{
    color:#edf2f7!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-brand-logo,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-tile-title span,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-icon{
    background:rgba(255,255,255,.055)!important;
    border-color:rgba(255,255,255,.075)!important;
    color:#edf2f7!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-brand-logo svg,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-tile-title svg,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-icon svg,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-support-pill svg{
    stroke:currentColor!important;
    fill:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-trust-pill,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-support-pill{
    background:rgba(255,255,255,.045)!important;
    border:1px solid rgba(255,255,255,.075)!important;
    color:#edf2f7!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-trust-pill i{
    background:#54e28a!important;
    box-shadow:0 0 0 4px rgba(84,226,138,.10)!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-grid,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-card,
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-bottom{
    border-color:rgba(255,255,255,.055)!important;
}

html[data-hg-theme="dark"] body.woocommerce-account .hasti-premium-footer .hfooter-tile,
html[data-hg-theme="dark"] body.woocommerce-cart .hasti-premium-footer .hfooter-tile,
html[data-hg-theme="dark"] body.single-product .hasti-premium-footer .hfooter-tile,
html[data-hg-theme="dark"] body.woocommerce-checkout .hasti-premium-footer .hfooter-tile,
html[data-hg-theme="dark"] body .hthank-v34 + .hasti-premium-footer .hfooter-tile{
    background:transparent!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body.woocommerce-account .hasti-premium-footer .hfooter-quiet-card,
html[data-hg-theme="dark"] body.woocommerce-cart .hasti-premium-footer .hfooter-quiet-card,
html[data-hg-theme="dark"] body.single-product .hasti-premium-footer .hfooter-quiet-card,
html[data-hg-theme="dark"] body.woocommerce-checkout .hasti-premium-footer .hfooter-quiet-card{
    background:rgba(255,255,255,.025)!important;
    box-shadow:none!important;
}


/* ═══════════════════════════════════════
   FIX v70 — Footer quiet-card polish
   هدف: hfooter-quiet-card از حالت باکس/نوار زشت خارج شود و با خود فوتر یکی شود.
   فقط همین بخش هدف گرفته شده؛ layout کلی فوتر تغییر نکرده است.
═══════════════════════════════════════ */

/* Base: make the quiet message feel like a subtle divider row, not a separate card */
.hasti-premium-footer .hfooter-quiet-card{
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    border:0!important;
    border-top:1px solid rgba(20,23,28,.055)!important;
    border-bottom:1px solid rgba(20,23,28,.035)!important;
    border-radius:0!important;
}

/* The text itself remains clear and premium */
.hasti-premium-footer .hfooter-quiet-text{
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
}

.hasti-premium-footer .hfooter-quiet-icon{
    background:rgba(255,255,255,.52)!important;
    border:1px solid rgba(20,23,28,.065)!important;
    box-shadow:none!important;
    color:#17181b!important;
}

/* Empty social area should not create a visually broken blank part */
.hasti-premium-footer .hfooter-social{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    min-width:0!important;
}

/* Dark mode: blend with footer, remove visible rectangular strip */
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-card{
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    border:0!important;
    border-top:1px solid rgba(255,255,255,.055)!important;
    border-bottom:1px solid rgba(255,255,255,.035)!important;
    border-radius:0!important;
    color:#edf2f7!important;
}

/* Dark mode inner content */
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-text{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    color:#edf2f7!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-text strong{
    color:#edf2f7!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-text span:not(.hfooter-quiet-icon){
    color:#a3adba!important;
}

/* Icon becomes a soft line icon instead of a filled rectangle */
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-icon{
    background:rgba(255,255,255,.035)!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.07)!important;
    box-shadow:none!important;
    color:#a3adba!important;
}

html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-quiet-icon svg{
    stroke:currentColor!important;
    fill:none!important;
}

/* Keep social placeholder invisible/neutral when no social links are rendered */
html[data-hg-theme="dark"] body .hasti-premium-footer .hfooter-social{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    min-width:0!important;
}

/* Homepage Footer details that also apply to the 769–820px tablet band. */
@media(max-width:820px){
  html body.home .hasti-premium-footer .hfooter-bottom-links,
  html body.blog.home .hasti-premium-footer .hfooter-bottom-links,
  html body.hblog-page-active .hasti-premium-footer .hfooter-bottom-links{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }

  html body.home .hasti-premium-footer .hfooter-quiet-card,
  html body.blog.home .hasti-premium-footer .hfooter-quiet-card,
  html body.hblog-page-active .hasti-premium-footer .hfooter-quiet-card{
    margin-bottom:6px!important;
    padding-bottom:8px!important;
  }

  html body.home .hasti-premium-footer .hfooter-mobile-dock,
  html body.blog.home .hasti-premium-footer .hfooter-mobile-dock,
  html body.hblog-page-active .hasti-premium-footer .hfooter-mobile-dock{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
}

/* v83 — root fix for footer gap: reserve space only when the fixed mobile nav is truly visible */
:root{--hg-mobile-nav-real:0px;}

@media (min-width:769px){
  html body.home,
  html body.blog.home,
  html body.hblog-page-active,
  html body.woocommerce-checkout{
    padding-bottom:0!important;
  }

  html body.home .hasti-premium-footer,
  html body.blog.home .hasti-premium-footer,
  html body.hblog-page-active .hasti-premium-footer,
  html body.woocommerce-checkout .hasti-premium-footer{
    margin-bottom:0!important;
    padding-bottom:8px!important;
    min-height:0!important;
  }
}

@media (max-width:768px){
  html body.home,
  html body.blog.home,
  html body.hblog-page-active,
  html body.woocommerce-checkout{
    padding-bottom:0!important;
  }

  html body.home .mobile-nav,
  html body.blog.home .mobile-nav,
  html body.hblog-page-active .mobile-nav,
  html body.woocommerce-checkout .mobile-nav{
    display:block!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    z-index:2147483000!important;
  }

  html.hg-has-mobile-nav body.home .hasti-premium-footer,
  html.hg-has-mobile-nav body.blog.home .hasti-premium-footer,
  html.hg-has-mobile-nav body.hblog-page-active .hasti-premium-footer{
    margin-bottom:0!important;
    min-height:0!important;
    padding-bottom:calc(var(--hg-mobile-nav-real,68px) + env(safe-area-inset-bottom,0px) + 6px)!important;
  }

  html:not(.hg-has-mobile-nav) body.home .hasti-premium-footer,
  html:not(.hg-has-mobile-nav) body.blog.home .hasti-premium-footer,
  html:not(.hg-has-mobile-nav) body.hblog-page-active .hasti-premium-footer{
    margin-bottom:0!important;
    min-height:0!important;
    padding-bottom:8px!important;
  }

  html body.home .hasti-premium-footer .hfooter-bottom,
  html body.blog.home .hasti-premium-footer .hfooter-bottom,
  html body.hblog-page-active .hasti-premium-footer .hfooter-bottom{
    margin-bottom:0!important;
    padding-top:8px!important;
    padding-bottom:0!important;
    min-height:0!important;
  }

  html body.home .hasti-premium-footer .hfooter-quiet-card,
  html body.blog.home .hasti-premium-footer .hfooter-quiet-card,
  html body.hblog-page-active .hasti-premium-footer .hfooter-quiet-card{
    margin-bottom:6px!important;
    padding-bottom:8px!important;
  }

  html body.woocommerce-checkout .hasti-premium-footer{
    margin-bottom:0!important;
    padding-bottom:8px!important;
    min-height:0!important;
  }

  html.hg-has-mobile-nav body.woocommerce-checkout .hcheckout-mobile-paybar{
    bottom:calc(var(--hg-mobile-nav-real,68px) + 10px + env(safe-area-inset-bottom,0px))!important;
  }

  html:not(.hg-has-mobile-nav) body.woocommerce-checkout .hcheckout-mobile-paybar{
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  }

  html.hg-has-mobile-nav body.woocommerce-checkout .hcheckout-container{
    padding-bottom:calc(var(--hg-mobile-nav-real,68px) + 112px + env(safe-area-inset-bottom,0px))!important;
  }

  html:not(.hg-has-mobile-nav) body.woocommerce-checkout .hcheckout-container{
    padding-bottom:112px!important;
  }
}

/* v85 — bottom browser/safe-area color sync for mobile dark/light mode */
@media(max-width:768px){
  html[data-hg-theme="light"]{
    background-color:#f6f6f2!important;
    --hg-browser-bottom-chrome:#f6f6f2;
    --hg-safe-area-bottom-color:#f6f6f2;
  }
  html[data-hg-theme="dark"]{
    background-color:#0f131a!important;
    --hg-browser-bottom-chrome:#0f131a;
    --hg-safe-area-bottom-color:#0f131a;
  }
  html[data-hg-theme="light"] body{background-color:#f6f6f2!important;}
  html[data-hg-theme="dark"] body{background-color:#0f131a!important;}
  html[data-hg-theme] body::after{
    content:"";
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:max(28px,env(safe-area-inset-bottom,0px));
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2));
    z-index:2147482500;
    pointer-events:none;
  }
  html[data-hg-theme] .mobile-nav{
    overflow:visible!important;
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2))!important;
  }
  html[data-hg-theme] .mobile-nav::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:calc(-1 * env(safe-area-inset-bottom,0px));
    height:max(28px,env(safe-area-inset-bottom,0px));
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2));
    pointer-events:none;
  }
  html[data-hg-theme="dark"] .mobile-nav,
  html[data-hg-theme="dark"] .mobile-nav::after,
  html[data-hg-theme="dark"] .mobile-nav-inner{
    background-color:#0f131a!important;
  }
  html[data-hg-theme="light"] .mobile-nav,
  html[data-hg-theme="light"] .mobile-nav::after,
  html[data-hg-theme="light"] .mobile-nav-inner{
    background-color:#f6f6f2!important;
  }
  html[data-hg-theme="dark"] .hcheckout-mobile-paybar,
  html[data-hg-theme="dark"] .search-overlay,
  html[data-hg-theme="dark"] .search-overlay-inner{
    background-color:#0f131a!important;
  }
}
/* v86 — iPhone mobile bottom nav: glass surface + dark active state fix */
@media(max-width:768px){
  html[data-hg-theme]{
    --hg-mnav-z:2147483600;
  }

  html[data-hg-theme] body::after{
    z-index:2147480500!important;
    height:max(12px,env(safe-area-inset-bottom,0px))!important;
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2))!important;
    pointer-events:none!important;
  }

  html[data-hg-theme] .mobile-nav{
    display:block!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    z-index:var(--hg-mnav-z)!important;
    overflow:visible!important;
    isolation:isolate!important;
    background:transparent!important;
    background-color:transparent!important;
    border-top:0!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }

  html[data-hg-theme] .mobile-nav::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    border-top:1px solid rgba(20,23,28,.08);
    background:rgba(255,255,255,.58);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    backdrop-filter:blur(24px) saturate(160%);
    box-shadow:0 -10px 34px rgba(20,23,28,.075);
  }

  html[data-hg-theme] .mobile-nav::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:calc(-1 * env(safe-area-inset-bottom,0px));
    height:env(safe-area-inset-bottom,0px);
    z-index:0;
    pointer-events:none;
    background:rgba(255,255,255,.58)!important;
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    backdrop-filter:blur(24px) saturate(160%);
  }

  html[data-hg-theme] .mobile-nav-inner{
    position:relative!important;
    z-index:2!important;
    background:transparent!important;
    background-color:transparent!important;
    height:100%!important;
  }

  html[data-hg-theme] .mnav-item{
    position:relative!important;
    z-index:2!important;
    color:rgba(76,86,99,.82)!important;
    background:transparent!important;
    border:1px solid transparent!important;
    box-shadow:none!important;
  }

  html[data-hg-theme] .mnav-item svg,
  html[data-hg-theme] .mnav-item .mnav-label{
    position:relative!important;
    z-index:2!important;
  }

  html[data-hg-theme] .mnav-item.active{
    color:#11161d!important;
    background:rgba(255,255,255,.44)!important;
    border-color:rgba(20,23,28,.07)!important;
    box-shadow:0 8px 18px rgba(20,23,28,.06)!important;
  }

  html[data-hg-theme] .mnav-dot{
    background:#11161d!important;
    box-shadow:none!important;
    opacity:.72!important;
  }

  html[data-hg-theme="dark"] .mobile-nav::before{
    border-top-color:rgba(255,255,255,.075)!important;
    background:linear-gradient(180deg,rgba(19,25,35,.46),rgba(11,15,22,.62))!important;
    -webkit-backdrop-filter:blur(26px) saturate(150%);
    backdrop-filter:blur(26px) saturate(150%);
    box-shadow:0 -14px 38px rgba(0,0,0,.30)!important;
  }

  html[data-hg-theme="dark"] .mobile-nav::after{
    background:rgba(11,15,22,.86)!important;
    -webkit-backdrop-filter:blur(26px) saturate(150%);
    backdrop-filter:blur(26px) saturate(150%);
  }

  html[data-hg-theme="dark"] .mnav-item{
    color:rgba(203,213,225,.72)!important;
    background:transparent!important;
    border-color:transparent!important;
  }

  html[data-hg-theme="dark"] .mnav-item.active,
  html[data-hg-theme="dark"] .mnav-item[aria-current="page"]{
    color:#eef2f7!important;
    background:rgba(255,255,255,.075)!important;
    border-color:rgba(255,255,255,.09)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.16)!important;
  }

  html[data-hg-theme="dark"] .mnav-dot{
    background:#eef2f7!important;
    opacity:.55!important;
    box-shadow:0 0 10px rgba(238,242,247,.18)!important;
  }

  html[data-hg-theme="dark"] .cart-badge-mobile{
    background:#eef2f7!important;
    color:#11161d!important;
    box-shadow:0 0 0 2px rgba(15,19,26,.82)!important;
  }

  html[data-hg-theme="light"] .cart-badge-mobile{
    background:#11161d!important;
    color:#fff!important;
  }
}

/* HastiGem v105: make live search suggestion results fully opaque and readable over the home category cards. */body.home .hg-hero,
body.home .hg-wrap{
  overflow:visible!important;
}

body.home .hg-hero{
  position:relative!important;
  z-index:20!important;
}body.home .search-overlay-results{
  background:#ffffff!important;
  background-color:#ffffff!important;
  color:#151923!important;
  opacity:1!important;
  border:1px solid rgba(17,24,39,.16)!important;
  box-shadow:0 26px 70px rgba(15,23,42,.24)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  mix-blend-mode:normal!important;
}body.home .search-overlay-results .dropdown-header,
body.home .search-overlay-results .dropdown-footer{
  background:#f7f7f3!important;
  background-color:#f7f7f3!important;
  color:#68707c!important;
  border-color:rgba(17,24,39,.10)!important;
  opacity:1!important;
}body.home .search-overlay-results .result-item{
  background:#ffffff!important;
  background-color:#ffffff!important;
  color:#151923!important;
  opacity:1!important;
  border-bottom:1px solid rgba(17,24,39,.08)!important;
}body.home .search-overlay-results .result-item:hover{
  background:#f2f4f7!important;
  background-color:#f2f4f7!important;
}body.home .search-overlay-results .result-thumb{
  background:#f1f3f5!important;
  background-color:#f1f3f5!important;
  border-color:rgba(17,24,39,.10)!important;
}body.home .search-overlay-results .result-name{
  color:#111827!important;
}body.home .search-overlay-results .result-cat,
body.home .search-overlay-results .result-price span,
body.home .search-overlay-results .result-price del{
  color:#6b7280!important;
}body.home .search-overlay-results .result-price,
body.home .search-overlay-results .result-price bdi,
body.home .search-overlay-results .result-price ins,
body.home .search-overlay-results .result-price .amount{
  color:#111827!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results{
  background:#111821!important;
  background-color:#111821!important;
  color:#edf2f7!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:0 28px 72px rgba(0,0,0,.54)!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .dropdown-header,
html[data-hg-theme="dark"] body.home .search-overlay-results .dropdown-footer{
  background:#151e29!important;
  background-color:#151e29!important;
  color:#a3adba!important;
  border-color:rgba(255,255,255,.09)!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .result-item{
  background:#111821!important;
  background-color:#111821!important;
  color:#edf2f7!important;
  border-bottom-color:rgba(255,255,255,.08)!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .result-item:hover{
  background:#182231!important;
  background-color:#182231!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .result-thumb{
  background:#182231!important;
  background-color:#182231!important;
  border-color:rgba(255,255,255,.10)!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .result-name,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price bdi,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price ins,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price .amount{
  color:#edf2f7!important;
}html[data-hg-theme="dark"] body.home .search-overlay-results .result-cat,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price span,
html[data-hg-theme="dark"] body.home .search-overlay-results .result-price del{
  color:#a3adba!important;
}


/* HastiGem v106: centered product search popup from the glass mobile bottom navigation. */
.search-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:2147483646!important;
  display:grid!important;
  grid-template-columns:100%!important;
  place-items:center!important;
  padding:max(16px,env(safe-area-inset-top,0px)) 16px max(92px,calc(var(--hg-mobile-nav-real,72px) + env(safe-area-inset-bottom,0px) + 16px))!important;
  background:rgba(15,18,24,.48)!important;
  -webkit-backdrop-filter:blur(18px) saturate(125%)!important;
  backdrop-filter:blur(18px) saturate(125%)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .22s ease,visibility .22s ease!important;
}

.search-overlay.open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.search-overlay-inner{
  width:100%!important;
  max-width:520px!important;
  max-height:min(78svh,680px)!important;
  padding:0!important;
  background:transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.search-overlay-box{
  width:100%!important;
  max-height:min(78svh,680px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:30px!important;
  border:1px solid rgba(17,24,39,.12)!important;
  background:#ffffff!important;
  color:#151923!important;
  box-shadow:0 34px 90px rgba(15,23,42,.34)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transform:translateY(14px) scale(.98)!important;
  transition:transform .24s ease!important;
}

.search-overlay.open .search-overlay-box{
  transform:translateY(0) scale(1)!important;
}

.search-overlay-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:18px 18px 10px!important;
  border-bottom:1px solid rgba(17,24,39,.08)!important;
  flex-shrink:0!important;
}

.search-overlay-head strong{
  display:block!important;
  color:#111827!important;
  font-size:17px!important;
  font-weight:950!important;
  line-height:1.5!important;
  letter-spacing:-.3px!important;
}

.search-overlay-head span{
  display:block!important;
  margin-top:2px!important;
  color:#6b7280!important;
  font-size:12px!important;
  line-height:1.8!important;
}

.search-overlay-row{
  margin:12px 14px 0!important;
  padding:8px!important;
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:20px!important;
  background:#f7f8fa!important;
  flex-shrink:0!important;
}

.search-overlay-input{
  flex:1 1 auto!important;
  min-width:0!important;
  height:44px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#111827!important;
  font-size:16px!important;
  font-weight:820!important;
  direction:rtl!important;
}

.search-overlay-input::placeholder{
  color:#8b93a1!important;
}

.search-overlay-close{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:16px!important;
  background:#f2f4f7!important;
  color:#111827!important;
  cursor:pointer!important;
}

.search-overlay-close svg{
  width:17px!important;
  height:17px!important;
}

.search-overlay-results{
  margin:12px 14px 14px!important;
  max-height:min(48svh,420px)!important;
  flex:1 1 auto!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:22px!important;
  background:#ffffff!important;
  color:#151923!important;
  box-shadow:none!important;
}

.search-overlay-results:has(.result-item){
  min-height:130px!important;
}

.search-overlay-results:empty{
  display:none!important;
}

.search-overlay-results .dropdown-header,
.search-overlay-results .dropdown-footer,
.search-overlay-results .dropdown-loading,
.search-overlay-results .dropdown-empty{
  background:#f7f8fa!important;
  color:#6b7280!important;
  border-color:rgba(17,24,39,.08)!important;
  opacity:1!important;
}

.search-overlay-results .dropdown-loading,
.search-overlay-results .dropdown-empty{
  padding:18px!important;
  text-align:center!important;
  line-height:1.9!important;
  font-size:13px!important;
}

.search-overlay-results .result-item{
  min-height:64px!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  background:#ffffff!important;
  color:#111827!important;
  border-bottom:1px solid rgba(17,24,39,.08)!important;
}

.search-overlay-results .result-item:hover,
.search-overlay-results .result-item:focus-visible{
  background:#f2f4f7!important;
}

.search-overlay-results .result-name,
.search-overlay-results .result-price,
.search-overlay-results .result-price bdi,
.search-overlay-results .result-price ins,
.search-overlay-results .result-price .amount{
  color:#111827!important;
}

.search-overlay-results .result-cat,
.search-overlay-results .result-price span,
.search-overlay-results .result-price del{
  color:#6b7280!important;
}

.search-overlay-results .result-thumb{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  background:#f1f3f5!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:15px!important;
}

@media(max-width:640px){
  .search-overlay{
    align-items:center!important;
    padding:max(14px,env(safe-area-inset-top,0px)) 12px max(88px,calc(var(--hg-mobile-nav-real,72px) + env(safe-area-inset-bottom,0px) + 14px))!important;
  }

  .search-overlay-inner{
    width:100%!important;
  }

  .search-overlay-box{
    border-radius:26px!important;
    max-height:min(82svh,660px)!important;
  }

  .search-overlay-head{
    padding:16px 16px 9px!important;
  }

  .search-overlay-head strong{
    font-size:16px!important;
  }

  .search-overlay-head span{
    font-size:11.5px!important;
  }

  .search-overlay-results{
    max-height:min(60svh,500px)!important;
  }
}

html[data-hg-theme="dark"] .search-overlay{
  background:rgba(3,7,18,.66)!important;
}

html[data-hg-theme="dark"] .search-overlay-box{
  background:#111821!important;
  color:#edf2f7!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 34px 92px rgba(0,0,0,.62)!important;
}

html[data-hg-theme="dark"] .search-overlay-head{
  border-bottom-color:rgba(255,255,255,.09)!important;
}

html[data-hg-theme="dark"] .search-overlay-head strong,
html[data-hg-theme="dark"] .search-overlay-input,
html[data-hg-theme="dark"] .search-overlay-close,
html[data-hg-theme="dark"] .search-overlay-results .result-name,
html[data-hg-theme="dark"] .search-overlay-results .result-price,
html[data-hg-theme="dark"] .search-overlay-results .result-price bdi,
html[data-hg-theme="dark"] .search-overlay-results .result-price ins,
html[data-hg-theme="dark"] .search-overlay-results .result-price .amount{
  color:#edf2f7!important;
}

html[data-hg-theme="dark"] .search-overlay-head span,
html[data-hg-theme="dark"] .search-overlay-input::placeholder,
html[data-hg-theme="dark"] .search-overlay-results .result-cat,
html[data-hg-theme="dark"] .search-overlay-results .result-price span,
html[data-hg-theme="dark"] .search-overlay-results .result-price del{
  color:#a3adba!important;
}

html[data-hg-theme="dark"] .search-overlay-row,
html[data-hg-theme="dark"] .search-overlay-close,
html[data-hg-theme="dark"] .search-overlay-results .dropdown-header,
html[data-hg-theme="dark"] .search-overlay-results .dropdown-footer,
html[data-hg-theme="dark"] .search-overlay-results .dropdown-loading,
html[data-hg-theme="dark"] .search-overlay-results .dropdown-empty{
  background:#151e29!important;
  border-color:rgba(255,255,255,.10)!important;
}

html[data-hg-theme="dark"] .search-overlay-results,
html[data-hg-theme="dark"] .search-overlay-results .result-item{
  background:#111821!important;
  color:#edf2f7!important;
  border-color:rgba(255,255,255,.09)!important;
}

html[data-hg-theme="dark"] .search-overlay-results .result-item:hover,
html[data-hg-theme="dark"] .search-overlay-results .result-item:focus-visible{
  background:#182231!important;
}

html[data-hg-theme="dark"] .search-overlay-results .result-thumb{
  background:#182231!important;
  border-color:rgba(255,255,255,.10)!important;
}


/* HastiGem v110: account page footer color sync. */

html[data-hg-theme="light"] body.woocommerce-account .hasti-premium-footer,
body.woocommerce-account .hasti-premium-footer{
  --hfooter-bg:#f6f6f2!important;
  --hfooter-bg-2:#f6f6f2!important;
  background:#f6f6f2!important;
  background-color:#f6f6f2!important;
  margin-top:0!important;
  border-top:1px solid rgba(20,22,30,.08)!important;
  box-shadow:none!important;
}


html[data-hg-theme="dark"] body.woocommerce-account .hasti-premium-footer{
  --hfooter-bg:#0f131a!important;
  --hfooter-bg-2:#0f131a!important;
  background:#0f131a!important;
  background-color:#0f131a!important;
  margin-top:0!important;
  border-top:1px solid rgba(255,255,255,.075)!important;
  box-shadow:none!important;
}

/* Page-specific Footer integrations — centralized from page stylesheets. */

/* Product, shop and product-category archive surfaces. */
body.single-product .hasti-premium-footer,
body.woocommerce-shop .hasti-premium-footer,
body.tax-product_cat .hasti-premium-footer{
    background:linear-gradient(180deg,var(--hg-u-page),var(--hg-u-page))!important;
    border-top:1px solid var(--hg-u-line-soft)!important;
}

/* Main categories landing page. */
body.hg-categories-page .hasti-premium-footer{
    margin-bottom:0!important;
    padding-bottom:0!important;
    min-height:0!important;
    background:linear-gradient(180deg,#f6f6f2,#f6f6f2)!important;
    border-top:1px solid rgba(23,24,27,.065)!important;
}
html[data-hg-theme="dark"] body.hg-categories-page .hasti-premium-footer{
    background:linear-gradient(180deg,#0d1015,#0d1015)!important;
    border-top:1px solid rgba(255,255,255,.07)!important;
}
body.hg-categories-page .hfooter-bottom{
    margin-bottom:0!important;
    padding-bottom:10px!important;
    min-height:0!important;
    background:transparent!important;
}
body.hg-categories-page .hfooter-mobile-dock{
    display:none!important;
}
@media(max-width:820px){
    html body.hg-categories-page .hasti-premium-footer,
    html body.hg-categories-page.hblog-page-active .hasti-premium-footer{
        margin-bottom:0!important;
        padding-bottom:calc(var(--hg-mobile-nav-real,68px) + env(safe-area-inset-bottom,0px) + 6px)!important;
        min-height:0!important;
        background-color:transparent!important;
    }
    html body.hg-categories-page .hfooter-bottom,
    html body.hg-categories-page.hblog-page-active .hfooter-bottom{
        margin-bottom:0!important;
        padding-top:8px!important;
        padding-bottom:0!important;
        min-height:0!important;
        background:transparent!important;
    }
}

/* Support page keeps only the compact legal row on desktop. */
body.hg-support-template-page .hasti-premium-footer{
    margin-top:0!important;
    padding-top:0!important;
    border-top:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.hg-support-template-page .hasti-premium-footer .hfooter-hero,
body.hg-support-template-page .hasti-premium-footer .hfooter-grid,
body.hg-support-template-page .hasti-premium-footer .hfooter-mobile-dock,
body.hg-support-template-page .hasti-premium-footer .hfooter-quiet-card{
    display:none!important;
}
body.hg-support-template-page .hasti-premium-footer .hfooter-bottom{
    width:min(1120px,calc(100% - 28px))!important;
    margin:0 auto 24px!important;
    padding:16px 18px!important;
    border:1px solid var(--hg-u-line,rgba(20,22,30,.10))!important;
    border-radius:24px!important;
    background:color-mix(in srgb,var(--hg-u-surface,#fff) 76%,transparent)!important;
    box-shadow:0 14px 34px rgba(31,34,45,.055)!important;
    -webkit-backdrop-filter:blur(16px)!important;
    backdrop-filter:blur(16px)!important;
}
html[data-hg-theme="dark"] body.hg-support-template-page .hasti-premium-footer .hfooter-bottom{
    border-color:var(--hg-u-line,rgba(255,255,255,.10))!important;
    background:color-mix(in srgb,var(--hg-u-surface,#171d27) 76%,transparent)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.24)!important;
}
@media(max-width:760px){
    body.hg-support-template-page .hasti-premium-footer{
        display:none!important;
    }
}

/* Legal and delivery pages share the page surface and mobile-nav reserve. */
body.hg-terms-template-page .hasti-premium-footer{
    display:block!important;
    visibility:visible!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-top:0!important;
    padding-top:0!important;
    padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
    overflow:visible!important;
    pointer-events:auto!important;
    background:var(--hg-u-page,#f6f6f2)!important;
    border-top:1px solid var(--hg-u-line,rgba(20,22,30,.10))!important;
}
html[data-hg-theme="dark"] body.hg-terms-template-page .hasti-premium-footer{
    background:var(--hg-u-page,#0f131a)!important;
    border-top-color:var(--hg-u-line,rgba(255,255,255,.10))!important;
}
body.hg-privacy-template-page .hasti-premium-footer,
body.hg-delivery-template-page .hasti-premium-footer{
    margin-top:0!important;
    background:var(--hg-u-page,#f6f6f2)!important;
    border-top:1px solid var(--hg-u-line,rgba(20,22,30,.10))!important;
}
html[data-hg-theme="dark"] body.hg-privacy-template-page .hasti-premium-footer,
html[data-hg-theme="dark"] body.hg-delivery-template-page .hasti-premium-footer{
    background:var(--hg-u-page,#0f131a)!important;
    border-top-color:var(--hg-u-line,rgba(255,255,255,.10))!important;
}
@media(max-width:760px){
    body.hg-terms-template-page .hasti-premium-footer,
    body.hg-privacy-template-page .hasti-premium-footer,
    body.hg-delivery-template-page .hasti-premium-footer{
        display:block!important;
        visibility:visible!important;
        height:auto!important;
        max-height:none!important;
        margin-top:0!important;
        margin-bottom:0!important;
        padding-bottom:calc(var(--hg-mobile-nav-real,var(--mobile-nav,68px)) + env(safe-area-inset-bottom,0px) + 18px)!important;
        overflow:visible!important;
    }
    body.hg-terms-template-page .hfooter-hero,
    body.hg-terms-template-page .hfooter-grid,
    body.hg-terms-template-page .hfooter-mobile-dock,
    body.hg-terms-template-page .hfooter-quiet-card,
    body.hg-terms-template-page .hfooter-bottom{
        background:transparent!important;
        box-shadow:none!important;
    }
}

@media print{
    .hasti-premium-footer{display:none!important}
}
