/* v12.2.709 - screenshot-matched Digikala breadcrumb styles */
@font-face {
  font-family:"Digikala";
  src:url("fonts/digikala-variable.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
body.single-product #nikanshop_breadcrumbs,
body.single-product .woocommerce-breadcrumb,
body.single-product .product-page-title-categories {display:none !important}

/* Shared reset */
body.single-product nav.nkdk705-top-crumb,
body.single-product nav.nkdk705-desktop-top-crumb,
body.single-product nav.nkdk705-brand-crumb,
body.single-product nav.nkdk705-desktop-brand-crumb {
  direction:rtl !important;
  box-sizing:border-box !important;
  font-family:"Digikala",sans-serif !important;
  text-align:right !important;
  text-decoration:none !important;
}
body.single-product .nkdk705-sep {flex:0 0 auto !important}

/* Desktop upper path — screenshot 114: small muted ancestors, dark current item, slash separators. */
@media (min-width:801px) {
  body.single-product nav.nkdk705-desktop-top-crumb {
    display:flex !important;
    direction:rtl !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:12px !important;
    width:100% !important;
    margin:16px 0 22px !important;
    padding:0 20px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    color:#9a9da3 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:11px !important;
    font-weight:400 !important;
    line-height:20px !important;
  }
  body.single-product nav.nkdk705-desktop-top-crumb a,
  body.single-product nav.nkdk705-desktop-top-crumb span {
    color:#9a9da3 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:11px !important;
    font-weight:400 !important;
    line-height:20px !important;
    text-decoration:none !important;
    flex:0 0 auto !important;
  }
  body.single-product nav.nkdk705-desktop-top-crumb .nkdk705-current {
    color:#424242 !important;
    font-weight:600 !important;
  }
  body.single-product nav.nkdk705-desktop-top-crumb .nkdk705-slash {
    color:#9a9da3 !important;
    font-size:11px !important;
    font-weight:400 !important;
    line-height:20px !important;
  }

  /* Desktop lower path — screenshot 115: Digikala 14px semibold and left chevron. */
  body.single-product nav.nkdk705-desktop-brand-crumb {
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    min-width:0 !important;
    margin:0 0 10px !important;
    padding:0 !important;
    color:#424242 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:26px !important;
  }
  body.single-product nav.nkdk705-desktop-brand-crumb a,
  body.single-product nav.nkdk705-desktop-brand-crumb span {
    color:#424242 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:26px !important;
    text-decoration:none !important;
  }
  body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-chevron {
    color:#858585 !important;
    font-size:16px !important;
    font-weight:400 !important;
  }
  body.single-product .nkdk705-top-crumb,
  body.single-product .nkdk705-brand-crumb {display:none !important}
}

/* Mobile: compact upper line; left-facing chevrons. */
@media (max-width:800px) {
  body.single-product nav.nkdk705-desktop-top-crumb,
  body.single-product nav.nkdk705-desktop-brand-crumb {display:none !important}

  body.single-product nav.nkdk705-top-crumb {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:9px !important;
    width:100% !important;
    min-height:34px !important;
    margin:0 !important;
    padding:5px 16px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    white-space:nowrap !important;
    scrollbar-width:none !important;
    background:#fff !important;
    border-bottom:1px solid #f0f0f0 !important;
    color:#777 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:12px !important;
    font-weight:400 !important;
    line-height:20px !important;
  }
  body.single-product nav.nkdk705-top-crumb a,
  body.single-product nav.nkdk705-top-crumb span {
    color:#777 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:12px !important;
    font-weight:400 !important;
    line-height:20px !important;
    text-decoration:none !important;
    flex:0 0 auto !important;
  }
  body.single-product nav.nkdk705-top-crumb .nkdk705-mobile-chevron {
    color:#9b9b9b !important;
    font-size:15px !important;
    font-weight:400 !important;
    transform:rotate(180deg) !important;
    line-height:1 !important;
  }
  body.single-product nav.nkdk705-brand-crumb {
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 8px !important;
    padding:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    color:#424242 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:24px !important;
  }
  body.single-product nav.nkdk705-brand-crumb a,
  body.single-product nav.nkdk705-brand-crumb span {
    color:#424242 !important;
    font-family:"Digikala",sans-serif !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:24px !important;
    text-decoration:none !important;
  }
  body.single-product nav.nkdk705-brand-crumb .nkdk705-mobile-chevron {
    color:#888 !important;
    font-size:15px !important;
    font-weight:400 !important;
    transform:rotate(180deg) !important;
  }
}

/* v12.2.709 refinements */
body.single-product nav.nkdk705-desktop-brand-crumb,
body.single-product nav.nkdk705-brand-crumb {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  vertical-align:middle !important;
}
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-name,
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-category,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-name,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-category {
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  vertical-align:middle !important;
  line-height:inherit !important;
  margin:0 !important;
  padding:0 !important;
}
body.single-product .nkdk705-brand-logo {
  display:inline-block !important;
  width:20px !important;
  height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  object-fit:contain !important;
  flex:0 0 20px !important;
  border-radius:50% !important;
  vertical-align:middle !important;
  margin-inline-end:5px !important;
}
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-chevron {
  transform:rotate(180deg) !important;
}
@media (max-width:800px) {
  body.single-product nav.nkdk705-top-crumb .nkdk705-mobile-chevron,
  body.single-product nav.nkdk705-brand-crumb .nkdk705-mobile-chevron {
    transform:none !important;
  }
  body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-logo {
    width:18px !important;
    height:18px !important;
    max-width:18px !important;
    max-height:18px !important;
    flex-basis:18px !important;
  }
}

/* v12.2.710: final brand-row alignment and circular logo sizing */
body.single-product nav.nkdk705-desktop-brand-crumb,
body.single-product nav.nkdk705-brand-crumb {
  display:flex !important; flex-direction:row !important; align-items:center !important;
  justify-content:flex-start !important; min-height:40px !important; height:40px !important;
  line-height:40px !important; gap:8px !important; vertical-align:middle !important;
}
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-name,
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-category,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-name,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-category {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  align-self:center !important; flex:0 0 auto !important; height:40px !important;
  line-height:40px !important; vertical-align:middle !important; margin:0 !important;
  padding:0 !important; position:relative !important; top:0 !important;
}
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-name > span,
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-brand-category,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-name > span,
body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-category {
  line-height:40px !important; align-self:center !important;
}
body.single-product .nkdk705-brand-logo {
  display:block !important; width:40px !important; height:40px !important;
  min-width:40px !important; min-height:40px !important; max-width:40px !important;
  max-height:40px !important; object-fit:contain !important; flex:0 0 40px !important;
  box-sizing:border-box !important; border:1px solid #ededed !important;
  border-radius:50% !important; background:#fff !important; padding:5px !important;
  margin:0 0 0 5px !important;
}
body.single-product nav.nkdk705-desktop-brand-crumb .nkdk705-chevron,
body.single-product nav.nkdk705-brand-crumb .nkdk705-mobile-chevron {
  direction:ltr !important; unicode-bidi:isolate !important; transform:none !important;
  line-height:1 !important; align-self:center !important;
}
@media (max-width:800px) {
  body.single-product nav.nkdk705-brand-crumb {
    height:36px !important; min-height:36px !important; line-height:36px !important;
    width:calc(100% - 48px) !important; max-width:calc(100% - 48px) !important;
    margin-left:48px !important; margin-right:0 !important; padding-left:0 !important;
    overflow:hidden !important;
  }
  body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-name,
  body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-category,
  body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-name > span {
    height:36px !important; line-height:36px !important;
  }
  body.single-product nav.nkdk705-brand-crumb .nkdk705-brand-logo {
    width:34px !important; height:34px !important; min-width:34px !important;
    min-height:34px !important; max-width:34px !important; max-height:34px !important;
    flex-basis:34px !important; padding:4px !important;
  }
  body.single-product nav.nkdk705-brand-crumb .nkdk705-mobile-chevron,
  body.single-product nav.nkdk705-top-crumb .nkdk705-mobile-chevron {
    direction:ltr !important; unicode-bidi:isolate !important; transform:none !important;
  }
}

/* v12.2.711 fallback: hide only YITH standalone brand output on desktop product pages.
   The custom breadcrumb logo is not inside these YITH containers and remains visible. */
@media (min-width:801px) {
  body.single-product .yith-wcbr-brands,
  body.single-product .yith-wcbr-brand,
  body.single-product .yith-wcbr-single-product-brands,
  body.single-product .yith-wcbr-product-brand,
  body.single-product .yith-wcbr-brand-thumbnail {
    display:none !important;
  }
}


/* v12.2.713: exact selector confirmed from the user's DevTools screenshot.
   Nikikala/theme prints the large YITH logo as:
   .summary.entry-summary .product-page-header > a[href="/brand/..."] > img
   Hide only that linked standalone logo; custom breadcrumb logo is in its own nav. */
@media (min-width:801px) {
  body.single-product .summary.entry-summary .product-page-header > a[href*="/brand/"] {
    display:none !important;
  }
}

/* v12.2.714: fine vertical alignment and mobile intro spacing */
@media (min-width:801px) {
  /* The category phrase sat a couple of pixels above the brand label.
     Nudge only that phrase down, leaving the logo and brand link untouched. */
  body.single-product nav.nkdk705-desktop-brand-crumb > .nkdk705-brand-category {
    position:relative !important;
    top:2px !important;
  }
}
@media (max-width:800px) {
  /* Keep action icons on their own visual line; place brand path below them. */
  body.single-product .nkdkf-intro nav.nkdk705-brand-crumb {
    margin-top:12px !important;
    margin-bottom:0 !important;
  }
  /* Tighten the gap from breadcrumb to product title after lowering the path. */
  body.single-product .nkdkf-intro h1 {
    margin-top:8px !important;
    margin-bottom:10px !important;
  }
}

/* v12.2.715: highlight the final/current item in the mobile top breadcrumb. */
@media (max-width:800px) {
  body.single-product nav.nkdk705-top-crumb .nkdk705-current {
    color:#242424 !important;
    font-weight:600 !important;
  }
}

/* v12.2.749: reserve the breadcrumb's visual slot without affecting title flow.
   Hidden before the footer script runs; revealed only after its single DOM move. */
@media (min-width:801px) {
  body.single-product .summary.entry-summary .product-page-header {
    position:relative !important;
    padding-top:40px !important;
    box-sizing:border-box !important;
  }
  body.single-product nav.nkdk705-desktop-brand-crumb {
    visibility:hidden !important;
  }
  body.single-product nav.nkdk705-desktop-brand-crumb.nkdk705-crumb-positioned {
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    left:auto !important;
    z-index:2 !important;
    visibility:visible !important;
    margin:0 !important;
    pointer-events:auto !important;
  }
}
