/* Live autocomplete for the global catalog search */
.toolbar-search-autocomplete{position:relative;z-index:60}
.toolbar-search-autocomplete:focus-within{border-color:#a9bd8d;box-shadow:0 0 0 3px rgba(142,170,110,.12)}
.shop-search-suggestions{position:absolute;top:calc(100% + 8px);left:-1px;right:-1px;z-index:1000;max-height:min(68vh,560px);overflow:auto;background:#fff;border:1px solid #e7e9e4;border-radius:12px;box-shadow:0 16px 42px rgba(25,31,22,.16);padding:8px 0;text-align:left}
.shop-search-suggestions[hidden]{display:none}
.shop-suggest-heading{padding:9px 16px 6px;color:#899184;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.shop-suggest-item{display:flex;align-items:center;gap:13px;min-height:54px;padding:8px 16px;color:#333a31;text-decoration:none;transition:background .15s}
.shop-suggest-item:hover,.shop-suggest-item:focus{background:#f5f7f1;outline:0}
.shop-suggest-item img{width:38px;height:38px;flex:0 0 38px;object-fit:contain;border-radius:7px;background:#f3f4f0}
.shop-suggest-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;color:#74866a;font-size:23px}
.shop-suggest-copy{min-width:0;display:flex;flex-direction:column;gap:1px}
.shop-suggest-copy b{font-size:13px;line-height:1.35;font-weight:600;white-space:normal}
.shop-suggest-copy small{font-size:11px;line-height:1.35;color:#a0a69d;white-space:normal}
.shop-suggest-empty{padding:18px 16px;color:#8a9185;font-size:12px}
@media(max-width:760px){.shop-search-suggestions{max-height:60vh}.shop-suggest-item{min-height:50px;padding:7px 12px}.shop-suggest-copy b{font-size:12px}}

/* Каталожные фотографии: показываем исходное изображение целиком, без обрезки */
.card-image{
  background:#f0f1ed !important;
  padding:12px;
}
.card-image img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain !important;
  object-position:center center;
  padding:0;
  mix-blend-mode:normal !important;
}
.product-card:hover .card-image img{
  transform:none;
}
@media(max-width:760px){
  .card-image{padding:8px}
}

/* Catalog sorting: compact options below the search field */
.catalog-sort-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:-10px 0 25px;padding:0 1px}
.catalog-sort-option{display:inline-flex;align-items:center;min-height:34px;padding:7px 14px;border:1px solid #e5e8e1;border-radius:999px;background:#fff;color:#697264;font-size:11px;font-weight:600;transition:background .18s,border-color .18s,color .18s}
.catalog-sort-option:hover{border-color:#a9bd8d;color:#263021}
.catalog-sort-option.is-active{background:#eff4e9;border-color:#9bb47c;color:#35472b;font-weight:800}
@media(max-width:760px){.catalog-sort-row{gap:7px;margin:-7px 0 20px}.catalog-sort-option{min-height:32px;padding:6px 11px;font-size:10px}}

/* Тест квадратного формата фотографий 1:1 — каталог и карточка товара */
.card-image{
  height:auto !important;
  aspect-ratio:1 / 1;
  padding:12px;
}
.product-main-image{
  height:auto !important;
  aspect-ratio:1 / 1;
}
@media(max-width:760px){
  .card-image{height:auto !important;aspect-ratio:1 / 1;padding:8px}
  .product-main-image{height:auto !important;aspect-ratio:1 / 1}
}

/* Availability filter */
.filter-in-stock{align-items:center;margin:2px 0 8px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#f7f8f4;font-weight:700;color:#394333}
.filter-in-stock input{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:#729653}
.filter-in-stock span{font-size:12px}

/* Каталог: четыре компактные карточки в ряд и чёткое отделение от фона */
.product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px 16px;
}
.product-card{
  min-width:0;
  padding:9px 9px 13px;
  border:1px solid #e9ece6;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(31,39,29,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.product-card:hover{
  transform:translateY(-3px);
  border-color:#dfe5d8;
  box-shadow:0 12px 28px rgba(31,39,29,.10);
}
.product-card .card-image{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto !important;
  padding:10px;
  border-radius:11px;
  background:#f0f1ed !important;
}
.product-card .card-content{padding:10px 3px 0}
.product-card .card-content h3{margin-top:5px}
@media(max-width:1300px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
  .product-card{padding:6px 6px 10px;border-radius:12px}
  .product-card .card-image{padding:7px;border-radius:9px}
}

/* Mobile header: exact compact layout of the main NC9 website */

/* Mobile header: exact compact layout of the main NC9 website */
@media (max-width: 760px) {
  .site-header.nc9-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e7e7e3;
    box-shadow: 0 3px 12px rgba(20, 24, 30, .07);
  }

  .nc9-site-header .nc9-header-main {
    width: 100%;
    min-height: 76px;
    padding: 6px 17px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 38px;
    gap: 8px 12px;
    align-items: center;
  }

  .nc9-site-header .nc9-header-logo {
    grid-column: 1;
    grid-row: 1;
    height: 64px;
    align-self: center;
  }

  .nc9-site-header .nc9-header-logo img,
  .nc9-site-header .nc9-header-logo .nc9-original-logo {
    display: block;
    width: 72px;
    height: 64px;
    object-fit: contain;
  }

  /* The main-site mobile header shows phone + short tagline, not the desktop title/address. */
  .nc9-site-header .nc9-header-identity,
  .nc9-site-header .nc9-header-address {
    display: none !important;
  }

  .nc9-site-header .nc9-header-contacts {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }

  .nc9-site-header .nc9-header-phone {
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 800;
  }

  .nc9-site-header .nc9-mobile-tagline {
    display: block !important;
    color: #68717b;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .nc9-site-header .nc9-header-email { display: none !important; }

  .nc9-site-header .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202820;
    cursor: pointer;
  }

  .nc9-site-header .mobile-menu-toggle-text { display: none; }
  .nc9-site-header .mobile-menu-icon { display: flex; flex-direction: column; gap: 5px; }
  .nc9-site-header .mobile-menu-icon i { display: block; width: 21px; height: 2px; background: currentColor; }

  /* Open the navigation as an overlay directly below the header, like the main site. */
  .nc9-navigation-wrap.nc9-site-header {
    position: fixed !important;
    top: 88px !important;
    left: 12px;
    right: 12px;
    z-index: 1099 !important;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: none;
  }

  .nc9-navigation-inner {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
  }

  .nc9-navigation-wrap .main-nav {
    display: none;
    width: 100%;
    max-height: calc(100dvh - 104px);
    height: auto;
    margin: 0;
    padding: 13px 20px 18px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e6e8e2;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 24, 30, .16);
    pointer-events: auto;
  }

  .nc9-navigation-wrap .main-nav.is-open { display: flex; }
  .nc9-navigation-wrap .main-nav a {
    height: auto;
    min-height: 34px;
    padding: 9px 0;
    border-bottom: 1px solid #eeeeeb;
    font-size: 13px;
    line-height: 1.25;
  }
  .nc9-navigation-wrap .main-nav a:last-child { border-bottom: 0; }
  .nc9-navigation-wrap .main-nav a:first-child::after { display: none; }
}


/* Mobile NC9 header — matched to the current main-site style.css */
@media (max-width: 760px) {
  .site-header.nc9-site-header {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    z-index: 20;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e9e9e5;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nc9-site-header .nc9-header-main {
    width: calc(100% - 32px);
    min-height: 0;
    margin: 0 auto;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 42px;
    grid-template-rows: 58px;
    align-items: center;
    gap: 0 12px;
  }
  .nc9-site-header .nc9-header-logo {
    grid-column: 1;
    grid-row: 1;
    width: 96px;
    min-width: 0;
    height: auto;
    align-self: center;
  }
  .nc9-site-header .nc9-original-logo {
    display: block;
    width: 96px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
  }
  .nc9-site-header .nc9-header-identity,
  .nc9-site-header .nc9-header-address,
  .nc9-site-header .nc9-header-email,
  .nc9-site-header .nc9-header-hours { display: none !important; }
  .nc9-site-header .nc9-header-contacts {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 5px 0 0;
    border: 0;
    gap: 3px;
  }
  .nc9-site-header .nc9-header-phone {
    display: block;
    max-width: 100%;
    align-self: flex-end;
    position: relative;
    top: -3px;
    left: 5px;
    white-space: nowrap;
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.2;
    letter-spacing: -.045em;
    font-weight: 800;
  }
  .nc9-site-header .nc9-mobile-tagline {
    display: block !important;
    width: 100%;
    color: #62656b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
    white-space: normal;
  }
  .nc9-site-header .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #202820;
  }
  .nc9-site-header .mobile-menu-toggle-text { display: none !important; }
  .nc9-site-header .mobile-menu-icon { display: flex; width: 22px; flex-direction: column; gap: 5px; }
  .nc9-site-header .mobile-menu-icon i { display: block; width: 22px; height: 2px; background: currentColor; }

  /* Navigation follows the header in normal document flow, just like NC9 main site. */
  .nc9-navigation-wrap.nc9-site-header {
    position: relative !important;
    top: auto !important;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 10;
    display: block;
    overflow: visible;
    background: #fff;
    border: 0;
    border-top: 1px solid #eeeeea;
    border-bottom: 0;
    box-shadow: none;
    pointer-events: auto;
  }
  .nc9-navigation-inner {
    width: calc(100% - 32px);
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    display: block;
  }
  .nc9-navigation-wrap .main-nav {
    display: none;
    width: 100%;
    height: auto;
    max-height: min(70vh, 560px);
    margin: 0;
    padding: 6px 0 10px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
  }
  .nc9-navigation-wrap .main-nav.is-open { display: flex; }
  .nc9-navigation-wrap .main-nav a {
    display: block;
    height: auto;
    min-height: 0;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid #f0f0ed;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
  }
  .nc9-navigation-wrap .main-nav a:last-child { border-bottom: 0; }
  .nc9-navigation-wrap .main-nav a:first-child::after { display: none; }
}

/* Mobile filters are compact until the visitor explicitly opens them. */
.mobile-filter-toggle { display: none; }
@media (max-width: 760px) {
  .catalog-layout { display: block; }
  .mobile-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    box-shadow: 0 3px 12px rgba(20,24,30,.055);
    cursor: pointer;
  }
  .mobile-filter-toggle-icon { font-size: 20px; line-height: 1; color: #78866b; }
  #catalogFilterSidebar { display: none; }
  #catalogLayout.mobile-filters-open #catalogFilterSidebar { display: block; }
  #catalogFilterSidebar { margin: 0 0 16px; }
  #catalogLayout.mobile-filters-open .mobile-filter-toggle { margin-bottom: 10px; }
}

/* Mobile refinements: bring the opened navigation closer to the header and keep search controls on one row. */
@media (max-width: 760px) {
  .nc9-navigation-wrap.nc9-site-header {
    margin-top: -30px;
    margin-bottom: 30px;
  }
  .nc9-navigation-wrap .main-nav {
    padding-top: 0;
    padding-bottom: 6px;
  }
  .catalog-toolbar {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }
  .catalog-toolbar .toolbar-search {
    flex: 1 1 auto;
    flex-basis: 0;
    min-width: 0;
    height: 44px;
  }
  .catalog-toolbar .button {
    flex: 0 0 88px;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    white-space: nowrap;
  }
}


/* NC9 footer copied in visual structure from the main website. */
.nc9-shop-footer{background:#20242a;color:#fff;border:0;padding:0;margin-top:64px}
.nc9-shop-footer .container{width:calc(100% - 64px);max-width:1460px;margin-left:auto;margin-right:auto}
.nc9-shop-footer .footer-top{display:grid;grid-template-columns:1.25fr .75fr 1fr;gap:65px;padding-top:54px;padding-bottom:48px}
.nc9-shop-footer .footer-brand .logo{display:inline-flex;align-items:center;gap:13px;color:#fff}
.nc9-shop-footer .nc9-footer-logo{display:block;width:82px;height:auto;max-height:46px;object-fit:contain}
.nc9-shop-footer .logo-caption{font-size:10px;line-height:1.45;letter-spacing:.12em;font-weight:800;color:#fff}
.nc9-shop-footer .logo-caption small{font-size:8px;color:#a8aaad;letter-spacing:.1em}
.nc9-shop-footer .footer-brand p{max-width:310px;color:#b8bbbe;font-size:12px;line-height:1.8;margin:20px 0 0}
.nc9-shop-footer .footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:11px;font-size:11px;color:#b9bbbf}
.nc9-shop-footer .footer-column strong{font-size:12px;color:#fff;margin-bottom:5px}
.nc9-shop-footer .footer-column a{color:#b9bbbf;text-decoration:none}
.nc9-shop-footer .footer-column a:hover{color:#f4c400}
.nc9-shop-footer .footer-column span{line-height:1.65}
.nc9-shop-footer .footer-bottom{min-height:60px;border-top:1px solid #ffffff20;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#aeb1b5;font-size:10px}
.nc9-shop-footer .footer-bottom a{color:#f4c400;text-decoration:none}
@media(max-width:760px){
 .nc9-navigation-wrap.nc9-site-header{margin-top:0;margin-bottom:14px}
 .nc9-navigation-wrap .main-nav{padding-top:0;padding-bottom:0}
 .nc9-shop-footer{margin-top:44px}
 .nc9-shop-footer .container{width:calc(100% - 36px)}
 .nc9-shop-footer .footer-top{grid-template-columns:1fr 1fr;gap:28px 18px;padding-top:34px;padding-bottom:28px}
 .nc9-shop-footer .footer-brand{grid-column:1/-1}
 .nc9-shop-footer .footer-column{gap:9px;font-size:10px}
 .nc9-shop-footer .footer-column strong{font-size:11px}
 .nc9-shop-footer .footer-bottom{padding:15px 0;min-height:0;flex-wrap:wrap;justify-content:flex-start;gap:8px 14px;font-size:9px}
 .nc9-shop-footer .footer-bottom span:nth-child(2){flex-basis:100%;order:3}
}

/* Oasis-style category heading and breadcrumbs */
.catalog-section>.catalog-breadcrumbs{padding:17px 0 8px;margin:0}
.catalog-category-heading{display:flex;align-items:baseline;gap:12px;margin:0 0 22px}
.catalog-category-heading h1{margin:0;color:#3f5668;font-size:clamp(28px,3vw,34px);font-weight:500;line-height:1.2;letter-spacing:-.035em}
.catalog-category-heading>span{color:#b8bec3;font-size:12px;white-space:nowrap}
@media(max-width:760px){
 .catalog-section>.catalog-breadcrumbs{padding:13px 0 7px}
 .catalog-category-heading{gap:9px;margin-bottom:17px;flex-wrap:wrap}
 .catalog-category-heading h1{font-size:27px}
 .catalog-category-heading>span{font-size:11px}
}


/* Mobile filters: the sidebar itself is the scroll container; the apply bar stays pinned at its top edge. */
@media (max-width: 760px) {
  #catalogFilterSidebar {
    display: block;
    height: min(72vh, 620px);
    max-height: min(72vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-bottom: 14px;
  }
  #catalogFilterSidebar .filters-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
  }
  #catalogFilterSidebar .filter-actions {
    position: sticky;
    top: 0;
    bottom: auto;
    z-index: 20;
    order: -1;
    margin: 0 -14px 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e9ece6;
    box-shadow: 0 5px 14px rgba(20,28,18,.07);
  }
  #catalogFilterSidebar .filter-actions .button { min-height: 46px; }
  #catalogFilterSidebar .filter-actions > a { padding: 5px 0 0; }
  #catalogFilterSidebar .filter-accordion[open] { scroll-margin-top: 76px; }
}


/* Recovery: stable mobile navigation and filter panel */
.nc9-navigation-wrap .main-nav a.shop-catalog-link {
  color: #967500;
  font-weight: 900;
}
.nc9-navigation-wrap .main-nav a.shop-catalog-link::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 0;
  height: 2px;
  background: #d7ad00;
}
@media (max-width: 760px) {
  /* Keep navigation in normal flow directly below the header. */
  .site-header.nc9-site-header {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
  }
  .nc9-navigation-wrap.nc9-site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10 !important;
    overflow: visible !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eeeeea !important;
    box-shadow: none !important;
    pointer-events: auto !important;
  }
  .nc9-navigation-wrap .main-nav {
    position: static !important;
    display: none !important;
    width: 100% !important;
    max-height: min(70vh, 560px) !important;
    margin: 0 !important;
    padding: 0 18px 8px !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
  }
  .nc9-navigation-wrap .main-nav.is-open { display: flex !important; }
  .nc9-navigation-wrap .main-nav a {
    min-height: 38px !important;
    padding: 9px 4px !important;
    border-bottom: 1px solid #eeeeeb !important;
  }
  .nc9-navigation-wrap .main-nav a.shop-catalog-link {
    margin: 2px -8px !important;
    padding: 9px 12px !important;
    color: #8f7000 !important;
    background: #fff8dc !important;
    border-left: 3px solid #d7ad00 !important;
    border-bottom: 1px solid #f0e4b8 !important;
    border-radius: 4px !important;
  }
  .nc9-navigation-wrap .main-nav a.shop-catalog-link::after { display: none !important; }

  /* Closed by default; only the toggle opens the filter panel. */
  #catalogFilterSidebar { display: none !important; }
  #catalogLayout.mobile-filters-open #catalogFilterSidebar {
    display: block !important;
    box-sizing: border-box !important;
    height: min(68vh, 560px) !important;
    max-height: min(68vh, 560px) !important;
    margin: 0 0 16px !important;
    padding: 0 14px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative !important;
  }
  #catalogFilterSidebar .filters-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
  }
  #catalogFilterSidebar .filter-actions {
    position: sticky !important;
    top: 0 !important;
    bottom: auto !important;
    z-index: 25 !important;
    order: -1 !important;
    margin: 0 -14px 8px !important;
    padding: 10px 14px !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ece6 !important;
    box-shadow: 0 5px 14px rgba(20,28,18,.07) !important;
  }
  /* The sidebar is the only scroll area, not each options list. */
  #catalogFilterSidebar .filter-options,
  #catalogFilterSidebar .category-filter-options {
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (min-width: 761px) {
  .nc9-navigation-wrap .main-nav a.shop-catalog-link { color: #967500; font-weight: 900; }
}


/* Final mobile spacing and navigation overlay corrections */
@media (max-width: 760px) {
  /* Do not retain the desktop sticky offset on the mobile filter panel. */
  #catalogFilterSidebar,
  #catalogLayout.mobile-filters-open #catalogFilterSidebar {
    top: auto !important;
    inset-block-start: auto !important;
    transform: none !important;
  }

  /* Keep the filter heading comfortably inset from the panel edge. */
  #catalogFilterSidebar .filter-head {
    box-sizing: border-box !important;
    padding: 12px 0 10px !important;
    margin: 0 0 2px !important;
  }

  /* Tighten the space between the apply controls and the first filter. */
  #catalogFilterSidebar .filter-actions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 7px !important;
    padding-bottom: 5px !important;
  }

  /* Header remains at the top; the opened menu floats over the page. */
  .site-header.nc9-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
  }

  .nc9-navigation-wrap.nc9-site-header {
    position: fixed !important;
    top: 88px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1199 !important;
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .nc9-navigation-wrap .nc9-navigation-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nc9-navigation-wrap .main-nav {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-height: calc(100dvh - 104px) !important;
    margin: 0 !important;
    padding: 8px 18px 12px !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #fff !important;
    border: 1px solid #e6e8e2 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(20,24,30,.18) !important;
    pointer-events: auto !important;
  }

  .nc9-navigation-wrap .main-nav.is-open {
    display: flex !important;
  }
}


/* Desktop: keep filter heading and apply button visible while scrolling filter options. */
@media (min-width: 761px) {
  #catalogFilterSidebar {
    position: sticky !important;
    top: 98px !important;
    align-self: start !important;
    max-height: calc(100vh - 116px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  #catalogFilterSidebar > .filter-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 31 !important;
    background: #fff !important;
    padding-top: 2px !important;
  }

  #catalogFilterSidebar .filters-form {
    display: flex !important;
    flex-direction: column !important;
  }

  #catalogFilterSidebar .filter-actions {
    position: sticky !important;
    top: 48px !important;
    bottom: auto !important;
    z-index: 30 !important;
    order: -1 !important;
    margin: 0 -1px 12px !important;
    padding: 10px 1px 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ece6 !important;
    box-shadow: 0 5px 12px rgba(20, 28, 18, .06) !important;
  }

  #catalogFilterSidebar .filter-actions .button {
    width: 100% !important;
    min-height: 46px !important;
  }
}

/* Desktop sticky filter controls: fully opaque backing, no content bleed-through. */
@media (min-width: 761px) {
  #catalogFilterSidebar .filter-actions {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 10px 1px 14px !important;
    border-bottom: 1px solid #e9ece6 !important;
    isolation: isolate !important;
  }
  #catalogFilterSidebar .filter-actions::before,
  #catalogFilterSidebar .filter-actions::after {
    content: none !important;
    display: none !important;
  }
}

/* NC9 category landing — compact four-column photo cards */
.category-landing .main-category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px 16px;
  align-items:stretch;
}
.category-landing .main-category-card{
  min-width:0;
  min-height:0;
  padding:0;
  border:1px solid #e5e6e8;
  border-radius:15px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:0;
  box-shadow:0 2px 5px rgba(20,28,40,.045);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.category-landing .main-category-card:hover{
  border-color:#e5c33b;
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(20,28,40,.10);
}
.category-landing .main-category-photo{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:1.78 / 1;
  overflow:hidden;
  background:linear-gradient(135deg,#f5f5f3,#e9eaeb);
}
.category-landing .main-category-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.category-landing .main-category-card:hover .main-category-photo img{transform:scale(1.05)}
.category-landing .main-category-photo-empty{
  width:100%;height:100%;display:grid;place-items:center;
  color:#c3c6c8;font-size:26px;font-weight:800;letter-spacing:.12em;
}
.category-landing .main-category-info{
  min-height:70px;
  padding:10px 52px 11px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  position:relative;
}
.category-landing .main-category-card strong{
  display:block;
  color:#171d2b;
  font-size:16px;
  font-weight:800;
  line-height:1.22;
  letter-spacing:-.025em;
}
.category-landing .main-category-card small{
  display:block;
  color:#697181;
  font-size:12px;
  line-height:1.3;
}
.category-landing .main-category-arrow{
  position:absolute;
  top:auto;
  right:12px;
  bottom:12px;
  transform:none;
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ffdc38;
  color:#171d2b;
  font-size:19px;
  font-weight:700;
  line-height:1;
  transition:transform .2s ease,background .2s ease;
}
.category-landing .main-category-card:hover .main-category-arrow{transform:translateX(3px);background:#ffd21a}
@media(max-width:1050px){
  .category-landing .main-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
  .category-landing .main-category-photo{aspect-ratio:1.7 / 1}
  .category-landing .main-category-info{min-height:66px;padding:9px 48px 10px 12px}
  .category-landing .main-category-card strong{font-size:15px}
  .category-landing .main-category-arrow{width:32px;height:32px;right:10px}
}
@media(max-width:760px){
  .category-landing .main-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 11px}
  .category-landing .main-category-photo{aspect-ratio:1.35 / 1}
  .category-landing .main-category-info{min-height:64px;padding:8px 39px 9px 10px}
  .category-landing .main-category-card strong{font-size:13px;line-height:1.23}
  .category-landing .main-category-card small{font-size:10px}
  .category-landing .main-category-arrow{width:27px;height:27px;right:8px;font-size:16px}
}
@media(max-width:390px){
  .category-landing .main-category-card{border-radius:12px}
  .category-landing .main-category-info{min-height:60px}
  .category-landing .main-category-card strong{font-size:12px}
}


/* FIX: product title must wrap at spaces on narrow screens */
.product-page > .product-title-block {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.product-page > .product-title-block > h1 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
