/* NayabBazar Storefront Professional V2 — cohesive, performance-first storefront polish. */
:root{
  --nb-ui-bg:#f7f9f7;
  --nb-ui-surface:#ffffff;
  --nb-ui-surface-soft:#f2f7f3;
  --nb-ui-text:#18231d;
  --nb-ui-muted:#657168;
  --nb-ui-line:#dde6df;
  --nb-ui-line-strong:#cad8ce;
  --nb-ui-green:var(--theme-primary,#168247);
  --nb-ui-green-dark:#0b6838;
  --nb-ui-green-soft:#edf7f0;
  --nb-ui-danger:#b42318;
  --nb-ui-radius:16px;
  --nb-ui-radius-lg:22px;
  --nb-ui-shadow:0 10px 30px rgba(24,52,32,.07);
  --nb-ui-shadow-hover:0 16px 42px rgba(24,52,32,.11);
  --nb-ui-shell:1480px;
  --nb-ui-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
html{scroll-behavior:smooth}
body{
  background:var(--nb-ui-bg)!important;color:var(--nb-ui-text)!important;
  font-family:var(--nb-ui-font)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}
button,input,select,textarea{font-family:inherit}
a{transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
img{max-width:100%}

/* Shared desktop shell */
@media(min-width:992px){
  body:not(.is-premium-home) .mn-main-content,
  body:not(.is-premium-home) .nb-storefront-shell,
  body:not(.is-premium-home) .container.storefront-container{
    width:min(var(--nb-ui-shell),calc(100% - 40px))!important;max-width:var(--nb-ui-shell)!important;margin-inline:auto!important
  }
  body:not(.is-premium-home) .mn-header-items{width:min(var(--nb-ui-shell),calc(100% - 40px));max-width:var(--nb-ui-shell);margin-inline:auto}
}

/* Main desktop header */
body:not(.is-premium-home) .mn-header{
  background:rgba(255,255,255,.97)!important;border-bottom:1px solid var(--nb-ui-line)!important;
  box-shadow:0 5px 24px rgba(20,45,28,.055)!important;backdrop-filter:blur(14px)
}
body:not(.is-premium-home) .mn-header .logo img{max-height:54px!important;width:auto!important;object-fit:contain}
body:not(.is-premium-home) .mn-main-menu>ul>li>a{
  color:#354239!important;font-weight:700!important;font-size:13px!important;padding-inline:12px!important
}
body:not(.is-premium-home) .mn-main-menu>ul>li>a:hover{color:var(--nb-ui-green)!important}
body:not(.is-premium-home) .mn-tool-icons>a,
body:not(.is-premium-home) .mn-tool-icons button,
body:not(.is-premium-home) .mn-main-search,
body:not(.is-premium-home) .mn-main-user,
body:not(.is-premium-home) .mn-main-wishlist,
body:not(.is-premium-home) .mn-main-cart{
  border-radius:12px!important
}

/* Cards and content surfaces */
.mn-breadcrumb .gi_breadcrumb_inner,
.nb-desktop-product-page .mn-single-pro,
.nb-desktop-product-page .nb-desktop-buy-panel,
.nb-mobile-product .nb-mobile-card,
.mobile-home-section,
.catalog-product-card,
.mn-product-card,
.mn-sidebar-wrap,
.mn-shop-sidebar,
.mn-blog-card,
.nb-page-card{
  border-color:var(--nb-ui-line)!important;border-radius:var(--nb-ui-radius)!important
}
.catalog-product-card,.mn-product-card{
  background:var(--nb-ui-surface)!important;box-shadow:0 4px 18px rgba(25,54,34,.045)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
@media(hover:hover){.catalog-product-card:hover,.mn-product-card:hover{transform:translateY(-3px);box-shadow:var(--nb-ui-shadow-hover)!important;border-color:#cfded3!important}}
.catalog-product-card .mn-product-img{border-radius:15px 15px 0 0!important;overflow:hidden}
.catalog-product-card .catalog-card-title{color:#1b2720!important;font-weight:760!important;letter-spacing:-.01em}
.catalog-product-card .catalog-card-meta a,.catalog-product-card .catalog-size{color:#657168!important}
.catalog-product-card .catalog-card-actions{margin-top:10px!important}
.catalog-product-card .catalog-cart-button{
  border-radius:10px!important;background:var(--nb-ui-green)!important;border-color:var(--nb-ui-green)!important;
  font-weight:780!important;box-shadow:none!important
}
.catalog-product-card .catalog-cart-button:hover{background:var(--nb-ui-green-dark)!important;border-color:var(--nb-ui-green-dark)!important}
.catalog-product-card .catalog-view-button{border-radius:10px!important;background:#fff!important}
.catalog-product-card .catalog-view-button:hover{background:var(--nb-ui-green-soft)!important;color:var(--nb-ui-green)!important;border-color:#bad5c4!important}

/* Buttons */
.mn-btn-1,.mn-btn-2,.btn-primary,.nb-main-buy-button,.nb-mobile-purchase-button{
  border-radius:11px!important;font-weight:780!important;letter-spacing:-.01em!important
}

/* Product page — calm, premium layout */
body.nb-product-page{background:#f7f9f7!important}
body.nb-product-page .nb-desktop-product-page{padding-top:16px!important;padding-bottom:34px!important}
body.nb-product-page .nb-desktop-product-page .mn-single-pro{
  background:#fff!important;border:1px solid var(--nb-ui-line)!important;box-shadow:0 8px 32px rgba(25,54,34,.055)!important
}
body.nb-product-page .nb-desktop-buy-panel{
  background:#fff!important;border:1px solid var(--nb-ui-line)!important;box-shadow:0 6px 24px rgba(22,48,29,.045)!important
}
body.nb-product-page .nb-desktop-price-box{background:#fbfcfb!important;border-color:#dbe4dd!important}
body.nb-product-page .nb-desktop-cart-wrap .qty-plus-minus{border-radius:11px!important;background:#fbfcfb!important}
body.nb-product-page .nb-desktop-cart-wrap .nb-main-buy-button{border-radius:11px!important}
body.nb-product-page .nb-import-advance-text{
  color:#44534a!important;background:#f4f8f5!important;border-color:#d6e4da!important
}
body.nb-product-page .nb-import-advance-text strong{color:#176a40!important}

/* Mobile product surface */
@media(max-width:991px){
  body.nb-product-page{background:#f5f7f5!important}
  body.nb-product-page .nb-mobile-product{padding-inline:8px!important}
  body.nb-product-page .nb-mobile-product>*{max-width:100%}
  body.nb-product-page .nb-mobile-gallery,
  body.nb-product-page .nb-mobile-product-info,
  body.nb-product-page .nb-mobile-price-card,
  body.nb-product-page .nb-mobile-buy-card{
    background:#fff!important;border-color:#dce5de!important;border-radius:16px!important;box-shadow:none!important
  }
  body.nb-product-page .nb-mobile-brand-thumbs-full{gap:7px!important;padding-block:2px!important}
  body.nb-product-page .nb-mobile-brand-thumbs-full button{
    flex-basis:62px!important;width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;
    border-radius:12px!important;border-color:#dce5de!important;background:#fff!important
  }
  body.nb-product-page .nb-mobile-purchase-bar{
    left:7px!important;right:7px!important;bottom:7px!important;padding:8px!important;
    border:1px solid #d6e1d9!important;border-radius:16px!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 12px 34px rgba(19,46,29,.16)!important;backdrop-filter:blur(14px)
  }
  body.nb-product-page .nb-mobile-purchase-qty{border-radius:11px!important;overflow:hidden!important;border-color:#d6e1d9!important;background:#fff!important}
  body.nb-product-page .nb-mobile-purchase-button{background:var(--nb-ui-green)!important;border-color:var(--nb-ui-green)!important;min-height:48px!important}
  body.nb-product-page .nb-mobile-purchase-action .nb-mobile-advance-text{
    background:#f4f8f5!important;border-color:#d6e4da!important;color:#44534a!important
  }
  body.nb-product-page .nb-mobile-purchase-action .nb-mobile-advance-text strong{color:#176a40!important}
}

/* Homepage */
body.is-premium-home{background:#fff!important}
body.is-premium-home .premium-home-content{max-width:1380px!important;padding-top:16px!important}
body.is-premium-home .phh-desktop-header,
body.is-premium-home .pmh-sticky-header{border-color:#e1e8e3!important;box-shadow:0 5px 22px rgba(22,48,29,.055)!important}
body.is-premium-home .phh-desktop-search,
body.is-premium-home .pmh-search-form{border-color:#d8e2db!important;background:#f5f8f5!important}
body.is-premium-home .phh-desktop-search:focus-within,
body.is-premium-home .pmh-search-form:focus-within{background:#fff!important;border-color:#8ebba1!important;box-shadow:0 0 0 4px rgba(22,130,71,.08)!important}
body.is-premium-home .premium-home-hero{border-radius:20px!important;box-shadow:0 10px 34px rgba(25,54,34,.08)!important}
body.is-premium-home .home-category-card,
body.is-premium-home .mobile-category-card{border-color:#dfe7e1!important;box-shadow:none!important}
body.is-premium-home .home-category-card:hover{border-color:#bdd3c5!important;background:#fbfdfb!important}
body.is-premium-home .mobile-home-section-heading h2{letter-spacing:-.02em;color:#1c2820!important}

/* Listing/filter pages */
.mn-shop .mn-pro-list-top,.catalog-toolbar,.nb-catalog-toolbar{
  border:1px solid var(--nb-ui-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important
}
.mn-sidebar-wrap,.mn-shop-sidebar{background:#fff!important;box-shadow:none!important}
.form-control,.form-select,input[type=text],input[type=search],input[type=email],input[type=tel],input[type=number],textarea,select{
  border-color:#d5dfd8
}
.form-control:focus,.form-select:focus,input:focus,textarea:focus,select:focus{
  border-color:#82b297!important;box-shadow:0 0 0 3px rgba(22,130,71,.08)!important;outline:none!important
}

/* Footer */
.mn-footer{border-top:1px solid rgba(255,255,255,.06)}

/* AI must always sit above mobile and desktop headers/drawers. */
.nb-ai-contact{z-index:2147483600!important}

/* Accessibility and touch comfort */
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(22,130,71,.28)!important;outline-offset:2px!important
}

@media(max-width:767px){
  :root{--nb-ui-radius:14px;--nb-ui-radius-lg:18px}
  body{font-size:14px}
  body.is-premium-home .premium-home-content{padding-inline:8px!important;padding-top:8px!important}
  body.is-premium-home .premium-home-hero{border-radius:14px!important;box-shadow:none!important}
  .catalog-product-card{border-radius:13px!important;box-shadow:none!important}
  .catalog-product-card .mn-product-img{border-radius:12px 12px 0 0!important}
  .catalog-product-card .mn-product-detail{padding:10px!important}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}

/* Render below-the-fold storefront sections only as they approach the viewport. */
@supports (content-visibility:auto){
  body:not(.nb-product-page) :is(.mobile-home-sections,.premium-home-sections)>section:nth-child(n+2),
  body.nb-product-page :is(.nb-desktop-only-recommendations,.nb-mobile-recommendations),
  footer.mn-footer{content-visibility:auto;contain-intrinsic-size:auto 620px}
}
