.drw-dkm-menu-item{position:relative}.drw-dkm-trigger{display:inline-flex!important;align-items:center;gap:7px;cursor:pointer}.drw-dkm-burger{position:relative;width:16px;height:12px;display:inline-block;border-top:2px solid currentColor;border-bottom:2px solid currentColor}.drw-dkm-burger:after{content:"";position:absolute;right:0;left:0;top:4px;border-top:2px solid currentColor}.drw-dkm-shortcode-trigger{appearance:none;border:0;background:transparent;font:inherit;color:inherit;padding:8px 0;cursor:pointer}.drw-dkm-portal{position:fixed;inset:0;z-index:999999;pointer-events:none;visibility:hidden}.drw-dkm-portal.is-open{visibility:visible}.drw-dkm-overlay{position:absolute;inset:0;background:rgba(0,0,0,var(--drw-dkm-overlay,.56));opacity:0;transition:opacity .16s ease}.drw-dkm-portal.is-open .drw-dkm-overlay{opacity:1;pointer-events:auto}.drw-dkm-desktop-panel{position:fixed;top:0;right:auto;left:auto;width:min(1180px,calc(100vw - 24px));height:min(635px,calc(100vh - 110px));display:flex;overflow:hidden;background:#fff;border-radius:0 0 10px 10px;box-shadow:0 18px 42px rgba(0,0,0,.18);opacity:0;transform:translateY(-6px);transition:opacity .13s ease,transform .13s ease;pointer-events:none;color:#23254a;font-family:inherit}.drw-dkm-portal.is-desktop-open .drw-dkm-desktop-panel{opacity:1;transform:none;pointer-events:auto}.drw-dkm-roots{width:205px;flex:0 0 205px;overflow:auto;background:#f7f7f8;border-left:1px solid #eceef1}.drw-dkm-root{width:100%;min-height:48px;border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:10px 14px;text-align:right;font:inherit;font-size:13px;font-weight:600;color:#3f4064;cursor:pointer;transition:background .1s,color .1s}.drw-dkm-root:hover,.drw-dkm-root.is-active{background:#fff;color:var(--drw-dkm-primary,#ef4056)}.drw-dkm-icon{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center}.drw-dkm-icon img{width:100%;height:100%;object-fit:contain}.drw-dkm-icon svg{width:18px;height:18px;fill:currentColor}.drw-dkm-desktop-content{flex:1;min-width:0;overflow:auto;background:#fff}.drw-dkm-root-content{display:none;padding:18px 24px 24px}.drw-dkm-root-content.is-active{display:block}.drw-dkm-view-all{display:inline-flex;align-items:center;gap:7px;color:#3f4064!important;font-size:12px;font-weight:700;text-decoration:none!important;margin-bottom:18px}.drw-dkm-view-all span{color:var(--drw-dkm-primary,#ef4056);font-size:18px}.drw-dkm-groups{display:block;column-count:var(--drw-dkm-columns,4);column-gap:30px}.drw-dkm-group{display:flex;flex-direction:column;gap:8px;min-width:0;break-inside:avoid;margin:0 0 22px}.drw-dkm-group-title{display:flex;align-items:center;gap:5px;color:#0c0c0c!important;font-size:13px;font-weight:800;text-decoration:none!important}.drw-dkm-group-title i{display:block;width:2px;height:15px;background:var(--drw-dkm-primary,#ef4056);border-radius:2px}.drw-dkm-group-title span{color:#70718a;font-size:16px}.drw-dkm-link{display:block;color:#81858b!important;font-size:12px;line-height:1.55;text-decoration:none!important;white-space:normal}.drw-dkm-link:hover{color:var(--drw-dkm-primary,#ef4056)!important}.drw-dkm-mobile-drawer{display:none}
body.drw-dkm-lock{overflow:hidden!important}
@media(max-width:1023px){.drw-dkm-desktop-trigger{display:none!important}.drw-dkm-portal{z-index:1000000}.drw-dkm-desktop-panel{display:none}.drw-dkm-portal.is-mobile-open .drw-dkm-overlay{pointer-events:auto}.drw-dkm-mobile-drawer{position:absolute;inset:0;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .22s ease;pointer-events:none;color:#23254a;font-family:inherit}.drw-dkm-portal.is-mobile-open .drw-dkm-mobile-drawer{transform:none;pointer-events:auto}.drw-dkm-mobile-drawer>header{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eceef1;background:#fff}.drw-dkm-mobile-drawer>header strong{font-size:15px}.drw-dkm-mobile-drawer>header button{width:38px;height:38px;border:0;background:#f5f5f5;border-radius:50%;font-size:25px;line-height:1;cursor:pointer}.drw-dkm-mobile-body{display:flex;flex:1;min-height:0;overflow:hidden}.drw-dkm-mobile-roots{width:92px;flex:0 0 92px;overflow-y:auto;background:#f4f4f5;border-left:1px solid #eceef1}.drw-dkm-mobile-root{width:100%;min-height:84px;border:0;background:transparent;padding:9px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:inherit;color:#62666d;cursor:pointer;position:relative}.drw-dkm-mobile-root.is-active{background:#fff;color:var(--drw-dkm-primary,#ef4056)}.drw-dkm-mobile-root.is-active:after{content:"";position:absolute;right:0;top:25%;bottom:25%;width:3px;background:var(--drw-dkm-primary,#ef4056);border-radius:0 3px 3px 0}.drw-dkm-mobile-root .drw-dkm-icon{width:28px;height:28px;flex-basis:28px}.drw-dkm-mobile-root span:last-child{font-size:10px;line-height:1.35;text-align:center}.drw-dkm-mobile-content{flex:1;min-width:0;overflow-y:auto;padding:12px 13px 28px}.drw-dkm-mobile-section{display:none}.drw-dkm-mobile-section.is-active{display:block}.drw-dkm-mobile-all{display:flex;justify-content:space-between;align-items:center;color:#3f4064!important;text-decoration:none!important;font-size:12px;font-weight:800;padding:4px 2px 13px}.drw-dkm-mobile-all span{color:var(--drw-dkm-primary,#ef4056);font-size:20px}.drw-dkm-mobile-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:15px}.drw-dkm-mobile-featured>a{display:flex;flex-direction:column;align-items:center;gap:7px;color:#3f4064!important;text-decoration:none!important;min-width:0}.drw-dkm-featured-image{width:100%;aspect-ratio:1;background:#f5f5f6;border-radius:10px;display:grid;place-items:center;overflow:hidden}.drw-dkm-featured-image img{width:78%;height:78%;object-fit:contain}.drw-dkm-featured-image .dashicons{color:#92949a}.drw-dkm-mobile-featured small{font-size:9px;line-height:1.4;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.drw-dkm-mobile-group{border-bottom:1px solid #eceef1}.drw-dkm-mobile-group>button{width:100%;min-height:48px;padding:0 3px;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;font:inherit;font-size:12px;font-weight:700;color:#292a4a;cursor:pointer;text-align:right}.drw-dkm-mobile-group>button i{width:8px;height:8px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}.drw-dkm-mobile-group.is-open>button i{transform:rotate(135deg)}.drw-dkm-mobile-links{display:none;padding:0 8px 12px}.drw-dkm-mobile-group.is-open .drw-dkm-mobile-links{display:flex;flex-direction:column}.drw-dkm-mobile-links a{padding:7px 0;color:#777b82!important;text-decoration:none!important;font-size:11px}.drw-dkm-mobile-links a:first-child{color:var(--drw-dkm-primary,#ef4056)!important;font-weight:700}.drw-dkm-shortcode-trigger{display:flex;width:100%;justify-content:flex-start}.drw-dkm-mobile-trigger .drw-dkm-trigger{display:flex!important}}
@media(min-width:1024px){.drw-dkm-mobile-trigger:not(.drw-dkm-desktop-trigger){display:none!important}}
@media(prefers-reduced-motion:reduce){.drw-dkm-overlay,.drw-dkm-desktop-panel,.drw-dkm-mobile-drawer{transition:none!important}}
@media(max-width:1023px){.drw-dkm-desktop-trigger.drw-dkm-mobile-trigger{display:list-item!important}}
body.drw-dkm-replace-woodmart :is(.whb-header,.wd-header,.main-header) :is(.wd-header-cats,.woodmart-header-cats,.wd-header-categories,.woodmart-header-categories){display:none!important}

/* 1.25.184 — Digikala-like mobile menu separators */
@media(max-width:1023px){
  .drw-dkm-mobile-roots{
    border-left:1px solid #dfe2e7;
  }
  .drw-dkm-mobile-root{
    border-bottom:1px solid #e3e6ea;
  }
  .drw-dkm-mobile-root:last-child{
    border-bottom:0;
  }
  .drw-dkm-mobile-content{
    padding-top:0;
  }
  .drw-dkm-mobile-all{
    min-height:54px;
    padding:0 3px;
    border-bottom:1px solid #e3e6ea;
  }
  .drw-dkm-mobile-featured{
    padding-top:14px;
  }
  .drw-dkm-mobile-group{
    border-bottom:1px solid #e3e6ea;
  }
  .drw-dkm-mobile-group>button{
    min-height:54px;
  }
}

/* 1.25.184 — reuse Dr WooCommerce advanced search at the top of the mobile Digikala menu */
.drw-dkm-mobile-search{display:none}
@media(max-width:1023px){
  .drw-dkm-mobile-search{
    display:block;
    flex:0 0 auto;
    padding:10px 12px;
    background:#fff;
    border-bottom:1px solid #e3e6ea;
  }
  .drw-dkm-mobile-search .drw-search-shortcode{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .drw-dkm-mobile-search .drw-search-shortcode-trigger{
    display:flex!important;
    width:100%!important;
    min-height:46px!important;
    height:46px!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:10px!important;
    padding:0 14px!important;
    border:1px solid #eceef1!important;
    border-radius:12px!important;
    background:#f0f0f1!important;
    color:#81858b!important;
    box-shadow:none!important;
    font:inherit!important;
    font-weight:500!important;
  }
  .drw-dkm-mobile-search .drw-search-shortcode-trigger:hover,
  .drw-dkm-mobile-search .drw-search-shortcode-trigger:focus-visible{
    border-color:#dfe2e7!important;
    box-shadow:none!important;
  }
  .drw-dkm-mobile-search .drw-search-shortcode-icon{
    width:21px!important;
    height:21px!important;
    flex:0 0 21px!important;
    color:#8b8f95!important;
  }
  .drw-dkm-mobile-search .drw-search-shortcode-label--bar{
    display:block!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:nowrap!important;
    border:0!important;
    color:#81858b!important;
    font-size:12px!important;
    line-height:1.5!important;
  }
  .drw-dkm-mobile-search .drw-search-shortcode-label--button{
    display:none!important;
  }
}

/* 1.25.185 — real DOM separators for the mobile Digikala menu.
 * These are independent elements, not button borders, so Woodmart button resets cannot remove them. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-roots{
    border-left:1px solid #d9dde3!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-root{
    border:0!important;
    box-shadow:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-root-separator,
  #drw-dkm-portal .drw-dkm-mobile-group-separator{
    display:block!important;
    width:100%!important;
    height:1px!important;
    min-height:1px!important;
    flex:0 0 1px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#d9dde3!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-root-separator:last-child,
  #drw-dkm-portal .drw-dkm-mobile-group-separator:last-child{
    display:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-group{
    border-bottom:0!important;
    box-shadow:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-all{
    border-bottom:1px solid #d9dde3!important;
  }
}


/* 1.25.186 — force desktop Digikala menu labels to RTL/right alignment.
 * Woodmart may center button contents globally, so the portal ID + !important keeps our menu deterministic. */
@media(min-width:1024px){
  #drw-dkm-portal .drw-dkm-root{
    direction:rtl!important;
    justify-content:flex-start!important;
    text-align:right!important;
  }
  #drw-dkm-portal .drw-dkm-root>span:last-child{
    flex:1 1 auto!important;
    min-width:0!important;
    text-align:right!important;
  }
  #drw-dkm-portal .drw-dkm-desktop-content,
  #drw-dkm-portal .drw-dkm-root-content,
  #drw-dkm-portal .drw-dkm-group,
  #drw-dkm-portal .drw-dkm-view-all,
  #drw-dkm-portal .drw-dkm-group-title,
  #drw-dkm-portal .drw-dkm-link{
    direction:rtl!important;
    text-align:right!important;
  }
  #drw-dkm-portal .drw-dkm-group-title,
  #drw-dkm-portal .drw-dkm-view-all{
    justify-content:flex-start!important;
  }
}


