
:root{--bg:#f3f3ef;--surface:#fff;--surface2:#eaece7;--text:#25282b;--muted:#595e61;--line:#d2d5d1;--blue:#41484d;--blue2:#25282b;--pale:#fff4bf;--on-accent:#25282b;--focus:#756000;--surface-soft:#f7f7f2;--image-bg:#fff;--table-head:#f0f1ed;--hero-bg:#292d31;--hero-border:#40464b;--hero-muted:#e3e5dd;--mobile-glass:#fff;--mobile-glass-border:#d2d5d1;--accent:#ffd43b;--accent-hover:#e9bc1b;--shadow:0 8px 24px #25282b12;--action-border:#8c9290}
:root[data-theme="dark"]{--bg:#1b1e21;--surface:#25292d;--surface2:#30353a;--text:#f3f3ec;--muted:#bfc4c5;--line:#464d52;--blue:#ffd43b;--blue2:#ffe578;--pale:#45402b;--on-accent:#25282b;--focus:#ffd43b;--surface-soft:#2a2f32;--image-bg:#fff;--table-head:#30353a;--hero-bg:#292d31;--hero-border:#464d52;--hero-muted:#e3e5dd;--mobile-glass:#25292d;--mobile-glass-border:#464d52;--shadow:0 8px 24px #00000026;--action-border:#818a90}
body{accent-color:var(--accent);caret-color:var(--text);scrollbar-color:var(--action-border) var(--bg)}
::selection{background:var(--accent);color:#25282b}
a{text-underline-offset:.2em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.header{border-bottom-color:var(--line)}
.brand-mark{background:var(--accent);color:#25282b}
.btn,.pagination .current{background:var(--accent);border-color:var(--accent);color:#25282b}
.btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#25282b}
.btn.secondary{background:var(--surface);border-color:var(--action-border);color:var(--text)}
.btn.secondary:hover{background:var(--pale);color:var(--text)}
.hero{background:var(--hero-bg);color:#fff;border-color:var(--hero-border)}
.hero h1{overflow-wrap:anywhere;text-wrap:balance}
.hero p{color:var(--hero-muted)}
.hero .eyebrow{color:var(--accent)}
.hero .btn.secondary{background:transparent;color:#fff;border-color:#a4abae}
.hero .btn.secondary:hover{background:#40464b}
.hero-art .orb{border:0;background:transparent;box-shadow:none;border-radius:0;width:100%;height:auto}
.hero-product{width:100%;max-width:250px;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:12px;padding:14px}
.category-card:hover,.product-card:hover{border-color:var(--action-border);box-shadow:none}
.side-link:hover,.side-link.active,.side-sub a.active{background:var(--pale);color:var(--text)}
.search{border-color:var(--action-border)}
.icon-action{border-color:var(--action-border);color:var(--text)!important}
.icon-action:hover{background:var(--pale);border-color:var(--text);transform:none}
.max-icon{width:24px;height:24px;object-fit:contain;flex:none;vertical-align:middle}
.icon-action .max-icon{width:24px;height:24px}
.btn .max-icon{width:22px;height:22px}
.product-img{height:auto;min-height:0;grid-template-rows:minmax(0,1fr)}
.product-img img,.gallery-main img{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;object-position:center;padding:12px}
.gallery-main{grid-template-rows:minmax(0,1fr)}
.photo-note{font-size:12px;color:var(--muted);margin:8px 0;max-width:65ch}
.product-card .photo-note{display:block;-webkit-line-clamp:unset;font-size:11px}
.contact-card{padding-left:18px}
.side-sub{margin-left:10px}
.back-top:hover{border-color:var(--action-border)}
.mobile-nav a{color:var(--muted)}
.mobile-nav a.active{background:var(--pale);color:var(--text)}
.search-match{background:var(--pale);color:var(--text);border-color:var(--line)}
.search-filters select{border-color:var(--action-border)}
.search-hint,.search-empty{color:var(--muted)}
.search input::placeholder{color:var(--muted);opacity:1}
.pagination a,.pagination span{min-width:44px;min-height:44px}
.specs,.variants{font-variant-numeric:tabular-nums}
@media(max-width:620px){.hero{background:var(--hero-bg)}.hero p{color:var(--hero-muted)}.hero h1{font-size:clamp(25px,7.5vw,36px)}.main{min-width:0}.product-info h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.selected-variant{background:var(--pale);font-weight:700}

.eyebrow,:root[data-theme="dark"] .eyebrow{color:var(--blue)}
.hero .eyebrow,:root[data-theme="dark"] .hero .eyebrow{color:var(--accent)}
.description-lead{color:var(--muted)}
:root .pagination .current,:root .pagination a[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:#25282b!important}
:root[data-theme="dark"] .btn.secondary,:root[data-theme="dark"] .icon-action{border-color:var(--action-border)}
:root[data-theme="dark"] .hero .btn.secondary{color:#fff;background:transparent;border-color:#a4abae}
:root[data-theme="dark"] .hero p{color:var(--hero-muted)}
.side-help .link{display:inline-flex;align-items:center;gap:6px}
.header-actions .btn,.topnav a{white-space:nowrap}
.product-img img{align-self:stretch}
.kicker{font-size:11px;text-transform:none;letter-spacing:0}
.mobile-nav a{font-size:11px}
.mobile-nav,:root[data-theme="dark"] .mobile-nav{box-shadow:0 8px 24px #00000026}
@media(max-width:620px){.card-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.icon-action{min-height:44px}.menu-btn,.theme-control,.sidebar-close,.side-sub-toggle{min-width:44px;min-height:44px}}

.sidebar{background:var(--surface)}
.side-sticky{scroll-padding-block:10px}
.side-nav{display:block;min-width:0}
.side-section-title{
  margin:22px 10px 8px!important;
  padding:16px 2px 7px!important;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.085em;
  text-transform:uppercase;
}
.side-nav>.side-section-title:first-child,
.side-nav>.side-section-title:first-of-type{
  margin-top:0!important;
  padding-top:2px!important;
  border-top:0;
}
.side-nav-link,.side-sub a{
  min-width:0;
  border-radius:9px;
  color:var(--text);
  text-decoration:none;
  touch-action:manipulation;
  -webkit-tap-highlight-color:color-mix(in srgb,var(--accent) 18%,transparent);
}
.side-nav-link{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  font-size:14px;
  font-weight:650;
  line-height:1.3;
}
.side-nav>.side-nav-link[href="/catalog/"]{
  margin-bottom:4px;
  font-weight:760;
}
.side-nav-link:hover,.side-sub a:hover{
  background:var(--surface2);
  color:var(--text);
}
.side-nav-link:active,.side-sub a:active{background:var(--pale)}
.side-nav-link:focus-visible,.side-sub a:focus-visible,.side-sub-toggle:focus-visible,.sidebar-close:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
}
.side-parent{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  align-items:stretch;
  gap:2px;
  border-radius:10px;
}
.side-parent>.side-nav-link{min-width:0}
.side-sub-toggle{
  position:relative;
  width:42px;
  min-width:42px;
  min-height:42px;
  display:grid;
  place-items:center;
  align-self:stretch;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:color-mix(in srgb,var(--accent) 18%,transparent);
}
.side-sub-toggle:hover{background:var(--surface2);color:var(--text)}
.side-toggle-mark{
  width:8px;
  height:8px;
  display:block;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(-45deg);
  transform-origin:center;
  transition:transform .16s ease;
}
.side-sub-toggle[aria-expanded="true"] .side-toggle-mark{transform:rotate(45deg) translate(-1px,-1px)}
.side-parent.is-open>.side-sub-toggle{background:var(--surface2);color:var(--text)}
.side-parent.contains-current>.side-nav-link,
.side-parent.is-open>.side-nav-link{color:var(--text)}
.side-parent.contains-current>.side-nav-link,
.side-nav-link.active,
.side-nav-link[aria-current="page"]{
  background:var(--pale);
  color:var(--text);
  font-weight:760;
  box-shadow:inset 3px 0 0 var(--accent);
}
.side-sub[hidden]{display:none!important}
.side-sub{
  margin:2px 0 8px 12px!important;
  padding:4px 0 5px 10px!important;
  border-left:1px solid var(--line);
}
.side-sub a{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  font-size:13px;
  font-weight:540;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.side-sub a small{
  margin-left:auto;
  flex:0 0 auto;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.side-sub a.active,.side-sub a[aria-current="page"]{
  background:var(--pale);
  color:var(--text);
  font-weight:740;
}
.side-help{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.side-help .link{gap:0}
.sidebar-head{
  align-items:center;
  min-height:52px;
}
.sidebar-close{
  width:auto!important;
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border:1px solid var(--action-border)!important;
  border-radius:9px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  touch-action:manipulation;
}
.sidebar-close:hover{background:var(--surface2)!important;color:var(--text)!important}
@media(min-width:901px){
  .side-sticky{
    max-height:calc(100vh - var(--header) - 36px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:6px;
  }
  .side-sticky::-webkit-scrollbar{width:8px}
  .side-sticky::-webkit-scrollbar-thumb{background:var(--action-border);border-radius:999px}
  .side-nav-link,.side-sub a,.side-sub-toggle{
    transition:background-color .14s ease,color .14s ease,box-shadow .14s ease;
  }
}
@media(max-width:900px){
  .sidebar{
    overscroll-behavior:contain;
    padding-top:max(14px,env(safe-area-inset-top));
    padding-bottom:max(20px,env(safe-area-inset-bottom));
  }
  .side-section-title{margin-top:20px!important;padding-top:15px!important}
  .side-nav-link{min-height:46px;padding:10px 11px;font-size:15px}
  .side-parent{grid-template-columns:minmax(0,1fr) 46px}
  .side-sub-toggle{width:46px;min-width:46px;min-height:46px}
  .side-sub{margin-left:13px!important;padding-left:10px!important}
  .side-sub a{min-height:44px;padding:9px 10px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .side-toggle-mark,.side-nav-link,.side-sub a,.side-sub-toggle{transition:none!important}
}

.side-section-title{
  position:relative;
  margin:22px 10px 8px!important;
  padding:4px 2px 4px 15px!important;
  border-top:0!important;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.side-section-title::before{
  content:"";
  position:absolute;
  left:1px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  transform:translateY(-50%);
  box-shadow:none;
}
.side-nav>.side-section-title:first-child,
.side-nav>.side-section-title:first-of-type{
  margin-top:0!important;
  padding-top:4px!important;
}

.side-nav-link:hover,.side-sub a:hover{
  background:transparent!important;
  color:var(--text)!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.side-nav-link:active,.side-sub a:active{background:transparent!important}
.side-parent.contains-current>.side-nav-link,
.side-parent.is-open>.side-nav-link,
.side-nav-link.active,
.side-nav-link[aria-current="page"],
.side-sub a.active,
.side-sub a[aria-current="page"]{
  background:transparent!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.side-nav-link.active,.side-nav-link[aria-current="page"],
.side-sub a.active,.side-sub a[aria-current="page"]{font-weight:800}
.side-parent.is-open>.side-sub-toggle,
.side-sub-toggle:hover{
  background:transparent!important;
  color:var(--text)!important;
}
@media(min-width:901px){
  .sidebar{
    position:relative!important;
    transform:none!important;
    visibility:visible!important;
  }
  .side-sticky{
    position:sticky!important;
    top:calc(var(--header) + 18px)!important;
    max-height:calc(100vh - var(--header) - 36px)!important;
    overflow-y:auto!important;
  }
}
@media(max-width:900px){
  .side-section-title{padding-left:15px!important}
}

html.menu-booting .side-toggle-mark,
html.menu-booting .side-nav-link,
html.menu-booting .side-sub a,
html.menu-booting .side-sub-toggle{transition:none!important}

.side-sub a.active,
.side-sub a[aria-current="page"]{
  position:relative;
  padding-left:22px!important;
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none;
}
.side-sub a.active::before,
.side-sub a[aria-current="page"]::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
  transform:translateY(-50%);
}
@media(max-width:900px){.sidebar:not(.open){visibility:hidden!important;pointer-events:none}.sidebar.open{visibility:visible!important}}

.catalog-all-link{font-weight:800!important;margin-bottom:8px}.side-direction>.side-direction-link{position:relative;padding-left:25px!important;font-weight:780}.side-direction>.side-direction-link::before{content:"";position:absolute;left:10px;top:50%;width:7px;height:7px;border-radius:50%;background:var(--accent);transform:translateY(-50%)}.side-direction.contains-current>.side-direction-link,.side-direction.is-open>.side-direction-link{background:transparent!important;color:var(--text)!important;box-shadow:none!important}.side-direction+.side-sub{margin-left:11px!important;padding-left:15px!important;border-left:0!important}.side-menu-separator{height:0;margin:18px 0 12px;border-top:1px solid var(--line)}.side-direction+.side-sub a.active,.side-direction+.side-sub a[aria-current="page"]{padding-left:22px!important}

.header-email{font-weight:650;color:var(--text);font-size:13px;white-space:nowrap}
.finishing-product-page{align-items:start}
.finishing-gallery{min-width:0}
.product-gallery-strip{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 4px;scrollbar-width:thin}
.gallery-thumb{flex:0 0 82px;width:82px;height:66px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:4px;cursor:pointer}
.gallery-thumb.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:1180px){.header .phone,.header .header-email{display:none}}
@media(max-width:900px){.sidebar-head>strong{display:none}.sidebar-head{justify-content:flex-end}.product-gallery-strip{margin-bottom:14px}}

/* Unified category navigation v3: nested rows follow the same title + chevron
   structure used by /catalog/building-materials/.  No additional ↗ links. */
.side-sub .side-nested{
  grid-template-columns:minmax(0,1fr) 42px;
  gap:2px;
  margin:1px 0;
}
.side-sub .side-nested>.side-nested-link{
  display:flex;
  align-items:center;
  min-width:0;
  min-height:38px;
  padding:7px 9px;
  font-size:13px;
  font-weight:540;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.side-sub .side-nested.is-open>.side-nested-link{font-weight:650}
.side-sub .side-nested>.side-sub-toggle{
  width:42px;
  min-width:42px;
  min-height:38px;
}
.side-sub .side-sub-nested{
  margin:2px 0 7px 12px!important;
  padding:3px 0 4px 10px!important;
  border-left:1px solid var(--line)!important;
}
.side-sub .side-sub-nested>a{font-size:13px}
/* A category link remains a conventional navigation link even when its
   adjacent arrow toggles the children. Keep targets non-overlapping. */
.side-sub .side-nested>.side-nested-link:focus-visible,
.side-sub .side-nested>.side-sub-toggle:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:1px;
}
@media(max-width:900px){
  .side-sub .side-nested{grid-template-columns:minmax(0,1fr) 46px}
  .side-sub .side-nested>.side-nested-link,
  .side-sub .side-nested>.side-sub-toggle{min-height:46px}
  .side-sub .side-nested>.side-sub-toggle{width:46px;min-width:46px}
  .sidebar{overscroll-behavior:contain}
}
