/* Noor Naksha v1.11.25 — approved pending fixes only.
 * Stable v1.11.24 product cards, My Account, CTA cleanup and commerce logic stay untouched.
 */

/* -------------------------------------------------------------------------
 * Desktop header navigation auto-fit.
 * Manual Desktop Navigation Gap remains the preferred/max value.
 * ---------------------------------------------------------------------- */
@media (min-width:721px){
  body.nn-v1125-header-autofit .nn-primary-nav>.nn-nav-list{
    gap:var(--nn-v1125-nav-gap,var(--nn-nav-gap))!important;
    font-size:var(--nn-v1125-nav-size,var(--nn-nav-size))!important;
  }
  body.nn-v1125-header-autofit .nn-primary-nav>.nn-nav-list>li>a{
    padding-left:var(--nn-v1125-nav-pad-x,var(--nn-nav-item-x))!important;
    padding-right:var(--nn-v1125-nav-pad-x,var(--nn-nav-item-x))!important;
  }
  body.nn-v1125-header-autofit .nn-mainbar-inner.nn-v1125-nav-fallback .nn-primary-nav{display:none!important}
  body.nn-v1125-header-autofit .nn-mainbar-inner.nn-v1125-nav-fallback .nn-mobile-menu-button{display:grid!important}
}

/* Extreme desktop overflow fallback uses the already-existing menu drawer. */
@media (min-width:721px){
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer{
    display:block!important;position:fixed!important;inset:0 auto 0 0!important;
    width:min(86vw,360px)!important;max-width:calc(100vw - 30px)!important;height:100dvh!important;
    padding:18px!important;background:#fffdf9!important;z-index:100302!important;overflow-y:auto!important;
    transform:translate3d(-104%,0,0)!important;transition:transform .26s cubic-bezier(.22,.61,.36,1)!important;
    box-shadow:18px 0 46px rgba(7,35,27,.18)!important;
  }
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer.is-open{transform:translate3d(0,0,0)!important}
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer .nn-mobile-nav-list,
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer .nn-nav-list{display:block!important;list-style:none!important;margin:0!important;padding:12px 0!important}
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer .nn-nav-list>li{display:block!important;border-bottom:1px solid #f0e9df!important}
  body.nn-v1125-nav-fallback-active>.nn-mobile-drawer .nn-nav-list>li>a{display:block!important;padding:12px 4px!important}
  body.nn-v1125-nav-fallback-active>.nn-drawer-backdrop:not([hidden]){display:block!important;position:fixed!important;inset:0!important;background:rgba(7,28,22,.42)!important;z-index:100301!important}
}

/* -------------------------------------------------------------------------
 * Shop/category navigation cards — centered, equal-height content blocks.
 * ---------------------------------------------------------------------- */
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18{
  min-height:146px;
  grid-template-rows:78px minmax(30px,auto) 14px!important;
  align-content:center!important;
  align-items:center!important;
  justify-items:stretch!important;
  padding:10px 9px!important;
  gap:6px!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-art-v18{
  align-self:center!important;
  width:100%!important;
  height:78px!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 strong{
  min-height:2.4em;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.2!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 small{
  min-height:1em;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18.is-all::after{
  content:"";
  display:block;
  min-height:1em;
}
@media(max-width:720px){
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18{
    min-height:112px;
    grid-template-rows:58px minmax(26px,auto)!important;
    padding:7px 6px!important;
    gap:5px!important;
  }
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-art-v18{height:58px!important}
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 strong{min-height:2.3em!important}
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18 small,
  .nn-shop-categories-v18:not(.nn-shop-category-style-chips) .nn-shop-category-card-v18.is-all::after{display:none!important}
}

/* -------------------------------------------------------------------------
 * True zero-product category — intentional premium empty state.
 * ---------------------------------------------------------------------- */
body.nn-v1125-empty-category .nn-shop-toolbar-v18,
body.nn-v1125-empty-category .nn-shop-filters-v18,
body.nn-v1125-empty-category .woocommerce-result-count,
body.nn-v1125-empty-category .woocommerce-ordering{display:none!important}
body.nn-v1125-empty-category .nn-shop-layout-v18{
  display:block!important;
  grid-template-columns:1fr!important;
}
body.nn-v1125-empty-category .nn-shop-products-v18{width:100%!important;max-width:none!important}
.nn-v1125-empty-category-state{
  width:min(100%,880px);
  margin:24px auto 8px;
  padding:54px 30px 50px;
  border:1px solid #dbc898;
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 5%,rgba(199,157,70,.10),transparent 34%),
    linear-gradient(180deg,#fffdf8 0%,#fbf6eb 100%);
  box-shadow:0 12px 34px rgba(27,60,49,.055);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.nn-v1125-empty-category-state::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(190,146,58,.13);
  border-radius:12px;
  pointer-events:none;
}
.nn-v1125-empty-category-art{
  width:104px;
  height:104px;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#b6852f;
  background:#fffaf0;
  border:1px solid #ead8b3;
  box-shadow:0 8px 24px rgba(93,67,25,.06);
}
.nn-v1125-empty-lamp{width:66px;height:66px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nn-v1125-empty-eyebrow{display:block;margin-bottom:8px;color:#ad7a21;font-size:11px;font-weight:800;letter-spacing:.18em}
.nn-v1125-empty-category-state h2{margin:0 0 12px!important;color:#0e4a3c!important;font-family:var(--nn-serif)!important;font-size:clamp(30px,4vw,46px)!important;line-height:1.08!important}
.nn-v1125-empty-category-state p{max-width:620px;margin:0 auto!important;color:#6c655a!important;font-size:14px!important;line-height:1.7!important}
.nn-v1125-empty-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:24px}
.nn-v1125-empty-actions a{min-height:44px;padding:0 20px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;text-decoration:none!important}
.nn-v1125-empty-primary{background:var(--nn-green,#12372c);border:1px solid var(--nn-green,#12372c);color:#fff!important}
.nn-v1125-empty-secondary{background:#fffdf8;border:1px solid #d8c59d;color:var(--nn-green,#12372c)!important}
@media(max-width:720px){
  .nn-v1125-empty-category-state{margin-top:18px;padding:38px 18px 34px;border-radius:13px}
  .nn-v1125-empty-category-art{width:86px;height:86px;margin-bottom:15px}
  .nn-v1125-empty-lamp{width:54px;height:54px}
  .nn-v1125-empty-category-state h2{font-size:30px!important}
  .nn-v1125-empty-category-state p{font-size:13px!important}
  .nn-v1125-empty-actions{display:grid;grid-template-columns:1fr;width:100%;max-width:310px;margin-inline:auto}
}