/* 1.25.191 — adjustable mobile roots column width moves the vertical divider left/right. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-roots{
    width:var(--drw-dkm-mobile-roots-width,92px)!important;
    flex:0 0 var(--drw-dkm-mobile-roots-width,92px)!important;
  }
}

/* 1.25.191 — independent desktop divider position / roots-column width. */
@media(min-width:1024px){
  #drw-dkm-portal .drw-dkm-roots{
    width:var(--drw-dkm-desktop-roots-width,205px)!important;
    flex:0 0 var(--drw-dkm-desktop-roots-width,205px)!important;
  }
}

/* 1.25.193 — Digikala-like mobile child-category icon grid.
 * Icon cards are inside each accordion body, so they appear only while that group is open. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-icon-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px 8px;
    padding:10px 0 14px;
    margin:0 0 5px;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-item{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    color:#3f4064!important;
    text-decoration:none!important;
    font-weight:500!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-image{
    width:min(68px,100%);
    aspect-ratio:1;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:50%;
    background:#f3f4f5;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-image img{
    width:76%!important;
    height:76%!important;
    object-fit:contain!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-item small{
    display:block;
    width:100%;
    min-width:0;
    color:#3f4064!important;
    font-size:9.5px!important;
    line-height:1.45!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all,
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all-card{
    text-decoration:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-text-link{
    display:block;
    padding:7px 0!important;
    color:#777b82!important;
    font-size:11px!important;
    text-decoration:none!important;
  }
}


/* 1.25.194 — Digikala-like mobile "all items" card at the top of each category. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-all{
    display:inline-flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:92px!important;
    min-height:0!important;
    padding:0!important;
    margin:10px 0 14px auto!important;
    border:0!important;
    background:transparent!important;
    color:#3f4064!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-all-icon{
    width:84px!important;
    height:84px!important;
    border-radius:50%!important;
    background:#f3f4f5!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-all-icon svg{
    width:28px!important;
    height:28px!important;
    fill:#666b73!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-all-text{
    display:block!important;
    width:100%!important;
    color:#3f4064!important;
    font-size:11px!important;
    line-height:1.45!important;
    font-weight:700!important;
    text-align:center!important;
    white-space:normal!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-all-label{
    display:none!important;
  }
}


/* 1.25.194 — convert subgroup "view all" links into the same Digikala-like card style. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all-card{
    display:inline-flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:92px!important;
    min-height:0!important;
    padding:0!important;
    margin:6px 0 12px auto!important;
    border:0!important;
    background:transparent!important;
    color:#3f4064!important;
    box-shadow:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all-card .drw-dkm-mobile-all-icon{
    width:84px!important;
    height:84px!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all-card .drw-dkm-mobile-all-text{
    color:#3f4064!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:1.45!important;
    text-align:center!important;
  }
}


/* 1.25.195 — mobile hierarchy parity with Digikala.
 * Root category: text-only "view all" link.
 * Expanded subgroup: "همه کالاها" is the last item of the same 3-column icon grid. */
@media(max-width:1023px){
  #drw-dkm-portal .drw-dkm-mobile-root-all-link{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:100%!important;
    min-height:44px!important;
    padding:0 3px 8px!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #e3e6ea!important;
    background:transparent!important;
    color:#3f4064!important;
    font-size:11px!important;
    line-height:1.5!important;
    font-weight:600!important;
    text-align:right!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-root-all-link>span:nth-child(2){
    color:var(--drw-dkm-primary,#ef4056)!important;
    font-size:18px!important;
    line-height:1!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-item-all{
    order:9999;
  }
  #drw-dkm-portal .drw-dkm-mobile-icon-image-all svg{
    width:28px!important;
    height:28px!important;
    fill:#555b65!important;
  }
  /* Old standalone all-card markup is no longer emitted, but keep it hidden if cached HTML survives briefly. */
  #drw-dkm-portal .drw-dkm-mobile-links>.drw-dkm-mobile-group-all-card{
    display:none!important;
  }
}
